PageSourceSearch

https://penbrief.com/build/assets/Edit-B5QrQXKd.js

js penbrief.com collected 2026-10-08 05:33:57 UTC 3,283 bytes, 1 lines download raw bytes

1import{j as t}from"./app-Bn8axf2m.js";import{u as a,H as p,b as n,L as d}from"./vendor-D8BamyIx.js";import{A as c}from"./AppLayout-DDnh82Xe.js";import{C as u}from"./ContentStatusBadge-C_eecMjU.js";import{B as s}from"./button-BJHJ0j8Y.js";import{A as h,a as x,b as f,c as j,d as g,e as b,f as A,g as v,h as D}from"./alert-dialog-BKfR5d2V.js";import C from"./PageForm-Be0stEDe.js";import{T as N}from"./trash-2-DOnMnHQN.js";import{A as S}from"./arrow-left-ZcmZgAi1.js";/* empty css            */import"./AppLogo-DcmacEfU.js";import"./utils-DCADjnpI.js";import"./createLucideIcon-CsuOtgaI.js";import"./UserAvatar-xayue2JR.js";import"./index-BYAuPZuj.js";import"./index-CPzEHnIt.js";import"./index-xw87Tvjh.js";import"./dropdown-menu-CW2iYoX1.js";import"./index-DFaUj89F.js";import"./index-DFcVNo6o.js";import"./file-text-DaylnC7C.js";import"./globe-CJdHktb2.js";import"./gauge-CJYVPv0v.js";import"./sparkles-B8Vum2j7.js";import"./shield-check-DX9si8b9.js";import"./FlashMessages-VEWLDp2I.js";import"./info-rA2aT-3L.js";import"./triangle-alert-P9Ytexve.js";import"./circle-check-PhDoMN55.js";import"./x-CrTk-_Ms.js";import"./badge-DSA_tntd.js";import"./index-BlkunbP1.js";import"./BlockEditor-C8Gwfrmi.js";import"./input-Jv8uXHpu.js";import"./useMediaCache-BAs_6aAU.js";import"./http-BPRPtlxi.js";import"./search-CTuaKws6.js";import"./upload-CPrINQNm.js";import"./loader-circle-Wr5whC3u.js";import"./link-2-BpR9JqFS.js";import"./code-xml-cmywz5Ku.js";import"./minus-JMiU9TEb.js";import"./undo-2-D_QTr7wO.js";import"./textarea-BtuvhiLj.js";import"./plus-CPqruDw4.js";import"./InputError-9fJul_yf.js";import"./card-D0Qy6Ld2.js";import"./label-Cg1Qz0vJ.js";import"./select-CWnhfHEk.js";import"./check-s0EwGkyq.js";function Dt({page:{data:r},statuses:l,can:i}){const e=a({title:r.title,slug:r.slug,doc:r.doc??null,status:r.status,seo_title:r.seo.title??"",seo_description:r.seo.description??""}),o=m=>{m.preventDefault(),e.put(`/admin/pages/${r.id}`,{preserveScroll:!0})};return t.jsxs(c,{wide:!0,title:r.title,eyebrow:t.jsxs(d,{href:"/admin/pages",className:"inline-flex items-center gap-1 hover:underline",children:[t.jsx(S,{className:"size-3"}),"Pages"]}),description:`/${r.slug}`,actions:t.jsxs(t.Fragment,{children:[t.jsx(u,{status:r.status,label:r.status_label,className:"self-center"}),i.delete&&t.jsxs(h,{children:[t.jsx(x,{asChild:!0,children:t.jsxs(s,{variant:"outline",children:[t.jsx(N,{className:"text-destructive size-4"}),"Delete"]})}),t.jsxs(f,{children:[t.jsxs(j,{children:[t.jsx(g,{children:"Move this page to trash?"}),t.jsxs(b,{children:["“",r.title,"” will stop being served. You can restore it from the trash filter."]})]}),t.jsxs(A,{children:[t.jsx(v,{children:"Cancel"}),t.jsx(D,{onClick:()=>n.delete(`/admin/pages/${r.id}`),children:"Move to trash"})]})]})]}),t.jsx(s,{onClick:o,disabled:e.processing||!i.update,children:e.processing?"Saving…":"Save"})]}),children:[t.jsx(p,{title:`Edit — ${r.title}`}),!i.update&&t.jsx("div",{className:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-400 rounded-md border px-4 py-3 text-sm",children:"This page is published and you do not have permission to change live pages."}),t.jsx("form",{onSubmit:o,children:t.jsx(C,{form:e,statuses:l,disabled:e.processing||!i.update})})]})}export{Dt 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.