@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
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import { orderDelivery, orderOptions } from "../_shared/store-order-presentation.js";
|
|
2
|
+
import { withOnlineWrites } from "../_shared/online-actions.js";
|
|
3
|
+
import { createIapCommerce, classifyCart } from "@himalaya/iap-checkout";
|
|
4
|
+
import { getStoreProduct } from "../_shared/himi-store.js";
|
|
5
|
+
import { iapPriceCopy } from "../_shared/iap-worker.js";
|
|
6
|
+
import { defineService as registerService } from "@himalaya/state";
|
|
7
|
+
import { orderMember, assertOrderMember, ownedOrderCache, orderAccessDenied, orderAccessChanged, type OrderMember } from "../_shared/member-orders.js";
|
|
8
|
+
import { addToCurrentCart, getOrder, searchOrders, type WixOrder } from "@himalaya/wix-ecom";
|
|
9
|
+
import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
|
|
10
|
+
import { formatDateTimeMedium } from "../_shared/engine-intl.js";
|
|
11
|
+
import { get, type DbEntity } from "@himalaya/local-db";
|
|
12
|
+
import {
|
|
13
|
+
IDLE_LIVE_SESSION,
|
|
14
|
+
beginLiveSession,
|
|
15
|
+
liveSessionStarted,
|
|
16
|
+
stopLiveSession,
|
|
17
|
+
type LiveSessionFields,
|
|
18
|
+
} from "../_shared/live-session.js";
|
|
19
|
+
|
|
20
|
+
// Offline-first (data-offline): the order detail is a READ-THROUGH — when the live
|
|
21
|
+
// order fetch fails (offline) fall back to the last-synced row the orders list cached
|
|
22
|
+
// under the `orders` entity, so a previously-seen order still opens (line items aside).
|
|
23
|
+
// DEGRADES GRACEFULLY: the local-db read is wrapped so an app without the
|
|
24
|
+
// `local_database` grant behaves exactly as before (online-only).
|
|
25
|
+
const ENTITY = "orders";
|
|
26
|
+
async function readCachedOrder(id: string, member: OrderMember): Promise<DbEntity | null> {
|
|
27
|
+
if (!member.scope) return null;
|
|
28
|
+
try { const row = await get(ENTITY, id); return ownedOrderCache(row, member) ? row : null; } catch { /* capability not granted → online-only */ return null; }
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface LineRow {
|
|
32
|
+
id: string;
|
|
33
|
+
title: string;
|
|
34
|
+
name: string;
|
|
35
|
+
quantity: string;
|
|
36
|
+
options: string;
|
|
37
|
+
/** Formatted per-line price (fetched with the order; previously discarded). */
|
|
38
|
+
price: string;
|
|
39
|
+
image: string;
|
|
40
|
+
initial: string;
|
|
41
|
+
hasImage: boolean;
|
|
42
|
+
noImage: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** What reorder re-adds: catalog item id + quantity per line (internal). */
|
|
46
|
+
interface ReorderRef {
|
|
47
|
+
appId?: string;
|
|
48
|
+
options?: Record<string, unknown>;
|
|
49
|
+
catalogItemId: string;
|
|
50
|
+
quantity: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface State extends LiveSessionFields {
|
|
54
|
+
status: "loading" | "ready" | "error";
|
|
55
|
+
permissionDenied?: boolean;
|
|
56
|
+
hideLoadError?: boolean;
|
|
57
|
+
hidePermissionError?: boolean;
|
|
58
|
+
/** The order this screen is about. Added for #2050: a followed session has to name
|
|
59
|
+
* its record, and until now the id lived only in `load`'s local scope. */
|
|
60
|
+
id: string;
|
|
61
|
+
title: string;
|
|
62
|
+
placedAt: string;
|
|
63
|
+
deliveryTitle: string;
|
|
64
|
+
deliveryLines: string;
|
|
65
|
+
deliveryMethod: string;
|
|
66
|
+
deliveryAddress: string;
|
|
67
|
+
noDeliveryMethod?: boolean;
|
|
68
|
+
noDeliveryAddress?: boolean;
|
|
69
|
+
noDelivery: boolean;
|
|
70
|
+
fulfillmentStatus: string;
|
|
71
|
+
paymentStatus: string;
|
|
72
|
+
subtotal: string;
|
|
73
|
+
shipping: string;
|
|
74
|
+
tax: string;
|
|
75
|
+
discount: string;
|
|
76
|
+
total: string;
|
|
77
|
+
rows: LineRow[];
|
|
78
|
+
/** Reorder refs (catalog ids + quantities) — drives the reorder CTA. */
|
|
79
|
+
reorderRefs: ReorderRef[];
|
|
80
|
+
canReorder: boolean;
|
|
81
|
+
cannotReorder: boolean;
|
|
82
|
+
reorderMessage: string;
|
|
83
|
+
emptyText: string;
|
|
84
|
+
/** No member session is what stands between the visitor and this order — drives the
|
|
85
|
+
* sign-in CTA, which returns here with `id` once the member has signed in. */
|
|
86
|
+
needsSignIn: boolean;
|
|
87
|
+
noSignIn: boolean;
|
|
88
|
+
isLoading: boolean;
|
|
89
|
+
notLoading: boolean;
|
|
90
|
+
isErrored: boolean;
|
|
91
|
+
notErrored: boolean;
|
|
92
|
+
noEmpty: boolean;
|
|
93
|
+
hideContent: boolean;
|
|
94
|
+
hasShipping: boolean;
|
|
95
|
+
noShipping: boolean;
|
|
96
|
+
hasTax: boolean;
|
|
97
|
+
noTax: boolean;
|
|
98
|
+
hasDiscount: boolean;
|
|
99
|
+
noDiscount: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function inputId(): string {
|
|
103
|
+
// WS-C — `himalaya.input.id` is the PRIMARY contract: hosts thread the row's
|
|
104
|
+
// `id` nav param (himi.open { screenId: "himi_order", id }) into worker input.
|
|
105
|
+
const input = (globalThis as { himalaya?: { input?: { id?: string; screenId?: string } } }).himalaya?.input;
|
|
106
|
+
if (input?.id) return input.id;
|
|
107
|
+
// #570 back-compat for pre-params releases with baked `himi_order_<id>`
|
|
108
|
+
// screenIds — do not author against this.
|
|
109
|
+
const screenId = input?.screenId ?? "";
|
|
110
|
+
return screenId.startsWith("himi_order_") ? screenId.slice("himi_order_".length) : "";
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function formatDate(value?: string): string {
|
|
114
|
+
if (!value) return "";
|
|
115
|
+
const date = new Date(value);
|
|
116
|
+
if (Number.isNaN(date.getTime())) return "";
|
|
117
|
+
// Was a bare `new Intl.DateTimeFormat` with NO guard and no try/catch. QuickJS-ng (watchOS,
|
|
118
|
+
// Wear OS) has no ECMA-402 at all, so on the wrist this threw an uncaught ReferenceError and
|
|
119
|
+
// KILLED the screen — the hard-failure end of the same class as himi-events-detail's price.
|
|
120
|
+
return formatDateTimeMedium(date);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function titleCase(value?: string): string {
|
|
124
|
+
return (value ?? "").replace(/_/g, " ").toLowerCase().replace(/(^|\s)\S/g, (part) => part.toUpperCase());
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function belongsTo(order: WixOrder, email: string): boolean {
|
|
128
|
+
return !!email && (order.buyerInfo?.email ?? "").trim().toLowerCase() === email;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function mediaUrl(value: unknown): string {
|
|
132
|
+
if (!value || typeof value !== "object") return "";
|
|
133
|
+
const item = value as {
|
|
134
|
+
image?: { url?: string } | string;
|
|
135
|
+
media?: {
|
|
136
|
+
mainMedia?: { image?: { url?: string }; thumbnail?: { url?: string }; url?: string };
|
|
137
|
+
items?: Array<{ image?: { url?: string }; thumbnail?: { url?: string }; url?: string }>;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
const directImage = typeof item.image === "string" ? item.image : item.image?.url;
|
|
141
|
+
return directImage
|
|
142
|
+
?? item.media?.mainMedia?.image?.url
|
|
143
|
+
?? item.media?.mainMedia?.thumbnail?.url
|
|
144
|
+
?? item.media?.mainMedia?.url
|
|
145
|
+
?? item.media?.items?.[0]?.image?.url
|
|
146
|
+
?? item.media?.items?.[0]?.thumbnail?.url
|
|
147
|
+
?? item.media?.items?.[0]?.url
|
|
148
|
+
?? "";
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** Formatted per-line price probed off the raw line payload ("" when absent). */
|
|
152
|
+
function linePrice(value: unknown): string {
|
|
153
|
+
const item = value as {
|
|
154
|
+
price?: { formattedAmount?: string };
|
|
155
|
+
totalPriceAfterTax?: { formattedAmount?: string };
|
|
156
|
+
totalPriceBeforeTax?: { formattedAmount?: string };
|
|
157
|
+
} | undefined;
|
|
158
|
+
return item?.totalPriceAfterTax?.formattedAmount
|
|
159
|
+
?? item?.totalPriceBeforeTax?.formattedAmount
|
|
160
|
+
?? (item?.price?.formattedAmount ? copyTemplate("order.unitPrice", "{price} each", { price: item.price.formattedAmount }) : "");
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function lineRows(order: WixOrder): LineRow[] {
|
|
164
|
+
return (order.lineItems ?? []).map((item, index) => {
|
|
165
|
+
const name = item.productName?.original || item.productName?.translated || copyParam("order.itemFallbackName", "Order item");
|
|
166
|
+
const image = mediaUrl(item);
|
|
167
|
+
return {
|
|
168
|
+
id: item.id || `line-${index}`,
|
|
169
|
+
title: name,
|
|
170
|
+
name,
|
|
171
|
+
quantity: copyTemplate("order.quantityLine", "Qty {quantity}", { quantity: item.quantity || 1 }),
|
|
172
|
+
price: linePrice(item),
|
|
173
|
+
options: orderOptions(item),
|
|
174
|
+
image,
|
|
175
|
+
initial: (name.trim()[0] || "O").toUpperCase(),
|
|
176
|
+
hasImage: Boolean(image),
|
|
177
|
+
noImage: !image,
|
|
178
|
+
};
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** Catalog references for the reorder CTA — only store-catalog lines re-add. */
|
|
183
|
+
function reorderRefs(order: WixOrder): ReorderRef[] {
|
|
184
|
+
return (order.lineItems ?? []).flatMap((item) => {
|
|
185
|
+
const ref = (item as { catalogReference?: { catalogItemId?: string; appId?: string; options?: Record<string, unknown> } }).catalogReference;
|
|
186
|
+
const catalogItemId = ref?.catalogItemId;
|
|
187
|
+
return typeof catalogItemId === "string" && catalogItemId
|
|
188
|
+
? [{ catalogItemId, appId: ref.appId, ...(ref.options ? { options: ref.options } : {}), quantity: item.quantity || 1 }]
|
|
189
|
+
: [];
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function derive(state: State): State {
|
|
194
|
+
const hasContent = state.status === "ready" && !!state.title;
|
|
195
|
+
const canReorder = hasContent && state.reorderRefs.length > 0;
|
|
196
|
+
return {
|
|
197
|
+
...state,
|
|
198
|
+
canReorder,
|
|
199
|
+
cannotReorder: !canReorder,
|
|
200
|
+
isLoading: state.status === "loading",
|
|
201
|
+
notLoading: state.status !== "loading",
|
|
202
|
+
hideLoadError: state.status !== "error" || state.permissionDenied === true || state.needsSignIn,
|
|
203
|
+
hidePermissionError: state.status !== "error" || state.permissionDenied !== true || state.needsSignIn,
|
|
204
|
+
isErrored: state.status === "error",
|
|
205
|
+
notErrored: state.status !== "error",
|
|
206
|
+
noEmpty: state.status !== "ready" || hasContent || state.needsSignIn,
|
|
207
|
+
noSignIn: !state.needsSignIn,
|
|
208
|
+
hideContent: !hasContent,
|
|
209
|
+
noDelivery: !state.deliveryLines,
|
|
210
|
+
noDeliveryMethod: !state.deliveryMethod,
|
|
211
|
+
noDeliveryAddress: !state.deliveryAddress,
|
|
212
|
+
hasShipping: !!state.shipping,
|
|
213
|
+
noShipping: !state.shipping,
|
|
214
|
+
hasTax: !!state.tax,
|
|
215
|
+
noTax: !state.tax,
|
|
216
|
+
hasDiscount: !!state.discount,
|
|
217
|
+
noDiscount: !state.discount,
|
|
218
|
+
// #2050 — the live-session fields come from the MODULE, not from the passed
|
|
219
|
+
// state. `clearOrder` and every error branch rebuild state from a fresh set of
|
|
220
|
+
// blank fields, so a value carried only through the argument would be dropped by
|
|
221
|
+
// whichever branch forgot it — and the row would claim the member had stopped
|
|
222
|
+
// following an order still live on their lock screen.
|
|
223
|
+
...liveSession,
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** #2050 — whether this member is following THIS order, held outside the derived
|
|
228
|
+
* state for the reason above. One per worker instance, which is one order. */
|
|
229
|
+
let liveSession: LiveSessionFields = { ...IDLE_LIVE_SESSION };
|
|
230
|
+
|
|
231
|
+
async function findOwnedOrder(id: string, email: string): Promise<WixOrder | undefined> {
|
|
232
|
+
let directAccessError: unknown;
|
|
233
|
+
try {
|
|
234
|
+
const response = await getOrder(id);
|
|
235
|
+
const order = response.order ?? (response as unknown as WixOrder);
|
|
236
|
+
if (order?.id) {
|
|
237
|
+
if (belongsTo(order, email)) return order;
|
|
238
|
+
// Only an authenticated search may recover an unverifiable direct response.
|
|
239
|
+
// Cached summaries cannot establish current ownership when that search fails.
|
|
240
|
+
directAccessError = orderAccessChanged();
|
|
241
|
+
}
|
|
242
|
+
} catch (error) {
|
|
243
|
+
if (orderAccessDenied(error)) directAccessError = error;
|
|
244
|
+
// Search is the compatibility path when direct order reads are unavailable.
|
|
245
|
+
}
|
|
246
|
+
const response = await searchOrders({
|
|
247
|
+
search: {
|
|
248
|
+
filter: { "buyerInfo.email": { $eq: email }, $or: [
|
|
249
|
+
{ id: { $eq: id } },
|
|
250
|
+
...(/^\d+$/.test(id) && Number.isSafeInteger(Number(id)) ? [{ number: { $eq: Number(id) } }] : []),
|
|
251
|
+
] },
|
|
252
|
+
cursorPaging: { limit: 50 },
|
|
253
|
+
sort: [{ fieldName: "createdDate", order: "DESC" }],
|
|
254
|
+
},
|
|
255
|
+
}).catch(error => {
|
|
256
|
+
// A failed compatibility request cannot turn known denial into cached access.
|
|
257
|
+
throw directAccessError ?? error;
|
|
258
|
+
});
|
|
259
|
+
return (response.orders ?? []).find((order) => belongsTo(order, email) && (order.id === id || String(order.number ?? "") === id));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function orderState(order: WixOrder): Partial<State> {
|
|
263
|
+
return {
|
|
264
|
+
...orderDelivery(order),
|
|
265
|
+
title: copyTemplate("order.orderTitle", "Order #{number}", { number: order.number || order.id || "" }),
|
|
266
|
+
placedAt: formatDate(order.createdDate),
|
|
267
|
+
fulfillmentStatus: titleCase(order.fulfillmentStatus) || copyParam("order.statusFallback", "Order placed"),
|
|
268
|
+
paymentStatus: titleCase(order.paymentStatus) || copyParam("order.paymentStatusUnavailable", "Payment status unavailable"),
|
|
269
|
+
subtotal: order.priceSummary?.subtotal?.formattedAmount || "",
|
|
270
|
+
shipping: order.priceSummary?.shipping?.formattedAmount || "",
|
|
271
|
+
tax: order.priceSummary?.tax?.formattedAmount || "",
|
|
272
|
+
discount: order.priceSummary?.discount?.formattedAmount || "",
|
|
273
|
+
total: order.priceSummary?.total?.formattedAmount || copyParam("order.totalUnavailableLabel", "Total unavailable"),
|
|
274
|
+
rows: lineRows(order),
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
let loadVersion = 0;
|
|
279
|
+
let loadedMember: OrderMember | undefined;
|
|
280
|
+
function clearOrder(state: State): State {
|
|
281
|
+
return derive({ ...state, title: "", placedAt: "", deliveryTitle: "", deliveryLines: "", deliveryMethod: "", deliveryAddress: "", fulfillmentStatus: "", paymentStatus: "", subtotal: "", shipping: "", tax: "", discount: "", total: "", rows: [], reorderRefs: [], reorderMessage: "", emptyText: "", needsSignIn: false, permissionDenied: false });
|
|
282
|
+
}
|
|
283
|
+
async function load(state: State, arg?: unknown): Promise<State | undefined> {
|
|
284
|
+
const version = ++loadVersion;
|
|
285
|
+
loadedMember = undefined;
|
|
286
|
+
stashCopy(arg);
|
|
287
|
+
state = clearOrder(state);
|
|
288
|
+
const finish = (next: State) => version === loadVersion ? derive(next) : undefined;
|
|
289
|
+
const id = inputId();
|
|
290
|
+
const member = await orderMember();
|
|
291
|
+
const signInText = copyParam("order.signInEmptyText", "Sign in to view this order.");
|
|
292
|
+
if (!id) return finish({ ...state, status: "ready", emptyText: member.email ? copyParam("order.notFoundEmptyText", "Order not found.") : signInText });
|
|
293
|
+
const signInRequired = (status: State["status"]) => finish({ ...state, id, status, needsSignIn: true, emptyText: signInText });
|
|
294
|
+
if (!member.email) return signInRequired("ready");
|
|
295
|
+
try {
|
|
296
|
+
const order = await findOwnedOrder(id, member.email);
|
|
297
|
+
await assertOrderMember(member);
|
|
298
|
+
if (version !== loadVersion) return undefined;
|
|
299
|
+
if (!order) return finish({ ...state, status: "ready", emptyText: copyParam("order.unavailableEmptyText", "Order details are unavailable.") });
|
|
300
|
+
loadedMember = member;
|
|
301
|
+
return finish({ ...state, ...orderState(order), id, status: "ready", reorderRefs: reorderRefs(order), reorderMessage: "", emptyText: "" });
|
|
302
|
+
} catch (error) {
|
|
303
|
+
if (version !== loadVersion) return undefined;
|
|
304
|
+
try { await assertOrderMember(member); } catch {
|
|
305
|
+
return signInRequired("error");
|
|
306
|
+
}
|
|
307
|
+
const cached = orderAccessDenied(error) ? null : await readCachedOrder(id, member);
|
|
308
|
+
try { await assertOrderMember(member); } catch {
|
|
309
|
+
return signInRequired("error");
|
|
310
|
+
}
|
|
311
|
+
if (cached) {
|
|
312
|
+
return finish({ ...state, status: "ready", title: String(cached.title ?? "") || copyTemplate("order.orderTitle", "Order #{number}", { number: id }),
|
|
313
|
+
placedAt: String(cached.meta ?? ""), fulfillmentStatus: String(cached.status ?? ""),
|
|
314
|
+
total: String(cached.subtitle ?? ""), emptyText: copyParam("order.cachedText", "Saved order summary. Connect to refresh details."),
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
return finish({ ...state, status: "error", permissionDenied: orderAccessDenied(error), emptyText: orderAccessDenied(error)
|
|
318
|
+
? copyParam("order.accessErrorText", "Order details are unavailable for this account.")
|
|
319
|
+
: copyParam("order.loadErrorText", "Order details could not be loaded.") });
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* #2050 — how long a member may follow one order in the background.
|
|
325
|
+
*
|
|
326
|
+
* 24 hours, not "forever": expiry is the only bound that holds when every other arm
|
|
327
|
+
* fails (the app is deleted, the process never runs again, a revocation POST is lost
|
|
328
|
+
* offline), and a delivery a member is actively watching resolves within a day. The
|
|
329
|
+
* registry refuses frames past it and the device refuses them again. Longer than the
|
|
330
|
+
* owner's 12h because a member follows a shipment, not a same-day fulfilment task.
|
|
331
|
+
*/
|
|
332
|
+
const FOLLOW_TTL_SECONDS = 24 * 60 * 60;
|
|
333
|
+
|
|
334
|
+
const reorderPricing = createIapCommerce();
|
|
335
|
+
const defineService = withOnlineWrites(registerService, ["reorder", "follow", "unfollow"], { derive, messageFields: action => action === "reorder" ? ["reorderMessage"] : ["liveNote"] });
|
|
336
|
+
const svc = defineService<State, {
|
|
337
|
+
load: (state: State, arg?: unknown) => Promise<State | undefined>;
|
|
338
|
+
retry: (state: State) => Promise<State | undefined>;
|
|
339
|
+
reorder: (state: State) => Promise<State | undefined>;
|
|
340
|
+
follow: (state: State) => State | undefined;
|
|
341
|
+
onFollowStarted: (state: State, activityId?: string) => State;
|
|
342
|
+
unfollow: (state: State) => State;
|
|
343
|
+
}>("himiBrandedOrder", {
|
|
344
|
+
state: derive({
|
|
345
|
+
status: "loading",
|
|
346
|
+
title: "",
|
|
347
|
+
placedAt: "",
|
|
348
|
+
deliveryTitle: "",
|
|
349
|
+
deliveryLines: "",
|
|
350
|
+
deliveryMethod: "",
|
|
351
|
+
deliveryAddress: "",
|
|
352
|
+
noDelivery: true,
|
|
353
|
+
fulfillmentStatus: "",
|
|
354
|
+
paymentStatus: "",
|
|
355
|
+
subtotal: "",
|
|
356
|
+
shipping: "",
|
|
357
|
+
tax: "",
|
|
358
|
+
discount: "",
|
|
359
|
+
total: "",
|
|
360
|
+
rows: [],
|
|
361
|
+
reorderRefs: [],
|
|
362
|
+
canReorder: false,
|
|
363
|
+
cannotReorder: true,
|
|
364
|
+
reorderMessage: "",
|
|
365
|
+
emptyText: "",
|
|
366
|
+
needsSignIn: false,
|
|
367
|
+
noSignIn: true,
|
|
368
|
+
isLoading: true,
|
|
369
|
+
notLoading: false,
|
|
370
|
+
isErrored: false,
|
|
371
|
+
notErrored: true,
|
|
372
|
+
noEmpty: true,
|
|
373
|
+
hideContent: true,
|
|
374
|
+
hasShipping: false,
|
|
375
|
+
noShipping: true,
|
|
376
|
+
hasTax: false,
|
|
377
|
+
noTax: true,
|
|
378
|
+
hasDiscount: false,
|
|
379
|
+
noDiscount: true,
|
|
380
|
+
id: "",
|
|
381
|
+
...IDLE_LIVE_SESSION,
|
|
382
|
+
}),
|
|
383
|
+
actions: {
|
|
384
|
+
load,
|
|
385
|
+
retry: (state) => load({ ...state, status: "loading", emptyText: "" }),
|
|
386
|
+
// #2050 — follow this order's delivery on the lock screen / status bar. The
|
|
387
|
+
// worker names the RECORD only; the host supplies the account, the site and the
|
|
388
|
+
// push token, so a worker cannot scope a subscription to another member.
|
|
389
|
+
//
|
|
390
|
+
// Guarded on a LOADED order (`!hideContent`) rather than on the id alone: the id
|
|
391
|
+
// survives a failed load, and registering from there would subscribe to a record
|
|
392
|
+
// this member's ownership was never established for — which `findOwnedOrder` and
|
|
393
|
+
// `assertOrderMember` exist to establish.
|
|
394
|
+
// `scheme`: the host app's own URL scheme (a site shell serving this screen registers its customer's,
|
|
395
|
+
// not Branded Lite's), so the activity's tap returns to the app that started it. Absent or malformed:
|
|
396
|
+
// Branded Lite's.
|
|
397
|
+
follow: (state, arg?: unknown) => {
|
|
398
|
+
if (state.liveTracking || !state.id || state.hideContent) return undefined;
|
|
399
|
+
const requested = (arg as { scheme?: unknown } | undefined)?.scheme;
|
|
400
|
+
const scheme = typeof requested === "string" && /^[a-z][a-z0-9+.-]*$/i.test(requested) ? requested : "himalaya-himi-branded-lite";
|
|
401
|
+
liveSession = beginLiveSession({
|
|
402
|
+
activityType: "member_order",
|
|
403
|
+
entityType: "order",
|
|
404
|
+
entityId: state.id,
|
|
405
|
+
headline: state.title || copyParam("order.followHeadline", "Your order"),
|
|
406
|
+
detail: [state.fulfillmentStatus, state.total].filter(Boolean).join(" · "),
|
|
407
|
+
deepLink: `${scheme}://screen/himi_order?id=${encodeURIComponent(state.id)}`,
|
|
408
|
+
ttlSeconds: FOLLOW_TTL_SECONDS,
|
|
409
|
+
startingNote: copyParam("order.followStarting", "Starting…"),
|
|
410
|
+
unavailableNote: copyParam("order.followUnavailable", "This device has no live surface."),
|
|
411
|
+
onStarted: (activityId) => { svc.onFollowStarted(activityId); },
|
|
412
|
+
});
|
|
413
|
+
return derive({ ...state });
|
|
414
|
+
},
|
|
415
|
+
onFollowStarted: (state, activityId) => {
|
|
416
|
+
liveSession = liveSessionStarted(
|
|
417
|
+
activityId ?? "",
|
|
418
|
+
copyParam("order.followActive", "Following this order"),
|
|
419
|
+
copyParam("order.followUnavailable", "This device has no live surface."),
|
|
420
|
+
);
|
|
421
|
+
return derive({ ...state });
|
|
422
|
+
},
|
|
423
|
+
// Ending goes through the capability, which retires the local mapping AND revokes
|
|
424
|
+
// the server subscription — so "stop following" actually stops delivery rather
|
|
425
|
+
// than only hiding the surface.
|
|
426
|
+
unfollow: (state) => {
|
|
427
|
+
liveSession = stopLiveSession(
|
|
428
|
+
state.liveActivityId,
|
|
429
|
+
copyParam("order.followStopped", "No longer following"),
|
|
430
|
+
);
|
|
431
|
+
return derive({ ...state });
|
|
432
|
+
},
|
|
433
|
+
reorder: async (state) => {
|
|
434
|
+
const version = loadVersion;
|
|
435
|
+
const member = loadedMember;
|
|
436
|
+
try { if (!member) throw new Error("No current order"); await assertOrderMember(member); }
|
|
437
|
+
catch { return version === loadVersion ? derive({ ...clearOrder(state), status: "error", emptyText: copyParam("order.signInEmptyText", "Sign in to view this order.") }) : undefined; }
|
|
438
|
+
if (version !== loadVersion) return undefined;
|
|
439
|
+
if (!state.reorderRefs.length) return derive({ ...state, reorderMessage: copyParam("order.reorderNoneMessage", "Nothing on this order can be re-added.") });
|
|
440
|
+
try {
|
|
441
|
+
const refs = state.reorderRefs;
|
|
442
|
+
if (refs.some(ref => ref.appId !== "215238eb-22a5-4c36-9e7b-e7c08025e04e")) return derive({ ...state, reorderMessage: iapPriceCopy("order").purchaseUnavailable });
|
|
443
|
+
await reorderPricing.loadPrices(refs.map(ref => ({ reference: { kind: "storesProduct", id: ref.catalogItemId } })));
|
|
444
|
+
const route = classifyCart(refs.map(ref => ({ route: reorderPricing.pricing.view({ kind: "storesProduct", id: ref.catalogItemId }).route, quantity: ref.quantity })));
|
|
445
|
+
const products = await Promise.all(refs.map(async ref => (await getStoreProduct(ref.catalogItemId)).product));
|
|
446
|
+
if (route !== "regular" || products.some(product => product?.productType?.toLowerCase() !== "physical")) return derive({ ...state, reorderMessage: iapPriceCopy("order").purchaseUnavailable });
|
|
447
|
+
await assertOrderMember(member);
|
|
448
|
+
if (version !== loadVersion) return undefined;
|
|
449
|
+
} catch {
|
|
450
|
+
if (version !== loadVersion) return undefined;
|
|
451
|
+
try { await assertOrderMember(member); }
|
|
452
|
+
catch { return derive({ ...clearOrder(state), status: "error", emptyText: copyParam("order.signInEmptyText", "Sign in to view this order.") }); }
|
|
453
|
+
return derive({ ...state, reorderMessage: iapPriceCopy("order").purchaseUnavailable });
|
|
454
|
+
}
|
|
455
|
+
const results = await Promise.allSettled(
|
|
456
|
+
state.reorderRefs.map((ref) => addToCurrentCart(ref.catalogItemId, ref.quantity, ref.options)),
|
|
457
|
+
);
|
|
458
|
+
// A pending mutation must never restore an older order after navigation or sign-out.
|
|
459
|
+
if (version !== loadVersion) return undefined;
|
|
460
|
+
try { await assertOrderMember(member!); }
|
|
461
|
+
catch { return version === loadVersion ? derive({ ...clearOrder(state), status: "error", emptyText: copyParam("order.signInEmptyText", "Sign in to view this order.") }) : undefined; }
|
|
462
|
+
if (version !== loadVersion) return undefined;
|
|
463
|
+
const added = results.filter((result) => result.status === "fulfilled").length;
|
|
464
|
+
if (!added) return derive({ ...state, reorderMessage: copyParam("order.reorderFailedMessage", "These items could not be added to the cart.") });
|
|
465
|
+
const skipped = state.reorderRefs.length - added;
|
|
466
|
+
return derive({
|
|
467
|
+
...state,
|
|
468
|
+
reorderMessage: skipped
|
|
469
|
+
? `Added ${added} of ${state.reorderRefs.length} items to your cart.`
|
|
470
|
+
: `Added ${added} ${added === 1 ? "item" : "items"} to your cart.`,
|
|
471
|
+
});
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
svc.load();
|
|
477
|
+
export { svc };
|