@wix/himalaya-cli 0.1761.0 → 0.1763.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +23 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +136 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +112 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{7c3c05d452efd3f1e1e81b47dde7d9fa870c1e5217b00b253661a22b571fdbef.bin → a96903bb457796ee606fe986078d9629ba53b5ba4013bdb94e8afba3288284ed.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +51413 -50002
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/base44-app-to-himi-app.md +56 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +10 -0
- package/guides/himi-json-output.md +35 -0
- package/guides/one-app-section-mappings.md +6 -6
- package/guides/one-app-to-himi-app.md +33 -4
- package/guides/push-cli-onboarding.md +25 -14
- package/guides/recipe-dynamic-list.md +4 -2
- package/guides/wix-business-context.md +1 -1
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/ar.json +9 -420
- package/templates/beauty-salon/l10n/cs.json +9 -420
- package/templates/beauty-salon/l10n/da.json +9 -420
- package/templates/beauty-salon/l10n/de.json +9 -420
- package/templates/beauty-salon/l10n/el.json +9 -420
- package/templates/beauty-salon/l10n/en.json +8 -61
- package/templates/beauty-salon/l10n/es.json +9 -420
- package/templates/beauty-salon/l10n/fi.json +9 -420
- package/templates/beauty-salon/l10n/fr.json +9 -420
- package/templates/beauty-salon/l10n/he.json +9 -338
- package/templates/beauty-salon/l10n/hu.json +9 -420
- package/templates/beauty-salon/l10n/id.json +9 -420
- package/templates/beauty-salon/l10n/it.json +9 -420
- package/templates/beauty-salon/l10n/ja.json +9 -420
- package/templates/beauty-salon/l10n/ko.json +9 -420
- package/templates/beauty-salon/l10n/lt.json +9 -420
- package/templates/beauty-salon/l10n/nl.json +9 -420
- package/templates/beauty-salon/l10n/no.json +9 -420
- package/templates/beauty-salon/l10n/pl.json +9 -420
- package/templates/beauty-salon/l10n/pt.json +9 -420
- package/templates/beauty-salon/l10n/ru.json +9 -420
- package/templates/beauty-salon/l10n/sv.json +9 -420
- package/templates/beauty-salon/l10n/th.json +9 -420
- package/templates/beauty-salon/l10n/tr.json +9 -420
- package/templates/beauty-salon/l10n/uk.json +9 -420
- package/templates/beauty-salon/l10n/vi.json +9 -420
- package/templates/beauty-salon/l10n/zh.json +9 -420
- package/templates/branded-lite/l10n/ar.json +31 -5
- package/templates/branded-lite/l10n/cs.json +31 -5
- package/templates/branded-lite/l10n/da.json +31 -5
- package/templates/branded-lite/l10n/de.json +31 -5
- package/templates/branded-lite/l10n/el.json +31 -5
- package/templates/branded-lite/l10n/en.json +8 -6
- package/templates/branded-lite/l10n/es.json +31 -5
- package/templates/branded-lite/l10n/fi.json +31 -5
- package/templates/branded-lite/l10n/fr.json +31 -5
- package/templates/branded-lite/l10n/he.json +27 -4
- package/templates/branded-lite/l10n/hu.json +31 -5
- package/templates/branded-lite/l10n/id.json +31 -5
- package/templates/branded-lite/l10n/it.json +31 -5
- package/templates/branded-lite/l10n/ja.json +31 -5
- package/templates/branded-lite/l10n/ko.json +31 -5
- package/templates/branded-lite/l10n/lt.json +31 -5
- package/templates/branded-lite/l10n/nl.json +31 -5
- package/templates/branded-lite/l10n/no.json +31 -5
- package/templates/branded-lite/l10n/pl.json +31 -5
- package/templates/branded-lite/l10n/pt.json +31 -5
- package/templates/branded-lite/l10n/ru.json +31 -5
- package/templates/branded-lite/l10n/sv.json +31 -5
- package/templates/branded-lite/l10n/th.json +31 -5
- package/templates/branded-lite/l10n/tr.json +31 -5
- package/templates/branded-lite/l10n/uk.json +31 -5
- package/templates/branded-lite/l10n/vi.json +31 -5
- package/templates/branded-lite/l10n/zh.json +31 -5
- package/templates/branded-lite/recipes/blog-search.json +45 -0
- package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-carousel.json} +39 -118
- package/templates/{gym-fitness/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-list.json} +43 -121
- package/templates/{community-club/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
- package/templates/{beauty-salon/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
- package/templates/{beauty-salon/recipes/groups-list.json → branded-lite/recipes/services-list.json} +33 -9
- package/templates/{community-club/recipes/groups-list.json → branded-lite/recipes/subscriptions-list.json} +124 -60
- package/templates/branded-lite/recipes/upcoming-bookings.json +350 -0
- package/templates/branded-lite/recipes/videos-carousel.json +248 -0
- package/templates/branded-lite/tier5-src/_shared/blog-list.ts +75 -21
- package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +115 -0
- package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +137 -0
- package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -3
- package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +107 -0
- package/templates/branded-lite/tier5-src/_shared/plans-section.ts +11 -3
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -0
- package/templates/branded-lite/tier5-src/_shared/services-section.ts +122 -0
- package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +102 -0
- package/templates/branded-lite/tier5-src/_shared/videos-section.ts +91 -0
- package/templates/brandy/README.md +21 -3
- package/templates/brandy/config.ts +131 -14
- package/templates/brandy/dev/index.ts +41 -5
- package/templates/brandy/dev/member-screens.ts +14412 -0
- package/templates/brandy/provisioning.member.example.json +25 -0
- package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +280 -0
- package/templates/brandy/tier5-src/_shared/branded-load-state.ts +109 -0
- package/templates/brandy/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/brandy/tier5-src/_shared/collection-contract.ts +228 -0
- package/templates/brandy/tier5-src/_shared/collection-query-legacy.ts +194 -0
- package/templates/brandy/tier5-src/_shared/collection-query.ts +252 -0
- package/templates/brandy/tier5-src/_shared/collection-service.ts +423 -0
- package/templates/brandy/tier5-src/_shared/engine-intl.ts +523 -0
- package/templates/brandy/tier5-src/_shared/himi-account.ts +194 -0
- package/templates/brandy/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/brandy/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/brandy/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/brandy/tier5-src/_shared/iap-worker.ts +127 -0
- package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +68 -0
- package/templates/brandy/tier5-src/_shared/live-session.ts +172 -0
- package/templates/brandy/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/brandy/tier5-src/_shared/member-access.ts +63 -0
- package/templates/brandy/tier5-src/_shared/member-account-routes.ts +52 -0
- package/templates/brandy/tier5-src/_shared/member-orders.ts +8 -0
- package/templates/brandy/tier5-src/_shared/member-read.ts +82 -0
- package/templates/brandy/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/brandy/tier5-src/_shared/notification-target.ts +141 -0
- package/templates/brandy/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/brandy/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/brandy/tier5-src/_shared/payment-setup.ts +6 -0
- package/templates/brandy/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/brandy/tier5-src/_shared/rich-body.ts +78 -0
- package/templates/brandy/tier5-src/_shared/rich-content-link.ts +34 -0
- package/templates/brandy/tier5-src/_shared/sign-in-sheet.ts +18 -0
- package/templates/brandy/tier5-src/_shared/store-order-presentation.ts +56 -0
- package/templates/brandy/tier5-src/_shared/wix-bi.ts +85 -0
- package/templates/brandy/tier5-src/_shared/wix-member-links.ts +114 -0
- package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +92 -0
- package/templates/brandy/tier5-src/himi-branded-lite-notifications/index.ts +256 -0
- package/templates/brandy/tier5-src/himi-branded-lite-order/index.ts +477 -0
- package/templates/brandy/tier5-src/himi-branded-lite-orders/index.ts +327 -0
- package/templates/brandy/tier5-src/himi-store-account/index.ts +1007 -0
- package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +350 -0
- package/templates/brandy/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/brandy/tier5-src/wix-spaces-my-subscriptions/index.ts +89 -0
- package/templates/brandy/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
- package/templates/brandy/tokens.json +25 -0
- package/templates/community-club/l10n/ar.json +0 -412
- package/templates/community-club/l10n/cs.json +0 -412
- package/templates/community-club/l10n/da.json +0 -412
- package/templates/community-club/l10n/de.json +0 -412
- package/templates/community-club/l10n/el.json +0 -412
- package/templates/community-club/l10n/en.json +1 -46
- package/templates/community-club/l10n/es.json +0 -412
- package/templates/community-club/l10n/fi.json +0 -412
- package/templates/community-club/l10n/fr.json +0 -412
- package/templates/community-club/l10n/he.json +0 -331
- package/templates/community-club/l10n/hu.json +0 -412
- package/templates/community-club/l10n/id.json +0 -412
- package/templates/community-club/l10n/it.json +0 -412
- package/templates/community-club/l10n/ja.json +0 -412
- package/templates/community-club/l10n/ko.json +0 -412
- package/templates/community-club/l10n/lt.json +0 -412
- package/templates/community-club/l10n/nl.json +0 -412
- package/templates/community-club/l10n/no.json +0 -412
- package/templates/community-club/l10n/pl.json +0 -412
- package/templates/community-club/l10n/pt.json +0 -412
- package/templates/community-club/l10n/ru.json +0 -412
- package/templates/community-club/l10n/sv.json +0 -412
- package/templates/community-club/l10n/th.json +0 -412
- package/templates/community-club/l10n/tr.json +0 -412
- package/templates/community-club/l10n/uk.json +0 -412
- package/templates/community-club/l10n/vi.json +0 -412
- package/templates/community-club/l10n/zh.json +0 -412
- package/templates/events-meetups/l10n/ar.json +0 -412
- package/templates/events-meetups/l10n/cs.json +0 -412
- package/templates/events-meetups/l10n/da.json +0 -412
- package/templates/events-meetups/l10n/de.json +0 -412
- package/templates/events-meetups/l10n/el.json +0 -412
- package/templates/events-meetups/l10n/en.json +1 -46
- package/templates/events-meetups/l10n/es.json +0 -412
- package/templates/events-meetups/l10n/fi.json +0 -412
- package/templates/events-meetups/l10n/fr.json +0 -412
- package/templates/events-meetups/l10n/he.json +0 -331
- package/templates/events-meetups/l10n/hu.json +0 -412
- package/templates/events-meetups/l10n/id.json +0 -412
- package/templates/events-meetups/l10n/it.json +0 -412
- package/templates/events-meetups/l10n/ja.json +0 -412
- package/templates/events-meetups/l10n/ko.json +0 -412
- package/templates/events-meetups/l10n/lt.json +0 -412
- package/templates/events-meetups/l10n/nl.json +0 -412
- package/templates/events-meetups/l10n/no.json +0 -412
- package/templates/events-meetups/l10n/pl.json +0 -412
- package/templates/events-meetups/l10n/pt.json +0 -412
- package/templates/events-meetups/l10n/ru.json +0 -412
- package/templates/events-meetups/l10n/sv.json +0 -412
- package/templates/events-meetups/l10n/th.json +0 -412
- package/templates/events-meetups/l10n/tr.json +0 -412
- package/templates/events-meetups/l10n/uk.json +0 -412
- package/templates/events-meetups/l10n/vi.json +0 -412
- package/templates/events-meetups/l10n/zh.json +0 -412
- package/templates/gym-fitness/l10n/ar.json +9 -405
- package/templates/gym-fitness/l10n/cs.json +9 -405
- package/templates/gym-fitness/l10n/da.json +9 -405
- package/templates/gym-fitness/l10n/de.json +9 -405
- package/templates/gym-fitness/l10n/el.json +9 -405
- package/templates/gym-fitness/l10n/en.json +8 -51
- package/templates/gym-fitness/l10n/es.json +9 -405
- package/templates/gym-fitness/l10n/fi.json +9 -405
- package/templates/gym-fitness/l10n/fr.json +9 -405
- package/templates/gym-fitness/l10n/he.json +9 -326
- package/templates/gym-fitness/l10n/hu.json +9 -405
- package/templates/gym-fitness/l10n/id.json +9 -405
- package/templates/gym-fitness/l10n/it.json +9 -405
- package/templates/gym-fitness/l10n/ja.json +9 -405
- package/templates/gym-fitness/l10n/ko.json +9 -405
- package/templates/gym-fitness/l10n/lt.json +9 -405
- package/templates/gym-fitness/l10n/nl.json +9 -405
- package/templates/gym-fitness/l10n/no.json +9 -405
- package/templates/gym-fitness/l10n/pl.json +9 -405
- package/templates/gym-fitness/l10n/pt.json +9 -405
- package/templates/gym-fitness/l10n/ru.json +9 -405
- package/templates/gym-fitness/l10n/sv.json +9 -405
- package/templates/gym-fitness/l10n/th.json +9 -405
- package/templates/gym-fitness/l10n/tr.json +9 -405
- package/templates/gym-fitness/l10n/uk.json +9 -405
- package/templates/gym-fitness/l10n/vi.json +9 -405
- package/templates/gym-fitness/l10n/zh.json +9 -405
- package/templates/nonprofit-cause/l10n/ar.json +0 -387
- package/templates/nonprofit-cause/l10n/cs.json +0 -387
- package/templates/nonprofit-cause/l10n/da.json +0 -387
- package/templates/nonprofit-cause/l10n/de.json +0 -387
- package/templates/nonprofit-cause/l10n/el.json +0 -387
- package/templates/nonprofit-cause/l10n/en.json +1 -46
- package/templates/nonprofit-cause/l10n/es.json +0 -387
- package/templates/nonprofit-cause/l10n/fi.json +0 -387
- package/templates/nonprofit-cause/l10n/fr.json +0 -387
- package/templates/nonprofit-cause/l10n/he.json +0 -311
- package/templates/nonprofit-cause/l10n/hu.json +0 -387
- package/templates/nonprofit-cause/l10n/id.json +0 -387
- package/templates/nonprofit-cause/l10n/it.json +0 -387
- package/templates/nonprofit-cause/l10n/ja.json +0 -387
- package/templates/nonprofit-cause/l10n/ko.json +0 -387
- package/templates/nonprofit-cause/l10n/lt.json +0 -387
- package/templates/nonprofit-cause/l10n/nl.json +0 -387
- package/templates/nonprofit-cause/l10n/no.json +0 -387
- package/templates/nonprofit-cause/l10n/pl.json +0 -387
- package/templates/nonprofit-cause/l10n/pt.json +0 -387
- package/templates/nonprofit-cause/l10n/ru.json +0 -387
- package/templates/nonprofit-cause/l10n/sv.json +0 -387
- package/templates/nonprofit-cause/l10n/th.json +0 -387
- package/templates/nonprofit-cause/l10n/tr.json +0 -387
- package/templates/nonprofit-cause/l10n/uk.json +0 -387
- package/templates/nonprofit-cause/l10n/vi.json +0 -387
- package/templates/nonprofit-cause/l10n/zh.json +0 -387
- package/templates/podcast-creator/l10n/ar.json +0 -417
- package/templates/podcast-creator/l10n/cs.json +0 -417
- package/templates/podcast-creator/l10n/da.json +0 -417
- package/templates/podcast-creator/l10n/de.json +0 -417
- package/templates/podcast-creator/l10n/el.json +0 -417
- package/templates/podcast-creator/l10n/en.json +1 -46
- package/templates/podcast-creator/l10n/es.json +0 -417
- package/templates/podcast-creator/l10n/fi.json +0 -417
- package/templates/podcast-creator/l10n/fr.json +0 -417
- package/templates/podcast-creator/l10n/he.json +0 -335
- package/templates/podcast-creator/l10n/hu.json +0 -417
- package/templates/podcast-creator/l10n/id.json +0 -417
- package/templates/podcast-creator/l10n/it.json +0 -417
- package/templates/podcast-creator/l10n/ja.json +0 -417
- package/templates/podcast-creator/l10n/ko.json +0 -417
- package/templates/podcast-creator/l10n/lt.json +0 -417
- package/templates/podcast-creator/l10n/nl.json +0 -417
- package/templates/podcast-creator/l10n/no.json +0 -417
- package/templates/podcast-creator/l10n/pl.json +0 -417
- package/templates/podcast-creator/l10n/pt.json +0 -417
- package/templates/podcast-creator/l10n/ru.json +0 -417
- package/templates/podcast-creator/l10n/sv.json +0 -417
- package/templates/podcast-creator/l10n/th.json +0 -417
- package/templates/podcast-creator/l10n/tr.json +0 -417
- package/templates/podcast-creator/l10n/uk.json +0 -417
- package/templates/podcast-creator/l10n/vi.json +0 -417
- package/templates/podcast-creator/l10n/zh.json +0 -417
- package/templates/portfolio-creative/l10n/ar.json +0 -437
- package/templates/portfolio-creative/l10n/cs.json +0 -437
- package/templates/portfolio-creative/l10n/da.json +0 -437
- package/templates/portfolio-creative/l10n/de.json +0 -437
- package/templates/portfolio-creative/l10n/el.json +0 -437
- package/templates/portfolio-creative/l10n/en.json +1 -46
- package/templates/portfolio-creative/l10n/es.json +0 -437
- package/templates/portfolio-creative/l10n/fi.json +0 -437
- package/templates/portfolio-creative/l10n/fr.json +0 -437
- package/templates/portfolio-creative/l10n/he.json +0 -351
- package/templates/portfolio-creative/l10n/hu.json +0 -437
- package/templates/portfolio-creative/l10n/id.json +0 -437
- package/templates/portfolio-creative/l10n/it.json +0 -437
- package/templates/portfolio-creative/l10n/ja.json +0 -437
- package/templates/portfolio-creative/l10n/ko.json +0 -437
- package/templates/portfolio-creative/l10n/lt.json +0 -437
- package/templates/portfolio-creative/l10n/nl.json +0 -437
- package/templates/portfolio-creative/l10n/no.json +0 -437
- package/templates/portfolio-creative/l10n/pl.json +0 -437
- package/templates/portfolio-creative/l10n/pt.json +0 -437
- package/templates/portfolio-creative/l10n/ru.json +0 -437
- package/templates/portfolio-creative/l10n/sv.json +0 -437
- package/templates/portfolio-creative/l10n/th.json +0 -437
- package/templates/portfolio-creative/l10n/tr.json +0 -437
- package/templates/portfolio-creative/l10n/uk.json +0 -437
- package/templates/portfolio-creative/l10n/vi.json +0 -437
- package/templates/portfolio-creative/l10n/zh.json +0 -437
- package/templates/restaurant/l10n/ar.json +0 -447
- package/templates/restaurant/l10n/cs.json +0 -447
- package/templates/restaurant/l10n/da.json +0 -447
- package/templates/restaurant/l10n/de.json +0 -447
- package/templates/restaurant/l10n/el.json +0 -447
- package/templates/restaurant/l10n/en.json +1 -46
- package/templates/restaurant/l10n/es.json +0 -447
- package/templates/restaurant/l10n/fi.json +0 -447
- package/templates/restaurant/l10n/fr.json +0 -447
- package/templates/restaurant/l10n/he.json +0 -359
- package/templates/restaurant/l10n/hu.json +0 -447
- package/templates/restaurant/l10n/id.json +0 -447
- package/templates/restaurant/l10n/it.json +0 -447
- package/templates/restaurant/l10n/ja.json +0 -447
- package/templates/restaurant/l10n/ko.json +0 -447
- package/templates/restaurant/l10n/lt.json +0 -447
- package/templates/restaurant/l10n/nl.json +0 -447
- package/templates/restaurant/l10n/no.json +0 -447
- package/templates/restaurant/l10n/pl.json +0 -447
- package/templates/restaurant/l10n/pt.json +0 -447
- package/templates/restaurant/l10n/ru.json +0 -447
- package/templates/restaurant/l10n/sv.json +0 -447
- package/templates/restaurant/l10n/th.json +0 -447
- package/templates/restaurant/l10n/tr.json +0 -447
- package/templates/restaurant/l10n/uk.json +0 -447
- package/templates/restaurant/l10n/vi.json +0 -447
- package/templates/restaurant/l10n/zh.json +0 -447
- package/templates/retail-store/l10n/ar.json +0 -462
- package/templates/retail-store/l10n/cs.json +0 -462
- package/templates/retail-store/l10n/da.json +0 -462
- package/templates/retail-store/l10n/de.json +0 -462
- package/templates/retail-store/l10n/el.json +0 -462
- package/templates/retail-store/l10n/en.json +1 -61
- package/templates/retail-store/l10n/es.json +0 -462
- package/templates/retail-store/l10n/fi.json +0 -462
- package/templates/retail-store/l10n/fr.json +0 -462
- package/templates/retail-store/l10n/he.json +0 -371
- package/templates/retail-store/l10n/hu.json +0 -462
- package/templates/retail-store/l10n/id.json +0 -462
- package/templates/retail-store/l10n/it.json +0 -462
- package/templates/retail-store/l10n/ja.json +0 -462
- package/templates/retail-store/l10n/ko.json +0 -462
- package/templates/retail-store/l10n/lt.json +0 -462
- package/templates/retail-store/l10n/nl.json +0 -462
- package/templates/retail-store/l10n/no.json +0 -462
- package/templates/retail-store/l10n/pl.json +0 -462
- package/templates/retail-store/l10n/pt.json +0 -462
- package/templates/retail-store/l10n/ru.json +0 -462
- package/templates/retail-store/l10n/sv.json +0 -462
- package/templates/retail-store/l10n/th.json +0 -462
- package/templates/retail-store/l10n/tr.json +0 -462
- package/templates/retail-store/l10n/uk.json +0 -462
- package/templates/retail-store/l10n/vi.json +0 -462
- package/templates/retail-store/l10n/zh.json +0 -462
- package/templates/yoga-studio/l10n/ar.json +9 -197
- package/templates/yoga-studio/l10n/cs.json +9 -197
- package/templates/yoga-studio/l10n/da.json +9 -197
- package/templates/yoga-studio/l10n/de.json +9 -197
- package/templates/yoga-studio/l10n/el.json +9 -197
- package/templates/yoga-studio/l10n/en.json +8 -30
- package/templates/yoga-studio/l10n/es.json +9 -197
- package/templates/yoga-studio/l10n/fi.json +9 -197
- package/templates/yoga-studio/l10n/fr.json +9 -197
- package/templates/yoga-studio/l10n/he.json +9 -159
- package/templates/yoga-studio/l10n/hu.json +9 -197
- package/templates/yoga-studio/l10n/id.json +9 -197
- package/templates/yoga-studio/l10n/it.json +9 -197
- package/templates/yoga-studio/l10n/ja.json +9 -197
- package/templates/yoga-studio/l10n/ko.json +9 -197
- package/templates/yoga-studio/l10n/lt.json +9 -197
- package/templates/yoga-studio/l10n/nl.json +9 -197
- package/templates/yoga-studio/l10n/no.json +9 -197
- package/templates/yoga-studio/l10n/pl.json +9 -197
- package/templates/yoga-studio/l10n/pt.json +9 -197
- package/templates/yoga-studio/l10n/ru.json +9 -197
- package/templates/yoga-studio/l10n/sv.json +9 -197
- package/templates/yoga-studio/l10n/th.json +9 -197
- package/templates/yoga-studio/l10n/tr.json +9 -197
- package/templates/yoga-studio/l10n/uk.json +9 -197
- package/templates/yoga-studio/l10n/vi.json +9 -197
- package/templates/yoga-studio/l10n/zh.json +9 -197
- package/templates/beauty-salon/recipes/announcement-card.json +0 -72
- package/templates/beauty-salon/recipes/blog-hero.json +0 -95
- package/templates/beauty-salon/recipes/blog-list-thumb-start.json +0 -394
- package/templates/beauty-salon/recipes/blog-list.json +0 -394
- package/templates/beauty-salon/recipes/blog-see-all.json +0 -50
- package/templates/beauty-salon/recipes/events-inline-list.json +0 -228
- package/templates/beauty-salon/recipes/events-inline.json +0 -309
- package/templates/beauty-salon/recipes/faq-list.json +0 -503
- package/templates/beauty-salon/recipes/members-list.json +0 -445
- package/templates/beauty-salon/recipes/plans-card.json +0 -811
- package/templates/beauty-salon/recipes/products-carousel.json +0 -141
- package/templates/beauty-salon/recipes/products-grid.json +0 -143
- package/templates/beauty-salon/recipes/programs-card.json +0 -254
- package/templates/beauty-salon/recipes/programs-carousel.json +0 -234
- package/templates/beauty-salon/recipes/programs-filters.json +0 -94
- package/templates/beauty-salon/recipes/programs-see-all.json +0 -43
- package/templates/beauty-salon/recipes/section-error.json +0 -58
- package/templates/beauty-salon/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +0 -86
- package/templates/beauty-salon/tier5-src/_shared/events-card.ts +0 -33
- package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/beauty-salon/tier5-src/_shared/products-section.ts +0 -76
- package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/community-club/recipes/announcement-card.json +0 -72
- package/templates/community-club/recipes/blog-hero.json +0 -95
- package/templates/community-club/recipes/blog-list-thumb-start.json +0 -394
- package/templates/community-club/recipes/blog-list.json +0 -394
- package/templates/community-club/recipes/blog-see-all.json +0 -50
- package/templates/community-club/recipes/events-inline.json +0 -309
- package/templates/community-club/recipes/faq-list.json +0 -503
- package/templates/community-club/recipes/members-list.json +0 -445
- package/templates/community-club/recipes/plans-card.json +0 -811
- package/templates/community-club/recipes/products-carousel.json +0 -141
- package/templates/community-club/recipes/products-grid.json +0 -143
- package/templates/community-club/recipes/programs-card.json +0 -254
- package/templates/community-club/recipes/programs-carousel.json +0 -234
- package/templates/community-club/recipes/programs-filters.json +0 -94
- package/templates/community-club/recipes/programs-participant-carousel.json +0 -257
- package/templates/community-club/recipes/programs-see-all.json +0 -43
- package/templates/community-club/recipes/section-error.json +0 -58
- package/templates/community-club/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/community-club/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/community-club/tier5-src/_shared/events-card.ts +0 -33
- package/templates/community-club/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/community-club/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/community-club/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/community-club/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/community-club/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/community-club/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/community-club/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/community-club/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/community-club/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/community-club/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/community-club/tier5-src/_shared/products-section.ts +0 -76
- package/templates/community-club/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/community-club/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/community-club/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/events-meetups/recipes/announcement-card.json +0 -72
- package/templates/events-meetups/recipes/blog-hero.json +0 -95
- package/templates/events-meetups/recipes/blog-list-thumb-start.json +0 -394
- package/templates/events-meetups/recipes/blog-list.json +0 -394
- package/templates/events-meetups/recipes/blog-see-all.json +0 -50
- package/templates/events-meetups/recipes/events-inline-list.json +0 -228
- package/templates/events-meetups/recipes/events-inline.json +0 -309
- package/templates/events-meetups/recipes/faq-list.json +0 -503
- package/templates/events-meetups/recipes/groups-list.json +0 -196
- package/templates/events-meetups/recipes/members-list.json +0 -445
- package/templates/events-meetups/recipes/plans-card.json +0 -811
- package/templates/events-meetups/recipes/products-carousel.json +0 -141
- package/templates/events-meetups/recipes/products-grid.json +0 -143
- package/templates/events-meetups/recipes/programs-card.json +0 -254
- package/templates/events-meetups/recipes/programs-carousel.json +0 -234
- package/templates/events-meetups/recipes/programs-filters.json +0 -94
- package/templates/events-meetups/recipes/programs-see-all.json +0 -43
- package/templates/events-meetups/recipes/section-error.json +0 -58
- package/templates/events-meetups/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/events-meetups/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +0 -51
- package/templates/events-meetups/tier5-src/_shared/events-card.ts +0 -33
- package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/events-meetups/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/events-meetups/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/events-meetups/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/events-meetups/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/events-meetups/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/events-meetups/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/events-meetups/tier5-src/_shared/products-section.ts +0 -76
- package/templates/events-meetups/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/events-meetups/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/events-meetups/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/gym-fitness/recipes/announcement-card.json +0 -72
- package/templates/gym-fitness/recipes/blog-hero.json +0 -95
- package/templates/gym-fitness/recipes/blog-list-thumb-start.json +0 -394
- package/templates/gym-fitness/recipes/blog-list.json +0 -394
- package/templates/gym-fitness/recipes/blog-see-all.json +0 -50
- package/templates/gym-fitness/recipes/events-inline-list.json +0 -228
- package/templates/gym-fitness/recipes/events-inline.json +0 -309
- package/templates/gym-fitness/recipes/faq-list.json +0 -503
- package/templates/gym-fitness/recipes/groups-list.json +0 -196
- package/templates/gym-fitness/recipes/members-list.json +0 -445
- package/templates/gym-fitness/recipes/plans-card.json +0 -811
- package/templates/gym-fitness/recipes/products-carousel.json +0 -141
- package/templates/gym-fitness/recipes/products-grid.json +0 -143
- package/templates/gym-fitness/recipes/programs-card.json +0 -254
- package/templates/gym-fitness/recipes/programs-carousel.json +0 -234
- package/templates/gym-fitness/recipes/programs-filters.json +0 -94
- package/templates/gym-fitness/recipes/programs-see-all.json +0 -43
- package/templates/gym-fitness/recipes/section-error.json +0 -58
- package/templates/gym-fitness/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/gym-fitness/tier5-src/_shared/events-card.ts +0 -33
- package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/gym-fitness/tier5-src/_shared/products-section.ts +0 -76
- package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/nonprofit-cause/recipes/announcement-card.json +0 -72
- package/templates/nonprofit-cause/recipes/blog-hero.json +0 -95
- package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +0 -394
- package/templates/nonprofit-cause/recipes/blog-list.json +0 -394
- package/templates/nonprofit-cause/recipes/blog-see-all.json +0 -50
- package/templates/nonprofit-cause/recipes/events-inline-list.json +0 -228
- package/templates/nonprofit-cause/recipes/events-inline.json +0 -309
- package/templates/nonprofit-cause/recipes/faq-list.json +0 -503
- package/templates/nonprofit-cause/recipes/groups-list.json +0 -196
- package/templates/nonprofit-cause/recipes/members-list.json +0 -445
- package/templates/nonprofit-cause/recipes/plans-card.json +0 -811
- package/templates/nonprofit-cause/recipes/products-carousel.json +0 -141
- package/templates/nonprofit-cause/recipes/products-grid.json +0 -143
- package/templates/nonprofit-cause/recipes/programs-card.json +0 -254
- package/templates/nonprofit-cause/recipes/programs-carousel.json +0 -234
- package/templates/nonprofit-cause/recipes/programs-filters.json +0 -94
- package/templates/nonprofit-cause/recipes/programs-participant-carousel.json +0 -257
- package/templates/nonprofit-cause/recipes/programs-see-all.json +0 -43
- package/templates/nonprofit-cause/recipes/section-error.json +0 -58
- package/templates/nonprofit-cause/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +0 -33
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +0 -76
- package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/podcast-creator/recipes/announcement-card.json +0 -72
- package/templates/podcast-creator/recipes/blog-hero.json +0 -95
- package/templates/podcast-creator/recipes/blog-list-thumb-start.json +0 -394
- package/templates/podcast-creator/recipes/blog-list.json +0 -394
- package/templates/podcast-creator/recipes/blog-see-all.json +0 -50
- package/templates/podcast-creator/recipes/events-inline-list.json +0 -228
- package/templates/podcast-creator/recipes/events-inline.json +0 -309
- package/templates/podcast-creator/recipes/faq-list.json +0 -503
- package/templates/podcast-creator/recipes/groups-list.json +0 -196
- package/templates/podcast-creator/recipes/members-list.json +0 -445
- package/templates/podcast-creator/recipes/plans-card.json +0 -811
- package/templates/podcast-creator/recipes/products-carousel.json +0 -141
- package/templates/podcast-creator/recipes/products-grid.json +0 -143
- package/templates/podcast-creator/recipes/programs-card.json +0 -254
- package/templates/podcast-creator/recipes/programs-carousel.json +0 -234
- package/templates/podcast-creator/recipes/programs-filters.json +0 -94
- package/templates/podcast-creator/recipes/programs-participant-carousel.json +0 -257
- package/templates/podcast-creator/recipes/programs-see-all.json +0 -43
- package/templates/podcast-creator/recipes/section-error.json +0 -58
- package/templates/podcast-creator/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/podcast-creator/tier5-src/_shared/events-card.ts +0 -33
- package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/podcast-creator/tier5-src/_shared/products-section.ts +0 -76
- package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/portfolio-creative/recipes/announcement-card.json +0 -72
- package/templates/portfolio-creative/recipes/blog-hero.json +0 -95
- package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +0 -394
- package/templates/portfolio-creative/recipes/blog-list.json +0 -394
- package/templates/portfolio-creative/recipes/blog-see-all.json +0 -50
- package/templates/portfolio-creative/recipes/events-inline-list.json +0 -228
- package/templates/portfolio-creative/recipes/events-inline.json +0 -309
- package/templates/portfolio-creative/recipes/faq-list.json +0 -503
- package/templates/portfolio-creative/recipes/groups-list.json +0 -196
- package/templates/portfolio-creative/recipes/members-list.json +0 -445
- package/templates/portfolio-creative/recipes/plans-card.json +0 -811
- package/templates/portfolio-creative/recipes/products-carousel.json +0 -141
- package/templates/portfolio-creative/recipes/products-grid.json +0 -143
- package/templates/portfolio-creative/recipes/programs-card.json +0 -254
- package/templates/portfolio-creative/recipes/programs-carousel.json +0 -234
- package/templates/portfolio-creative/recipes/programs-filters.json +0 -94
- package/templates/portfolio-creative/recipes/programs-participant-carousel.json +0 -257
- package/templates/portfolio-creative/recipes/programs-see-all.json +0 -43
- package/templates/portfolio-creative/recipes/section-error.json +0 -58
- package/templates/portfolio-creative/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +0 -33
- package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +0 -76
- package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/restaurant/recipes/announcement-card.json +0 -72
- package/templates/restaurant/recipes/blog-hero.json +0 -95
- package/templates/restaurant/recipes/blog-list-thumb-start.json +0 -394
- package/templates/restaurant/recipes/blog-list.json +0 -394
- package/templates/restaurant/recipes/blog-see-all.json +0 -50
- package/templates/restaurant/recipes/events-inline-list.json +0 -228
- package/templates/restaurant/recipes/events-inline.json +0 -309
- package/templates/restaurant/recipes/faq-list.json +0 -503
- package/templates/restaurant/recipes/groups-list.json +0 -196
- package/templates/restaurant/recipes/members-list.json +0 -445
- package/templates/restaurant/recipes/plans-card.json +0 -811
- package/templates/restaurant/recipes/products-carousel.json +0 -141
- package/templates/restaurant/recipes/products-grid.json +0 -143
- package/templates/restaurant/recipes/programs-card.json +0 -254
- package/templates/restaurant/recipes/programs-carousel.json +0 -234
- package/templates/restaurant/recipes/programs-filters.json +0 -94
- package/templates/restaurant/recipes/programs-participant-carousel.json +0 -257
- package/templates/restaurant/recipes/programs-see-all.json +0 -43
- package/templates/restaurant/recipes/section-error.json +0 -58
- package/templates/restaurant/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/restaurant/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/restaurant/tier5-src/_shared/events-card.ts +0 -33
- package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/restaurant/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/restaurant/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/restaurant/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/restaurant/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/restaurant/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/restaurant/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/restaurant/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/restaurant/tier5-src/_shared/products-section.ts +0 -76
- package/templates/restaurant/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/restaurant/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/restaurant/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/retail-store/recipes/announcement-card.json +0 -72
- package/templates/retail-store/recipes/blog-hero.json +0 -95
- package/templates/retail-store/recipes/blog-list-thumb-start.json +0 -394
- package/templates/retail-store/recipes/blog-list.json +0 -394
- package/templates/retail-store/recipes/blog-see-all.json +0 -50
- package/templates/retail-store/recipes/events-inline-list.json +0 -228
- package/templates/retail-store/recipes/events-inline.json +0 -309
- package/templates/retail-store/recipes/faq-list.json +0 -503
- package/templates/retail-store/recipes/groups-list.json +0 -196
- package/templates/retail-store/recipes/members-list.json +0 -445
- package/templates/retail-store/recipes/plans-card.json +0 -811
- package/templates/retail-store/recipes/products-carousel.json +0 -141
- package/templates/retail-store/recipes/products-grid.json +0 -143
- package/templates/retail-store/recipes/programs-card.json +0 -254
- package/templates/retail-store/recipes/programs-carousel.json +0 -234
- package/templates/retail-store/recipes/programs-filters.json +0 -94
- package/templates/retail-store/recipes/programs-participant-carousel.json +0 -257
- package/templates/retail-store/recipes/programs-see-all.json +0 -43
- package/templates/retail-store/recipes/section-error.json +0 -58
- package/templates/retail-store/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/retail-store/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/retail-store/tier5-src/_shared/event-registration.ts +0 -86
- package/templates/retail-store/tier5-src/_shared/events-card.ts +0 -33
- package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/retail-store/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/retail-store/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/retail-store/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/retail-store/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/retail-store/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/retail-store/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/retail-store/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/retail-store/tier5-src/_shared/products-section.ts +0 -76
- package/templates/retail-store/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/retail-store/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/retail-store/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/yoga-studio/recipes/announcement-card.json +0 -72
- package/templates/yoga-studio/recipes/blog-hero.json +0 -95
- package/templates/yoga-studio/recipes/blog-list-thumb-start.json +0 -394
- package/templates/yoga-studio/recipes/blog-list.json +0 -394
- package/templates/yoga-studio/recipes/blog-see-all.json +0 -50
- package/templates/yoga-studio/recipes/events-inline-list.json +0 -228
- package/templates/yoga-studio/recipes/events-inline.json +0 -309
- package/templates/yoga-studio/recipes/faq-list.json +0 -503
- package/templates/yoga-studio/recipes/groups-list.json +0 -196
- package/templates/yoga-studio/recipes/members-list.json +0 -445
- package/templates/yoga-studio/recipes/plans-card.json +0 -811
- package/templates/yoga-studio/recipes/products-carousel.json +0 -141
- package/templates/yoga-studio/recipes/products-grid.json +0 -143
- package/templates/yoga-studio/recipes/programs-card.json +0 -254
- package/templates/yoga-studio/recipes/programs-carousel.json +0 -234
- package/templates/yoga-studio/recipes/programs-filters.json +0 -94
- package/templates/yoga-studio/recipes/programs-participant-carousel.json +0 -257
- package/templates/yoga-studio/recipes/programs-see-all.json +0 -43
- package/templates/yoga-studio/recipes/section-error.json +0 -58
- package/templates/yoga-studio/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/yoga-studio/tier5-src/_shared/events-card.ts +0 -33
- package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/yoga-studio/tier5-src/_shared/products-section.ts +0 -76
- package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +0 -21
- /package/templates/{community-club → brandy}/tier5-src/_shared/detail-presence.ts +0 -0
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
// What a members-directory row shows beyond name and photo: the role line, the member's badges and the
|
|
2
|
-
// Follow control. One call per page for each source, and none of it may fail the directory: a refused or
|
|
3
|
-
// failed read leaves that row element out (no chip, a plain Follow), never an error in place of the list.
|
|
4
|
-
import { query as queryBadges, queryBadgeAssignments, type WixBadge } from "@himalaya/wix-badges";
|
|
5
|
-
import { getMyMember, listFollowedMembers, queryMemberActivity } from "@himalaya/wix-members";
|
|
6
|
-
import { compareIso } from "./engine-intl.js";
|
|
7
|
-
import { copyParam } from "./himi-copy.js";
|
|
8
|
-
import { activityText } from "./member-activity.js";
|
|
9
|
-
import type { ReadAccess } from "./member-read.js";
|
|
10
|
-
|
|
11
|
-
/** The One App row draws ONE badge chip and a "+N" chip for the rest. */
|
|
12
|
-
const MAX_BADGE_CHIPS = 1;
|
|
13
|
-
const PAGE_LIMIT = 100;
|
|
14
|
-
const CATALOG_PAGES = 5;
|
|
15
|
-
const ASSIGNMENT_PAGES = 10;
|
|
16
|
-
/** The chip's text is white (`textOnAccent`); this is the least contrast it may have against the badge colour. */
|
|
17
|
-
const MIN_CONTRAST = 3;
|
|
18
|
-
|
|
19
|
-
export interface MemberRowExtras {
|
|
20
|
-
/** Role line, then the last-active line when there is one. The role line reads "Member" for everyone: the activity route
|
|
21
|
-
* also answers a role (an admin's is "ADMIN"), but the One App's wording for the other roles is not recorded here,
|
|
22
|
-
* so none is guessed. */
|
|
23
|
-
subtitle: string;
|
|
24
|
-
badgeTitle: string; badgeColor: string; noBadge: boolean;
|
|
25
|
-
badgeMore: string; noBadgeMore: boolean;
|
|
26
|
-
followLabel: string; isFollowing: boolean;
|
|
27
|
-
/** Hidden for a Visitor (who gets the sign-in variant) and on the signed-in member's own row. */
|
|
28
|
-
hideFollow: boolean;
|
|
29
|
-
/** Only a Visitor sees this one: Follow needs a member, so the tap opens sign-in. */
|
|
30
|
-
hideSignInFollow: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function followLabel(isFollowing: boolean): string {
|
|
34
|
-
return copyParam(isFollowing ? "members.followingCta" : "members.followCta", isFollowing ? "Following" : "Follow");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface BadgeInfo { title: string; color: string; rank: number }
|
|
38
|
-
|
|
39
|
-
function hexRgb(value: string | undefined): [number, number, number] | undefined {
|
|
40
|
-
const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec((value ?? "").trim());
|
|
41
|
-
if (!m) return undefined;
|
|
42
|
-
const h = m[1].length === 3 ? m[1].split("").map(c => c + c).join("") : m[1];
|
|
43
|
-
return [0, 2, 4].map(i => parseInt(h.slice(i, i + 2), 16)) as [number, number, number];
|
|
44
|
-
}
|
|
45
|
-
function luminance([r, g, b]: [number, number, number]): number {
|
|
46
|
-
const lin = (v: number) => { const c = v / 255; return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4); };
|
|
47
|
-
return 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b);
|
|
48
|
-
}
|
|
49
|
-
/** The badge colour as `#rrggbb`, darkened until white text on it reads (a pastel chip would otherwise
|
|
50
|
-
* lose its label in one of the two themes). "" when the badge carries no usable colour, so the row's
|
|
51
|
-
* token background shows instead. */
|
|
52
|
-
export function chipColor(value: string | undefined): string {
|
|
53
|
-
let rgb = hexRgb(value);
|
|
54
|
-
if (!rgb) return "";
|
|
55
|
-
while ((1.05 / (luminance(rgb) + 0.05)) < MIN_CONTRAST && (rgb[0] || rgb[1] || rgb[2])) {
|
|
56
|
-
rgb = rgb.map(c => Math.floor(c * 0.9)) as [number, number, number];
|
|
57
|
-
}
|
|
58
|
-
return "#" + rgb.map(c => c.toString(16).padStart(2, "0")).join("");
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
let catalogTenant = "";
|
|
62
|
-
let catalog: Map<string, BadgeInfo> | undefined;
|
|
63
|
-
|
|
64
|
-
/** The site's badges, newest first: that is the order the One App picks a member's first chip in. */
|
|
65
|
-
async function badgeCatalog(tenant: string): Promise<Map<string, BadgeInfo>> {
|
|
66
|
-
if (catalog && catalogTenant === tenant) return catalog;
|
|
67
|
-
const badges: WixBadge[] = [];
|
|
68
|
-
let cursor: string | undefined;
|
|
69
|
-
for (let page = 0; page < CATALOG_PAGES; page++) {
|
|
70
|
-
const res = await queryBadges({ query: { cursorPaging: cursor ? { cursor } : { limit: PAGE_LIMIT } } });
|
|
71
|
-
badges.push(...(res.badges ?? []));
|
|
72
|
-
cursor = res.pagingMetadata?.hasNext ? res.pagingMetadata.cursors?.next : undefined;
|
|
73
|
-
if (!cursor) break;
|
|
74
|
-
}
|
|
75
|
-
if (cursor) throw new Error("Badge catalog is longer than the pages read");
|
|
76
|
-
const newestFirst = badges.filter(b => b.id && b.title?.trim())
|
|
77
|
-
.sort((a, b) => compareIso(String(b.createdDate ?? ""), String(a.createdDate ?? "")));
|
|
78
|
-
catalogTenant = tenant;
|
|
79
|
-
return catalog = new Map(newestFirst.map((b, rank) => [b.id as string, { title: (b.title as string).trim(), color: chipColor(b.backgroundColor), rank }]));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** memberId → badge ids, for the page's members. A cursor request carries the cursor alone: the service
|
|
83
|
-
* refuses (400) a follow-up page that repeats the filter or the limit. A page the pages cap cuts short is refused whole: a
|
|
84
|
-
* partial list would show the wrong first chip and a wrong "+N". */
|
|
85
|
-
export async function badgesByMember(ids: string[]): Promise<Map<string, string[]>> {
|
|
86
|
-
const byMember = new Map<string, string[]>();
|
|
87
|
-
let cursor: string | undefined;
|
|
88
|
-
for (let page = 0; page < ASSIGNMENT_PAGES; page++) {
|
|
89
|
-
const res = await queryBadgeAssignments({ query: cursor ? { cursorPaging: { cursor } } : { filter: { memberId: { $in: ids } }, cursorPaging: { limit: PAGE_LIMIT } } });
|
|
90
|
-
for (const a of res.badgeAssignments ?? []) {
|
|
91
|
-
if (!a.memberId || !a.badgeId) continue;
|
|
92
|
-
const held = byMember.get(a.memberId) ?? [];
|
|
93
|
-
held.push(a.badgeId); byMember.set(a.memberId, held);
|
|
94
|
-
}
|
|
95
|
-
cursor = res.pagingMetadata?.hasNext ? res.pagingMetadata.cursors?.next : undefined;
|
|
96
|
-
if (!cursor) return byMember;
|
|
97
|
-
}
|
|
98
|
-
throw new Error("Badge assignments are longer than the pages read");
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
async function readBadges(ids: string[], tenant: string): Promise<Map<string, BadgeInfo[]>> {
|
|
102
|
-
const [known, held] = await Promise.all([badgeCatalog(tenant), badgesByMember(ids)]);
|
|
103
|
-
const result = new Map<string, BadgeInfo[]>();
|
|
104
|
-
for (const [memberId, badgeIds] of held) {
|
|
105
|
-
const badges = badgeIds.map(id => known.get(id)).filter((b): b is BadgeInfo => !!b).sort((a, b) => a.rank - b.rank);
|
|
106
|
-
if (badges.length) result.set(memberId, badges);
|
|
107
|
-
}
|
|
108
|
-
return result;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/** memberId → "Active 11h ago" etc., for the members the One App service knows and has something to say about.
|
|
112
|
-
* An older native build refuses the route; that leaves the activity line out and nothing else. */
|
|
113
|
-
export async function readActivity(ids: string[]): Promise<Map<string, string>> {
|
|
114
|
-
return (await readMemberActivity(ids)).texts;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/** The same read, plus the members the service answered for: one it answered for with nothing to say (never opened the app) is
|
|
118
|
-
* known and shows no line, which is different from one it did not answer for at all. */
|
|
119
|
-
export async function readMemberActivity(ids: string[]): Promise<{ texts: Map<string, string>; known: Set<string> }> {
|
|
120
|
-
const texts = new Map<string, string>();
|
|
121
|
-
const known = new Set<string>();
|
|
122
|
-
for (const activity of await queryMemberActivity(ids)) {
|
|
123
|
-
known.add(activity.id);
|
|
124
|
-
const text = activityText(activity);
|
|
125
|
-
if (text) texts.set(activity.id, text);
|
|
126
|
-
}
|
|
127
|
-
return { texts, known };
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
async function readFollowed(ids: string[], access: ReadAccess): Promise<Set<string>> {
|
|
131
|
-
// Follow state is the signed-in member's own; a Visitor has none to read.
|
|
132
|
-
return access.member.email ? new Set(await listFollowedMembers(ids)) : new Set();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
let selfScope = "";
|
|
136
|
-
let selfId = "";
|
|
137
|
-
async function ownMemberId(access: ReadAccess): Promise<string> {
|
|
138
|
-
if (!access.member.email) return "";
|
|
139
|
-
const scope = JSON.stringify([access.tenant, access.member.email]);
|
|
140
|
-
if (selfScope !== scope) {
|
|
141
|
-
const id = (await getMyMember({ fieldsets: ["PUBLIC"] })).member?.id ?? "";
|
|
142
|
-
// An answer without a member is not a lookup to remember: the next page asks again, so the member's own row
|
|
143
|
-
// does not keep a Follow button for the rest of the session.
|
|
144
|
-
if (!id) return "";
|
|
145
|
-
selfId = id;
|
|
146
|
-
selfScope = scope;
|
|
147
|
-
}
|
|
148
|
-
return selfId;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const attempt = async <T>(read: Promise<T>, fallback: T): Promise<T> => { try { return await read; } catch { return fallback; } };
|
|
152
|
-
|
|
153
|
-
/** The per-row extras for one page of members. Each source fails on its own. */
|
|
154
|
-
export async function memberRowExtras(ids: string[], access: ReadAccess): Promise<(id: string) => MemberRowExtras> {
|
|
155
|
-
const [badges, activity, followed, self] = await Promise.all([
|
|
156
|
-
attempt(readBadges(ids, access.tenant), new Map<string, BadgeInfo[]>()),
|
|
157
|
-
attempt(readActivity(ids), new Map<string, string>()),
|
|
158
|
-
attempt(readFollowed(ids, access), new Set<string>()),
|
|
159
|
-
attempt(ownMemberId(access), ""),
|
|
160
|
-
]);
|
|
161
|
-
const visitor = !access.member.email;
|
|
162
|
-
const role = copyParam("members.roleMember", "Member");
|
|
163
|
-
return (id) => {
|
|
164
|
-
const held = badges.get(id) ?? [];
|
|
165
|
-
const more = held.length - MAX_BADGE_CHIPS;
|
|
166
|
-
const isFollowing = followed.has(id);
|
|
167
|
-
return {
|
|
168
|
-
subtitle: [role, activity.get(id)].filter(Boolean).join(" · "),
|
|
169
|
-
badgeTitle: held[0]?.title ?? "", badgeColor: held[0]?.color ?? "", noBadge: !held.length,
|
|
170
|
-
badgeMore: more > 0 ? `+${more}` : "", noBadgeMore: more <= 0,
|
|
171
|
-
followLabel: followLabel(isFollowing), isFollowing,
|
|
172
|
-
hideFollow: visitor || id === self, hideSignInFollow: !visitor,
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// The pure pieces of a members directory row: the activity line and a badge's theme color. No SDK imports, so they run
|
|
2
|
-
// (and are tested) outside a worker bundle.
|
|
3
|
-
import { copyParam, copyTemplate } from "./himi-copy.js";
|
|
4
|
-
import { formatDateMedium } from "./engine-intl.js";
|
|
5
|
-
|
|
6
|
-
const MINUTE = 60_000;
|
|
7
|
-
const HOUR = 60 * MINUTE;
|
|
8
|
-
const DAY = 24 * HOUR;
|
|
9
|
-
|
|
10
|
-
/** Theme colors a badge's own color is matched to: the descriptor takes a token name, never a hex. */
|
|
11
|
-
const TOKEN_COLORS: Array<[token: string, rgb: [number, number, number]]> = [
|
|
12
|
-
["accentPrimary", [47, 125, 225]], ["success", [46, 157, 87]], ["warning", [224, 161, 0]],
|
|
13
|
-
["danger", [214, 69, 69]], ["textSecondary", [107, 114, 128]],
|
|
14
|
-
];
|
|
15
|
-
/** The theme color closest to a badge's hex background; a color that is not a hex is the neutral one. */
|
|
16
|
-
export function badgeToken(hex: string | undefined): string {
|
|
17
|
-
const match = /^#?([0-9a-f]{6})$/i.exec((hex ?? "").trim());
|
|
18
|
-
if (!match) return "textSecondary";
|
|
19
|
-
const value = parseInt(match[1]!, 16);
|
|
20
|
-
const rgb = [(value >> 16) & 255, (value >> 8) & 255, value & 255];
|
|
21
|
-
let best = TOKEN_COLORS[0]!;
|
|
22
|
-
let bestDistance = Infinity;
|
|
23
|
-
for (const entry of TOKEN_COLORS) {
|
|
24
|
-
const distance = entry[1].reduce((sum, channel, i) => sum + (channel - rgb[i]!) ** 2, 0);
|
|
25
|
-
if (distance < bestDistance) { best = entry; bestDistance = distance; }
|
|
26
|
-
}
|
|
27
|
-
return best[0];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/** "Active 11h ago" within a day, "Last seen <date>" after; "" with no login date (or one in the future). */
|
|
31
|
-
export function activityLine(lastLogin: string | undefined, now: number): string {
|
|
32
|
-
const at = lastLogin ? Date.parse(lastLogin) : NaN;
|
|
33
|
-
if (!Number.isFinite(at) || at > now) return "";
|
|
34
|
-
const age = now - at;
|
|
35
|
-
if (age < MINUTE) return copyParam("members.activeNow", "Active now");
|
|
36
|
-
if (age < HOUR) return copyTemplate("members.activeMinutes", "Active {n}m ago", { n: Math.floor(age / MINUTE) });
|
|
37
|
-
if (age < DAY) return copyTemplate("members.activeHours", "Active {n}h ago", { n: Math.floor(age / HOUR) });
|
|
38
|
-
return copyTemplate("members.lastSeen", "Last seen {date}", { date: formatDateMedium(new Date(at)) });
|
|
39
|
-
}
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
// Public site-member directory as a registrable service. Search, sorting, totals and offset paging match OneApp's
|
|
2
|
-
// Members v1 query; no owner roster or build-time count is substituted. The One App row's extras are opt-in and each
|
|
3
|
-
// is read defensively: the role line ("Member · Active 11h ago" / "Last seen Nov 6, 2025"), the member's badges as
|
|
4
|
-
// colored chips with a "+N" overflow, and a Follow control. A fact the site does not return is hidden, never invented.
|
|
5
|
-
import { defineService } from "@himalaya/state";
|
|
6
|
-
import { queryMembers, getMyFollowing, followMember, unfollowMember, type WixMember } from "@himalaya/wix-members";
|
|
7
|
-
import { query as queryBadges, type WixBadge } from "@himalaya/wix-badges";
|
|
8
|
-
import { wixMediaUrl, type WixImageSize } from "@himalaya/wix-media";
|
|
9
|
-
import { createCollectionQuery } from "./collection-query.js";
|
|
10
|
-
import { readAccess, assertReadAccess, readAccessDenied, type ReadAccess } from "./member-read.js";
|
|
11
|
-
import { memberAccessChanged } from "./member-access.js";
|
|
12
|
-
// The paged badge-assignments read (POST /badges/v4/assignments/query; the generated listMembersBadgeIds route answers 404 live).
|
|
13
|
-
import { badgesByMember, readMemberActivity } from "./member-row-extras.js";
|
|
14
|
-
import { withEmptyFlags } from "./empty-flags.js";
|
|
15
|
-
import { stashCopy, copyParam, copyTemplate, copyPlural } from "./himi-copy.js";
|
|
16
|
-
import { activityLine, badgeToken } from "./members-directory-view.js";
|
|
17
|
-
|
|
18
|
-
export interface MembersDirectoryOptions {
|
|
19
|
-
/** "Member" under the name. */
|
|
20
|
-
showRole?: boolean;
|
|
21
|
-
/** "Active 11h ago" / "Last seen <date>", from the member's last login. */
|
|
22
|
-
showActivity?: boolean;
|
|
23
|
-
/** The member's badges as colored chips (the first three and a "+N"). */
|
|
24
|
-
showBadges?: boolean;
|
|
25
|
-
/** A Follow control on each row. */
|
|
26
|
-
showFollow?: boolean;
|
|
27
|
-
/** A letter heading above each initial's group. Default on. */
|
|
28
|
-
letterBands?: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** A 40pt row avatar, at 3x: a Wix media reference becomes a fetchable, avatar-sized URL. */
|
|
32
|
-
const AVATAR_IMAGE: WixImageSize = { width: 120, height: 120, quality: 85 };
|
|
33
|
-
/** One chip and a "+N" for the rest, as the original shows: three chips in the name column collapsed the third into a tall thin bar on a device. */
|
|
34
|
-
const BADGE_SLOTS = 1;
|
|
35
|
-
const BADGE_PAGE = 100;
|
|
36
|
-
/** How many catalog pages are read before the catalog is refused as too long. */
|
|
37
|
-
const BADGE_PAGES = 5;
|
|
38
|
-
interface Chip { id: string; label: string; token: string }
|
|
39
|
-
interface Row {
|
|
40
|
-
id: string; name: string; subtitle: string; initial: string; photo: string; sectionTitle: string;
|
|
41
|
-
role: string; hasRole: boolean; activity: string; hasActivity: boolean; roleLine: string; hasRoleLine: boolean; noRoleLine: boolean;
|
|
42
|
-
badges: Chip[]; hasBadges: boolean; noBadges: boolean; badgeOverflow: string; hasOverflow: boolean; noOverflow: boolean;
|
|
43
|
-
badge1Label: string; badge1Token: string; hasBadge1: boolean; noBadge1: boolean;
|
|
44
|
-
canFollow: boolean; noFollow: boolean; isFollowing: boolean; followLabel: string;
|
|
45
|
-
}
|
|
46
|
-
interface S {
|
|
47
|
-
status: "loading" | "ready" | "error";
|
|
48
|
-
members: Row[]; emptyText: string;
|
|
49
|
-
query: string; total: number | null; searchLabel: string; searchPlaceholder: string;
|
|
50
|
-
nextCursor: string; noMore: boolean; noPageError: boolean;
|
|
51
|
-
error: string; notErrored: boolean; notLoading: boolean; hideSearch: boolean;
|
|
52
|
-
actionMessage: string;
|
|
53
|
-
}
|
|
54
|
-
const PAGE_SIZE = 50;
|
|
55
|
-
const SEARCH_FIELDS = ["contact.firstName", "contact.lastName", "profile.nickname"];
|
|
56
|
-
|
|
57
|
-
function name(m: WixMember): string {
|
|
58
|
-
const nick = m.profile?.nickname?.trim();
|
|
59
|
-
if (nick) return nick;
|
|
60
|
-
const full = [m.contact?.firstName, m.contact?.lastName].filter(Boolean).join(" ").trim();
|
|
61
|
-
return full || "Member";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** What the page's extra reads found: unknown stays absent. */
|
|
65
|
-
interface Extras { badges: Map<string, Chip[]>; following: Set<string> | undefined; /** "Active 4h ago" / "Last seen …" per member from the One App members service, and the members it answered for. */ activity: { texts: Map<string, string>; known: Set<string> } | undefined }
|
|
66
|
-
|
|
67
|
-
export function registerMembersDirectory(serviceName: string, options: MembersDirectoryOptions = {}) {
|
|
68
|
-
const letterBands = options.letterBands !== false;
|
|
69
|
-
let directoryAccess: ReadAccess | undefined;
|
|
70
|
-
// Set once the reader has typed a search: from then on the field stays mounted, even while a cleared search
|
|
71
|
-
// reloads the full directory (no rows, no query yet), so it never unmounts and loses focus mid-edit.
|
|
72
|
-
let searched = false;
|
|
73
|
-
let badgeCatalog: Map<string, Chip> | undefined;
|
|
74
|
-
// Follow state the reader has changed here, by member id.
|
|
75
|
-
const followed = new Map<string, boolean>();
|
|
76
|
-
let notice = "";
|
|
77
|
-
let signedIn = false;
|
|
78
|
-
|
|
79
|
-
async function badgeDefinitions(): Promise<Map<string, Chip>> {
|
|
80
|
-
if (badgeCatalog) return badgeCatalog;
|
|
81
|
-
// A cursor request carries the cursor alone (the service refuses one that repeats the limit). A catalog longer than the pages read is
|
|
82
|
-
// refused whole: a partial one would drop chips from members who hold the badges past it, with no sign.
|
|
83
|
-
const badges: WixBadge[] = [];
|
|
84
|
-
let cursor: string | undefined;
|
|
85
|
-
for (let page = 0; page < BADGE_PAGES; page++) {
|
|
86
|
-
const response = await queryBadges({ query: { cursorPaging: cursor ? { cursor } : { limit: BADGE_PAGE } } });
|
|
87
|
-
badges.push(...(response.badges ?? []));
|
|
88
|
-
// hasNext with no next cursor is an incomplete answer, not the end: refuse it rather than accept a partial catalog.
|
|
89
|
-
if (response.pagingMetadata?.hasNext && !response.pagingMetadata.cursors?.next) throw new Error("Badge catalog page is incomplete (hasNext without a cursor)");
|
|
90
|
-
cursor = response.pagingMetadata?.hasNext ? response.pagingMetadata.cursors?.next : undefined;
|
|
91
|
-
if (!cursor) break;
|
|
92
|
-
}
|
|
93
|
-
if (cursor) throw new Error("Badge catalog is longer than the pages read");
|
|
94
|
-
badgeCatalog = new Map(badges.filter((b: WixBadge) => b.id && b.title).map((b: WixBadge) => [b.id as string, { id: b.id as string, label: b.title as string, token: badgeToken(b.backgroundColor) }]));
|
|
95
|
-
return badgeCatalog;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
async function extrasFor(members: WixMember[], member: boolean): Promise<Extras> {
|
|
99
|
-
const ids = members.map((m) => m.id);
|
|
100
|
-
const badges = new Map<string, Chip[]>();
|
|
101
|
-
const [badgeRead, followRead, activityRead] = await Promise.allSettled([
|
|
102
|
-
options.showBadges ? Promise.all([badgeDefinitions(), badgesByMember(ids)]) : Promise.resolve(undefined),
|
|
103
|
-
options.showFollow && member ? getMyFollowing(ids) : Promise.resolve(undefined),
|
|
104
|
-
options.showActivity ? readMemberActivity(ids) : Promise.resolve(undefined),
|
|
105
|
-
]);
|
|
106
|
-
// A badge or follow read that fails leaves its chips off the rows; the list itself still loads.
|
|
107
|
-
if (badgeRead.status === "rejected") console.warn("members_directory: the badges could not be read", badgeRead.reason);
|
|
108
|
-
if (followRead.status === "rejected") console.warn("members_directory: the follow state could not be read", followRead.reason);
|
|
109
|
-
if (activityRead.status === "rejected") console.warn("members_directory: the activity could not be read", activityRead.reason);
|
|
110
|
-
if (badgeRead.status === "fulfilled" && badgeRead.value) {
|
|
111
|
-
const [catalog, held] = badgeRead.value;
|
|
112
|
-
for (const [memberId, badgeIds] of held) {
|
|
113
|
-
const chips = badgeIds.flatMap((id) => catalog.get(id) ?? []);
|
|
114
|
-
if (chips.length) badges.set(memberId, chips);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return { badges, following: followRead.status === "fulfilled" ? followRead.value : undefined, activity: activityRead.status === "fulfilled" ? activityRead.value : undefined };
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function row(m: WixMember, extras: Extras, now: number): Row {
|
|
121
|
-
const n = name(m);
|
|
122
|
-
const role = options.showRole ? copyParam("members.roleMember", "Member") : "";
|
|
123
|
-
// The One App members service answers "Active 4h ago" / "Last seen …" for the page. A member it answered for with nothing to say shows no line;
|
|
124
|
-
// the login date is only for a member it did not answer for (an older native build refuses the route).
|
|
125
|
-
const activity = !options.showActivity ? "" : extras.activity?.known.has(m.id) ? extras.activity.texts.get(m.id) ?? "" : activityLine(m.lastLoginDate, now);
|
|
126
|
-
const roleLine = [role, activity].filter(Boolean).join(" · ");
|
|
127
|
-
const chips = extras.badges.get(m.id) ?? [];
|
|
128
|
-
const shown = chips.slice(0, BADGE_SLOTS);
|
|
129
|
-
const overflow = chips.length > BADGE_SLOTS ? `+${chips.length - BADGE_SLOTS}` : "";
|
|
130
|
-
const slot = (i: number) => ({ label: shown[i]?.label ?? "", token: shown[i]?.token ?? "textSecondary", has: !!shown[i] });
|
|
131
|
-
const b1 = slot(0);
|
|
132
|
-
const isFollowing = followed.get(m.id) ?? extras.following?.has(m.id) ?? false;
|
|
133
|
-
// Login emails are not directory subtitles. Only public profile content is presented.
|
|
134
|
-
return {
|
|
135
|
-
id: m.id, name: n, subtitle: "", initial: (n[0] || "#").toUpperCase(), photo: wixMediaUrl(m.profile?.photo?.url, AVATAR_IMAGE) || wixMediaUrl(m.profile?.photo?.id, AVATAR_IMAGE) || "", sectionTitle: "",
|
|
136
|
-
role, hasRole: !!role, activity, hasActivity: !!activity, roleLine, hasRoleLine: !!roleLine, noRoleLine: !roleLine,
|
|
137
|
-
badges: chips, hasBadges: chips.length > 0, noBadges: chips.length === 0, badgeOverflow: overflow, hasOverflow: !!overflow, noOverflow: !overflow,
|
|
138
|
-
badge1Label: b1.label, badge1Token: b1.token, hasBadge1: b1.has, noBadge1: !b1.has,
|
|
139
|
-
canFollow: !!options.showFollow, noFollow: !options.showFollow, isFollowing,
|
|
140
|
-
followLabel: options.showFollow ? isFollowing ? copyParam("members.following", "Following") : copyParam("members.follow", "Follow") : "",
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** A row with the reader's own follow change applied: it wins over a page read that raced the write. */
|
|
145
|
-
const withFollow = (item: Row): Row => {
|
|
146
|
-
const isFollowing = followed.get(item.id);
|
|
147
|
-
if (isFollowing === undefined || !item.canFollow) return item;
|
|
148
|
-
return { ...item, isFollowing, followLabel: isFollowing ? copyParam("members.following", "Following") : copyParam("members.follow", "Follow") };
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
function sections(rows: Row[]): Row[] {
|
|
152
|
-
if (!letterBands) return rows;
|
|
153
|
-
const groups = new Map<string, Row[]>();
|
|
154
|
-
for (const item of rows) {
|
|
155
|
-
const group = groups.get(item.initial) ?? [];
|
|
156
|
-
group.push(item); groups.set(item.initial, group);
|
|
157
|
-
}
|
|
158
|
-
return [...groups.keys()].sort().flatMap(letter => groups.get(letter)!.map((item, index) => ({ ...item, sectionTitle: index ? "" : letter })));
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
const directory = createCollectionQuery<Row>({
|
|
162
|
-
id: item => item.id,
|
|
163
|
-
clearOnError: readAccessDenied,
|
|
164
|
-
errorMessage: (error) => {
|
|
165
|
-
console.warn("members_directory: the members could not be read", error);
|
|
166
|
-
return copyParam("members.loadError", "Members couldn't be loaded.");
|
|
167
|
-
},
|
|
168
|
-
async fetch(criteria, cursor) {
|
|
169
|
-
const offset = cursor ? Number(cursor) : 0;
|
|
170
|
-
if (!Number.isSafeInteger(offset) || offset < 0) throw new Error("Invalid member page offset");
|
|
171
|
-
const access = cursor ? directoryAccess : await readAccess();
|
|
172
|
-
if (!access) throw memberAccessChanged();
|
|
173
|
-
// A first-page read replaces the reader's own follow taps with what the server says: they must not outlive the session or the reader.
|
|
174
|
-
if (!cursor) { directoryAccess = access; followed.clear(); }
|
|
175
|
-
await assertReadAccess(access);
|
|
176
|
-
const response = await queryMembers({ query: {
|
|
177
|
-
filter: { status: "APPROVED", privacyStatus: "PUBLIC" },
|
|
178
|
-
sorting: [{ fieldName: "profile.nickname", order: "ASC" }],
|
|
179
|
-
paging: { limit: PAGE_SIZE, offset },
|
|
180
|
-
}, ...(criteria.query ? { search: { expression: criteria.query, fields: SEARCH_FIELDS } } : {}) });
|
|
181
|
-
await assertReadAccess(access);
|
|
182
|
-
if (access !== directoryAccess) throw memberAccessChanged();
|
|
183
|
-
if (!Array.isArray(response.members) || response.members.some(member => !member?.id)) throw new Error("Invalid member page");
|
|
184
|
-
const metadata = response.metadata;
|
|
185
|
-
if (metadata?.offset !== undefined && metadata.offset !== offset) throw new Error("Mismatched member page offset");
|
|
186
|
-
const total = !metadata?.tooManyToCount && typeof metadata?.total === "number" && Number.isSafeInteger(metadata.total) && metadata.total >= 0
|
|
187
|
-
? metadata.total : undefined;
|
|
188
|
-
const next = offset + response.members.length;
|
|
189
|
-
if (!response.members.length && total !== undefined && total > next) throw new Error("Incomplete member page");
|
|
190
|
-
signedIn = !!access.member.email;
|
|
191
|
-
const extras = await extrasFor(response.members, signedIn);
|
|
192
|
-
const now = Date.now();
|
|
193
|
-
return {
|
|
194
|
-
items: response.members.map(member => row(member, extras, now)), total,
|
|
195
|
-
nextCursor: response.members.length && (total === undefined ? response.members.length === PAGE_SIZE : next < total) ? String(next) : "",
|
|
196
|
-
};
|
|
197
|
-
},
|
|
198
|
-
}, () => { void svc.changed(); });
|
|
199
|
-
|
|
200
|
-
function project(): S {
|
|
201
|
-
const page = directory.getState();
|
|
202
|
-
const loading = page.status === "idle" || page.status === "loading";
|
|
203
|
-
const total = page.total ?? null;
|
|
204
|
-
const failed = page.status === "error";
|
|
205
|
-
return {
|
|
206
|
-
status: failed ? "error" : loading ? "loading" : "ready",
|
|
207
|
-
members: sections(page.items.map(withFollow)), query: page.criteria.query, total,
|
|
208
|
-
searchLabel: total === null ? "" : copyPlural("members.countLabel", "{n, plural, one {# member} other {# members}}", total),
|
|
209
|
-
searchPlaceholder: total === null ? "" : copyTemplate("members.searchWithCount", "Search {count} members", { count: total }),
|
|
210
|
-
emptyText: page.status === "ready" && !page.items.length ? page.criteria.query ? copyParam("members.emptyNoResults", "No results") : copyParam("members.emptyTitle", "No members yet") : "",
|
|
211
|
-
nextCursor: loading || page.loadingMore || page.pageError ? "" : page.nextCursor,
|
|
212
|
-
noMore: !page.nextCursor || loading || page.loadingMore || page.pageError,
|
|
213
|
-
noPageError: !page.pageError,
|
|
214
|
-
error: page.error, notErrored: !failed,
|
|
215
|
-
// The skeleton stands in for rows that are not there yet; a typed search keeps the previous rows on screen
|
|
216
|
-
// while its response is in flight, so it must not paint skeletons above them.
|
|
217
|
-
notLoading: !(loading && !page.items.length),
|
|
218
|
-
// A successful empty SEARCH keeps its field reachable (to clear the query); a directory that is
|
|
219
|
-
// loading or truly empty (no query, no rows) has nothing to search.
|
|
220
|
-
hideSearch: failed || (!page.items.length && !page.criteria.query && !searched),
|
|
221
|
-
actionMessage: notice,
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
const pendingFollows = new Set<string>();
|
|
226
|
-
const svc = defineService<S, {
|
|
227
|
-
load: (s: S, arg?: unknown) => Promise<undefined>;
|
|
228
|
-
filter: (s: S, arg?: unknown) => Promise<undefined>;
|
|
229
|
-
loadMore: (s: S) => Promise<undefined>;
|
|
230
|
-
retry: (s: S) => Promise<undefined>;
|
|
231
|
-
follow: (s: S, arg?: unknown) => Promise<S>;
|
|
232
|
-
changed: (s: S) => S;
|
|
233
|
-
}>(serviceName, withEmptyFlags({
|
|
234
|
-
state: { status: "loading", members: [], emptyText: "", query: "", total: null, searchLabel: "", searchPlaceholder: "", nextCursor: "", noMore: true, noPageError: true,
|
|
235
|
-
error: "", notErrored: true, notLoading: false, hideSearch: true, actionMessage: "" },
|
|
236
|
-
// A restored worker must re-read the current reader/site before showing a roster.
|
|
237
|
-
notHydrated: ["status", "members", "emptyText", "query", "total", "searchLabel", "searchPlaceholder", "nextCursor", "noMore", "noPageError", "error", "notErrored", "notLoading", "hideSearch", "actionMessage"],
|
|
238
|
-
actions: {
|
|
239
|
-
// The screen's onAppear fires on every re-appear (back from a profile): a directory that already loaded keeps its pages and scroll
|
|
240
|
-
// position. Only an empty or failed one reads; retry always does.
|
|
241
|
-
load: async (_s, arg) => { stashCopy(arg); const loaded = directory.getState(); if (loaded.status !== "ready" || !loaded.items.length) await directory.query(loaded.criteria); return undefined; },
|
|
242
|
-
filter: async (_s, arg) => {
|
|
243
|
-
const value = typeof arg === "string" ? arg : (arg as { value?: unknown })?.value;
|
|
244
|
-
if (typeof value === "string" && value.trim()) searched = true;
|
|
245
|
-
await directory.query({ query: typeof value === "string" ? value : "" }); return undefined;
|
|
246
|
-
},
|
|
247
|
-
loadMore: async () => { await directory.loadMore(); return undefined; },
|
|
248
|
-
retry: async () => { await directory.retry(); return undefined; },
|
|
249
|
-
// The row's Follow / Following toggle. A visitor is asked to sign in; the write is confirmed before the label flips.
|
|
250
|
-
follow: async (_s, arg) => {
|
|
251
|
-
const id = (arg as { id?: unknown } | undefined)?.id;
|
|
252
|
-
if (typeof id !== "string" || !id || !options.showFollow || pendingFollows.has(id)) return project();
|
|
253
|
-
if (!signedIn) { notice = copyParam("members.followSignIn", "Sign in to follow members."); return project(); }
|
|
254
|
-
const current = directory.getState().items.find((item) => item.id === id);
|
|
255
|
-
const following = followed.get(id) ?? current?.isFollowing ?? false;
|
|
256
|
-
pendingFollows.add(id);
|
|
257
|
-
try {
|
|
258
|
-
if (following) await unfollowMember(id); else await followMember(id);
|
|
259
|
-
followed.set(id, !following);
|
|
260
|
-
notice = "";
|
|
261
|
-
} catch {
|
|
262
|
-
notice = copyParam("members.followFailed", "Couldn't update. Try again.");
|
|
263
|
-
} finally { pendingFollows.delete(id); }
|
|
264
|
-
return project();
|
|
265
|
-
},
|
|
266
|
-
changed: () => project(),
|
|
267
|
-
},
|
|
268
|
-
}, { members: "noMembers" }));
|
|
269
|
-
// No load at registration: the page's onAppear loads (with the copy pack), so a page-hosted service reads only when its section appears.
|
|
270
|
-
return svc;
|
|
271
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// What a pricing plan says about itself, in the viewer's language: the price cadence / validity line and the
|
|
2
|
-
// plan-detail facts (terms, cancellation, purchase limit, start date). Shared by every worker that shows a plan
|
|
3
|
-
// (the plans list and detail, the inline plans section) so one plan reads the same everywhere.
|
|
4
|
-
//
|
|
5
|
-
// Each duration phrase is ONE plural key per unit, so a translation fits the whole phrase ("por 10 años") instead of
|
|
6
|
-
// gluing translated words around English ones. Its English fallback is the wording the workers always had.
|
|
7
|
-
import type { WixPlan } from "@himalaya/wix-pricing-plans";
|
|
8
|
-
import { copyParam, copyPlural, copyTemplate } from "./himi-copy.js";
|
|
9
|
-
|
|
10
|
-
type PlanUnit = "day" | "week" | "month" | "year";
|
|
11
|
-
const UNITS: readonly PlanUnit[] = ["day", "week", "month", "year"];
|
|
12
|
-
const unitKey = (unit: PlanUnit) => unit[0]!.toUpperCase() + unit.slice(1);
|
|
13
|
-
|
|
14
|
-
// The English wording per unit, as LITERALS: a pinned-language build finds a worker's translatable text by looking for the
|
|
15
|
-
// catalog's English source as a string literal in the bundle, which a pattern assembled from the unit would never be.
|
|
16
|
-
const VALID_FOR: Record<PlanUnit, string> = {
|
|
17
|
-
day: "{n, plural, one {for # day} other {for # days}}",
|
|
18
|
-
week: "{n, plural, one {for # week} other {for # weeks}}",
|
|
19
|
-
month: "{n, plural, one {for # month} other {for # months}}",
|
|
20
|
-
year: "{n, plural, one {for # year} other {for # years}}",
|
|
21
|
-
};
|
|
22
|
-
const EVERY: Record<PlanUnit, string> = {
|
|
23
|
-
day: "{n, plural, one {per day} other {every # days}}",
|
|
24
|
-
week: "{n, plural, one {per week} other {every # weeks}}",
|
|
25
|
-
month: "{n, plural, one {per month} other {every # months}}",
|
|
26
|
-
year: "{n, plural, one {per year} other {every # years}}",
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/** Wix durations name their unit "DAY" / "WEEKS" …: the singular lower-case noun. */
|
|
30
|
-
function singularUnit(unit?: string): string {
|
|
31
|
-
return (unit || "").toLowerCase().replace(/s$/, "");
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** "for 10 years" — a one-time plan valid for a fixed duration. */
|
|
35
|
-
function validFor(count: number, unit: string): string {
|
|
36
|
-
const known = UNITS.find((candidate) => candidate === unit);
|
|
37
|
-
if (!known) return `for ${count} ${unit}${count === 1 ? "" : "s"}`;
|
|
38
|
-
return copyPlural(`plans.validFor${unitKey(known)}`, VALID_FOR[known], count);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** "per month" / "every 3 months" — a subscription's billing cycle. */
|
|
42
|
-
export function every(count: number, unit: string): string {
|
|
43
|
-
const known = UNITS.find((candidate) => candidate === unit);
|
|
44
|
-
if (!known) return count === 1 ? `per ${unit}` : `every ${count} ${unit}s`;
|
|
45
|
-
return copyPlural(`plans.every${unitKey(known)}`, EVERY[known], count);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** The cadence or validity line under a price; "" when the plan names none. */
|
|
49
|
-
export function planPeriodLine(plan: WixPlan): string {
|
|
50
|
-
const pricing = plan.pricing;
|
|
51
|
-
if (pricing?.subscription?.cycleDuration) {
|
|
52
|
-
const count = pricing.subscription.cycleDuration.count ?? 0;
|
|
53
|
-
const unit = singularUnit(pricing.subscription.cycleDuration.unit);
|
|
54
|
-
return count && unit ? every(count, unit) : copyParam("plans.periodRecurring", "recurring");
|
|
55
|
-
}
|
|
56
|
-
if (pricing?.singlePaymentForDuration) {
|
|
57
|
-
const count = pricing.singlePaymentForDuration.count ?? 0;
|
|
58
|
-
const unit = singularUnit(pricing.singlePaymentForDuration.unit);
|
|
59
|
-
return count && unit ? validFor(count, unit) : copyParam("plans.oneTimeFact", "one-time");
|
|
60
|
-
}
|
|
61
|
-
if (pricing?.singlePaymentUnlimited) return copyParam("plans.oneTimeFact", "one-time");
|
|
62
|
-
return "";
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface PlanFacts {
|
|
66
|
-
/** The owner's terms and conditions; collapses when the plan has none. */
|
|
67
|
-
terms: string; noTerms: boolean;
|
|
68
|
-
cancelLine: string; noCancelLine: boolean;
|
|
69
|
-
limitLine: string; noLimitLine: boolean;
|
|
70
|
-
startLine: string; noStartLine: boolean;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** The plan-detail facts beyond name, price, pitch and benefits; every line is "" (and its `no…` flag true) when the plan
|
|
74
|
-
* does not state it. */
|
|
75
|
-
export function planFacts(plan: WixPlan): PlanFacts {
|
|
76
|
-
const terms = (plan.termsAndConditions ?? "").trim();
|
|
77
|
-
const cancelLine = plan.buyerCanCancel === true ? copyParam("plans.buyerCanCancel", "You can cancel this plan yourself.") : "";
|
|
78
|
-
const limit = plan.maxPurchasesPerBuyer ?? 0;
|
|
79
|
-
const limitLine = limit > 0 ? copyTemplate("plans.limitPerBuyer", "Limit: {n} per member.", { n: limit }) : "";
|
|
80
|
-
const startLine = plan.allowFutureStartDate === true ? copyParam("plans.futureStartDate", "You can choose a later start date.") : "";
|
|
81
|
-
return {
|
|
82
|
-
terms, noTerms: !terms,
|
|
83
|
-
cancelLine, noCancelLine: !cancelLine,
|
|
84
|
-
limitLine, noLimitLine: !limitLine,
|
|
85
|
-
startLine, noStartLine: !startLine,
|
|
86
|
-
};
|
|
87
|
-
}
|