@wix/himalaya-cli 0.1777.0 → 0.1779.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/webview-embedded.d.ts +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +5 -0
- package/dist/cli.mjs +1322 -154
- package/guides/himi-test.md +57 -0
- package/guides/one-app-section-mappings.md +5 -8
- package/guides/one-app-to-himi-app.md +21 -7
- package/guides/release-notes.md +15 -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/weekly-goal.ts +7 -3
- package/templates/branded-lite/l10n/ar.json +15 -0
- package/templates/branded-lite/l10n/cs.json +15 -0
- package/templates/branded-lite/l10n/da.json +15 -0
- package/templates/branded-lite/l10n/de.json +15 -0
- package/templates/branded-lite/l10n/el.json +15 -0
- package/templates/branded-lite/l10n/es.json +15 -0
- package/templates/branded-lite/l10n/fi.json +15 -0
- package/templates/branded-lite/l10n/fr.json +15 -0
- package/templates/branded-lite/l10n/he.json +12 -0
- package/templates/branded-lite/l10n/hu.json +15 -0
- package/templates/branded-lite/l10n/id.json +15 -0
- package/templates/branded-lite/l10n/it.json +15 -0
- package/templates/branded-lite/l10n/ja.json +15 -0
- package/templates/branded-lite/l10n/ko.json +15 -0
- package/templates/branded-lite/l10n/lt.json +15 -0
- package/templates/branded-lite/l10n/nl.json +15 -0
- package/templates/branded-lite/l10n/no.json +15 -0
- package/templates/branded-lite/l10n/pl.json +15 -0
- package/templates/branded-lite/l10n/pt.json +15 -0
- package/templates/branded-lite/l10n/ru.json +15 -0
- package/templates/branded-lite/l10n/sv.json +15 -0
- package/templates/branded-lite/l10n/th.json +15 -0
- package/templates/branded-lite/l10n/tr.json +15 -0
- package/templates/branded-lite/l10n/uk.json +15 -0
- package/templates/branded-lite/l10n/vi.json +15 -0
- package/templates/branded-lite/l10n/zh.json +15 -0
- package/templates/branded-lite/recipes/blog-categories.json +115 -0
- package/templates/branded-lite/recipes/event-schedule.json +114 -0
- package/templates/branded-lite/recipes/groups-newsfeed.json +245 -0
- package/templates/branded-lite/recipes/loyalty-offering.json +241 -0
- package/templates/branded-lite/recipes/loyalty-status.json +173 -0
- package/templates/branded-lite/recipes/members-carousel.json +144 -0
- package/templates/branded-lite/recipes/performance-tracker.json +325 -0
- package/templates/branded-lite/recipes/podcasts-widget.json +280 -0
- package/templates/branded-lite/recipes/products-search-bar.json +139 -0
- package/templates/branded-lite/recipes/wishlist-grid.json +236 -0
- package/templates/branded-lite/tier5-src/_shared/blog-categories.ts +62 -0
- package/templates/branded-lite/tier5-src/_shared/event-agenda.ts +122 -0
- package/templates/branded-lite/tier5-src/_shared/event-schedule-section.ts +91 -0
- package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +2 -2
- package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +105 -0
- package/templates/branded-lite/tier5-src/_shared/loyalty-offering-section.ts +88 -0
- package/templates/branded-lite/tier5-src/_shared/loyalty-status-section.ts +88 -0
- package/templates/branded-lite/tier5-src/_shared/members-directory.ts +9 -3
- package/templates/branded-lite/tier5-src/_shared/performance-tracker-section.ts +120 -0
- package/templates/branded-lite/tier5-src/_shared/performance-tracker-weeks.ts +71 -0
- package/templates/branded-lite/tier5-src/_shared/podcast-section.ts +131 -0
- package/templates/branded-lite/tier5-src/_shared/saved-products-section.ts +64 -0
- package/templates/branded-lite/tier5-src/_shared/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- package/templates/medical-services/tier5-src/_shared/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- 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/weekly-goal.ts +7 -3
- package/templates/salon-spa/tier5-src/_shared/weekly-goal.ts +7 -3
- package/templates/yoga-studio/l10n/ar.json +5 -0
- package/templates/yoga-studio/l10n/cs.json +5 -0
- package/templates/yoga-studio/l10n/da.json +5 -0
- package/templates/yoga-studio/l10n/de.json +5 -0
- package/templates/yoga-studio/l10n/el.json +5 -0
- package/templates/yoga-studio/l10n/es.json +5 -0
- package/templates/yoga-studio/l10n/fi.json +5 -0
- package/templates/yoga-studio/l10n/fr.json +5 -0
- package/templates/yoga-studio/l10n/he.json +4 -0
- package/templates/yoga-studio/l10n/hu.json +5 -0
- package/templates/yoga-studio/l10n/id.json +5 -0
- package/templates/yoga-studio/l10n/it.json +5 -0
- package/templates/yoga-studio/l10n/ja.json +5 -0
- package/templates/yoga-studio/l10n/ko.json +5 -0
- package/templates/yoga-studio/l10n/lt.json +5 -0
- package/templates/yoga-studio/l10n/nl.json +5 -0
- package/templates/yoga-studio/l10n/no.json +5 -0
- package/templates/yoga-studio/l10n/pl.json +5 -0
- package/templates/yoga-studio/l10n/pt.json +5 -0
- package/templates/yoga-studio/l10n/ru.json +5 -0
- package/templates/yoga-studio/l10n/sv.json +5 -0
- package/templates/yoga-studio/l10n/th.json +5 -0
- package/templates/yoga-studio/l10n/tr.json +5 -0
- package/templates/yoga-studio/l10n/uk.json +5 -0
- package/templates/yoga-studio/l10n/vi.json +5 -0
- package/templates/yoga-studio/l10n/zh.json +5 -0
- package/templates/yoga-studio/tier5-src/_shared/weekly-goal.ts +7 -3
|
@@ -40,14 +40,18 @@ export function weekStartMs(now: number): number {
|
|
|
40
40
|
return d.getTime();
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/** Is `row` a session that was booked and already held at `now`? The one rule every count here uses. */
|
|
44
|
+
export function isHeldSession(row: MemberBookingRow, now: number): boolean {
|
|
45
|
+
const start = Date.parse(row.start);
|
|
46
|
+
return Number.isFinite(start) && start < now && COUNTS_AS_SESSION.test((row.status || "").trim().toUpperCase());
|
|
47
|
+
}
|
|
48
|
+
|
|
43
49
|
/** Sessions toward the goal among `rows` — see the file header for what counts. */
|
|
44
50
|
export function weeklySessionsDone(rows: readonly MemberBookingRow[], now: number): number {
|
|
45
51
|
const from = weekStartMs(now);
|
|
46
52
|
const seen = new Set<string>();
|
|
47
53
|
for (const row of rows) {
|
|
48
|
-
|
|
49
|
-
if (!Number.isFinite(start) || start < from || start >= now) continue;
|
|
50
|
-
if (!COUNTS_AS_SESSION.test((row.status || "").trim().toUpperCase())) continue;
|
|
54
|
+
if (Date.parse(row.start) < from || !isHeldSession(row, now)) continue;
|
|
51
55
|
seen.add(row.id || `${row.start}|${row.title}`);
|
|
52
56
|
}
|
|
53
57
|
return seen.size;
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "مقفل",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, zero {# منشور} one {منشور واحد} two {منشوران} few {# منشورات} many {# منشورًا} other {# منشور}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Zamčeno",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# příspěvek} few {# příspěvky} many {# příspěvku} other {# příspěvků}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Låst",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# opslag} other {# opslag}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Gesperrt",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# Beitrag} other {# Beiträge}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Κλειδωμένο",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# ανάρτηση} other {# αναρτήσεις}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Bloqueado",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# publicación} other {# publicaciones}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Lukittu",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# julkaisu} other {# julkaisua}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "This program's steps can't be shown in the app right now.",
|
|
4706
4706
|
"translation": "Les étapes de ce programme ne peuvent pas être affichées dans l'appli pour le moment.",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# article} other {# articles}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -3836,6 +3836,10 @@
|
|
|
3836
3836
|
"h_681d337c1e7f": {
|
|
3837
3837
|
"source": "This program's steps can't be shown in the app right now.",
|
|
3838
3838
|
"translation": "הצגת השלבים של התוכנית באפליקציה אינה זמינה כרגע."
|
|
3839
|
+
},
|
|
3840
|
+
"h_3219c81fa232": {
|
|
3841
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
3842
|
+
"translation": "{n, plural, one {פוסט אחד} other {# פוסטים}}"
|
|
3839
3843
|
}
|
|
3840
3844
|
}
|
|
3841
3845
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Zárolva",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# bejegyzés} other {# bejegyzés}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Terkunci",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, other {# kiriman}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Bloccato",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# articolo} other {# articoli}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "ロック中",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, other {#件の投稿}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "잠김",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, other {게시물 #개}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Užrakinta",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# įrašas} few {# įrašai} many {# įrašo} other {# įrašų}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Vergrendeld",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# bericht} other {# berichten}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Låst",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# innlegg} other {# innlegg}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Zablokowane",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# wpis} few {# wpisy} many {# wpisów} other {# wpisu}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Bloqueada",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# publicação} other {# publicações}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Закрыто",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# публикация} few {# публикации} many {# публикаций} other {# публикации}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Låst",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# inlägg} other {# inlägg}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "ล็อกอยู่",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, other {# โพสต์}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Kilitli",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# yazı} other {# yazı}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Заблоковано",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, one {# публікація} few {# публікації} many {# публікацій} other {# публікації}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "Đã khóa",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, other {# bài viết}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -4705,6 +4705,11 @@
|
|
|
4705
4705
|
"source": "Locked",
|
|
4706
4706
|
"translation": "已鎖定",
|
|
4707
4707
|
"origin": "machine"
|
|
4708
|
+
},
|
|
4709
|
+
"h_3219c81fa232": {
|
|
4710
|
+
"source": "{n, plural, one {# post} other {# posts}}",
|
|
4711
|
+
"translation": "{n, plural, other {# 篇文章}}",
|
|
4712
|
+
"origin": "machine"
|
|
4708
4713
|
}
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
@@ -40,14 +40,18 @@ export function weekStartMs(now: number): number {
|
|
|
40
40
|
return d.getTime();
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/** Is `row` a session that was booked and already held at `now`? The one rule every count here uses. */
|
|
44
|
+
export function isHeldSession(row: MemberBookingRow, now: number): boolean {
|
|
45
|
+
const start = Date.parse(row.start);
|
|
46
|
+
return Number.isFinite(start) && start < now && COUNTS_AS_SESSION.test((row.status || "").trim().toUpperCase());
|
|
47
|
+
}
|
|
48
|
+
|
|
43
49
|
/** Sessions toward the goal among `rows` — see the file header for what counts. */
|
|
44
50
|
export function weeklySessionsDone(rows: readonly MemberBookingRow[], now: number): number {
|
|
45
51
|
const from = weekStartMs(now);
|
|
46
52
|
const seen = new Set<string>();
|
|
47
53
|
for (const row of rows) {
|
|
48
|
-
|
|
49
|
-
if (!Number.isFinite(start) || start < from || start >= now) continue;
|
|
50
|
-
if (!COUNTS_AS_SESSION.test((row.status || "").trim().toUpperCase())) continue;
|
|
54
|
+
if (Date.parse(row.start) < from || !isHeldSession(row, now)) continue;
|
|
51
55
|
seen.add(row.id || `${row.start}|${row.title}`);
|
|
52
56
|
}
|
|
53
57
|
return seen.size;
|