@payloadcms/next 3.70.0 → 3.71.0-internal-debug.80dab4c
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/auth/login.js +52 -58
- package/dist/auth/login.js.map +1 -1
- package/dist/auth/logout.js +39 -44
- package/dist/auth/logout.js.map +1 -1
- package/dist/auth/refresh.js +45 -47
- package/dist/auth/refresh.js.map +1 -1
- package/dist/cjs/withPayload.cjs +61 -23
- package/dist/cjs/withPayload.cjs.map +2 -2
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js +9 -15
- package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js +40 -71
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/index.js +65 -59
- package/dist/elements/DocumentHeader/Tabs/Tab/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/index.scss +38 -0
- package/dist/elements/DocumentHeader/Tabs/index.js +80 -70
- package/dist/elements/DocumentHeader/Tabs/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/index.scss +54 -0
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.js +16 -23
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.scss +9 -0
- package/dist/elements/DocumentHeader/Tabs/tabs/index.js +61 -69
- package/dist/elements/DocumentHeader/Tabs/tabs/index.js.map +1 -1
- package/dist/elements/DocumentHeader/index.js +48 -28
- package/dist/elements/DocumentHeader/index.js.map +1 -1
- package/dist/elements/DocumentHeader/index.scss +64 -0
- package/dist/elements/FormHeader/index.js +30 -16
- package/dist/elements/FormHeader/index.js.map +1 -1
- package/dist/elements/FormHeader/index.scss +8 -0
- package/dist/elements/Logo/index.js +19 -34
- package/dist/elements/Logo/index.js.map +1 -1
- package/dist/elements/Nav/NavHamburger/index.js +23 -44
- package/dist/elements/Nav/NavHamburger/index.js.map +1 -1
- package/dist/elements/Nav/NavWrapper/index.js +28 -54
- package/dist/elements/Nav/NavWrapper/index.js.map +1 -1
- package/dist/elements/Nav/NavWrapper/index.scss +27 -0
- package/dist/elements/Nav/SettingsMenuButton/index.js +33 -39
- package/dist/elements/Nav/SettingsMenuButton/index.js.map +1 -1
- package/dist/elements/Nav/SettingsMenuButton/index.scss +11 -0
- package/dist/elements/Nav/getNavPrefs.js +27 -22
- package/dist/elements/Nav/getNavPrefs.js.map +1 -1
- package/dist/elements/Nav/index.client.js +97 -118
- package/dist/elements/Nav/index.client.js.map +1 -1
- package/dist/elements/Nav/index.js +148 -127
- package/dist/elements/Nav/index.js.map +1 -1
- package/dist/elements/Nav/index.scss +173 -0
- package/dist/esbuildEntry.d.ts +5 -0
- package/dist/esbuildEntry.d.ts.map +1 -0
- package/dist/esbuildEntry.js +6 -0
- package/dist/esbuildEntry.js.map +1 -0
- package/dist/exports/auth.js +1 -0
- package/dist/exports/auth.js.map +1 -1
- package/dist/exports/client.js +1 -1
- package/dist/exports/client.js.map +1 -1
- package/dist/exports/layouts.js +1 -0
- package/dist/exports/layouts.js.map +1 -1
- package/dist/exports/routes.js +1 -0
- package/dist/exports/routes.js.map +1 -1
- package/dist/exports/rsc.js +1 -0
- package/dist/exports/rsc.js.map +1 -1
- package/dist/exports/templates.js +1 -0
- package/dist/exports/templates.js.map +1 -1
- package/dist/exports/utilities.js +7 -12
- package/dist/exports/utilities.js.map +1 -1
- package/dist/exports/views.js +1 -0
- package/dist/exports/views.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/layouts/Root/NestProviders.js +21 -20
- package/dist/layouts/Root/NestProviders.js.map +1 -1
- package/dist/layouts/Root/checkDependencies.js +49 -41
- package/dist/layouts/Root/checkDependencies.js.map +1 -1
- package/dist/layouts/Root/index.js +128 -103
- package/dist/layouts/Root/index.js.map +1 -1
- package/dist/prod/styles.css +5 -1
- package/dist/routes/graphql/handler.js +114 -122
- package/dist/routes/graphql/handler.js.map +1 -1
- package/dist/routes/graphql/index.js +1 -0
- package/dist/routes/graphql/index.js.map +1 -1
- package/dist/routes/graphql/playground.js +28 -27
- package/dist/routes/graphql/playground.js.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/rest/index.js +23 -22
- package/dist/routes/rest/index.js.map +1 -1
- package/dist/routes/rest/og/image.js +103 -79
- package/dist/routes/rest/og/image.js.map +1 -1
- package/dist/routes/rest/og/index.js +59 -54
- package/dist/routes/rest/og/index.js.map +1 -1
- package/dist/templates/Default/NavHamburger/index.js +12 -20
- package/dist/templates/Default/NavHamburger/index.js.map +1 -1
- package/dist/templates/Default/Wrapper/index.js +20 -44
- package/dist/templates/Default/Wrapper/index.js.map +1 -1
- package/dist/templates/Default/Wrapper/index.scss +58 -0
- package/dist/templates/Default/index.js +147 -116
- package/dist/templates/Default/index.js.map +1 -1
- package/dist/templates/Default/index.scss +79 -0
- package/dist/templates/Minimal/index.js +26 -17
- package/dist/templates/Minimal/index.js.map +1 -1
- package/dist/templates/Minimal/index.scss +30 -0
- package/dist/utilities/getExistingAuthToken.js +3 -2
- package/dist/utilities/getExistingAuthToken.js.map +1 -1
- package/dist/utilities/getNextRequestI18n.js +12 -13
- package/dist/utilities/getNextRequestI18n.js.map +1 -1
- package/dist/utilities/getPayloadHMR.js +5 -5
- package/dist/utilities/getPayloadHMR.js.map +1 -1
- package/dist/utilities/getPreferences.js +27 -22
- package/dist/utilities/getPreferences.js.map +1 -1
- package/dist/utilities/getRequestLocale.js +13 -14
- package/dist/utilities/getRequestLocale.js.map +1 -1
- package/dist/utilities/getRequestTheme.js +19 -19
- package/dist/utilities/getRequestTheme.js.map +1 -1
- package/dist/utilities/getRouteWithoutAdmin.js +3 -5
- package/dist/utilities/getRouteWithoutAdmin.js.map +1 -1
- package/dist/utilities/handleAuthRedirect.js +22 -36
- package/dist/utilities/handleAuthRedirect.js.map +1 -1
- package/dist/utilities/handleServerFunctions.js +34 -41
- package/dist/utilities/handleServerFunctions.js.map +1 -1
- package/dist/utilities/initReq.js +78 -96
- package/dist/utilities/initReq.js.map +1 -1
- package/dist/utilities/isCustomAdminView.js +22 -26
- package/dist/utilities/isCustomAdminView.js.map +1 -1
- package/dist/utilities/isPublicAdminRoute.js +26 -20
- package/dist/utilities/isPublicAdminRoute.js.map +1 -1
- package/dist/utilities/meta.js +68 -63
- package/dist/utilities/meta.js.map +1 -1
- package/dist/utilities/selectiveCache.js +25 -26
- package/dist/utilities/selectiveCache.js.map +1 -1
- package/dist/utilities/setPayloadAuthCookie.js +19 -22
- package/dist/utilities/setPayloadAuthCookie.js.map +1 -1
- package/dist/utilities/slugify.js +24 -33
- package/dist/utilities/slugify.js.map +1 -1
- package/dist/utilities/timestamp.js +7 -6
- package/dist/utilities/timestamp.js.map +1 -1
- package/dist/views/API/LocaleSelector/index.js +17 -39
- package/dist/views/API/LocaleSelector/index.js.map +1 -1
- package/dist/views/API/RenderJSON/index.js +171 -126
- package/dist/views/API/RenderJSON/index.js.map +1 -1
- package/dist/views/API/RenderJSON/index.scss +129 -0
- package/dist/views/API/index.client.js +290 -197
- package/dist/views/API/index.client.js.map +1 -1
- package/dist/views/API/index.js +7 -2
- package/dist/views/API/index.js.map +1 -1
- package/dist/views/API/index.scss +119 -0
- package/dist/views/API/metadata.js +18 -23
- package/dist/views/API/metadata.js.map +1 -1
- package/dist/views/Account/ResetPreferences/index.js +78 -102
- package/dist/views/Account/ResetPreferences/index.js.map +1 -1
- package/dist/views/Account/Settings/LanguageSelector.js +18 -47
- package/dist/views/Account/Settings/LanguageSelector.js.map +1 -1
- package/dist/views/Account/Settings/index.js +60 -25
- package/dist/views/Account/Settings/index.js.map +1 -1
- package/dist/views/Account/Settings/index.scss +48 -0
- package/dist/views/Account/ToggleTheme/index.js +38 -55
- package/dist/views/Account/ToggleTheme/index.js.map +1 -1
- package/dist/views/Account/index.client.js +16 -32
- package/dist/views/Account/index.client.js.map +1 -1
- package/dist/views/Account/index.js +147 -158
- package/dist/views/Account/index.js.map +1 -1
- package/dist/views/Account/metadata.js +8 -12
- package/dist/views/Account/metadata.js.map +1 -1
- package/dist/views/BrowseByFolder/buildView.js +138 -157
- package/dist/views/BrowseByFolder/buildView.js.map +1 -1
- package/dist/views/BrowseByFolder/index.js +16 -16
- package/dist/views/BrowseByFolder/index.js.map +1 -1
- package/dist/views/BrowseByFolder/metadata.js +13 -15
- package/dist/views/BrowseByFolder/metadata.js.map +1 -1
- package/dist/views/CollectionFolders/buildView.js +122 -142
- package/dist/views/CollectionFolders/buildView.js.map +1 -1
- package/dist/views/CollectionFolders/index.js +16 -16
- package/dist/views/CollectionFolders/index.js.map +1 -1
- package/dist/views/CollectionFolders/metadata.js +18 -21
- package/dist/views/CollectionFolders/metadata.js.map +1 -1
- package/dist/views/CollectionFolders/renderFolderViewSlots.js +58 -61
- package/dist/views/CollectionFolders/renderFolderViewSlots.js.map +1 -1
- package/dist/views/CollectionTrash/index.js +17 -17
- package/dist/views/CollectionTrash/index.js.map +1 -1
- package/dist/views/CollectionTrash/metadata.js +18 -21
- package/dist/views/CollectionTrash/metadata.js.map +1 -1
- package/dist/views/CreateFirstUser/index.client.js +117 -103
- package/dist/views/CreateFirstUser/index.client.js.map +1 -1
- package/dist/views/CreateFirstUser/index.js +87 -81
- package/dist/views/CreateFirstUser/index.js.map +1 -1
- package/dist/views/CreateFirstUser/index.scss +21 -0
- package/dist/views/CreateFirstUser/metadata.js +8 -12
- package/dist/views/CreateFirstUser/metadata.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +147 -138
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +423 -405
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.js +72 -75
- package/dist/views/Dashboard/Default/ModularDashboard/index.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.scss +316 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js +62 -89
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js +40 -47
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +64 -65
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js +164 -147
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js +31 -30
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js +223 -229
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js.map +1 -1
- package/dist/views/Dashboard/Default/index.js +59 -45
- package/dist/views/Dashboard/Default/index.js.map +1 -1
- package/dist/views/Dashboard/index.js +46 -42
- package/dist/views/Dashboard/index.js.map +1 -1
- package/dist/views/Dashboard/metadata.js +10 -14
- package/dist/views/Dashboard/metadata.js.map +1 -1
- package/dist/views/Document/getCustomDocumentViewByKey.js +3 -2
- package/dist/views/Document/getCustomDocumentViewByKey.js.map +1 -1
- package/dist/views/Document/getCustomViewByRoute.js +27 -30
- package/dist/views/Document/getCustomViewByRoute.js.map +1 -1
- package/dist/views/Document/getDocPreferences.js +40 -41
- package/dist/views/Document/getDocPreferences.js.map +1 -1
- package/dist/views/Document/getDocumentData.js +44 -55
- package/dist/views/Document/getDocumentData.js.map +1 -1
- package/dist/views/Document/getDocumentPermissions.js +77 -80
- package/dist/views/Document/getDocumentPermissions.js.map +1 -1
- package/dist/views/Document/getDocumentView.js +313 -283
- package/dist/views/Document/getDocumentView.js.map +1 -1
- package/dist/views/Document/getIsLocked.js +66 -66
- package/dist/views/Document/getIsLocked.js.map +1 -1
- package/dist/views/Document/getMetaBySegment.js +130 -136
- package/dist/views/Document/getMetaBySegment.js.map +1 -1
- package/dist/views/Document/getVersions.js +205 -195
- package/dist/views/Document/getVersions.js.map +1 -1
- package/dist/views/Document/handleServerFunction.js +103 -128
- package/dist/views/Document/handleServerFunction.js.map +1 -1
- package/dist/views/Document/index.js +316 -355
- package/dist/views/Document/index.js.map +1 -1
- package/dist/views/Document/metadata.js +2 -1
- package/dist/views/Document/metadata.js.map +1 -1
- package/dist/views/Document/renderDocumentSlots.js +121 -132
- package/dist/views/Document/renderDocumentSlots.js.map +1 -1
- package/dist/views/Edit/index.js +10 -6
- package/dist/views/Edit/index.js.map +1 -1
- package/dist/views/Edit/metadata.js +36 -46
- package/dist/views/Edit/metadata.js.map +1 -1
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +130 -164
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +1 -1
- package/dist/views/ForgotPassword/index.js +79 -62
- package/dist/views/ForgotPassword/index.js.map +1 -1
- package/dist/views/ForgotPassword/metadata.js +8 -12
- package/dist/views/ForgotPassword/metadata.js.map +1 -1
- package/dist/views/List/createSerializableValue.js +12 -11
- package/dist/views/List/createSerializableValue.js.map +1 -1
- package/dist/views/List/enrichDocsWithVersionStatus.js +86 -86
- package/dist/views/List/enrichDocsWithVersionStatus.js.map +1 -1
- package/dist/views/List/extractRelationshipDisplayValue.js +15 -14
- package/dist/views/List/extractRelationshipDisplayValue.js.map +1 -1
- package/dist/views/List/extractValueOrRelationshipID.js +16 -15
- package/dist/views/List/extractValueOrRelationshipID.js.map +1 -1
- package/dist/views/List/handleGroupBy.js +133 -150
- package/dist/views/List/handleGroupBy.js.map +1 -1
- package/dist/views/List/handleServerFunction.js +98 -121
- package/dist/views/List/handleServerFunction.js.map +1 -1
- package/dist/views/List/index.js +305 -323
- package/dist/views/List/index.js.map +1 -1
- package/dist/views/List/metadata.js +17 -20
- package/dist/views/List/metadata.js.map +1 -1
- package/dist/views/List/renderListViewSlots.js +82 -75
- package/dist/views/List/renderListViewSlots.js.map +1 -1
- package/dist/views/List/resolveAllFilterOptions.js +43 -45
- package/dist/views/List/resolveAllFilterOptions.js.map +1 -1
- package/dist/views/List/transformColumnsToSelect.js +9 -8
- package/dist/views/List/transformColumnsToSelect.js.map +1 -1
- package/dist/views/Login/LoginField/index.js +57 -89
- package/dist/views/Login/LoginField/index.js.map +1 -1
- package/dist/views/Login/LoginForm/index.js +107 -160
- package/dist/views/Login/LoginForm/index.js.map +1 -1
- package/dist/views/Login/LoginForm/index.scss +10 -0
- package/dist/views/Login/index.js +82 -85
- package/dist/views/Login/index.js.map +1 -1
- package/dist/views/Login/index.scss +10 -0
- package/dist/views/Login/metadata.js +8 -12
- package/dist/views/Login/metadata.js.map +1 -1
- package/dist/views/Logout/LogoutClient.js +84 -120
- package/dist/views/Logout/LogoutClient.js.map +1 -1
- package/dist/views/Logout/index.js +29 -29
- package/dist/views/Logout/index.js.map +1 -1
- package/dist/views/Logout/index.scss +25 -0
- package/dist/views/Logout/metadata.js +7 -11
- package/dist/views/Logout/metadata.js.map +1 -1
- package/dist/views/NotFound/index.client.js +71 -82
- package/dist/views/NotFound/index.client.js.map +1 -1
- package/dist/views/NotFound/index.js +72 -73
- package/dist/views/NotFound/index.js.map +1 -1
- package/dist/views/NotFound/index.scss +57 -0
- package/dist/views/NotFound/metadata.js +7 -9
- package/dist/views/NotFound/metadata.js.map +1 -1
- package/dist/views/ResetPassword/ResetPasswordForm/index.js +97 -108
- package/dist/views/ResetPassword/ResetPasswordForm/index.js.map +1 -1
- package/dist/views/ResetPassword/index.js +93 -73
- package/dist/views/ResetPassword/index.js.map +1 -1
- package/dist/views/ResetPassword/index.scss +11 -0
- package/dist/views/ResetPassword/metadata.js +8 -12
- package/dist/views/ResetPassword/metadata.js.map +1 -1
- package/dist/views/Root/attachViewActions.js +18 -23
- package/dist/views/Root/attachViewActions.js.map +1 -1
- package/dist/views/Root/generateCustomViewMetadata.js +19 -21
- package/dist/views/Root/generateCustomViewMetadata.js.map +1 -1
- package/dist/views/Root/getCustomViewByKey.js +12 -14
- package/dist/views/Root/getCustomViewByKey.js.map +1 -1
- package/dist/views/Root/getCustomViewByRoute.js +31 -42
- package/dist/views/Root/getCustomViewByRoute.js.map +1 -1
- package/dist/views/Root/getDocumentViewInfo.js +24 -23
- package/dist/views/Root/getDocumentViewInfo.js.map +1 -1
- package/dist/views/Root/getRouteData.js +333 -325
- package/dist/views/Root/getRouteData.js.map +1 -1
- package/dist/views/Root/index.js +248 -270
- package/dist/views/Root/index.js.map +1 -1
- package/dist/views/Root/isPathMatchingRoute.js +21 -26
- package/dist/views/Root/isPathMatchingRoute.js.map +1 -1
- package/dist/views/Root/metadata.js +176 -181
- package/dist/views/Root/metadata.js.map +1 -1
- package/dist/views/Unauthorized/index.js +54 -46
- package/dist/views/Unauthorized/index.js.map +1 -1
- package/dist/views/Unauthorized/index.scss +14 -0
- package/dist/views/Unauthorized/metadata.js +8 -12
- package/dist/views/Unauthorized/metadata.js.map +1 -1
- package/dist/views/Verify/index.client.js +25 -43
- package/dist/views/Verify/index.client.js.map +1 -1
- package/dist/views/Verify/index.js +69 -64
- package/dist/views/Verify/index.js.map +1 -1
- package/dist/views/Verify/index.scss +16 -0
- package/dist/views/Verify/metadata.js +8 -12
- package/dist/views/Verify/metadata.js.map +1 -1
- package/dist/views/Version/Default/SelectedLocalesContext.js +4 -4
- package/dist/views/Version/Default/SelectedLocalesContext.js.map +1 -1
- package/dist/views/Version/Default/SetStepNav.js +86 -127
- package/dist/views/Version/Default/SetStepNav.js.map +1 -1
- package/dist/views/Version/Default/index.js +380 -236
- package/dist/views/Version/Default/index.js.map +1 -1
- package/dist/views/Version/Default/index.scss +170 -0
- package/dist/views/Version/Default/types.js +2 -1
- package/dist/views/Version/Default/types.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +102 -119
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.scss +81 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +78 -73
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +363 -408
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +40 -51
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js +35 -67
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.scss +12 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +59 -56
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.scss +9 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +139 -117
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.scss +59 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js +36 -41
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +192 -178
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.scss +91 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +17 -11
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +48 -73
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.scss +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +132 -143
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.scss +9 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +56 -81
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.scss +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js +252 -210
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.scss +121 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +23 -22
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.js +12 -9
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.scss +24 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +213 -228
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js +1005 -826
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js +2 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js +44 -43
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.js +25 -22
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +32 -36
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +145 -129
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +1 -1
- package/dist/views/Version/Restore/index.js +117 -93
- package/dist/views/Version/Restore/index.js.map +1 -1
- package/dist/views/Version/Restore/index.scss +84 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js +33 -50
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js.map +1 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js +170 -226
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js.map +1 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/index.scss +18 -0
- package/dist/views/Version/SelectComparison/index.js +73 -50
- package/dist/views/Version/SelectComparison/index.js.map +1 -1
- package/dist/views/Version/SelectComparison/index.scss +9 -0
- package/dist/views/Version/SelectComparison/types.js +2 -1
- package/dist/views/Version/SelectComparison/types.js.map +1 -1
- package/dist/views/Version/SelectLocales/index.js +34 -32
- package/dist/views/Version/SelectLocales/index.js.map +1 -1
- package/dist/views/Version/VersionPillLabel/VersionPillLabel.js +104 -95
- package/dist/views/Version/VersionPillLabel/VersionPillLabel.js.map +1 -1
- package/dist/views/Version/VersionPillLabel/getVersionLabel.js +23 -27
- package/dist/views/Version/VersionPillLabel/getVersionLabel.js.map +1 -1
- package/dist/views/Version/VersionPillLabel/index.scss +26 -0
- package/dist/views/Version/fetchVersions.js +113 -138
- package/dist/views/Version/fetchVersions.js.map +1 -1
- package/dist/views/Version/index.js +325 -323
- package/dist/views/Version/index.js.map +1 -1
- package/dist/views/Version/metadata.js +43 -50
- package/dist/views/Version/metadata.js.map +1 -1
- package/dist/views/Versions/buildColumns.js +95 -79
- package/dist/views/Versions/buildColumns.js.map +1 -1
- package/dist/views/Versions/cells/AutosaveCell/index.js +34 -38
- package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -1
- package/dist/views/Versions/cells/AutosaveCell/index.scss +9 -0
- package/dist/views/Versions/cells/CreatedAt/index.js +32 -53
- package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -1
- package/dist/views/Versions/cells/ID/index.js +10 -8
- package/dist/views/Versions/cells/ID/index.js.map +1 -1
- package/dist/views/Versions/index.client.js +106 -83
- package/dist/views/Versions/index.client.js.map +1 -1
- package/dist/views/Versions/index.js +143 -143
- package/dist/views/Versions/index.js.map +1 -1
- package/dist/views/Versions/index.scss +110 -0
- package/dist/views/Versions/metadata.js +37 -44
- package/dist/views/Versions/metadata.js.map +1 -1
- package/dist/views/Versions/types.js +2 -1
- package/dist/views/Versions/types.js.map +1 -1
- package/dist/withPayload/withPayload.js +198 -143
- package/dist/withPayload/withPayload.js.map +1 -1
- package/dist/withPayload/withPayload.utils.js +92 -95
- package/dist/withPayload/withPayload.utils.js.map +1 -1
- package/dist/withPayload/withPayloadLegacy.js +42 -40
- package/dist/withPayload/withPayloadLegacy.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,52 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
2
2
|
import { Gutter } from '@payloadcms/ui';
|
|
3
3
|
import { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { ModularDashboard } from './ModularDashboard/index.js';
|
|
6
6
|
const baseClass = 'dashboard';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
7
|
+
// Neither DashboardViewClientProps, DashboardViewServerPropsOnly, nor
|
|
8
|
+
// DashboardViewServerProps make much sense. They were created
|
|
9
|
+
// before the modular dashboard existed, and they are tightly coupled to
|
|
10
|
+
// the default layout of collection and global cards. All of their values
|
|
11
|
+
// could have been derived from the req object, and the same likely applies
|
|
12
|
+
// to other views. These types remain only for backward compatibility.
|
|
13
|
+
// It is recommended to use the modular dashboard widgets, which have props
|
|
14
|
+
// that are more agnostic to their content.
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
* This prop is deprecated and will be removed in the next major version.
|
|
18
|
+
* Components now import their own `Link` directly from `next/link`.
|
|
19
|
+
*/ export function DefaultDashboard(props) {
|
|
20
|
+
const { i18n, locale, params, payload, permissions, searchParams, user } = props;
|
|
21
|
+
const { afterDashboard, beforeDashboard } = payload.config.admin.components;
|
|
22
|
+
return /*#__PURE__*/ _jsxDEV(Gutter, {
|
|
23
|
+
className: baseClass,
|
|
24
|
+
children: [
|
|
25
|
+
beforeDashboard && RenderServerComponent({
|
|
26
|
+
Component: beforeDashboard,
|
|
27
|
+
importMap: payload.importMap,
|
|
28
|
+
serverProps: {
|
|
29
|
+
i18n,
|
|
30
|
+
locale,
|
|
31
|
+
params,
|
|
32
|
+
payload,
|
|
33
|
+
permissions,
|
|
34
|
+
searchParams,
|
|
35
|
+
user
|
|
36
|
+
}
|
|
37
|
+
}),
|
|
38
|
+
/*#__PURE__*/ _jsxDEV(ModularDashboard, {
|
|
39
|
+
...props
|
|
40
|
+
}, void 0, false, {
|
|
41
|
+
fileName: "src/views/Dashboard/Default/index.tsx",
|
|
42
|
+
lineNumber: 62,
|
|
43
|
+
columnNumber: 7
|
|
44
|
+
}, this),
|
|
45
|
+
afterDashboard && RenderServerComponent({
|
|
46
|
+
Component: afterDashboard,
|
|
47
|
+
importMap: payload.importMap,
|
|
48
|
+
serverProps: {
|
|
49
|
+
i18n,
|
|
50
|
+
locale,
|
|
51
|
+
params,
|
|
52
|
+
payload,
|
|
53
|
+
permissions,
|
|
54
|
+
searchParams,
|
|
55
|
+
user
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
}, void 0, true, {
|
|
60
|
+
fileName: "src/views/Dashboard/Default/index.tsx",
|
|
61
|
+
lineNumber: 47,
|
|
62
|
+
columnNumber: 5
|
|
63
|
+
}, this);
|
|
51
64
|
}
|
|
65
|
+
|
|
52
66
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/views/Dashboard/Default/index.tsx"],"sourcesContent":["import type { groupNavItems } from '@payloadcms/ui/shared'\nimport type { AdminViewServerPropsOnly, ClientUser, Locale, ServerProps } from 'payload'\n\nimport { Gutter } from '@payloadcms/ui'\nimport { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent'\nimport React from 'react'\n\nimport { ModularDashboard } from './ModularDashboard/index.js'\n\nconst baseClass = 'dashboard'\n\nexport type DashboardViewClientProps = {\n locale: Locale\n}\n\n// Neither DashboardViewClientProps, DashboardViewServerPropsOnly, nor\n// DashboardViewServerProps make much sense. They were created\n// before the modular dashboard existed, and they are tightly coupled to\n// the default layout of collection and global cards. All of their values\n// could have been derived from the req object, and the same likely applies\n// to other views. These types remain only for backward compatibility.\n// It is recommended to use the modular dashboard widgets, which have props\n// that are more agnostic to their content.\n\nexport type DashboardViewServerPropsOnly = {\n globalData: Array<{\n data: { _isLocked: boolean; _lastEditedAt: string; _userEditing: ClientUser | number | string }\n lockDuration?: number\n slug: string\n }>\n /**\n * @deprecated\n * This prop is deprecated and will be removed in the next major version.\n * Components now import their own `Link` directly from `next/link`.\n */\n Link?: React.ComponentType\n navGroups?: ReturnType<typeof groupNavItems>\n} & AdminViewServerPropsOnly\n\nexport type DashboardViewServerProps = DashboardViewClientProps & DashboardViewServerPropsOnly\n\nexport function DefaultDashboard(props: DashboardViewServerProps) {\n const { i18n, locale, params, payload, permissions, searchParams, user } = props\n const { afterDashboard, beforeDashboard } = payload.config.admin.components\n\n return (\n <Gutter className={baseClass}>\n {beforeDashboard &&\n RenderServerComponent({\n Component: beforeDashboard,\n importMap: payload.importMap,\n serverProps: {\n i18n,\n locale,\n params,\n payload,\n permissions,\n searchParams,\n user,\n } satisfies ServerProps,\n })}\n <ModularDashboard {...props} />\n {afterDashboard &&\n RenderServerComponent({\n Component: afterDashboard,\n importMap: payload.importMap,\n serverProps: {\n i18n,\n locale,\n params,\n payload,\n permissions,\n searchParams,\n user,\n } satisfies ServerProps,\n })}\n </Gutter>\n )\n}\n"],"names":["Gutter","RenderServerComponent","React","ModularDashboard","baseClass","DefaultDashboard","props","i18n","locale","params","payload","permissions","searchParams","user","afterDashboard","beforeDashboard","config","admin","components","className","Component","importMap","serverProps"],"mappings":";AAGA,SAASA,MAAM,QAAQ,iBAAgB;AACvC,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,OAAOC,WAAW,QAAO;AAEzB,SAASC,gBAAgB,QAAQ,8BAA6B;AAE9D,MAAMC,YAAY;AAMlB,sEAAsE;AACtE,8DAA8D;AAC9D,wEAAwE;AACxE,yEAAyE;AACzE,2EAA2E;AAC3E,sEAAsE;AACtE,2EAA2E;AAC3E,2CAA2C;AAQzC;;;;GAIC,GAOH,OAAO,SAASC,iBAAiBC,KAA+B;IAC9D,MAAM,EAAEC,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAEC,OAAO,EAAEC,WAAW,EAAEC,YAAY,EAAEC,IAAI,EAAE,GAAGP;IAC3E,MAAM,EAAEQ,cAAc,EAAEC,eAAe,EAAE,GAAGL,QAAQM,MAAM,CAACC,KAAK,CAACC,UAAU;IAE3E,qBACE,QAAClB;QAAOmB,WAAWf;;YAChBW,mBACCd,sBAAsB;gBACpBmB,WAAWL;gBACXM,WAAWX,QAAQW,SAAS;gBAC5BC,aAAa;oBACXf;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;gBACF;YACF;0BACF,QAACV;gBAAkB,GAAGG,KAAK;;;;;;YAC1BQ,kBACCb,sBAAsB;gBACpBmB,WAAWN;gBACXO,WAAWX,QAAQW,SAAS;gBAC5BC,aAAa;oBACXf;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;gBACF;YACF;;;;;;;AAGR"}
|
|
@@ -1,50 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
2
2
|
import { HydrateAuthProvider, SetStepNav } from '@payloadcms/ui';
|
|
3
3
|
import { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent';
|
|
4
4
|
import { getGlobalData, getNavGroups } from '@payloadcms/ui/shared';
|
|
5
5
|
import React, { Fragment } from 'react';
|
|
6
6
|
import { DefaultDashboard } from './Default/index.js';
|
|
7
7
|
export async function DashboardView(props) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
permissions,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
8
|
+
const { locale, permissions, req: { i18n, payload: { config }, payload, user }, req, visibleEntities } = props.initPageResult;
|
|
9
|
+
const globalData = await getGlobalData(req);
|
|
10
|
+
const navGroups = getNavGroups(permissions, visibleEntities, config, i18n);
|
|
11
|
+
return /*#__PURE__*/ _jsxDEV(Fragment, {
|
|
12
|
+
children: [
|
|
13
|
+
/*#__PURE__*/ _jsxDEV(HydrateAuthProvider, {
|
|
14
|
+
permissions: permissions
|
|
15
|
+
}, void 0, false, {
|
|
16
|
+
fileName: "src/views/Dashboard/index.tsx",
|
|
17
|
+
lineNumber: 31,
|
|
18
|
+
columnNumber: 7
|
|
19
|
+
}, this),
|
|
20
|
+
/*#__PURE__*/ _jsxDEV(SetStepNav, {
|
|
21
|
+
nav: []
|
|
22
|
+
}, void 0, false, {
|
|
23
|
+
fileName: "src/views/Dashboard/index.tsx",
|
|
24
|
+
lineNumber: 32,
|
|
25
|
+
columnNumber: 7
|
|
26
|
+
}, this),
|
|
27
|
+
RenderServerComponent({
|
|
28
|
+
clientProps: {
|
|
29
|
+
locale
|
|
30
|
+
},
|
|
31
|
+
Component: config.admin?.components?.views?.dashboard?.Component,
|
|
32
|
+
Fallback: DefaultDashboard,
|
|
33
|
+
importMap: payload.importMap,
|
|
34
|
+
serverProps: {
|
|
35
|
+
...props,
|
|
36
|
+
globalData,
|
|
37
|
+
i18n,
|
|
38
|
+
locale,
|
|
39
|
+
navGroups,
|
|
40
|
+
payload,
|
|
41
|
+
permissions,
|
|
42
|
+
user,
|
|
43
|
+
visibleEntities
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
}, void 0, true, {
|
|
48
|
+
fileName: "src/views/Dashboard/index.tsx",
|
|
49
|
+
lineNumber: 30,
|
|
50
|
+
columnNumber: 5
|
|
51
|
+
}, this);
|
|
49
52
|
}
|
|
53
|
+
|
|
50
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/views/Dashboard/index.tsx"],"sourcesContent":["import type { AdminViewServerProps } from 'payload'\n\nimport { HydrateAuthProvider, SetStepNav } from '@payloadcms/ui'\nimport { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent'\nimport { getGlobalData, getNavGroups } from '@payloadcms/ui/shared'\nimport React, { Fragment } from 'react'\n\nimport type { DashboardViewClientProps, DashboardViewServerPropsOnly } from './Default/index.js'\n\nimport { DefaultDashboard } from './Default/index.js'\n\nexport async function DashboardView(props: AdminViewServerProps) {\n const {\n locale,\n permissions,\n req: {\n i18n,\n payload: { config },\n payload,\n user,\n },\n req,\n visibleEntities,\n } = props.initPageResult\n\n const globalData = await getGlobalData(req)\n const navGroups = getNavGroups(permissions, visibleEntities, config, i18n)\n\n return (\n <Fragment>\n <HydrateAuthProvider permissions={permissions} />\n <SetStepNav nav={[]} />\n {RenderServerComponent({\n clientProps: {\n locale,\n } satisfies DashboardViewClientProps,\n Component: config.admin?.components?.views?.dashboard?.Component,\n Fallback: DefaultDashboard,\n importMap: payload.importMap,\n serverProps: {\n ...props,\n globalData,\n i18n,\n locale,\n navGroups,\n payload,\n permissions,\n user,\n visibleEntities,\n } satisfies DashboardViewServerPropsOnly,\n })}\n </Fragment>\n )\n}\n"],"names":["HydrateAuthProvider","SetStepNav","RenderServerComponent","getGlobalData","getNavGroups","React","Fragment","DefaultDashboard","DashboardView","props","locale","permissions","req","i18n","payload","config","user","visibleEntities","initPageResult","globalData","navGroups","nav","clientProps","Component","admin","components","views","dashboard","Fallback","importMap","serverProps"],"mappings":";AAEA,SAASA,mBAAmB,EAAEC,UAAU,QAAQ,iBAAgB;AAChE,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,aAAa,EAAEC,YAAY,QAAQ,wBAAuB;AACnE,OAAOC,SAASC,QAAQ,QAAQ,QAAO;AAIvC,SAASC,gBAAgB,QAAQ,qBAAoB;AAErD,OAAO,eAAeC,cAAcC,KAA2B;IAC7D,MAAM,EACJC,MAAM,EACNC,WAAW,EACXC,KAAK,EACHC,IAAI,EACJC,SAAS,EAAEC,MAAM,EAAE,EACnBD,OAAO,EACPE,IAAI,EACL,EACDJ,GAAG,EACHK,eAAe,EAChB,GAAGR,MAAMS,cAAc;IAExB,MAAMC,aAAa,MAAMhB,cAAcS;IACvC,MAAMQ,YAAYhB,aAAaO,aAAaM,iBAAiBF,QAAQF;IAErE,qBACE,QAACP;;0BACC,QAACN;gBAAoBW,aAAaA;;;;;;0BAClC,QAACV;gBAAWoB,KAAK,EAAE;;;;;;YAClBnB,sBAAsB;gBACrBoB,aAAa;oBACXZ;gBACF;gBACAa,WAAWR,OAAOS,KAAK,EAAEC,YAAYC,OAAOC,WAAWJ;gBACvDK,UAAUrB;gBACVsB,WAAWf,QAAQe,SAAS;gBAC5BC,aAAa;oBACX,GAAGrB,KAAK;oBACRU;oBACAN;oBACAH;oBACAU;oBACAN;oBACAH;oBACAK;oBACAC;gBACF;YACF;;;;;;;AAGN"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { generateMetadata } from '../../utilities/meta.js';
|
|
2
|
-
export const generateDashboardViewMetadata = async ({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
title: t('general:dashboard'),
|
|
13
|
-
...(config.admin.meta?.openGraph || {})
|
|
14
|
-
}
|
|
15
|
-
});
|
|
2
|
+
export const generateDashboardViewMetadata = async ({ config, i18n: { t } })=>generateMetadata({
|
|
3
|
+
serverURL: config.serverURL,
|
|
4
|
+
title: t('general:dashboard'),
|
|
5
|
+
...config.admin.meta,
|
|
6
|
+
openGraph: {
|
|
7
|
+
title: t('general:dashboard'),
|
|
8
|
+
...config.admin.meta?.openGraph || {}
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
16
12
|
//# sourceMappingURL=metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/views/Dashboard/metadata.ts"],"sourcesContent":["import type { GenerateViewMetadata } from '../Root/index.js'\n\nimport { generateMetadata } from '../../utilities/meta.js'\n\nexport const generateDashboardViewMetadata: GenerateViewMetadata = async ({\n config,\n i18n: { t },\n}) =>\n generateMetadata({\n serverURL: config.serverURL,\n title: t('general:dashboard'),\n ...config.admin.meta,\n openGraph: {\n title: t('general:dashboard'),\n ...(config.admin.meta?.openGraph || {}),\n },\n })\n"],"names":["generateMetadata","generateDashboardViewMetadata","config","i18n","t","serverURL","title","admin","meta","openGraph"],"mappings":"AAEA,SAASA,gBAAgB,QAAQ,0BAAyB;AAE1D,OAAO,MAAMC,gCAAsD,OAAO,EACxEC,MAAM,EACNC,MAAM,EAAEC,CAAC,EAAE,EACZ,GACCJ,iBAAiB;QACfK,WAAWH,OAAOG,SAAS;QAC3BC,OAAOF,EAAE;QACT,GAAGF,OAAOK,KAAK,CAACC,IAAI;QACpBC,WAAW;YACTH,OAAOF,EAAE;YACT,GAAIF,OAAOK,KAAK,CAACC,IAAI,EAAEC,aAAa,CAAC,CAAC;QACxC;IACF,GAAE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export const getCustomDocumentViewByKey = (views, customViewKey)
|
|
2
|
-
|
|
1
|
+
export const getCustomDocumentViewByKey = (views, customViewKey)=>{
|
|
2
|
+
return typeof views?.edit?.[customViewKey] === 'object' && 'Component' in views.edit[customViewKey] ? views?.edit?.[customViewKey].Component : null;
|
|
3
3
|
};
|
|
4
|
+
|
|
4
5
|
//# sourceMappingURL=getCustomDocumentViewByKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/views/Document/getCustomDocumentViewByKey.tsx"],"sourcesContent":["import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload'\n\nexport const getCustomDocumentViewByKey = (\n views:\n | SanitizedCollectionConfig['admin']['components']['views']\n | SanitizedGlobalConfig['admin']['components']['views'],\n customViewKey: string,\n): EditViewComponent => {\n return typeof views?.edit?.[customViewKey] === 'object' &&\n 'Component' in views.edit[customViewKey]\n ? views?.edit?.[customViewKey].Component\n : null\n}\n"],"names":["getCustomDocumentViewByKey","views","customViewKey","edit","Component"],"mappings":"AAEA,OAAO,MAAMA,6BAA6B,CACxCC,OAGAC;IAEA,OAAO,OAAOD,OAAOE,MAAM,CAACD,cAAc,KAAK,YAC7C,eAAeD,MAAME,IAAI,CAACD,cAAc,GACtCD,OAAOE,MAAM,CAACD,cAAc,CAACE,YAC7B;AACN,EAAC"}
|
|
@@ -1,35 +1,32 @@
|
|
|
1
1
|
import { isPathMatchingRoute } from '../Root/isPathMatchingRoute.js';
|
|
2
|
-
export const getCustomViewByRoute = ({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
export const getCustomViewByRoute = ({ baseRoute, currentRoute, views })=>{
|
|
3
|
+
if (typeof views?.edit === 'object') {
|
|
4
|
+
let viewKey;
|
|
5
|
+
const foundViewConfig = Object.entries(views.edit).find(([key, view])=>{
|
|
6
|
+
if (typeof view === 'object' && 'path' in view) {
|
|
7
|
+
const viewPath = `${baseRoute}${view.path}`;
|
|
8
|
+
const isMatching = isPathMatchingRoute({
|
|
9
|
+
currentRoute,
|
|
10
|
+
exact: true,
|
|
11
|
+
path: viewPath
|
|
12
|
+
});
|
|
13
|
+
if (isMatching) {
|
|
14
|
+
viewKey = key;
|
|
15
|
+
}
|
|
16
|
+
return isMatching;
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
})?.[1];
|
|
20
|
+
if (foundViewConfig && 'Component' in foundViewConfig) {
|
|
21
|
+
return {
|
|
22
|
+
Component: foundViewConfig.Component,
|
|
23
|
+
viewKey
|
|
24
|
+
};
|
|
19
25
|
}
|
|
20
|
-
return isMatching;
|
|
21
|
-
}
|
|
22
|
-
return false;
|
|
23
|
-
})?.[1];
|
|
24
|
-
if (foundViewConfig && 'Component' in foundViewConfig) {
|
|
25
|
-
return {
|
|
26
|
-
Component: foundViewConfig.Component,
|
|
27
|
-
viewKey
|
|
28
|
-
};
|
|
29
26
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
27
|
+
return {
|
|
28
|
+
Component: null
|
|
29
|
+
};
|
|
34
30
|
};
|
|
31
|
+
|
|
35
32
|
//# sourceMappingURL=getCustomViewByRoute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/views/Document/getCustomViewByRoute.tsx"],"sourcesContent":["import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload'\n\nimport { isPathMatchingRoute } from '../Root/isPathMatchingRoute.js'\n\nexport const getCustomViewByRoute = ({\n baseRoute,\n currentRoute,\n views,\n}: {\n baseRoute: string\n currentRoute: string\n views:\n | SanitizedCollectionConfig['admin']['components']['views']\n | SanitizedGlobalConfig['admin']['components']['views']\n}): {\n Component: EditViewComponent\n viewKey?: string\n} => {\n if (typeof views?.edit === 'object') {\n let viewKey: string\n\n const foundViewConfig = Object.entries(views.edit).find(([key, view]) => {\n if (typeof view === 'object' && 'path' in view) {\n const viewPath = `${baseRoute}${view.path}`\n\n const isMatching = isPathMatchingRoute({\n currentRoute,\n exact: true,\n path: viewPath,\n })\n\n if (isMatching) {\n viewKey = key\n }\n\n return isMatching\n }\n\n return false\n })?.[1]\n\n if (foundViewConfig && 'Component' in foundViewConfig) {\n return {\n Component: foundViewConfig.Component,\n viewKey,\n }\n }\n }\n\n return {\n Component: null,\n }\n}\n"],"names":["isPathMatchingRoute","getCustomViewByRoute","baseRoute","currentRoute","views","edit","viewKey","foundViewConfig","Object","entries","find","key","view","viewPath","path","isMatching","exact","Component"],"mappings":"AAEA,SAASA,mBAAmB,QAAQ,iCAAgC;AAEpE,OAAO,MAAMC,uBAAuB,CAAC,EACnCC,SAAS,EACTC,YAAY,EACZC,KAAK,EAON;IAIC,IAAI,OAAOA,OAAOC,SAAS,UAAU;QACnC,IAAIC;QAEJ,MAAMC,kBAAkBC,OAAOC,OAAO,CAACL,MAAMC,IAAI,EAAEK,IAAI,CAAC,CAAC,CAACC,KAAKC,KAAK;YAClE,IAAI,OAAOA,SAAS,YAAY,UAAUA,MAAM;gBAC9C,MAAMC,WAAW,GAAGX,YAAYU,KAAKE,IAAI,EAAE;gBAE3C,MAAMC,aAAaf,oBAAoB;oBACrCG;oBACAa,OAAO;oBACPF,MAAMD;gBACR;gBAEA,IAAIE,YAAY;oBACdT,UAAUK;gBACZ;gBAEA,OAAOI;YACT;YAEA,OAAO;QACT,IAAI,CAAC,EAAE;QAEP,IAAIR,mBAAmB,eAAeA,iBAAiB;YACrD,OAAO;gBACLU,WAAWV,gBAAgBU,SAAS;gBACpCX;YACF;QACF;IACF;IAEA,OAAO;QACLW,WAAW;IACb;AACF,EAAC"}
|
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
import { sanitizeID } from '@payloadcms/ui/shared';
|
|
2
|
-
export const getDocPreferences = async ({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payload,
|
|
7
|
-
user
|
|
8
|
-
}) => {
|
|
9
|
-
let preferencesKey;
|
|
10
|
-
if (collectionSlug && id) {
|
|
11
|
-
preferencesKey = `collection-${collectionSlug}-${id}`;
|
|
12
|
-
}
|
|
13
|
-
if (globalSlug) {
|
|
14
|
-
preferencesKey = `global-${globalSlug}`;
|
|
15
|
-
}
|
|
16
|
-
if (preferencesKey) {
|
|
17
|
-
const preferencesResult = await payload.find({
|
|
18
|
-
collection: 'payload-preferences',
|
|
19
|
-
depth: 0,
|
|
20
|
-
limit: 1,
|
|
21
|
-
where: {
|
|
22
|
-
and: [{
|
|
23
|
-
key: {
|
|
24
|
-
equals: preferencesKey
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
'user.relationTo': {
|
|
28
|
-
equals: user.collection
|
|
29
|
-
}
|
|
30
|
-
}, {
|
|
31
|
-
'user.value': {
|
|
32
|
-
equals: sanitizeID(user.id)
|
|
33
|
-
}
|
|
34
|
-
}]
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
if (preferencesResult?.docs?.[0]?.value) {
|
|
38
|
-
return preferencesResult.docs[0].value;
|
|
2
|
+
export const getDocPreferences = async ({ id, collectionSlug, globalSlug, payload, user })=>{
|
|
3
|
+
let preferencesKey;
|
|
4
|
+
if (collectionSlug && id) {
|
|
5
|
+
preferencesKey = `collection-${collectionSlug}-${id}`;
|
|
39
6
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
7
|
+
if (globalSlug) {
|
|
8
|
+
preferencesKey = `global-${globalSlug}`;
|
|
9
|
+
}
|
|
10
|
+
if (preferencesKey) {
|
|
11
|
+
const preferencesResult = await payload.find({
|
|
12
|
+
collection: 'payload-preferences',
|
|
13
|
+
depth: 0,
|
|
14
|
+
limit: 1,
|
|
15
|
+
where: {
|
|
16
|
+
and: [
|
|
17
|
+
{
|
|
18
|
+
key: {
|
|
19
|
+
equals: preferencesKey
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
'user.relationTo': {
|
|
24
|
+
equals: user.collection
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
'user.value': {
|
|
29
|
+
equals: sanitizeID(user.id)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
if (preferencesResult?.docs?.[0]?.value) {
|
|
36
|
+
return preferencesResult.docs[0].value;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
fields: {}
|
|
41
|
+
};
|
|
44
42
|
};
|
|
43
|
+
|
|
45
44
|
//# sourceMappingURL=getDocPreferences.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/views/Document/getDocPreferences.ts"],"sourcesContent":["import type { DocumentPreferences, Payload, TypedUser } from 'payload'\n\nimport { sanitizeID } from '@payloadcms/ui/shared'\n\ntype Args = {\n collectionSlug?: string\n globalSlug?: string\n id?: number | string\n payload: Payload\n user: TypedUser\n}\n\nexport const getDocPreferences = async ({\n id,\n collectionSlug,\n globalSlug,\n payload,\n user,\n}: Args): Promise<DocumentPreferences> => {\n let preferencesKey\n\n if (collectionSlug && id) {\n preferencesKey = `collection-${collectionSlug}-${id}`\n }\n\n if (globalSlug) {\n preferencesKey = `global-${globalSlug}`\n }\n\n if (preferencesKey) {\n const preferencesResult = (await payload.find({\n collection: 'payload-preferences',\n depth: 0,\n limit: 1,\n where: {\n and: [\n {\n key: {\n equals: preferencesKey,\n },\n },\n {\n 'user.relationTo': {\n equals: user.collection,\n },\n },\n {\n 'user.value': {\n equals: sanitizeID(user.id),\n },\n },\n ],\n },\n })) as unknown as { docs: { value: DocumentPreferences }[] }\n\n if (preferencesResult?.docs?.[0]?.value) {\n return preferencesResult.docs[0].value\n }\n }\n\n return { fields: {} }\n}\n"],"names":["sanitizeID","getDocPreferences","id","collectionSlug","globalSlug","payload","user","preferencesKey","preferencesResult","find","collection","depth","limit","where","and","key","equals","docs","value","fields"],"mappings":"AAEA,SAASA,UAAU,QAAQ,wBAAuB;AAUlD,OAAO,MAAMC,oBAAoB,OAAO,EACtCC,EAAE,EACFC,cAAc,EACdC,UAAU,EACVC,OAAO,EACPC,IAAI,EACC;IACL,IAAIC;IAEJ,IAAIJ,kBAAkBD,IAAI;QACxBK,iBAAiB,CAAC,WAAW,EAAEJ,eAAe,CAAC,EAAED,IAAI;IACvD;IAEA,IAAIE,YAAY;QACdG,iBAAiB,CAAC,OAAO,EAAEH,YAAY;IACzC;IAEA,IAAIG,gBAAgB;QAClB,MAAMC,oBAAqB,MAAMH,QAAQI,IAAI,CAAC;YAC5CC,YAAY;YACZC,OAAO;YACPC,OAAO;YACPC,OAAO;gBACLC,KAAK;oBACH;wBACEC,KAAK;4BACHC,QAAQT;wBACV;oBACF;oBACA;wBACE,mBAAmB;4BACjBS,QAAQV,KAAKI,UAAU;wBACzB;oBACF;oBACA;wBACE,cAAc;4BACZM,QAAQhB,WAAWM,KAAKJ,EAAE;wBAC5B;oBACF;iBACD;YACH;QACF;QAEA,IAAIM,mBAAmBS,MAAM,CAAC,EAAE,EAAEC,OAAO;YACvC,OAAOV,kBAAkBS,IAAI,CAAC,EAAE,CAACC,KAAK;QACxC;IACF;IAEA,OAAO;QAAEC,QAAQ,CAAC;IAAE;AACtB,EAAC"}
|
|
@@ -1,60 +1,49 @@
|
|
|
1
1
|
import { sanitizeID } from '@payloadcms/ui/shared';
|
|
2
2
|
import { logError } from 'payload';
|
|
3
|
-
export const getDocumentData = async ({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
3
|
+
export const getDocumentData = async ({ id: idArg, collectionSlug, globalSlug, locale, payload, req, segments, user })=>{
|
|
4
|
+
const id = sanitizeID(idArg);
|
|
5
|
+
let resolvedData = null;
|
|
6
|
+
const { transactionID, ...rest } = req;
|
|
7
|
+
const isTrashedDoc = segments?.[2] === 'trash' && typeof segments?.[3] === 'string';
|
|
8
|
+
// id exists at segment 3
|
|
9
|
+
try {
|
|
10
|
+
if (collectionSlug && id) {
|
|
11
|
+
resolvedData = await payload.findByID({
|
|
12
|
+
id,
|
|
13
|
+
collection: collectionSlug,
|
|
14
|
+
depth: 0,
|
|
15
|
+
draft: true,
|
|
16
|
+
fallbackLocale: false,
|
|
17
|
+
locale: locale?.code,
|
|
18
|
+
overrideAccess: false,
|
|
19
|
+
req: {
|
|
20
|
+
...rest
|
|
21
|
+
},
|
|
22
|
+
trash: isTrashedDoc ? true : false,
|
|
23
|
+
user
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
if (globalSlug) {
|
|
27
|
+
resolvedData = await payload.findGlobal({
|
|
28
|
+
slug: globalSlug,
|
|
29
|
+
depth: 0,
|
|
30
|
+
draft: true,
|
|
31
|
+
fallbackLocale: false,
|
|
32
|
+
locale: locale?.code,
|
|
33
|
+
overrideAccess: false,
|
|
34
|
+
req: {
|
|
35
|
+
...rest
|
|
36
|
+
},
|
|
37
|
+
user
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
} catch (err) {
|
|
41
|
+
logError({
|
|
42
|
+
err,
|
|
43
|
+
payload
|
|
44
|
+
});
|
|
37
45
|
}
|
|
38
|
-
|
|
39
|
-
resolvedData = await payload.findGlobal({
|
|
40
|
-
slug: globalSlug,
|
|
41
|
-
depth: 0,
|
|
42
|
-
draft: true,
|
|
43
|
-
fallbackLocale: false,
|
|
44
|
-
locale: locale?.code,
|
|
45
|
-
overrideAccess: false,
|
|
46
|
-
req: {
|
|
47
|
-
...rest
|
|
48
|
-
},
|
|
49
|
-
user
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
} catch (err) {
|
|
53
|
-
logError({
|
|
54
|
-
err,
|
|
55
|
-
payload
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return resolvedData;
|
|
46
|
+
return resolvedData;
|
|
59
47
|
};
|
|
48
|
+
|
|
60
49
|
//# sourceMappingURL=getDocumentData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/views/Document/getDocumentData.ts"],"sourcesContent":["import { sanitizeID } from '@payloadcms/ui/shared'\nimport {\n type Locale,\n logError,\n type Payload,\n type PayloadRequest,\n type TypedUser,\n type TypeWithID,\n} from 'payload'\n\ntype Args = {\n collectionSlug?: string\n globalSlug?: string\n id?: number | string\n locale?: Locale\n payload: Payload\n req?: PayloadRequest\n segments?: string[]\n user?: TypedUser\n}\n\nexport const getDocumentData = async ({\n id: idArg,\n collectionSlug,\n globalSlug,\n locale,\n payload,\n req,\n segments,\n user,\n}: Args): Promise<null | Record<string, unknown> | TypeWithID> => {\n const id = sanitizeID(idArg)\n let resolvedData: Record<string, unknown> | TypeWithID = null\n const { transactionID, ...rest } = req\n\n const isTrashedDoc = segments?.[2] === 'trash' && typeof segments?.[3] === 'string' // id exists at segment 3\n\n try {\n if (collectionSlug && id) {\n resolvedData = await payload.findByID({\n id,\n collection: collectionSlug,\n depth: 0,\n draft: true,\n fallbackLocale: false,\n locale: locale?.code,\n overrideAccess: false,\n req: {\n ...rest,\n },\n trash: isTrashedDoc ? true : false,\n user,\n })\n }\n\n if (globalSlug) {\n resolvedData = await payload.findGlobal({\n slug: globalSlug,\n depth: 0,\n draft: true,\n fallbackLocale: false,\n locale: locale?.code,\n overrideAccess: false,\n req: {\n ...rest,\n },\n user,\n })\n }\n } catch (err) {\n logError({ err, payload })\n }\n\n return resolvedData\n}\n"],"names":["sanitizeID","logError","getDocumentData","id","idArg","collectionSlug","globalSlug","locale","payload","req","segments","user","resolvedData","transactionID","rest","isTrashedDoc","findByID","collection","depth","draft","fallbackLocale","code","overrideAccess","trash","findGlobal","slug","err"],"mappings":"AAAA,SAASA,UAAU,QAAQ,wBAAuB;AAClD,SAEEC,QAAQ,QAKH,UAAS;AAahB,OAAO,MAAMC,kBAAkB,OAAO,EACpCC,IAAIC,KAAK,EACTC,cAAc,EACdC,UAAU,EACVC,MAAM,EACNC,OAAO,EACPC,GAAG,EACHC,QAAQ,EACRC,IAAI,EACC;IACL,MAAMR,KAAKH,WAAWI;IACtB,IAAIQ,eAAqD;IACzD,MAAM,EAAEC,aAAa,EAAE,GAAGC,MAAM,GAAGL;IAEnC,MAAMM,eAAeL,UAAU,CAAC,EAAE,KAAK,WAAW,OAAOA,UAAU,CAAC,EAAE,KAAK;IAAS,yBAAyB;IAE7G,IAAI;QACF,IAAIL,kBAAkBF,IAAI;YACxBS,eAAe,MAAMJ,QAAQQ,QAAQ,CAAC;gBACpCb;gBACAc,YAAYZ;gBACZa,OAAO;gBACPC,OAAO;gBACPC,gBAAgB;gBAChBb,QAAQA,QAAQc;gBAChBC,gBAAgB;gBAChBb,KAAK;oBACH,GAAGK,IAAI;gBACT;gBACAS,OAAOR,eAAe,OAAO;gBAC7BJ;YACF;QACF;QAEA,IAAIL,YAAY;YACdM,eAAe,MAAMJ,QAAQgB,UAAU,CAAC;gBACtCC,MAAMnB;gBACNY,OAAO;gBACPC,OAAO;gBACPC,gBAAgB;gBAChBb,QAAQA,QAAQc;gBAChBC,gBAAgB;gBAChBb,KAAK;oBACH,GAAGK,IAAI;gBACT;gBACAH;YACF;QACF;IACF,EAAE,OAAOe,KAAK;QACZzB,SAAS;YAAEyB;YAAKlB;QAAQ;IAC1B;IAEA,OAAOI;AACT,EAAC"}
|