1import{a as l,j as t,r as u,d as s,O as m}from"./index-yjs0jCN1.js";import{C as c}from"./common_admin_layout-Du2CJe0Y.js";import{p as d}from"./index-CYkanOlq.js";import{p as f}from"./path_from_slugs-BkrKpry9.js";import{u as b}from"./useRailsContext-Phen6V97.js";import{u as g}from"./actions-BV_hQGVL.js";import{u as h}from"./gql-BXUds3tn.js";import"./admin_layout_base-DUwP-dbX.js";import"./layout-CjNw_1vT.js";import"./ApolloContext-MQGfuinR.js";function I(){var o,n;const r=l(),i=f(r),{csrf:p}=b(),{data:e}=h(d,{variables:{path:i}}),a=((o=e==null?void 0:e.page)==null?void 0:o.draft)||!1;return t.jsx(u.Suspense,{fallback:t.jsx(s.Spinner,{}),children:t.jsx(c,{hideSidebar:!0,title:`Editing Page "${(n=e==null?void 0:e.page)==null?void 0:n.title}"`,backPath:"/admin/pages",actions:[{id:"preview",onPress(){window.open(`/${i}`)},label:"Preview",appearance:"outline"},{id:"save",eventName:"save",label:a?"Publish":"Update",actions:[!a&&{id:"update-continue",label:"Update & Continue",eventName:"update-continue",icon:s.FloppyDiskIcon},!a&&{id:"unpublish",label:"Unpublish",icon:s.RotateBackIcon,onPress:async()=>{await g({csrf:p})}}].filter(Boolean)}],tabs:[{title:"Settings",key:"settings"},{title:"Content Editor",key:"edit"}],children:t.jsx(m,{})})})}export{I as default};
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.