summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js')
-rw-r--r--node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js b/node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js
new file mode 100644
index 0000000..d12e4ef
--- /dev/null
+++ b/node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js
@@ -0,0 +1,21 @@
+import { withActiveIntent } from "../../foundation/dependencies/active-intent";
+import { buildTodayPageFromRequest, generateTodayPageRequest, prepareRequest as prepareTodayPageRequest, } from "../../common/today/today-controller-util";
+import { injectWebNavigation } from "../../common/web-navigation/inject-web-navigation";
+import { injectSEOData } from "../../api/models/web-renderable-page";
+export const RoutableTodayPageIntentController = {
+ $intentKind: "RoutableTodayPageIntent",
+ async perform(intent, objectGraphWithoutActiveIntent) {
+ return await withActiveIntent(objectGraphWithoutActiveIntent, intent, async (objectGraph) => {
+ var _a;
+ const mediaApiRequest = generateTodayPageRequest(objectGraph);
+ prepareTodayPageRequest(objectGraph, mediaApiRequest, true);
+ const page = await buildTodayPageFromRequest(objectGraph, mediaApiRequest);
+ if (objectGraph.client.isWeb) {
+ injectWebNavigation(objectGraph, page, intent.platform);
+ injectSEOData(page, (_a = objectGraph.seo) === null || _a === void 0 ? void 0 : _a.getSEODataForTodayPage(objectGraph, page, null));
+ }
+ return page;
+ });
+ },
+};
+//# sourceMappingURL=routable-today-page-intent-controller.js.map \ No newline at end of file