1import{r as n,j as i}from"./elements-5kxJS_4j.js";import{C}from"./CustomContent-CcAnhb4u.js";import{A}from"./authorization-DRCBMAi9.js";import{u as y}from"./useCustomContent-DI_9OCLI.js";import{u as j}from"./useLayoutContext-SRgr9BCN.js";import{x as w,$ as b,G as v,j as L,o as P}from"./index-CtCeyryw.js";import{u as E}from"./useRedesign-xeayEwR4.js";import{u as $}from"./useAuthorization-XS6cSJ0I.js";import"./index-BSR_b3JY.js";import"./grids-DGmfp9GI.js";import"./startOfDay-AazlW55I.js";const g="Custom_v2",k={title:"Custom Page",showPropertySelector:!1,showAi:!0};function B(){const r=w(),{legacyAction:t=""}=b(),{setPageTitle:c}=j(),o=v(),a=L(s=>s.userSettings),d=y(t,g),u=E(),l=P(),h=$(),[e,m]=n.useState(void 0);if(h.isLoggedIn||(u&&l.pathname!==`/public/custom/${t}`?r(`/public/custom/${t}`,{replace:!0}):!u&&l.pathname!==`/custom/${t}`&&r(`/custom/${t}`,{replace:!0})),n.useEffect(()=>{const s=(o==null?void 0:o.pages)??(a==null?void 0:a.pages),p=s==null?void 0:s.find(x=>{var f;return((f=x.legacyAction)==null?void 0:f.toLowerCase())===t.toLowerCase()});m(p||null)},[o,t,o,a]),n.useEffect(()=>(e!==null?c((e==null?void 0:e.pageTitle)??"Custom Page"):r("/dashboard"),()=>c("")),[e,t]),e)return i.jsx(A,{controller:g,action:e.legacyAction??"",requireAuth:!1,children:i.jsx("div",{className:"px-horizontal-layout flex flex-wrap-reverse xl:flex-nowrap justify-center gap-10 py-8 bg-base-fill rounded-xl",children:i.jsx(C,{content:d,className:"w-full"})})})}export{B as Component,k as handle};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.