@wix/himalaya-cli 0.1856.0 → 0.1858.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/stdlib/flows/auth/src/copy.generated.d.ts +20 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/index.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +21 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +53 -16
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +94 -29
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{c1f008be31a41521c6de7c1afad419a1f4dad53cbc2701a14738d5b22f291463.bin → b2b76cc19f21f7c6d8b1a3cd6aa1ac0f194b052fa183761d08bd4f43fd46f844.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +1796 -1524
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/one-app-section-mappings.md +2 -2
- package/guides/one-app-to-himi-app.md +11 -2
- package/guides/recipe-auth.md +18 -1
- package/guides/sdk-reference.json +4 -4
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/ar.json +5 -0
- package/templates/beauty-salon/l10n/cs.json +5 -0
- package/templates/beauty-salon/l10n/da.json +5 -0
- package/templates/beauty-salon/l10n/de.json +5 -0
- package/templates/beauty-salon/l10n/el.json +5 -0
- package/templates/beauty-salon/l10n/es.json +5 -0
- package/templates/beauty-salon/l10n/fi.json +5 -0
- package/templates/beauty-salon/l10n/fr.json +5 -0
- package/templates/beauty-salon/l10n/he.json +4 -0
- package/templates/beauty-salon/l10n/hu.json +5 -0
- package/templates/beauty-salon/l10n/id.json +5 -0
- package/templates/beauty-salon/l10n/it.json +5 -0
- package/templates/beauty-salon/l10n/ja.json +5 -0
- package/templates/beauty-salon/l10n/ko.json +5 -0
- package/templates/beauty-salon/l10n/lt.json +5 -0
- package/templates/beauty-salon/l10n/nl.json +5 -0
- package/templates/beauty-salon/l10n/no.json +5 -0
- package/templates/beauty-salon/l10n/pl.json +5 -0
- package/templates/beauty-salon/l10n/pt.json +5 -0
- package/templates/beauty-salon/l10n/ru.json +5 -0
- package/templates/beauty-salon/l10n/sv.json +5 -0
- package/templates/beauty-salon/l10n/th.json +5 -0
- package/templates/beauty-salon/l10n/tr.json +5 -0
- package/templates/beauty-salon/l10n/uk.json +5 -0
- package/templates/beauty-salon/l10n/vi.json +5 -0
- package/templates/beauty-salon/l10n/zh.json +5 -0
- package/templates/beauty-salon/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/beauty-salon/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/branded-lite/l10n/ar.json +10 -0
- package/templates/branded-lite/l10n/cs.json +10 -0
- package/templates/branded-lite/l10n/da.json +10 -0
- package/templates/branded-lite/l10n/de.json +10 -0
- package/templates/branded-lite/l10n/el.json +10 -0
- package/templates/branded-lite/l10n/es.json +10 -0
- package/templates/branded-lite/l10n/fi.json +10 -0
- package/templates/branded-lite/l10n/fr.json +10 -0
- package/templates/branded-lite/l10n/he.json +8 -0
- package/templates/branded-lite/l10n/hu.json +10 -0
- package/templates/branded-lite/l10n/id.json +10 -0
- package/templates/branded-lite/l10n/it.json +10 -0
- package/templates/branded-lite/l10n/ja.json +10 -0
- package/templates/branded-lite/l10n/ko.json +10 -0
- package/templates/branded-lite/l10n/lt.json +10 -0
- package/templates/branded-lite/l10n/nl.json +10 -0
- package/templates/branded-lite/l10n/no.json +10 -0
- package/templates/branded-lite/l10n/pl.json +10 -0
- package/templates/branded-lite/l10n/pt.json +10 -0
- package/templates/branded-lite/l10n/ru.json +10 -0
- package/templates/branded-lite/l10n/sv.json +10 -0
- package/templates/branded-lite/l10n/th.json +10 -0
- package/templates/branded-lite/l10n/tr.json +10 -0
- package/templates/branded-lite/l10n/uk.json +10 -0
- package/templates/branded-lite/l10n/vi.json +10 -0
- package/templates/branded-lite/l10n/zh.json +10 -0
- package/templates/branded-lite/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/branded-lite/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/branded-lite/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +53 -20
- package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +3 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +48 -26
- package/templates/community-club/l10n/ar.json +5 -0
- package/templates/community-club/l10n/cs.json +5 -0
- package/templates/community-club/l10n/da.json +5 -0
- package/templates/community-club/l10n/de.json +5 -0
- package/templates/community-club/l10n/el.json +5 -0
- package/templates/community-club/l10n/es.json +5 -0
- package/templates/community-club/l10n/fi.json +5 -0
- package/templates/community-club/l10n/fr.json +5 -0
- package/templates/community-club/l10n/he.json +4 -0
- package/templates/community-club/l10n/hu.json +5 -0
- package/templates/community-club/l10n/id.json +5 -0
- package/templates/community-club/l10n/it.json +5 -0
- package/templates/community-club/l10n/ja.json +5 -0
- package/templates/community-club/l10n/ko.json +5 -0
- package/templates/community-club/l10n/lt.json +5 -0
- package/templates/community-club/l10n/nl.json +5 -0
- package/templates/community-club/l10n/no.json +5 -0
- package/templates/community-club/l10n/pl.json +5 -0
- package/templates/community-club/l10n/pt.json +5 -0
- package/templates/community-club/l10n/ru.json +5 -0
- package/templates/community-club/l10n/sv.json +5 -0
- package/templates/community-club/l10n/th.json +5 -0
- package/templates/community-club/l10n/tr.json +5 -0
- package/templates/community-club/l10n/uk.json +5 -0
- package/templates/community-club/l10n/vi.json +5 -0
- package/templates/community-club/l10n/zh.json +5 -0
- package/templates/community-club/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/community-club/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/community-club/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/events-meetups/l10n/ar.json +5 -0
- package/templates/events-meetups/l10n/cs.json +5 -0
- package/templates/events-meetups/l10n/da.json +5 -0
- package/templates/events-meetups/l10n/de.json +5 -0
- package/templates/events-meetups/l10n/el.json +5 -0
- package/templates/events-meetups/l10n/es.json +5 -0
- package/templates/events-meetups/l10n/fi.json +5 -0
- package/templates/events-meetups/l10n/fr.json +5 -0
- package/templates/events-meetups/l10n/he.json +4 -0
- package/templates/events-meetups/l10n/hu.json +5 -0
- package/templates/events-meetups/l10n/id.json +5 -0
- package/templates/events-meetups/l10n/it.json +5 -0
- package/templates/events-meetups/l10n/ja.json +5 -0
- package/templates/events-meetups/l10n/ko.json +5 -0
- package/templates/events-meetups/l10n/lt.json +5 -0
- package/templates/events-meetups/l10n/nl.json +5 -0
- package/templates/events-meetups/l10n/no.json +5 -0
- package/templates/events-meetups/l10n/pl.json +5 -0
- package/templates/events-meetups/l10n/pt.json +5 -0
- package/templates/events-meetups/l10n/ru.json +5 -0
- package/templates/events-meetups/l10n/sv.json +5 -0
- package/templates/events-meetups/l10n/th.json +5 -0
- package/templates/events-meetups/l10n/tr.json +5 -0
- package/templates/events-meetups/l10n/uk.json +5 -0
- package/templates/events-meetups/l10n/vi.json +5 -0
- package/templates/events-meetups/l10n/zh.json +5 -0
- package/templates/events-meetups/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/events-meetups/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/events-meetups/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/fitness-gym/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/fitness-gym/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +3 -2
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +48 -26
- package/templates/gym-fitness/l10n/ar.json +5 -0
- package/templates/gym-fitness/l10n/cs.json +5 -0
- package/templates/gym-fitness/l10n/da.json +5 -0
- package/templates/gym-fitness/l10n/de.json +5 -0
- package/templates/gym-fitness/l10n/el.json +5 -0
- package/templates/gym-fitness/l10n/es.json +5 -0
- package/templates/gym-fitness/l10n/fi.json +5 -0
- package/templates/gym-fitness/l10n/fr.json +5 -0
- package/templates/gym-fitness/l10n/he.json +4 -0
- package/templates/gym-fitness/l10n/hu.json +5 -0
- package/templates/gym-fitness/l10n/id.json +5 -0
- package/templates/gym-fitness/l10n/it.json +5 -0
- package/templates/gym-fitness/l10n/ja.json +5 -0
- package/templates/gym-fitness/l10n/ko.json +5 -0
- package/templates/gym-fitness/l10n/lt.json +5 -0
- package/templates/gym-fitness/l10n/nl.json +5 -0
- package/templates/gym-fitness/l10n/no.json +5 -0
- package/templates/gym-fitness/l10n/pl.json +5 -0
- package/templates/gym-fitness/l10n/pt.json +5 -0
- package/templates/gym-fitness/l10n/ru.json +5 -0
- package/templates/gym-fitness/l10n/sv.json +5 -0
- package/templates/gym-fitness/l10n/th.json +5 -0
- package/templates/gym-fitness/l10n/tr.json +5 -0
- package/templates/gym-fitness/l10n/uk.json +5 -0
- package/templates/gym-fitness/l10n/vi.json +5 -0
- package/templates/gym-fitness/l10n/zh.json +5 -0
- package/templates/gym-fitness/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/gym-fitness/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/nonprofit-cause/l10n/ar.json +5 -0
- package/templates/nonprofit-cause/l10n/cs.json +5 -0
- package/templates/nonprofit-cause/l10n/da.json +5 -0
- package/templates/nonprofit-cause/l10n/de.json +5 -0
- package/templates/nonprofit-cause/l10n/el.json +5 -0
- package/templates/nonprofit-cause/l10n/es.json +5 -0
- package/templates/nonprofit-cause/l10n/fi.json +5 -0
- package/templates/nonprofit-cause/l10n/fr.json +5 -0
- package/templates/nonprofit-cause/l10n/he.json +4 -0
- package/templates/nonprofit-cause/l10n/hu.json +5 -0
- package/templates/nonprofit-cause/l10n/id.json +5 -0
- package/templates/nonprofit-cause/l10n/it.json +5 -0
- package/templates/nonprofit-cause/l10n/ja.json +5 -0
- package/templates/nonprofit-cause/l10n/ko.json +5 -0
- package/templates/nonprofit-cause/l10n/lt.json +5 -0
- package/templates/nonprofit-cause/l10n/nl.json +5 -0
- package/templates/nonprofit-cause/l10n/no.json +5 -0
- package/templates/nonprofit-cause/l10n/pl.json +5 -0
- package/templates/nonprofit-cause/l10n/pt.json +5 -0
- package/templates/nonprofit-cause/l10n/ru.json +5 -0
- package/templates/nonprofit-cause/l10n/sv.json +5 -0
- package/templates/nonprofit-cause/l10n/th.json +5 -0
- package/templates/nonprofit-cause/l10n/tr.json +5 -0
- package/templates/nonprofit-cause/l10n/uk.json +5 -0
- package/templates/nonprofit-cause/l10n/vi.json +5 -0
- package/templates/nonprofit-cause/l10n/zh.json +5 -0
- package/templates/nonprofit-cause/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/nonprofit-cause/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/podcast-creator/l10n/ar.json +5 -0
- package/templates/podcast-creator/l10n/cs.json +5 -0
- package/templates/podcast-creator/l10n/da.json +5 -0
- package/templates/podcast-creator/l10n/de.json +5 -0
- package/templates/podcast-creator/l10n/el.json +5 -0
- package/templates/podcast-creator/l10n/es.json +5 -0
- package/templates/podcast-creator/l10n/fi.json +5 -0
- package/templates/podcast-creator/l10n/fr.json +5 -0
- package/templates/podcast-creator/l10n/he.json +4 -0
- package/templates/podcast-creator/l10n/hu.json +5 -0
- package/templates/podcast-creator/l10n/id.json +5 -0
- package/templates/podcast-creator/l10n/it.json +5 -0
- package/templates/podcast-creator/l10n/ja.json +5 -0
- package/templates/podcast-creator/l10n/ko.json +5 -0
- package/templates/podcast-creator/l10n/lt.json +5 -0
- package/templates/podcast-creator/l10n/nl.json +5 -0
- package/templates/podcast-creator/l10n/no.json +5 -0
- package/templates/podcast-creator/l10n/pl.json +5 -0
- package/templates/podcast-creator/l10n/pt.json +5 -0
- package/templates/podcast-creator/l10n/ru.json +5 -0
- package/templates/podcast-creator/l10n/sv.json +5 -0
- package/templates/podcast-creator/l10n/th.json +5 -0
- package/templates/podcast-creator/l10n/tr.json +5 -0
- package/templates/podcast-creator/l10n/uk.json +5 -0
- package/templates/podcast-creator/l10n/vi.json +5 -0
- package/templates/podcast-creator/l10n/zh.json +5 -0
- package/templates/podcast-creator/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/podcast-creator/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/portfolio-creative/l10n/ar.json +5 -0
- package/templates/portfolio-creative/l10n/cs.json +5 -0
- package/templates/portfolio-creative/l10n/da.json +5 -0
- package/templates/portfolio-creative/l10n/de.json +5 -0
- package/templates/portfolio-creative/l10n/el.json +5 -0
- package/templates/portfolio-creative/l10n/es.json +5 -0
- package/templates/portfolio-creative/l10n/fi.json +5 -0
- package/templates/portfolio-creative/l10n/fr.json +5 -0
- package/templates/portfolio-creative/l10n/he.json +4 -0
- package/templates/portfolio-creative/l10n/hu.json +5 -0
- package/templates/portfolio-creative/l10n/id.json +5 -0
- package/templates/portfolio-creative/l10n/it.json +5 -0
- package/templates/portfolio-creative/l10n/ja.json +5 -0
- package/templates/portfolio-creative/l10n/ko.json +5 -0
- package/templates/portfolio-creative/l10n/lt.json +5 -0
- package/templates/portfolio-creative/l10n/nl.json +5 -0
- package/templates/portfolio-creative/l10n/no.json +5 -0
- package/templates/portfolio-creative/l10n/pl.json +5 -0
- package/templates/portfolio-creative/l10n/pt.json +5 -0
- package/templates/portfolio-creative/l10n/ru.json +5 -0
- package/templates/portfolio-creative/l10n/sv.json +5 -0
- package/templates/portfolio-creative/l10n/th.json +5 -0
- package/templates/portfolio-creative/l10n/tr.json +5 -0
- package/templates/portfolio-creative/l10n/uk.json +5 -0
- package/templates/portfolio-creative/l10n/vi.json +5 -0
- package/templates/portfolio-creative/l10n/zh.json +5 -0
- package/templates/portfolio-creative/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/portfolio-creative/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/restaurant/l10n/ar.json +5 -0
- package/templates/restaurant/l10n/cs.json +5 -0
- package/templates/restaurant/l10n/da.json +5 -0
- package/templates/restaurant/l10n/de.json +5 -0
- package/templates/restaurant/l10n/el.json +5 -0
- package/templates/restaurant/l10n/es.json +5 -0
- package/templates/restaurant/l10n/fi.json +5 -0
- package/templates/restaurant/l10n/fr.json +5 -0
- package/templates/restaurant/l10n/he.json +4 -0
- package/templates/restaurant/l10n/hu.json +5 -0
- package/templates/restaurant/l10n/id.json +5 -0
- package/templates/restaurant/l10n/it.json +5 -0
- package/templates/restaurant/l10n/ja.json +5 -0
- package/templates/restaurant/l10n/ko.json +5 -0
- package/templates/restaurant/l10n/lt.json +5 -0
- package/templates/restaurant/l10n/nl.json +5 -0
- package/templates/restaurant/l10n/no.json +5 -0
- package/templates/restaurant/l10n/pl.json +5 -0
- package/templates/restaurant/l10n/pt.json +5 -0
- package/templates/restaurant/l10n/ru.json +5 -0
- package/templates/restaurant/l10n/sv.json +5 -0
- package/templates/restaurant/l10n/th.json +5 -0
- package/templates/restaurant/l10n/tr.json +5 -0
- package/templates/restaurant/l10n/uk.json +5 -0
- package/templates/restaurant/l10n/vi.json +5 -0
- package/templates/restaurant/l10n/zh.json +5 -0
- package/templates/restaurant/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/restaurant/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/restaurant/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/retail-store/l10n/ar.json +5 -0
- package/templates/retail-store/l10n/cs.json +5 -0
- package/templates/retail-store/l10n/da.json +5 -0
- package/templates/retail-store/l10n/de.json +5 -0
- package/templates/retail-store/l10n/el.json +5 -0
- package/templates/retail-store/l10n/es.json +5 -0
- package/templates/retail-store/l10n/fi.json +5 -0
- package/templates/retail-store/l10n/fr.json +5 -0
- package/templates/retail-store/l10n/he.json +4 -0
- package/templates/retail-store/l10n/hu.json +5 -0
- package/templates/retail-store/l10n/id.json +5 -0
- package/templates/retail-store/l10n/it.json +5 -0
- package/templates/retail-store/l10n/ja.json +5 -0
- package/templates/retail-store/l10n/ko.json +5 -0
- package/templates/retail-store/l10n/lt.json +5 -0
- package/templates/retail-store/l10n/nl.json +5 -0
- package/templates/retail-store/l10n/no.json +5 -0
- package/templates/retail-store/l10n/pl.json +5 -0
- package/templates/retail-store/l10n/pt.json +5 -0
- package/templates/retail-store/l10n/ru.json +5 -0
- package/templates/retail-store/l10n/sv.json +5 -0
- package/templates/retail-store/l10n/th.json +5 -0
- package/templates/retail-store/l10n/tr.json +5 -0
- package/templates/retail-store/l10n/uk.json +5 -0
- package/templates/retail-store/l10n/vi.json +5 -0
- package/templates/retail-store/l10n/zh.json +5 -0
- package/templates/retail-store/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/retail-store/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/retail-store/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/yoga-studio/l10n/ar.json +10 -0
- package/templates/yoga-studio/l10n/cs.json +10 -0
- package/templates/yoga-studio/l10n/da.json +10 -0
- package/templates/yoga-studio/l10n/de.json +10 -0
- package/templates/yoga-studio/l10n/el.json +10 -0
- package/templates/yoga-studio/l10n/es.json +10 -0
- package/templates/yoga-studio/l10n/fi.json +10 -0
- package/templates/yoga-studio/l10n/fr.json +10 -0
- package/templates/yoga-studio/l10n/he.json +8 -0
- package/templates/yoga-studio/l10n/hu.json +10 -0
- package/templates/yoga-studio/l10n/id.json +10 -0
- package/templates/yoga-studio/l10n/it.json +10 -0
- package/templates/yoga-studio/l10n/ja.json +10 -0
- package/templates/yoga-studio/l10n/ko.json +10 -0
- package/templates/yoga-studio/l10n/lt.json +10 -0
- package/templates/yoga-studio/l10n/nl.json +10 -0
- package/templates/yoga-studio/l10n/no.json +10 -0
- package/templates/yoga-studio/l10n/pl.json +10 -0
- package/templates/yoga-studio/l10n/pt.json +10 -0
- package/templates/yoga-studio/l10n/ru.json +10 -0
- package/templates/yoga-studio/l10n/sv.json +10 -0
- package/templates/yoga-studio/l10n/th.json +10 -0
- package/templates/yoga-studio/l10n/tr.json +10 -0
- package/templates/yoga-studio/l10n/uk.json +10 -0
- package/templates/yoga-studio/l10n/vi.json +10 -0
- package/templates/yoga-studio/l10n/zh.json +10 -0
- package/templates/yoga-studio/tier5-src/_shared/himi-media.ts +6 -2
- package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +18 -0
- package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +24 -4
- package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +3 -2
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +48 -26
|
@@ -2236,6 +2236,11 @@
|
|
|
2236
2236
|
"translation": "Вы вошли как {email}",
|
|
2237
2237
|
"origin": "machine"
|
|
2238
2238
|
},
|
|
2239
|
+
"h_21fd7cb6e40c": {
|
|
2240
|
+
"source": "Payment not completed",
|
|
2241
|
+
"translation": "Оплата не завершена",
|
|
2242
|
+
"origin": "machine"
|
|
2243
|
+
},
|
|
2239
2244
|
"h_1798b3ba42ee": {
|
|
2240
2245
|
"source": "Completed",
|
|
2241
2246
|
"translation": "Завершен",
|
|
@@ -2236,6 +2236,11 @@
|
|
|
2236
2236
|
"translation": "Inloggad som {email}",
|
|
2237
2237
|
"origin": "machine"
|
|
2238
2238
|
},
|
|
2239
|
+
"h_21fd7cb6e40c": {
|
|
2240
|
+
"source": "Payment not completed",
|
|
2241
|
+
"translation": "Betalningen är inte slutförd",
|
|
2242
|
+
"origin": "machine"
|
|
2243
|
+
},
|
|
2239
2244
|
"h_1798b3ba42ee": {
|
|
2240
2245
|
"source": "Completed",
|
|
2241
2246
|
"translation": "Avslutat",
|
|
@@ -2236,6 +2236,11 @@
|
|
|
2236
2236
|
"translation": "เข้าสู่ระบบในชื่อ {email}",
|
|
2237
2237
|
"origin": "machine"
|
|
2238
2238
|
},
|
|
2239
|
+
"h_21fd7cb6e40c": {
|
|
2240
|
+
"source": "Payment not completed",
|
|
2241
|
+
"translation": "การชำระเงินยังไม่เสร็จสมบูรณ์",
|
|
2242
|
+
"origin": "machine"
|
|
2243
|
+
},
|
|
2239
2244
|
"h_1798b3ba42ee": {
|
|
2240
2245
|
"source": "Completed",
|
|
2241
2246
|
"translation": "เสร็จสมบูรณ์",
|
|
@@ -2236,6 +2236,11 @@
|
|
|
2236
2236
|
"translation": "{email} olarak giriş yapıldı",
|
|
2237
2237
|
"origin": "machine"
|
|
2238
2238
|
},
|
|
2239
|
+
"h_21fd7cb6e40c": {
|
|
2240
|
+
"source": "Payment not completed",
|
|
2241
|
+
"translation": "Ödeme tamamlanmadı",
|
|
2242
|
+
"origin": "machine"
|
|
2243
|
+
},
|
|
2239
2244
|
"h_1798b3ba42ee": {
|
|
2240
2245
|
"source": "Completed",
|
|
2241
2246
|
"translation": "Tamamlandı",
|
|
@@ -2236,6 +2236,11 @@
|
|
|
2236
2236
|
"translation": "Ви увійшли як {email}",
|
|
2237
2237
|
"origin": "machine"
|
|
2238
2238
|
},
|
|
2239
|
+
"h_21fd7cb6e40c": {
|
|
2240
|
+
"source": "Payment not completed",
|
|
2241
|
+
"translation": "Оплату не завершено",
|
|
2242
|
+
"origin": "machine"
|
|
2243
|
+
},
|
|
2239
2244
|
"h_1798b3ba42ee": {
|
|
2240
2245
|
"source": "Completed",
|
|
2241
2246
|
"translation": "Виконано",
|
|
@@ -2236,6 +2236,11 @@
|
|
|
2236
2236
|
"translation": "Đã đăng nhập với {email}",
|
|
2237
2237
|
"origin": "machine"
|
|
2238
2238
|
},
|
|
2239
|
+
"h_21fd7cb6e40c": {
|
|
2240
|
+
"source": "Payment not completed",
|
|
2241
|
+
"translation": "Chưa hoàn tất thanh toán",
|
|
2242
|
+
"origin": "machine"
|
|
2243
|
+
},
|
|
2239
2244
|
"h_1798b3ba42ee": {
|
|
2240
2245
|
"source": "Completed",
|
|
2241
2246
|
"translation": "Đã hoàn thành",
|
|
@@ -2236,6 +2236,11 @@
|
|
|
2236
2236
|
"translation": "已登入,帳號為 {email}",
|
|
2237
2237
|
"origin": "machine"
|
|
2238
2238
|
},
|
|
2239
|
+
"h_21fd7cb6e40c": {
|
|
2240
|
+
"source": "Payment not completed",
|
|
2241
|
+
"translation": "付款未完成",
|
|
2242
|
+
"origin": "machine"
|
|
2243
|
+
},
|
|
2239
2244
|
"h_1798b3ba42ee": {
|
|
2240
2245
|
"source": "Completed",
|
|
2241
2246
|
"translation": "已完成",
|
|
@@ -24,6 +24,10 @@ export function programImage(program: WixProgram, size: WixImageSize = WIX_LIST_
|
|
|
24
24
|
const cover = (program as { coverImage?: unknown }).coverImage;
|
|
25
25
|
const coverUrl = typeof cover === "string" ? cover : (cover as { url?: unknown } | undefined)?.url;
|
|
26
26
|
const description = (program as { description?: unknown }).description;
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const block = description && typeof description === "object" ? description as { image?: { url?: unknown; id?: unknown }; video?: { posters?: Array<{ url?: unknown }> } } : undefined;
|
|
28
|
+
const nested = block?.image;
|
|
29
|
+
// A program whose description has a video and no image is covered by the video's poster (the source's cover); `seo.imageUrl` is that same cover as the site publishes it.
|
|
30
|
+
const poster = block?.video?.posters?.find((candidate) => typeof candidate?.url === "string" && candidate.url)?.url;
|
|
31
|
+
const published = (program as { seo?: { imageUrl?: unknown } }).seo?.imageUrl;
|
|
32
|
+
return firstImage([coverUrl, program.image, nested?.url, nested?.id, poster, published], size);
|
|
29
33
|
}
|
|
@@ -14,3 +14,21 @@ export const isProgramDraft = (p: WixProgram): boolean => programStatus(p) === "
|
|
|
14
14
|
export function programName(p: WixProgram): string {
|
|
15
15
|
return cleanTitle(p.description?.title ?? p.settings?.title ?? p.title ?? p.details?.title);
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
// A segment is unreserved characters or percent-escapes: a slug in another script arrives percent-encoded.
|
|
19
|
+
const SITE_BASE = /^https:\/\/[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+(\/([A-Za-z0-9._~-]|%[0-9A-Fa-f]{2})+)*\/?$/;
|
|
20
|
+
const SITE_PATH = /^(\/([A-Za-z0-9._~-]|%[0-9A-Fa-f]{2})+)+\/?$/;
|
|
21
|
+
|
|
22
|
+
/** The program's own page on the site (`seo.url`: the site's base plus the program page's path), where a member
|
|
23
|
+
* joins and pays the way the site takes the order; "" when Wix names none, or names one that is not a plain
|
|
24
|
+
* https page under the site (a dot segment, a query or anything else a link could be bent with). */
|
|
25
|
+
export function programSitePage(p: WixProgram): string {
|
|
26
|
+
const url = (p as { seo?: { url?: { base?: unknown; path?: unknown } } }).seo?.url;
|
|
27
|
+
const base = typeof url?.base === "string" ? url.base.trim() : "";
|
|
28
|
+
const path = typeof url?.path === "string" ? url.path.trim() : "";
|
|
29
|
+
if (!SITE_BASE.test(base) || !SITE_PATH.test(path)) return "";
|
|
30
|
+
// A dot segment, spelled out or escaped, would climb out of the site.
|
|
31
|
+
const dotSegment = (segment: string) => /^(\.|%2e)+$/i.test(segment) && segment.replace(/%2e/gi, ".").length <= 2;
|
|
32
|
+
if ([...base.split("/").slice(3), ...path.split("/")].some(dotSegment)) return "";
|
|
33
|
+
return `${base.replace(/\/$/, "")}${path}`;
|
|
34
|
+
}
|
|
@@ -2,9 +2,28 @@
|
|
|
2
2
|
// Shared by the programs list cards and the program detail screen so both read a member the same way.
|
|
3
3
|
import type { WixJoinApplication, WixParticipant } from "@himalaya/wix-online-programs";
|
|
4
4
|
|
|
5
|
-
export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "invited";
|
|
5
|
+
export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "unpaid" | "invited";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/** Payment states of an admitted application whose payment has not gone through: never paid, paying now,
|
|
8
|
+
* failed or cancelled. Each still owes the program's price. */
|
|
9
|
+
const UNSETTLED_PAYMENTS: ReadonlySet<string> = new Set(["PAYMENT_PENDING", "PAYMENT_IN_PROGRESS", "PAYMENT_FAILED", "PAYMENT_CANCELED"]);
|
|
10
|
+
|
|
11
|
+
/** Whether [accessType] (`restrictions.accessType`) admits anyone without the owner's approval. An absent
|
|
12
|
+
* access type is PUBLIC, as Wix reads it. */
|
|
13
|
+
export function isPublicAccess(accessType: string | undefined): boolean {
|
|
14
|
+
return (accessType || "PUBLIC").toUpperCase() === "PUBLIC";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** The standing of an admitted application that still owes money. A public program admits every member at
|
|
18
|
+
* once, so nobody asked for approval there: its member has only a payment that did not go through
|
|
19
|
+
* ("unpaid"). A program that needs the owner's approval had a real request approved ("approved"). */
|
|
20
|
+
export function owedStanding(payment: string, accessType: string | undefined): "approved" | "unpaid" {
|
|
21
|
+
return isPublicAccess(accessType) && UNSETTLED_PAYMENTS.has(payment.toUpperCase()) ? "unpaid" : "approved";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** [accessType] is the program's `restrictions.accessType`; it decides between "unpaid" and "approved" for an
|
|
25
|
+
* application that still owes money (see [owedStanding]). Callers that pass no application may omit it. */
|
|
26
|
+
export function standingOf(ended: boolean, participant: WixParticipant | undefined, application: WixJoinApplication | undefined, accessType?: string): Standing {
|
|
8
27
|
// A withdrawn participant is history even if its old progress says completed.
|
|
9
28
|
// Only its matching admitted application is history too; newer requests remain visible.
|
|
10
29
|
if (["LEFT", "REMOVED", "AUTO_REMOVED"].includes((participant?.enrollmentStatus ?? "").toUpperCase())) {
|
|
@@ -28,9 +47,9 @@ export function standingOf(ended: boolean, participant: WixParticipant | undefin
|
|
|
28
47
|
// waits on the owner. Only an approval that still owes money asks the member to pay.
|
|
29
48
|
if (payment === "NO_PAYMENT_REQUIRED" || payment === "PAYMENT_SUCCESSFUL") return application?.participantId ? "joined" : "pending";
|
|
30
49
|
if (payment === "PENDING_OWNER_APPROVAL") return "pending";
|
|
31
|
-
return
|
|
50
|
+
return owedStanding(payment, accessType);
|
|
32
51
|
}
|
|
33
|
-
if (status === "PAYMENT_PENDING") return "
|
|
52
|
+
if (status === "PAYMENT_PENDING") return owedStanding("PAYMENT_PENDING", accessType);
|
|
34
53
|
if (status === "INVITED") return "invited";
|
|
35
54
|
return "none";
|
|
36
55
|
}
|
|
@@ -42,6 +61,7 @@ export const STATUS: Record<Exclude<Standing, "none">, { key: string; fallback:
|
|
|
42
61
|
suspended: { key: "memberPrograms.status.suspended", fallback: "Participation suspended", icon: "close", color: "warning" },
|
|
43
62
|
pending: { key: "memberPrograms.status.pending", fallback: "Pending request", icon: "clock", color: "warning" },
|
|
44
63
|
approved: { key: "memberPrograms.status.approved", fallback: "Request approved", icon: "checkmark", color: "success" },
|
|
64
|
+
unpaid: { key: "memberPrograms.status.unpaid", fallback: "Payment not completed", icon: "clock", color: "warning" },
|
|
45
65
|
invited: { key: "memberPrograms.status.invited", fallback: "Invited", icon: "mail", color: "accentPrimary" },
|
|
46
66
|
};
|
|
47
67
|
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "تم تسجيل الدخول باسم {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "لم تكتمل عملية الدفع",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "مكتمل",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Přihlášeni jako {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Platba nebyla dokončena",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Dokončeno",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Logget ind som {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Betalingen er ikke gennemført",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Gennemført",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Angemeldet als {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Zahlung nicht abgeschlossen",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Abgeschlossen",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Σύνδεση ως {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Η πληρωμή δεν ολοκληρώθηκε",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Ολοκληρώθηκε",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Sesión iniciada como {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Pago no completado",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Completado",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Kirjautunut sähköpostilla {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Maksua ei suoritettu loppuun",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Valmis",
|
|
@@ -2121,6 +2121,11 @@
|
|
|
2121
2121
|
"translation": "Connecté(e) en tant que {email}",
|
|
2122
2122
|
"origin": "machine"
|
|
2123
2123
|
},
|
|
2124
|
+
"h_21fd7cb6e40c": {
|
|
2125
|
+
"source": "Payment not completed",
|
|
2126
|
+
"translation": "Paiement non finalisé",
|
|
2127
|
+
"origin": "machine"
|
|
2128
|
+
},
|
|
2124
2129
|
"h_1798b3ba42ee": {
|
|
2125
2130
|
"source": "Completed",
|
|
2126
2131
|
"translation": "Terminé",
|
|
@@ -1755,6 +1755,10 @@
|
|
|
1755
1755
|
"source": "Signed in as {email}",
|
|
1756
1756
|
"translation": "מחובר/ת בתור {email}"
|
|
1757
1757
|
},
|
|
1758
|
+
"h_21fd7cb6e40c": {
|
|
1759
|
+
"source": "Payment not completed",
|
|
1760
|
+
"translation": "התשלום לא הושלם"
|
|
1761
|
+
},
|
|
1758
1762
|
"h_1798b3ba42ee": {
|
|
1759
1763
|
"source": "Completed",
|
|
1760
1764
|
"translation": "הושלמה"
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Bejelentkezve mint {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "A fizetés nem fejeződött be",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Befejezve",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Login sebagai {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Pembayaran belum selesai",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Lengkap",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Accesso effettuato come {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Pagamento non completato",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Completato",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "{email}でログイン中",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "支払いが完了していません",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "完了",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "{email}(으)로 로그인됨",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "결제가 완료되지 않았습니다",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "완료",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Prisijungta kaip {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Mokėjimas neužbaigtas",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Baigta",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Ingelogd als {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Betaling niet voltooid",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Voltooid",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Logget inn som {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Betalingen er ikke fullført",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Fullført",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Zalogowano jako {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Płatność nie została ukończona",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Ukończone",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Conectado como {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Pagamento não concluído",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Concluído",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Вы вошли как {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Оплата не завершена",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Завершен",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Inloggad som {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Betalningen är inte slutförd",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Avslutat",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "เข้าสู่ระบบในชื่อ {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "การชำระเงินยังไม่เสร็จสมบูรณ์",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "เสร็จสมบูรณ์",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "{email} olarak giriş yapıldı",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Ödeme tamamlanmadı",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Tamamlandı",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Ви увійшли як {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Оплату не завершено",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Виконано",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "Đã đăng nhập với {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "Chưa hoàn tất thanh toán",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "Đã hoàn thành",
|
|
@@ -2141,6 +2141,11 @@
|
|
|
2141
2141
|
"translation": "已登入,帳號為 {email}",
|
|
2142
2142
|
"origin": "machine"
|
|
2143
2143
|
},
|
|
2144
|
+
"h_21fd7cb6e40c": {
|
|
2145
|
+
"source": "Payment not completed",
|
|
2146
|
+
"translation": "付款未完成",
|
|
2147
|
+
"origin": "machine"
|
|
2148
|
+
},
|
|
2144
2149
|
"h_1798b3ba42ee": {
|
|
2145
2150
|
"source": "Completed",
|
|
2146
2151
|
"translation": "已完成",
|
|
@@ -24,6 +24,10 @@ export function programImage(program: WixProgram, size: WixImageSize = WIX_LIST_
|
|
|
24
24
|
const cover = (program as { coverImage?: unknown }).coverImage;
|
|
25
25
|
const coverUrl = typeof cover === "string" ? cover : (cover as { url?: unknown } | undefined)?.url;
|
|
26
26
|
const description = (program as { description?: unknown }).description;
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const block = description && typeof description === "object" ? description as { image?: { url?: unknown; id?: unknown }; video?: { posters?: Array<{ url?: unknown }> } } : undefined;
|
|
28
|
+
const nested = block?.image;
|
|
29
|
+
// A program whose description has a video and no image is covered by the video's poster (the source's cover); `seo.imageUrl` is that same cover as the site publishes it.
|
|
30
|
+
const poster = block?.video?.posters?.find((candidate) => typeof candidate?.url === "string" && candidate.url)?.url;
|
|
31
|
+
const published = (program as { seo?: { imageUrl?: unknown } }).seo?.imageUrl;
|
|
32
|
+
return firstImage([coverUrl, program.image, nested?.url, nested?.id, poster, published], size);
|
|
29
33
|
}
|
|
@@ -14,3 +14,21 @@ export const isProgramDraft = (p: WixProgram): boolean => programStatus(p) === "
|
|
|
14
14
|
export function programName(p: WixProgram): string {
|
|
15
15
|
return cleanTitle(p.description?.title ?? p.settings?.title ?? p.title ?? p.details?.title);
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
// A segment is unreserved characters or percent-escapes: a slug in another script arrives percent-encoded.
|
|
19
|
+
const SITE_BASE = /^https:\/\/[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+(\/([A-Za-z0-9._~-]|%[0-9A-Fa-f]{2})+)*\/?$/;
|
|
20
|
+
const SITE_PATH = /^(\/([A-Za-z0-9._~-]|%[0-9A-Fa-f]{2})+)+\/?$/;
|
|
21
|
+
|
|
22
|
+
/** The program's own page on the site (`seo.url`: the site's base plus the program page's path), where a member
|
|
23
|
+
* joins and pays the way the site takes the order; "" when Wix names none, or names one that is not a plain
|
|
24
|
+
* https page under the site (a dot segment, a query or anything else a link could be bent with). */
|
|
25
|
+
export function programSitePage(p: WixProgram): string {
|
|
26
|
+
const url = (p as { seo?: { url?: { base?: unknown; path?: unknown } } }).seo?.url;
|
|
27
|
+
const base = typeof url?.base === "string" ? url.base.trim() : "";
|
|
28
|
+
const path = typeof url?.path === "string" ? url.path.trim() : "";
|
|
29
|
+
if (!SITE_BASE.test(base) || !SITE_PATH.test(path)) return "";
|
|
30
|
+
// A dot segment, spelled out or escaped, would climb out of the site.
|
|
31
|
+
const dotSegment = (segment: string) => /^(\.|%2e)+$/i.test(segment) && segment.replace(/%2e/gi, ".").length <= 2;
|
|
32
|
+
if ([...base.split("/").slice(3), ...path.split("/")].some(dotSegment)) return "";
|
|
33
|
+
return `${base.replace(/\/$/, "")}${path}`;
|
|
34
|
+
}
|
|
@@ -2,9 +2,28 @@
|
|
|
2
2
|
// Shared by the programs list cards and the program detail screen so both read a member the same way.
|
|
3
3
|
import type { WixJoinApplication, WixParticipant } from "@himalaya/wix-online-programs";
|
|
4
4
|
|
|
5
|
-
export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "invited";
|
|
5
|
+
export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "unpaid" | "invited";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/** Payment states of an admitted application whose payment has not gone through: never paid, paying now,
|
|
8
|
+
* failed or cancelled. Each still owes the program's price. */
|
|
9
|
+
const UNSETTLED_PAYMENTS: ReadonlySet<string> = new Set(["PAYMENT_PENDING", "PAYMENT_IN_PROGRESS", "PAYMENT_FAILED", "PAYMENT_CANCELED"]);
|
|
10
|
+
|
|
11
|
+
/** Whether [accessType] (`restrictions.accessType`) admits anyone without the owner's approval. An absent
|
|
12
|
+
* access type is PUBLIC, as Wix reads it. */
|
|
13
|
+
export function isPublicAccess(accessType: string | undefined): boolean {
|
|
14
|
+
return (accessType || "PUBLIC").toUpperCase() === "PUBLIC";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** The standing of an admitted application that still owes money. A public program admits every member at
|
|
18
|
+
* once, so nobody asked for approval there: its member has only a payment that did not go through
|
|
19
|
+
* ("unpaid"). A program that needs the owner's approval had a real request approved ("approved"). */
|
|
20
|
+
export function owedStanding(payment: string, accessType: string | undefined): "approved" | "unpaid" {
|
|
21
|
+
return isPublicAccess(accessType) && UNSETTLED_PAYMENTS.has(payment.toUpperCase()) ? "unpaid" : "approved";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** [accessType] is the program's `restrictions.accessType`; it decides between "unpaid" and "approved" for an
|
|
25
|
+
* application that still owes money (see [owedStanding]). Callers that pass no application may omit it. */
|
|
26
|
+
export function standingOf(ended: boolean, participant: WixParticipant | undefined, application: WixJoinApplication | undefined, accessType?: string): Standing {
|
|
8
27
|
// A withdrawn participant is history even if its old progress says completed.
|
|
9
28
|
// Only its matching admitted application is history too; newer requests remain visible.
|
|
10
29
|
if (["LEFT", "REMOVED", "AUTO_REMOVED"].includes((participant?.enrollmentStatus ?? "").toUpperCase())) {
|
|
@@ -28,9 +47,9 @@ export function standingOf(ended: boolean, participant: WixParticipant | undefin
|
|
|
28
47
|
// waits on the owner. Only an approval that still owes money asks the member to pay.
|
|
29
48
|
if (payment === "NO_PAYMENT_REQUIRED" || payment === "PAYMENT_SUCCESSFUL") return application?.participantId ? "joined" : "pending";
|
|
30
49
|
if (payment === "PENDING_OWNER_APPROVAL") return "pending";
|
|
31
|
-
return
|
|
50
|
+
return owedStanding(payment, accessType);
|
|
32
51
|
}
|
|
33
|
-
if (status === "PAYMENT_PENDING") return "
|
|
52
|
+
if (status === "PAYMENT_PENDING") return owedStanding("PAYMENT_PENDING", accessType);
|
|
34
53
|
if (status === "INVITED") return "invited";
|
|
35
54
|
return "none";
|
|
36
55
|
}
|
|
@@ -42,6 +61,7 @@ export const STATUS: Record<Exclude<Standing, "none">, { key: string; fallback:
|
|
|
42
61
|
suspended: { key: "memberPrograms.status.suspended", fallback: "Participation suspended", icon: "close", color: "warning" },
|
|
43
62
|
pending: { key: "memberPrograms.status.pending", fallback: "Pending request", icon: "clock", color: "warning" },
|
|
44
63
|
approved: { key: "memberPrograms.status.approved", fallback: "Request approved", icon: "checkmark", color: "success" },
|
|
64
|
+
unpaid: { key: "memberPrograms.status.unpaid", fallback: "Payment not completed", icon: "clock", color: "warning" },
|
|
45
65
|
invited: { key: "memberPrograms.status.invited", fallback: "Invited", icon: "mail", color: "accentPrimary" },
|
|
46
66
|
};
|
|
47
67
|
|
|
@@ -24,6 +24,10 @@ export function programImage(program: WixProgram, size: WixImageSize = WIX_LIST_
|
|
|
24
24
|
const cover = (program as { coverImage?: unknown }).coverImage;
|
|
25
25
|
const coverUrl = typeof cover === "string" ? cover : (cover as { url?: unknown } | undefined)?.url;
|
|
26
26
|
const description = (program as { description?: unknown }).description;
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const block = description && typeof description === "object" ? description as { image?: { url?: unknown; id?: unknown }; video?: { posters?: Array<{ url?: unknown }> } } : undefined;
|
|
28
|
+
const nested = block?.image;
|
|
29
|
+
// A program whose description has a video and no image is covered by the video's poster (the source's cover); `seo.imageUrl` is that same cover as the site publishes it.
|
|
30
|
+
const poster = block?.video?.posters?.find((candidate) => typeof candidate?.url === "string" && candidate.url)?.url;
|
|
31
|
+
const published = (program as { seo?: { imageUrl?: unknown } }).seo?.imageUrl;
|
|
32
|
+
return firstImage([coverUrl, program.image, nested?.url, nested?.id, poster, published], size);
|
|
29
33
|
}
|