@wix/himalaya-cli 0.1857.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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{7c8b32af7572e93ce52c2bc81b8d0bf5525f6e66531f934dac68d4507a6e3026.bin → b2b76cc19f21f7c6d8b1a3cd6aa1ac0f194b052fa183761d08bd4f43fd46f844.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +1749 -1521
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/one-app-to-himi-app.md +9 -0
- 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/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/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 +7 -5
- 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/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/program-fields.ts +18 -0
- package/templates/events-meetups/tier5-src/_shared/program-standing.ts +24 -4
- 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/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/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/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/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/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/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/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
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Kérés jóváhagyva · fejezd be a fizetést",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "A fizetés nem fejeződött be · fejezd be a fizetést",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "A fizetés nem fejeződött be",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Befejezve",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Permintaan disetujui · selesaikan pembayaran Anda",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Pembayaran belum selesai · selesaikan pembayaran Anda",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Pembayaran belum selesai",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Lengkap",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Richiesta approvata · completa il pagamento",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Pagamento non completato · completa il pagamento",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Pagamento non completato",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Completato",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "リクエストが承認されました・お支払いを完了してください",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "支払いが完了していません・お支払いを完了してください",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "支払いが完了していません",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "完了",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "요청 승인됨 · 결제를 완료하세요",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "결제가 완료되지 않았습니다 · 결제를 완료하세요",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "결제가 완료되지 않았습니다",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "완료",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Užklausa patvirtinta · užbaikite mokėjimą",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Mokėjimas neužbaigtas · užbaikite mokėjimą",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Mokėjimas neužbaigtas",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Baigta",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Aanvraag goedgekeurd · voltooi je betaling",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Betaling niet voltooid · voltooi je betaling",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Betaling niet voltooid",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Voltooid",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Forespørselen er godkjent · fullfør betalingen",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Betalingen er ikke fullført · fullfør betalingen",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Betalingen er ikke fullført",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Fullført",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Prośba zatwierdzona · dokończ płatność",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Płatność nie została ukończona · dokończ płatność",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Płatność nie została ukończona",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Ukończone",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Solicitação aprovada · conclua seu pagamento",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Pagamento não concluído · conclua seu pagamento",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Pagamento não concluído",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Concluído",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Запрос одобрен · завершите оплату",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Оплата не завершена · завершите оплату",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Оплата не завершена",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Завершен",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Begäran godkänd · slutför din betalning",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Betalningen är inte slutförd · slutför din betalning",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Betalningen är inte slutförd",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Avslutat",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "อนุมัติคำขอแล้ว · กรุณาชำระเงินให้เสร็จสมบูรณ์",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "การชำระเงินยังไม่เสร็จสมบูรณ์ · กรุณาชำระเงินให้เสร็จสมบูรณ์",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "การชำระเงินยังไม่เสร็จสมบูรณ์",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "เสร็จสมบูรณ์",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Talep onaylandı · ödemenizi tamamlayın",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Ödeme tamamlanmadı · ödemenizi tamamlayın",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Ödeme tamamlanmadı",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Tamamlandı",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Запит схвалено · завершіть оплату",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Оплату не завершено · завершіть оплату",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Оплату не завершено",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Виконано",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "Yêu cầu đã được phê duyệt · hãy hoàn tất thanh toán",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "Chưa hoàn tất thanh toán · hãy hoàn tất thanh toán",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "Chưa hoàn tất thanh toán",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "Đã hoàn thành",
|
|
@@ -3126,6 +3126,16 @@
|
|
|
3126
3126
|
"translation": "請求已核准 · 請完成付款",
|
|
3127
3127
|
"origin": "machine"
|
|
3128
3128
|
},
|
|
3129
|
+
"h_7dd568f0392b": {
|
|
3130
|
+
"source": "Payment not completed · complete your payment",
|
|
3131
|
+
"translation": "付款未完成 · 請完成付款",
|
|
3132
|
+
"origin": "machine"
|
|
3133
|
+
},
|
|
3134
|
+
"h_21fd7cb6e40c": {
|
|
3135
|
+
"source": "Payment not completed",
|
|
3136
|
+
"translation": "付款未完成",
|
|
3137
|
+
"origin": "machine"
|
|
3138
|
+
},
|
|
3129
3139
|
"h_1798b3ba42ee": {
|
|
3130
3140
|
"source": "Completed",
|
|
3131
3141
|
"translation": "已完成",
|
|
@@ -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
|
|
|
@@ -175,7 +175,7 @@ function daysBetween(fromIso: string, now: number): number {
|
|
|
175
175
|
// ── Member standing ──────────────────────────────────────────────────────────
|
|
176
176
|
|
|
177
177
|
const standingOf = (p: WixProgram, participant: WixParticipant | undefined, application: WixJoinApplication | undefined): Standing =>
|
|
178
|
-
sharedStandingOf(isEnded(p), participant, application);
|
|
178
|
+
sharedStandingOf(isEnded(p), participant, application, accessType(p));
|
|
179
179
|
|
|
180
180
|
function timelineLine(p: WixProgram, participant: WixParticipant | undefined, standing: Standing, now: number): string {
|
|
181
181
|
const timeline = full(p).timeline;
|
|
@@ -256,6 +256,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
|
|
|
256
256
|
: standing === "finished" ? copyTemplate("memberPrograms.line.finished", "Finished with {pct}% progress", { pct: Math.round(progressOf(p, o.participant) * 100) })
|
|
257
257
|
: standing === "pending" ? copyParam("memberPrograms.line.pending", "Join request sent")
|
|
258
258
|
: standing === "approved" ? copyParam("memberPrograms.line.approved", "Request approved · complete your payment")
|
|
259
|
+
: standing === "unpaid" ? copyParam("memberPrograms.line.unpaid", "Payment not completed · complete your payment")
|
|
259
260
|
: standing === "invited" ? copyParam("memberPrograms.line.invited", "You're invited to join")
|
|
260
261
|
: standing === "suspended" ? copyParam("memberPrograms.line.suspended", "Your participation is paused")
|
|
261
262
|
: "";
|
|
@@ -263,7 +264,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
|
|
|
263
264
|
const actionLabel = !o.member ? copyParam("memberPrograms.action.view", "View")
|
|
264
265
|
: limitReached ? copyParam("memberPrograms.action.full", "Program is full")
|
|
265
266
|
: joined || over || closed || standing === "pending" || standing === "invited" || standingUnknown ? copyParam("memberPrograms.action.view", "View")
|
|
266
|
-
: standing === "approved" ? copyParam("memberPrograms.action.pay", "Complete payment")
|
|
267
|
+
: standing === "approved" || standing === "unpaid" ? copyParam("memberPrograms.action.pay", "Complete payment")
|
|
267
268
|
: accessType(p) === "PRIVATE" ? copyParam("memberPrograms.action.request", "Request to join")
|
|
268
269
|
// Invite-only: with no invitation there is nothing to join from here.
|
|
269
270
|
: accessType(p) === "SECRET" ? copyParam("memberPrograms.action.view", "View")
|
|
@@ -32,6 +32,7 @@ import { programDescription } from "../_shared/program-description.js";
|
|
|
32
32
|
import { openRichLink } from "../_shared/rich-content-link.js";
|
|
33
33
|
import {
|
|
34
34
|
cancelJoinApplication,
|
|
35
|
+
getCurrentJoinApplication,
|
|
35
36
|
getProgram,
|
|
36
37
|
joinProgram,
|
|
37
38
|
payableIdOf,
|
|
@@ -45,7 +46,8 @@ import {
|
|
|
45
46
|
type WixProgramFull,
|
|
46
47
|
} from "@himalaya/wix-online-programs";
|
|
47
48
|
import { inProgram, standingOf, STATUS, type Standing } from "../_shared/program-standing.js";
|
|
48
|
-
import {
|
|
49
|
+
import { programSitePage } from "../_shared/program-fields.js";
|
|
50
|
+
import { open as openUrl } from "@himalaya/open-url";
|
|
49
51
|
import { getMyMember } from "@himalaya/wix-members";
|
|
50
52
|
import { session as wixPlatformSession, i18n } from "@himalaya/wix-platform";
|
|
51
53
|
import { programFacts, type ProgramFact } from "./facts.js";
|
|
@@ -219,12 +221,15 @@ async function fetchProgram(id: string): Promise<WixProgram | undefined> {
|
|
|
219
221
|
* payment): a price refresh can move the program onto a route this flow must not charge. */
|
|
220
222
|
interface CommerceGuards {
|
|
221
223
|
withdrawnParticipantId?: string;
|
|
224
|
+
/** The screen reads this program as unpaid: an application the join refuses as not approved is still
|
|
225
|
+
* the member's to pay for on the site. */
|
|
226
|
+
unpaid?: boolean;
|
|
222
227
|
assertMember(): Promise<void>;
|
|
223
228
|
mayStart(): boolean;
|
|
224
229
|
mayContinue(): boolean;
|
|
225
230
|
}
|
|
226
231
|
|
|
227
|
-
async function enrollmentMessage(id: string, name: string, guards: CommerceGuards): Promise<string> {
|
|
232
|
+
async function enrollmentMessage(id: string, name: string, sitePage: string, guards: CommerceGuards): Promise<string> {
|
|
228
233
|
const blocked = () => iapPriceCopy("program").purchaseUnavailable;
|
|
229
234
|
if (!guards.mayStart()) return blocked();
|
|
230
235
|
let preparationWithdrawn = false;
|
|
@@ -261,36 +266,44 @@ async function enrollmentMessage(id: string, name: string, guards: CommerceGuard
|
|
|
261
266
|
snapshotId: payable,
|
|
262
267
|
msid,
|
|
263
268
|
mayCharge: stillAllowed,
|
|
264
|
-
//
|
|
265
|
-
//
|
|
266
|
-
//
|
|
267
|
-
//
|
|
268
|
-
//
|
|
269
|
-
//
|
|
270
|
-
// Join Applications returns a Wix Payments order id; the payment-request
|
|
271
|
-
// redirect uses that same order handle on the hosted rail.
|
|
269
|
+
// The hosted rail for a wallet-less app is the program's own page on the site. Join Applications
|
|
270
|
+
// prepares a Wix Payments (cashier) order, and no hosted Wix page takes that order: it is not an
|
|
271
|
+
// eCom order, so the Redirects API's `ecomOrderPaymentRequest` answers "Pay link not found" for it,
|
|
272
|
+
// and the Redirects API has no Online Programs checkout. The site's program page joins and pays
|
|
273
|
+
// the way the site takes the order. No page named → no rail, and the site-directing message below.
|
|
272
274
|
cashierUrl: async () => {
|
|
273
275
|
await guards.assertMember();
|
|
274
276
|
if (!stillAllowed()) return undefined;
|
|
275
|
-
|
|
276
|
-
ecomOrderPaymentRequest: { paymentRequestId: payable },
|
|
277
|
-
callbacks: { postFlowUrl: "himalaya-himi-branded-lite://screen/himi_programs" },
|
|
278
|
-
});
|
|
279
|
-
return redirect.redirectSession?.fullUrl;
|
|
277
|
+
return sitePage || undefined;
|
|
280
278
|
},
|
|
281
279
|
});
|
|
282
280
|
if (withdrawn) return blocked();
|
|
283
281
|
if (pay.kind === "paid") return pay.pending
|
|
284
282
|
? copyParam("program.paymentPendingMessage", "Payment is processing — enrollment will be confirmed after payment.")
|
|
285
283
|
: copyTemplate("program.joinedMessage", "You're enrolled in {name}.", { name });
|
|
286
|
-
|
|
284
|
+
// The site's page opened: the member finishes joining and pays there.
|
|
285
|
+
if (pay.kind === "handoff") return copyTemplate("program.continueOnSiteMessage", "Finish joining {name} on the site.", { name });
|
|
287
286
|
if (pay.kind === "cancelled") return copyParam("program.joinCancelledMessage", "Payment cancelled — you haven't enrolled.");
|
|
288
287
|
if (isPaymentSetupFailure(pay)) return paymentSetupMessage("program");
|
|
289
288
|
} catch (error) {
|
|
290
289
|
if (!connectivity().online) return offlineWriteMessage;
|
|
291
290
|
if (preparationWithdrawn) return blocked();
|
|
292
291
|
if (isPaymentSetupFailure(error)) return paymentSetupMessage("program");
|
|
293
|
-
//
|
|
292
|
+
// An unpaid application the join cannot pay for in the app (its status is PAYMENT_PENDING, not
|
|
293
|
+
// APPROVED) is still the member's to finish on the site: open the program's own page there. The
|
|
294
|
+
// join refuses a declined or suspended application with the same code, so the current application
|
|
295
|
+
// is read again first: only one still PAYMENT_PENDING hands off.
|
|
296
|
+
const code = (error as { code?: unknown } | null)?.code;
|
|
297
|
+
if (code === "join_application_not_approved" && guards.unpaid && sitePage) {
|
|
298
|
+
try {
|
|
299
|
+
await guards.assertMember();
|
|
300
|
+
const current = (await getCurrentJoinApplication(id)).joinApplication;
|
|
301
|
+
const stillUnpaid = current?.programId === id && (current.status ?? "").toUpperCase() === "PAYMENT_PENDING";
|
|
302
|
+
if (stillUnpaid && guards.mayContinue() && (await openUrl(sitePage, "in_app_browser")).opened) {
|
|
303
|
+
return copyTemplate("program.continueOnSiteMessage", "Finish joining {name} on the site.", { name });
|
|
304
|
+
}
|
|
305
|
+
} catch { /* the site-directing message below */ }
|
|
306
|
+
}
|
|
294
307
|
}
|
|
295
308
|
return copyTemplate("program.joinOnSiteMessage", "Enrolment happens on the website — visit the site to join {name}.", { name });
|
|
296
309
|
}
|
|
@@ -338,8 +351,15 @@ let cancellationReconciliation: (CancelledApplication & { afterSeq: number; conf
|
|
|
338
351
|
let standingSeq = 0;
|
|
339
352
|
let latestStandingRead: { programId: string; seq: number; promise: Promise<StandingRead | undefined> } | undefined;
|
|
340
353
|
let programEnded = false;
|
|
341
|
-
|
|
342
|
-
|
|
354
|
+
/** `restrictions.accessType` of the program [id] (absent = PUBLIC, as Wix reads it): it gates enrolment
|
|
355
|
+
* and tells an unpaid public join from an approved request. Keyed, so a failed reload of another program
|
|
356
|
+
* never lends it this one's access. */
|
|
357
|
+
let programAccess = { id: "", access: "" };
|
|
358
|
+
const accessOf = (id: string): string => programAccess.id === id ? programAccess.access : "";
|
|
359
|
+
const programPrivate = (): boolean => accessOf(inputId()) === "PRIVATE";
|
|
360
|
+
const programSecret = (): boolean => accessOf(inputId()) === "SECRET";
|
|
361
|
+
/** The loaded program's own page on the site, the rail a wallet-less app pays on ("" when Wix names none). */
|
|
362
|
+
let programSite = { id: "", url: "" };
|
|
343
363
|
let cancelInFlight = false;
|
|
344
364
|
// Presentation dedupe only. The host remains the sole authority to resume a join.
|
|
345
365
|
let openedAuthToken = "";
|
|
@@ -383,8 +403,8 @@ async function load(state: State, arg?: unknown): Promise<undefined> {
|
|
|
383
403
|
if (seq !== loadSeq || inputId() !== id) return undefined;
|
|
384
404
|
content = found ? contentOf(ready(state, found.program, locale)) : { ...content, status: "error" };
|
|
385
405
|
programEnded = found?.program ? programIsEnded(found.program) : false;
|
|
386
|
-
|
|
387
|
-
|
|
406
|
+
if (found?.program) programAccess = { id, access: ((found.program as WixProgramFull).restrictions?.accessType || "PUBLIC").toUpperCase() };
|
|
407
|
+
programSite = { id, url: found?.program ? programSitePage(found.program) : "" };
|
|
388
408
|
// A first load can paint content before standing; a warm refresh keeps its owned view.
|
|
389
409
|
// Initial pricing remains guarded until the standing read below settles.
|
|
390
410
|
if (state.status !== "ready") void svc.pricingPublish();
|
|
@@ -489,7 +509,8 @@ async function readStanding(id: string, seq: number): Promise<StandingRead | und
|
|
|
489
509
|
}
|
|
490
510
|
sameCancelledStanding = cancelledRow && !participant;
|
|
491
511
|
feedbackKnown ||= applicationKnown || !!participant;
|
|
492
|
-
|
|
512
|
+
// An unknown access type (no program read for this id) keeps the old reading: "approved".
|
|
513
|
+
next = standingOf(programEnded, participant ?? scoped[0], application, accessOf(id) || "UNKNOWN");
|
|
493
514
|
nextInProgram = inProgram(next, participant);
|
|
494
515
|
if (next !== "none") owner = member;
|
|
495
516
|
if (failedFeedback && (applicationKnown || participant)) {
|
|
@@ -709,8 +730,9 @@ async function enroll(afterAuthAccount = "", targetId = inputId()): Promise<unde
|
|
|
709
730
|
}
|
|
710
731
|
// joinProgram refreshes the current Join Application before creating anything. Its
|
|
711
732
|
// existing-participant/private/paid and pending-payment guards remain authoritative.
|
|
712
|
-
const message = await enrollmentMessage(id, content.name, {
|
|
733
|
+
const message = await enrollmentMessage(id, content.name, programSite.id === id ? programSite.url : "", {
|
|
713
734
|
withdrawnParticipantId: rejoinParticipantId || undefined,
|
|
735
|
+
unpaid: standingForInput() && standing === "unpaid",
|
|
714
736
|
assertMember: async () => {
|
|
715
737
|
await assertMemberAccess(member);
|
|
716
738
|
if (id !== inputId()) throw new Error("Program changed");
|
|
@@ -745,11 +767,11 @@ async function buy(): Promise<undefined> {
|
|
|
745
767
|
return undefined;
|
|
746
768
|
}
|
|
747
769
|
|
|
748
|
-
const canEnrol = (value: Standing): boolean => !programEnded && ((value === "none" && !programSecret) || value === "approved");
|
|
770
|
+
const canEnrol = (value: Standing): boolean => !programEnded && ((value === "none" && !programSecret()) || value === "approved" || value === "unpaid");
|
|
749
771
|
|
|
750
772
|
function enrollLabelFor(value: Standing): string {
|
|
751
|
-
return value === "approved" ? copyParam("memberPrograms.action.pay", "Complete payment")
|
|
752
|
-
: programPrivate ? copyParam("memberPrograms.action.request", "Request to join")
|
|
773
|
+
return value === "approved" || value === "unpaid" ? copyParam("memberPrograms.action.pay", "Complete payment")
|
|
774
|
+
: programPrivate() ? copyParam("memberPrograms.action.request", "Request to join")
|
|
753
775
|
: copyParam("program.enrolCta", "Enrol");
|
|
754
776
|
}
|
|
755
777
|
|