5 lines
40 KiB
JavaScript
5 lines
40 KiB
JavaScript
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="eab00cd9-c5cb-a9c1-20a9-82f2bbd99794")}catch(e){}}();
|
|
module.exports=[76074,a=>{"use strict";a.s(["AccountClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call AccountClient() from the server but AccountClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/index.client.js <module evaluation>","AccountClient")},145269,a=>{"use strict";a.s(["AccountClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call AccountClient() from the server but AccountClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/index.client.js","AccountClient")},508340,a=>{"use strict";a.i(76074);var b=a.i(145269);a.n(b)},165312,a=>{"use strict";a.s(["ResetPreferences",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ResetPreferences() from the server but ResetPreferences is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/ResetPreferences/index.js <module evaluation>","ResetPreferences")},314317,a=>{"use strict";a.s(["ResetPreferences",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ResetPreferences() from the server but ResetPreferences is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/ResetPreferences/index.js","ResetPreferences")},161330,a=>{"use strict";a.i(165312);var b=a.i(314317);a.n(b)},96853,a=>{"use strict";a.s(["ToggleTheme",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ToggleTheme() from the server but ToggleTheme is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/ToggleTheme/index.js <module evaluation>","ToggleTheme")},496524,a=>{"use strict";a.s(["ToggleTheme",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ToggleTheme() from the server but ToggleTheme is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/ToggleTheme/index.js","ToggleTheme")},338742,a=>{"use strict";a.i(96853);var b=a.i(496524);a.n(b)},485813,a=>{"use strict";a.s(["LanguageSelector",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call LanguageSelector() from the server but LanguageSelector is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/Settings/LanguageSelector.js <module evaluation>","LanguageSelector")},530746,a=>{"use strict";a.s(["LanguageSelector",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call LanguageSelector() from the server but LanguageSelector is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Account/Settings/LanguageSelector.js","LanguageSelector")},876330,a=>{"use strict";a.i(485813);var b=a.i(530746);a.n(b)},307416,a=>{"use strict";a.s(["CreateFirstUserClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call CreateFirstUserClient() from the server but CreateFirstUserClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/CreateFirstUser/index.client.js <module evaluation>","CreateFirstUserClient")},643626,a=>{"use strict";a.s(["CreateFirstUserClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call CreateFirstUserClient() from the server but CreateFirstUserClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/CreateFirstUser/index.client.js","CreateFirstUserClient")},568271,a=>{"use strict";a.i(307416);var b=a.i(643626);a.n(b)},549110,a=>{"use strict";a.s(["ModularDashboardClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ModularDashboardClient() from the server but ModularDashboardClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Dashboard/Default/ModularDashboard/index.client.js <module evaluation>","ModularDashboardClient")},130142,a=>{"use strict";a.s(["ModularDashboardClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ModularDashboardClient() from the server but ModularDashboardClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Dashboard/Default/ModularDashboard/index.client.js","ModularDashboardClient")},875070,a=>{"use strict";a.i(549110);var b=a.i(130142);a.n(b)},848779,a=>{"use strict";a.s(["ForgotPasswordForm",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ForgotPasswordForm() from the server but ForgotPasswordForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/ForgotPassword/ForgotPasswordForm/index.js <module evaluation>","ForgotPasswordForm")},653032,a=>{"use strict";a.s(["ForgotPasswordForm",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ForgotPasswordForm() from the server but ForgotPasswordForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/ForgotPassword/ForgotPasswordForm/index.js","ForgotPasswordForm")},463706,a=>{"use strict";a.i(848779);var b=a.i(653032);a.n(b)},756324,a=>{"use strict";a.s(["LoginForm",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call LoginForm() from the server but LoginForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Login/LoginForm/index.js <module evaluation>","LoginForm")},431200,a=>{"use strict";a.s(["LoginForm",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call LoginForm() from the server but LoginForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Login/LoginForm/index.js","LoginForm")},386039,a=>{"use strict";a.i(756324);var b=a.i(431200);a.n(b)},284119,a=>{"use strict";a.s(["LogoutClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call LogoutClient() from the server but LogoutClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Logout/LogoutClient.js <module evaluation>","LogoutClient")},441081,a=>{"use strict";a.s(["LogoutClient",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call LogoutClient() from the server but LogoutClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Logout/LogoutClient.js","LogoutClient")},549868,a=>{"use strict";a.i(284119);var b=a.i(441081);a.n(b)},265704,a=>{"use strict";a.s(["ResetPasswordForm",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ResetPasswordForm() from the server but ResetPasswordForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/ResetPassword/ResetPasswordForm/index.js <module evaluation>","ResetPasswordForm")},468277,a=>{"use strict";a.s(["ResetPasswordForm",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ResetPasswordForm() from the server but ResetPasswordForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/ResetPassword/ResetPasswordForm/index.js","ResetPasswordForm")},594139,a=>{"use strict";a.i(265704);var b=a.i(468277);a.n(b)},14215,a=>{"use strict";a.s(["ToastAndRedirect",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ToastAndRedirect() from the server but ToastAndRedirect is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Verify/index.client.js <module evaluation>","ToastAndRedirect")},201418,a=>{"use strict";a.s(["ToastAndRedirect",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call ToastAndRedirect() from the server but ToastAndRedirect is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/@payloadcms+next@3.81.0_@types+react@19.2.14_graphql@16.13.2_monaco-editor@0.55.1_next@_61d9a511d651f25382fefb5a0d802417/node_modules/@payloadcms/next/dist/views/Verify/index.client.js","ToastAndRedirect")},847875,a=>{"use strict";a.i(14215);var b=a.i(201418);a.n(b)},904748,a=>{"use strict";var b=a.i(998511),c=a.i(774133),d=a.i(547252),e=a.i(314144),f=a.i(362263),g=a.i(918366),h=a.i(279787),i=a.i(126817),j=a.i(331546),k=a.i(88710),l=a.i(783505),m=a.i(468342);let n="template-minimal",o=a=>{let{children:c,className:d,style:e={},width:f="normal"}=a,g=[d,n,`${n}--width-${f}`].filter(Boolean).join(" ");return(0,b.jsx)("section",{className:g,style:e,children:(0,b.jsx)("div",{className:`${n}__wrap`,children:c})})};var p=a.i(81509),q=a.i(766051);let r=({adminRoute:a,route:b})=>a&&"/"!==a?b.replace(a,""):b,s=["createFirstUser","forgot","login","logout","forgot","inactivity","unauthorized","reset"];var t=a.i(890788);let u=({config:a,currentRoute:b})=>{let c,{admin:{components:{views:d}},routes:{admin:e}}=a,f="/"===e?b:b.replace(e,""),g=d&&"object"==typeof d&&Object.entries(d).find(([a,b])=>{let d=(0,t.isPathMatchingRoute)({currentRoute:f,exact:b.exact,path:b.path,sensitive:b.sensitive,strict:b.strict});return d&&(c=a),d})?.[1]||void 0;return g?{view:{payloadComponent:g.Component},viewConfig:g,viewKey:c}:{view:{Component:null},viewConfig:null,viewKey:null}};var v=a.i(388885),w=a.i(151967),x=a.i(907859),y=a.i(299222),z=a.i(415981),A=a.i(138301),B=a.i(734853),C=a.i(28325),D=a.i(340460),E=a.i(741854),F=a.i(508340),G=a.i(161330),H=a.i(338742),I=a.i(876330);let J="payload-settings",K=a=>{let{className:d,i18n:e,languageOptions:f,theme:g,user:h}=a;return(0,b.jsxs)("div",{className:[J,d].filter(Boolean).join(" "),children:[(0,b.jsx)("h3",{children:e.t("general:payloadSettings")}),(0,b.jsxs)("div",{className:`${J}__language`,children:[(0,b.jsx)(c.FieldLabel,{htmlFor:"language-select",label:e.t("general:language")}),(0,b.jsx)(I.LanguageSelector,{languageOptions:f})]}),"all"===g&&(0,b.jsx)(H.ToggleTheme,{}),(0,b.jsx)(G.ResetPreferences,{user:h})]})};async function L({initPageResult:a,params:e,searchParams:f}){let{languageOptions:h,locale:j,permissions:k,req:l,req:{i18n:m,payload:n,payload:{config:o},user:p}}=a,{admin:{theme:q,user:r},routes:{api:s},serverURL:t}=o,u=n?.collections?.[r]?.config;if(u&&p?.id){let g=await (0,A.getDocumentData)({id:p.id,collectionSlug:u.slug,locale:j,payload:n,req:l,user:p});if(!g)throw Error("not-found");let t=await (0,z.getDocPreferences)({id:p.id,collectionSlug:u.slug,payload:n,user:p}),{docPermissions:v,hasDeletePermission:w,hasPublishPermission:G,hasSavePermission:H,hasTrashPermission:I}=await (0,B.getDocumentPermissions)({id:p.id,collectionConfig:u,data:g,req:l}),{state:J}=await (0,x.buildFormState)({id:p.id,collectionSlug:u.slug,data:g,docPermissions:v,docPreferences:t,locale:j?.code,operation:"update",renderAllFields:!0,req:l,schemaPath:u.slug,skipValidation:!0}),{currentEditor:L,isLocked:M,lastUpdateTime:N}=await (0,C.getIsLocked)({id:p.id,collectionConfig:u,isEditing:!0,req:l}),{hasPublishedDoc:O,mostRecentVersionIsAutosaved:P,unpublishedVersionCount:Q,versionCount:R}=await (0,D.getVersions)({id:p.id,collectionConfig:u,doc:g,docPermissions:v,locale:j?.code,payload:n,user:p});return(0,b.jsx)(c.DocumentInfoProvider,{AfterFields:(0,b.jsx)(K,{i18n:m,languageOptions:h,payload:n,theme:q,user:p}),apiURL:(0,i.formatAdminURL)({apiRoute:s,path:`/${r}${p?.id?`/${p.id}`:""}`}),collectionSlug:r,currentEditor:L,docPermissions:v,hasDeletePermission:w,hasPublishedDoc:O,hasPublishPermission:G,hasSavePermission:H,hasTrashPermission:I,id:p?.id,initialData:g,initialState:J,isEditing:!0,isLocked:M,lastUpdateTime:N,mostRecentVersionIsAutosaved:P,unpublishedVersionCount:Q,versionCount:R,children:(0,b.jsxs)(c.EditDepthProvider,{children:[(0,b.jsx)(y.DocumentHeader,{collectionConfig:u,hideTabs:!0,permissions:k,req:l}),(0,b.jsx)(c.HydrateAuthProvider,{permissions:k}),(0,d.RenderServerComponent)({Component:o.admin?.components?.views?.account?.Component,Fallback:E.EditView,importMap:n.importMap,serverProps:{doc:g,hasPublishedDoc:O,i18n:m,initPageResult:a,locale:j,params:e,payload:n,permissions:k,routeSegments:[],searchParams:f,user:p}}),(0,b.jsx)(F.AccountClient,{})]})})}return(0,g.notFound)()}var M=a.i(387671),N=a.i(526472),O=a.i(215584);let P=async a=>{let{browseByFolderSlugs:e=[],disableBulkDelete:f,disableBulkEdit:h,enableRowSelections:j,folderID:k,initPageResult:l,isInDrawer:m,params:n,query:o,searchParams:p}=a,{locale:q,permissions:r,req:{i18n:s,payload:t,payload:{config:u},query:v,user:w},visibleEntities:x}=l;if(!1===u.folders||!1===u.folders.browseByFolder)throw Error("not-found");let y=u.folders.slug,z=e.filter(a=>r?.collections?.[a]?.read&&x.collections.includes(a)),A=o||(v?{...v,relationTo:"string"==typeof v?.relationTo?JSON.parse(v.relationTo):void 0}:{}),B=[];B=k&&Array.isArray(A?.relationTo)?A.relationTo.filter(a=>z.includes(a)||a===y):k?[...z,y]:[y];let{routes:{admin:C}}=u,D=await (0,N.upsertPreferences)({key:O.PREFERENCE_KEYS.BROWSE_BY_FOLDER,req:l.req,value:{sort:A?.sort}}),E=D?.sort||"name",F=D?.viewPreference||"grid",{breadcrumbs:G,documents:H,folderAssignedCollections:I,FolderResultsComponent:J,subfolders:K}=await (0,M.getFolderResultsComponentAndData)({browseByFolder:!0,collectionsToDisplay:B,displayAs:F,folderAssignedCollections:B.filter(a=>a!==y)||[],folderID:k,req:l.req,sort:E}),L=G[G.length-1]?.id;!m&&(L&&k&&k!==L||k&&!L)&&(0,g.redirect)((0,i.formatAdminURL)({adminRoute:C,path:u.admin.routes.browseByFolder}));let P=k&&Array.isArray(I)&&I.length?z.filter(a=>I.includes(a)):z,Q=B.filter(a=>a===y?r?.collections?.[y]?.read:!I||I.includes(a)),R=(L?[y,...P]:[y]).filter(a=>a===y?r?.collections?.[y]?.create:r?.collections?.[a]?.create&&x.collections.includes(a));return{View:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.HydrateAuthProvider,{permissions:r}),(0,d.RenderServerComponent)({clientProps:{activeCollectionFolderSlugs:Q,allCollectionFolderSlugs:P,allowCreateCollectionSlugs:R,baseFolderPath:"/browse-by-folder",breadcrumbs:G,disableBulkDelete:f,disableBulkEdit:h,documents:H,enableRowSelections:j,folderAssignedCollections:I,folderFieldName:u.folders.fieldName,folderID:L||null,FolderResultsComponent:J,sort:E,subfolders:K,viewPreference:F},Fallback:c.DefaultBrowseByFolderView,importMap:t.importMap,serverProps:{documents:H,i18n:s,locale:q,params:n,payload:t,permissions:r,searchParams:p,subfolders:K,user:w}})]})}},Q=async a=>{try{let{View:b}=await P(a);return b}catch(a){if(a?.message==="NEXT_REDIRECT")throw a;"not-found"===a.message?(0,g.notFound)():console.error(a)}},R=async a=>{let{disableBulkDelete:e,disableBulkEdit:f,enableRowSelections:h,folderID:j,initPageResult:k,isInDrawer:l,overrideEntityVisibility:m,params:n,query:o,searchParams:p}=a,{collectionConfig:q,collectionConfig:{slug:r},locale:s,permissions:t,req:{i18n:u,payload:v,payload:{config:w},query:x,user:y},visibleEntities:z}=k;if(!w.folders||!t?.collections?.[r]?.read||!t?.collections?.[w.folders.slug].read)throw Error("not-found");if(q){if(!z.collections.includes(r)&&!m||!w.folders)throw Error("not-found");let a=o||x,A=await (0,N.upsertPreferences)({key:`${r}-collection-folder`,req:k.req,value:{sort:a?.sort}}),B=A?.sort||"name",C=A?.viewPreference||"grid",{routes:{admin:D}}=w,{breadcrumbs:E,documents:F,folderAssignedCollections:G,FolderResultsComponent:H,subfolders:I}=await (0,M.getFolderResultsComponentAndData)({browseByFolder:!1,collectionsToDisplay:[w.folders.slug,r],displayAs:C,folderAssignedCollections:[r],folderID:j,req:k.req,sort:B}),J=E[E.length-1]?.id;!l&&(J&&j&&j!==J||j&&!J)&&(0,g.redirect)((0,i.formatAdminURL)({adminRoute:D,path:`/collections/${r}/${w.folders.slug}`}));let K=a?.search;return{View:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.HydrateAuthProvider,{permissions:t}),(0,d.RenderServerComponent)({clientProps:{allCollectionFolderSlugs:[w.folders.slug,r],allowCreateCollectionSlugs:[t?.collections?.[w.folders.slug]?.create?w.folders.slug:null,J&&t?.collections?.[r]?.create?r:null].filter(Boolean),baseFolderPath:`/collections/${r}/${w.folders.slug}`,breadcrumbs:E,collectionSlug:r,disableBulkDelete:e,disableBulkEdit:f,documents:F,enableRowSelections:h,folderAssignedCollections:G,folderFieldName:w.folders.fieldName,folderID:J||null,FolderResultsComponent:H,search:K,sort:B,subfolders:I,viewPreference:C},Fallback:c.DefaultCollectionFolderView,importMap:v.importMap,serverProps:{collectionConfig:q,documents:F,i18n:u,locale:s,params:n,payload:v,permissions:t,searchParams:p,subfolders:I,user:y}})]})}}throw Error("not-found")},S=async a=>{try{let{View:b}=await R(a);return b}catch(a){if(a?.message==="NEXT_REDIRECT")throw a;"not-found"===a.message?(0,g.notFound)():console.error(a)}};var T=a.i(907206);let U=async a=>{try{let{List:b}=await (0,T.renderListView)({...a,enableRowSelections:!0,trash:!0,viewType:"trash"});return b}catch(a){"not-found"===a.message&&(0,g.notFound)(),console.error(a)}};var V=a.i(568271);async function W({initPageResult:a}){let{locale:c,req:d,req:{payload:{collections:e,config:{admin:{user:f}}}}}=a,g=e?.[f]?.config,{auth:h}=g,i=h.loginWithUsername,j=await (0,A.getDocumentData)({collectionSlug:g.slug,locale:c,payload:d.payload,req:d,user:d.user}),k=await (0,z.getDocPreferences)({collectionSlug:g.slug,payload:d.payload,user:d.user}),l={create:!0,delete:!0,fields:Object.fromEntries(g.fields.filter(a=>"name"in a&&"string"==typeof a.name).map(a=>[a.name,{create:!0,read:!0,update:!0}])),read:!0,readVersions:!0,update:!0},{state:m}=await (0,x.buildFormState)({collectionSlug:g.slug,data:j,docPermissions:l,docPreferences:k,locale:c?.code,operation:"create",renderAllFields:!0,req:d,schemaPath:g.slug,skipClientConfigAuth:!0,skipValidation:!0});return(0,b.jsxs)("div",{className:"create-first-user",children:[(0,b.jsx)("h1",{children:d.t("general:welcome")}),(0,b.jsx)("p",{children:d.t("authentication:beginCreateFirstUser")}),(0,b.jsx)(V.CreateFirstUserClient,{docPermissions:l,docPreferences:k,initialState:m,loginWithUsername:i,userSlug:f})]})}var X=a.i(875070);async function Y(a,b,c){return("function"==typeof a?await a({req:b}):a).map((a,b)=>{let d=c.find(b=>b.slug===a.widgetSlug);return{id:`${a.widgetSlug}-${b}`,data:a.data,maxWidth:d?.maxWidth??"full",minWidth:d?.minWidth??"x-small",width:a.width||"x-small"}})}async function Z(a,b){let c=await (0,p.getPreferences)(O.PREFERENCE_KEYS.DASHBOARD_LAYOUT,a,b.id,b.collection);return c?.value&&"object"==typeof c.value&&"layouts"in c.value?c.value.layouts:null}var $=a.i(166092);async function _(a){let{defaultLayout:c=[],widgets:e=[]}=a.payload.config.admin.dashboard||{},{importMap:f}=a.payload,{user:g}=a,{cookies:h,locale:i,permissions:j,req:k}=a.initPageResult,{i18n:l}=k,m=(await Z(a.payload,g)??await Y(c,k,e)).map(a=>{let b=a.id.slice(0,a.id.lastIndexOf("-")),c=e.find(a=>a.slug===b),g=c?.fields?.length?(0,$.extractLocaleData)(a.data||{},k.locale||"en",c.fields):a.data||{};return{component:(0,d.RenderServerComponent)({Component:c?.Component,importMap:f,serverProps:{cookies:h,locale:i,permissions:j,req:k,widgetData:g,widgetSlug:b}}),item:a}}),n=e.map(a=>{let{Component:b,fields:c,label:d,...e}=a;return{...e,label:"function"==typeof d?d({i18n:l,t:l.t}):d}});return(0,b.jsx)("div",{children:(0,b.jsx)(X.ModularDashboardClient,{clientLayout:m,widgets:n})})}function aa(a){let{i18n:e,locale:f,params:g,payload:h,permissions:i,searchParams:j,user:k}=a,{afterDashboard:l,beforeDashboard:m}=h.config.admin.components;return(0,b.jsxs)(c.Gutter,{className:"dashboard",children:[m&&(0,d.RenderServerComponent)({Component:m,importMap:h.importMap,serverProps:{i18n:e,locale:f,params:g,payload:h,permissions:i,searchParams:j,user:k}}),(0,b.jsx)(_,{...a}),l&&(0,d.RenderServerComponent)({Component:l,importMap:h.importMap,serverProps:{i18n:e,locale:f,params:g,payload:h,permissions:i,searchParams:j,user:k}})]})}async function ab(a){let{locale:f,permissions:g,req:{i18n:h,payload:{config:i},payload:j,user:k},req:m,visibleEntities:n}=a.initPageResult,o=await (0,e.getGlobalData)(m),p=(0,e.getNavGroups)(g,n,i,h);return(0,b.jsxs)(l.Fragment,{children:[(0,b.jsx)(c.HydrateAuthProvider,{permissions:g}),(0,b.jsx)(c.SetStepNav,{nav:[]}),(0,d.RenderServerComponent)({clientProps:{locale:f},Component:i.admin?.components?.views?.dashboard?.Component,Fallback:aa,importMap:j.importMap,serverProps:{...a,globalData:o,i18n:h,locale:f,navGroups:p,payload:j,permissions:g,user:k,visibleEntities:n}})]})}var ac=a.i(83450),ad=a.i(185934),ae=a.i(463706);let af=a=>{let{i18n:b,locale:c,params:f,payload:g,permissions:h,searchParams:i,user:j}=a,{admin:{components:{graphics:{Logo:k}={Logo:void 0}}={}}={}}=g.config;return(0,d.RenderServerComponent)({Component:k,Fallback:e.PayloadLogo,importMap:g.importMap,serverProps:{i18n:b,locale:c,params:f,payload:g,permissions:h,searchParams:i,user:j}})};var ag=a.i(386039);let ah="login";var ai=a.i(549868);let aj=({inactivity:a,initPageResult:c,searchParams:d})=>{let{req:{payload:{config:{routes:{admin:e}}}}}=c;return(0,b.jsx)("div",{className:"logout",children:(0,b.jsx)(ai.LogoutClient,{adminRoute:e,inactivity:a,redirect:d.redirect})})};var ak=a.i(594139);let al="reset-password";function am({initPageResult:a,params:d}){let{req:f}=a,{segments:[g,h]}=d,{i18n:j,payload:{config:k},user:l}=f,{admin:{routes:{account:m,login:n}},routes:{admin:o}}=k;return l?(0,b.jsxs)("div",{className:`${al}__wrap`,children:[(0,b.jsx)(ad.FormHeader,{description:(0,b.jsx)(e.Translation,{elements:{0:({children:a})=>(0,b.jsx)(c.Link,{href:(0,i.formatAdminURL)({adminRoute:o,path:m}),prefetch:!1,children:a})},i18nKey:"authentication:loggedInChangePassword",t:j.t}),heading:j.t("authentication:alreadyLoggedIn")}),(0,b.jsx)(c.Button,{buttonStyle:"secondary",el:"link",size:"large",to:o,children:j.t("general:backToDashboard")})]}):(0,b.jsxs)("div",{className:`${al}__wrap`,children:[(0,b.jsx)(ad.FormHeader,{heading:j.t("authentication:resetPassword")}),(0,b.jsx)(ak.ResetPasswordForm,{token:h}),(0,b.jsx)(c.Link,{href:(0,i.formatAdminURL)({adminRoute:o,path:n}),prefetch:!1,children:j.t("authentication:backToLogin")})]})}var an=a.i(555660),ao=a.i(847875);let ap="verify";async function aq({initPageResult:a,params:c,searchParams:d}){let e,[f,g,h]=c.segments,{locale:j,permissions:k,req:m}=a,{i18n:n,payload:{config:o},payload:p,user:q}=m,{routes:{admin:r},serverURL:s}=o,t=!1;try{await m.payload.verifyEmail({collection:f,token:h}),t=!0,e=m.t("authentication:emailVerified")}catch(a){e=m.t("authentication:unableToVerify")}return t?(0,b.jsx)(ao.ToastAndRedirect,{message:m.t("authentication:emailVerified"),redirectTo:(0,i.formatAdminURL)({adminRoute:r,path:"/login"})}):(0,b.jsxs)(l.default.Fragment,{children:[(0,b.jsx)("div",{className:`${ap}__brand`,children:(0,b.jsx)(af,{i18n:n,locale:j,params:c,payload:p,permissions:k,searchParams:d,user:q})}),(0,b.jsx)("h2",{children:e})]})}function ar({editConfig:a,viewKey:b}){return a&&b in a&&"actions"in a[b]?a[b].actions??[]:[]}function as({collectionOrGlobal:a,viewKeyArg:b}){if(a?.admin?.components?.views?.edit){let c=b||"default";return"root"in a.admin.components.views.edit&&(c="root"),ar({editConfig:a.admin?.components?.views?.edit,viewKey:c})}return[]}function at(a){let[b,c]=a;if(c){if("versions"===b)return{documentSubViewType:"version",viewType:"version"}}else if("versions"===b)return{documentSubViewType:"versions",viewType:"document"};else if("api"===b)return{documentSubViewType:"api",viewType:"document"};return{documentSubViewType:"default",viewType:"document"}}let au={account:"account",folders:"folders",forgot:"forgot-password",login:ah,reset:al,verify:ap},av={account:L,browseByFolder:Q,createFirstUser:W,forgot:function({initPageResult:a}){let{req:{i18n:d,payload:{config:f},user:g}}=a,{admin:{routes:{account:h,login:j}},routes:{admin:k}}=f;return g?(0,b.jsxs)(l.Fragment,{children:[(0,b.jsx)(ad.FormHeader,{description:(0,b.jsx)(e.Translation,{elements:{0:({children:a})=>(0,b.jsx)(c.Link,{href:(0,i.formatAdminURL)({adminRoute:k,path:h}),prefetch:!1,children:a})},i18nKey:"authentication:loggedInChangePassword",t:d.t}),heading:d.t("authentication:alreadyLoggedIn")}),(0,b.jsx)(c.Button,{buttonStyle:"secondary",el:"link",size:"large",to:k,children:d.t("general:backToDashboard")})]}):(0,b.jsxs)(l.Fragment,{children:[(0,b.jsx)(ae.ForgotPasswordForm,{}),(0,b.jsx)(c.Link,{href:(0,i.formatAdminURL)({adminRoute:k,path:j}),prefetch:!1,children:d.t("authentication:backToLogin")})]})},inactivity:function(a){return(0,b.jsx)(aj,{inactivity:!0,...a})},login:function({initPageResult:a,params:c,searchParams:e}){let{locale:f,permissions:h,req:i}=a,{i18n:j,payload:{config:k},payload:m,user:n}=i,{admin:{components:{afterLogin:o,beforeLogin:p}={},user:q},routes:{admin:r}}=k,s=(({allowAbsoluteUrls:a=!1,fallbackTo:b="/",redirectTo:c})=>{let d;if("string"!=typeof c)return b;try{d=decodeURIComponent(c.trim())}catch{return b}let e=d.startsWith("/")&&!d.startsWith("//")&&!d.startsWith("/%2F")&&!d.startsWith("/\\/")&&!d.startsWith("/\\\\")&&!d.startsWith("/\\")&&!d.toLowerCase().startsWith("/javascript:")&&!d.toLowerCase().startsWith("/http"),f=a&&/^https?:\/\/\S+$/i.test(d);return e||f?d:b})({fallbackTo:r,redirectTo:e.redirect});n&&(0,g.redirect)(s);let t=m?.collections?.[q]?.config,u="object"==typeof k.admin?.autoLogin&&k.admin?.autoLogin.prefillOnly,v=u&&"object"==typeof k.admin?.autoLogin?k.admin?.autoLogin.username:void 0,w=u&&"object"==typeof k.admin?.autoLogin?k.admin?.autoLogin.email:void 0,x=u&&"object"==typeof k.admin?.autoLogin?k.admin?.autoLogin.password:void 0;return(0,b.jsxs)(l.Fragment,{children:[(0,b.jsx)("div",{className:`${ah}__brand`,children:(0,b.jsx)(af,{i18n:j,locale:f,params:c,payload:m,permissions:h,searchParams:e,user:n})}),(0,d.RenderServerComponent)({Component:p,importMap:m.importMap,serverProps:{i18n:j,locale:f,params:c,payload:m,permissions:h,searchParams:e,user:n}}),!t?.auth?.disableLocalStrategy&&(0,b.jsx)(ag.LoginForm,{prefillEmail:w,prefillPassword:x,prefillUsername:v,searchParams:e}),(0,d.RenderServerComponent)({Component:o,importMap:m.importMap,serverProps:{i18n:j,locale:f,params:c,payload:m,permissions:h,searchParams:e,user:n}})]})},logout:aj,unauthorized:an.UnauthorizedView},aw=async({config:a,importMap:n,params:x,searchParams:y})=>{let z,A,B,C=await a,{admin:{routes:{createFirstUser:D},user:E},routes:{admin:F}}=C,G=await x,H=(0,i.formatAdminURL)({adminRoute:F,path:Array.isArray(G.segments)?`/${G.segments.join("/")}`:null}),I=Array.isArray(G.segments)?G.segments:[],J="collections"===I[0],K="globals"===I[0],L=await y;if(J){if(1===I.length){let{viewKey:a}=u({config:C,currentRoute:"/collections"});a||(0,g.redirect)(F)}I[1]&&(z=C.collections.find(({slug:a})=>a===I[1]))}if(K){if(1===I.length){let{viewKey:a}=u({config:C,currentRoute:"/globals"});a||(0,g.redirect)(F)}I[1]&&(A=C.globals.find(({slug:a})=>a===I[1]))}if(J&&!z||K&&!A)return(0,g.notFound)();let M=`${j.stringify(L??{},{addQueryPrefix:!0})}`,{cookies:N,locale:O,permissions:P,req:Q,req:{payload:R}}=await (0,q.initReq)({configPromise:C,importMap:n,key:"initPage",overrides:{fallbackLocale:!1,req:{query:k.parse(M,{depth:10,ignoreQueryPrefix:!0})},urlSuffix:`${H}${L?M:""}`}});P.canAccessAdmin||(({adminRoute:a,config:b,route:c})=>s.some(d=>{let e=b.admin?.routes?.[d]||d,f=r({adminRoute:a,route:c});return!!f.startsWith(e)||!!f.includes("/verify/")}))({adminRoute:F,config:R.config,route:H})||(({adminRoute:a,config:b,route:c})=>!!b.admin?.components?.views&&Object.entries(b.admin.components.views).some(([b,d])=>{let e=r({adminRoute:a,route:c});if(d.exact){if(e===d.path)return!0}else if(d.path&&"/"!==d.path&&(e===d.path||e.startsWith(d.path+"/")))return!0;return!1}))({adminRoute:F,config:R.config,route:H})||(0,g.redirect)((({config:a,route:b,searchParams:c,user:d})=>{let{admin:{routes:{login:e,unauthorized:f}},routes:{admin:g}}=a;c&&"redirect"in c&&delete c.redirect;let h=(b!==g?b:"")+(Object.keys(c??{}).length>0?`${j.stringify(c,{addQueryPrefix:!0})}`:""),l=(0,i.formatAdminURL)({adminRoute:g,path:d?f:e}),m=k.parse(l.split("?")[1]??""),n=`${j.stringify({...m,...h?{redirect:h}:{}},{addQueryPrefix:!0})}`;return`${l.split("?",1)[0]}${n}`})({config:R.config,route:H,searchParams:L,user:Q.user})),z&&2===I.length&&C.folders&&z.folders&&I[1]!==C.folders.slug&&await (0,p.getPreferences)(`collection-${z.slug}`,Q.payload,Q.user.id,C.admin.user).then(a=>{a&&a.value&&(B=a.value)});let{browseByFolderSlugs:V,DefaultView:W,documentSubViewType:X,routeParams:Y,templateClassName:Z,templateType:$,viewActions:_,viewType:aa}=(({adminRoute:a,collectionConfig:b,collectionPreferences:c,currentRoute:d,globalConfig:e,payload:f,segments:g})=>{let h,j,k,l,{config:m}=f,n=null,o={},[p,q,r,s,x,y]=g,z=m.folders&&m.folders.browseByFolder,A=z&&m.collections.reduce((a,{slug:b,folders:c})=>c&&c.browseByFolder?[...a,b]:a,[])||[],B=[...m?.admin?.components?.actions||[]];switch(g.length){case 0:d===a&&(n={Component:ab},h="dashboard",j="default",l="dashboard");break;case 1:{let b;if(m.admin.routes){let c=Object.entries(m.admin.routes).find(([,b])=>(0,t.isPathMatchingRoute)({currentRoute:d,exact:!0,path:(0,i.formatAdminURL)({adminRoute:a,path:b})}));c&&(b=c[0])}let c=b&&(({config:a,viewKey:b})=>{let c=a.admin.components?.views?.[b];return c?{view:{payloadComponent:c.Component},viewKey:b}:null})({config:m,viewKey:b})||u({config:m,currentRoute:d});c?.view?.payloadComponent||c?.view?.Component?(n=c.view,b&&av[b]&&(l=b,h=au[b]||b,j="minimal","account"===b&&(j="default"),z&&"browseByFolder"===b&&(j="default",l="folders"))):av[b]&&(n={Component:av[b]},l=b,h=au[b],j="minimal","account"===b&&(j="default"),z&&"browseByFolder"===b&&(j="default",l="folders"));break}case 2:`/${p}`===m.admin.routes.reset?(n={Component:am},h=au[q],j="minimal",l="reset"):z&&`/${p}`===m.admin.routes.browseByFolder?(o.folderID=q,n={Component:av.browseByFolder},h=au.folders,j="default",l="folders"):b?(o.collection=b.slug,c?.listViewType&&"folders"===c.listViewType?(n={Component:S},h="collection-folders",j="default",l="collection-folders"):(n={Component:T.ListView},h=`${q}-list`,j="default",l="list"),B.push(...b.admin.components?.views?.list?.actions||[])):e&&(o.global=e.slug,n={Component:ac.DocumentView},h="global-edit",j="default",l="document",B.push(...ar({editConfig:e.admin?.components?.views?.edit,viewKey:"default"})));break;default:if("verify"===q)o.collection=p,o.token=r,n={Component:aq},h="verify",j="minimal",l="verify";else if(b)if(o.collection=b.slug,"trash"===r&&"string"==typeof s){o.id=s,o.versionID=y,n={Component:ac.DocumentView},h="collection-default-edit",j="default";let a=at([x,y]);l=a.viewType,k=a.documentSubViewType,B.push(...as({collectionOrGlobal:b,viewKeyArg:k}))}else if("trash"===r)n={Component:U},h=`${q}-trash`,j="default",l="trash",B.push(...b.admin.components?.views?.list?.actions||[]);else if(m.folders&&r===m.folders.slug&&b.folders)o.folderCollection=r,o.folderID=s,n={Component:S},h="collection-folders",j="default",l="collection-folders",B.push(...b.admin.components?.views?.list?.actions||[]);else{o.id="create"===r?void 0:r,o.versionID=x,n={Component:ac.DocumentView},h="collection-default-edit",j="default";let a=at([s,x]);l=a.viewType,k=a.documentSubViewType,B.push(...as({collectionOrGlobal:b,viewKeyArg:k}))}else if(e){o.global=e.slug,o.versionID=s,n={Component:ac.DocumentView},h="global-edit",j="default";let a=at([r,s]);l=a.viewType,k=a.documentSubViewType,B.push(...as({collectionOrGlobal:e,viewKeyArg:k}))}}return n||(n=u({config:m,currentRoute:d})?.view),b&&(o.id&&(o.id=(0,v.parseDocumentID)({id:o.id,collectionSlug:b.slug,payload:f})),o.versionID&&(o.versionID=(0,v.parseDocumentID)({id:o.versionID,collectionSlug:b.slug,payload:f}))),m.folders&&o.folderID&&(o.folderID=(0,v.parseDocumentID)({id:o.folderID,collectionSlug:m.folders.slug,payload:f})),e&&o.versionID&&(o.versionID="number"===f.db.defaultIDType&&(0,w.isNumber)(o.versionID)?Number(o.versionID):o.versionID),B.length&&B.reverse(),{browseByFolderSlugs:A,collectionConfig:b,DefaultView:n,documentSubViewType:k,globalConfig:e,routeParams:o,templateClassName:h,templateType:j,viewActions:B.length?B:void 0,viewType:l}})({adminRoute:F,collectionConfig:z,collectionPreferences:B,currentRoute:H,globalConfig:A,payload:R,searchParams:L,segments:I});Q.routeParams=Y;let ad=Q.user||await Q.payload.db.findOne({collection:E,req:Q})?.then(a=>!!a);W?.Component||W?.payloadComponent||(Q?.user&&(0,g.notFound)(),ad&&(0,g.redirect)(F));let ae=C.collections.find(({slug:a})=>a===E),af=ae?.auth?.disableLocalStrategy,ag=(0,i.formatAdminURL)({adminRoute:F,path:D});af&&H===ag&&(0,g.redirect)(F),ad||H===ag||af||(0,g.redirect)(ag),ad&&H===ag&&(0,g.redirect)(F),W?.Component||W?.payloadComponent||ad||(0,g.redirect)(F);let ah=(0,f.getClientConfig)({config:C,i18n:Q.i18n,importMap:n,user:"createFirstUser"===aa||Q.user});await (0,h.applyLocaleFiltering)({clientConfig:ah,config:C,req:Q}),ah.localization&&Q.locale&&!ah.localization.localeCodes.includes(Q.locale)&&(0,g.redirect)(`${H}${j.stringify({...L,locale:ah.localization.localeCodes.includes(ah.localization.defaultLocale)?ah.localization.defaultLocale:ah.localization.localeCodes[0]},{addQueryPrefix:!0})}`);let ai=(0,e.getVisibleEntities)({req:Q}),aj=Y.folderID,ak=(0,d.RenderServerComponent)({clientProps:{browseByFolderSlugs:V,clientConfig:ah,documentSubViewType:X,viewType:aa},Component:W.payloadComponent,Fallback:W.Component,importMap:n,serverProps:{clientConfig:ah,collectionConfig:z,docID:Y.id,folderID:aj,globalConfig:A,i18n:Q.i18n,importMap:n,initPageResult:{collectionConfig:z,cookies:N,docID:Y.id,globalConfig:A,languageOptions:Object.entries(Q.payload.config.i18n.supportedLanguages||{}).reduce((a,[b,c])=>(Object.keys(Q.payload.config.i18n.supportedLanguages).includes(b)&&a.push({label:c.translations.general.thisLanguage,value:b}),a),[]),locale:O,permissions:P,req:Q,translations:Q.i18n.translations,visibleEntities:ai},params:G,payload:Q.payload,searchParams:L,viewActions:_}});return(0,b.jsxs)(c.PageConfigProvider,{config:ah,children:[!$&&(0,b.jsx)(l.default.Fragment,{children:ak}),"minimal"===$&&(0,b.jsx)(o,{className:Z,children:ak}),"default"===$&&(0,b.jsx)(m.DefaultTemplate,{collectionSlug:z?.slug,docID:Y.id,documentSubViewType:X,globalSlug:A?.slug,i18n:Q.i18n,locale:O,params:G,payload:Q.payload,permissions:P,req:Q,searchParams:L,user:Q.user,viewActions:_,viewType:aa,visibleEntities:{collections:ai?.collections,globals:ai?.globals},children:ak})]})};a.s(["RootPage",0,aw],904748)},495067,a=>a.a(async(b,c)=>{try{var d=a.i(273824),e=a.i(904748),f=a.i(657185),g=b([d]);[d]=g.then?(await g)():g,a.s(["default",0,({params:a,searchParams:b})=>(0,e.RootPage)({config:d.default,importMap:f.importMap,params:a,searchParams:b})]),c()}catch(a){c(a)}},!1)];
|
|
|
|
//# debugId=eab00cd9-c5cb-a9c1-20a9-82f2bbd99794
|
|
//# sourceMappingURL=_f7067c62._.js.map
|