1import{d,Y as k,Z as h,$ as C,c as l,a as g,o as r,w as x,F as w,E as v,g as e,v as f,b as i,y as E,t as S,O as N,_ as O,i as P,e as R,a0 as U,M as j,W as D,X as I,j as V}from"./B7g2SrGs.js";const $={key:0,class:"pages-cms-edit-panel has-text-body-s shadow"},A=["href"],q=["href"],z=d({__name:"PagesCmsEditPanel",props:{page:{}},setup(o){const t=o,a=k(),{page:p}=h(t),s=C(),c=E(),n=l(()=>s.query.draft),_=l(()=>s.path+(n.value?"":"?draft=true")),m=async()=>{await a.signout()};return(y,B)=>{const u=N,b=O;return r(),g(b,null,{default:x(()=>[e(a).isNdlStaff?(r(),w("div",$,[f("a",{href:e(c).public.mgmtBaseUrl+"/admin/page/"+e(p).id},"ç·¨é",8,A),f("a",{href:e(_)},S(e(n)?"ã«ã¬ã³ã":"ãã©ãã"),9,q),i(u,{icon:"interface/logout",size:"small",onClick:m})])):v("",!0)]),_:1})}}}),F=Object.assign(P(z,[["__scopeId","data-v-b5359ef5"]]),{__name:"PagesCmsEditPanel"}),H=d({__name:"PagesCms",props:{page:{},template:{}},setup(o){const t=o,{page:a}=h(t);return(p,s)=>{const c=U,n=F,_=R;return r(),g(_,{class:"cms-page"},{default:x(()=>[i(c,{template:o.template,page:e(a)},null,8,["template","page"]),i(n,{page:e(a)},null,8,["page"])]),_:1})}}}),L=Object.assign(P(H,[["__scopeId","data-v-fe7faec8"]]),{__name:"PagesCms"}),W=d({__name:"[...path]",async setup(o){let t,a;const{getPageAndCache:p}=j(),{page:s,meta:c}=([t,a]=D(()=>p()),t=await t,a(),t);I(c);const n=C(),_=V(),m=l(()=>{if(s.template)return _.page(s.template)?.md?.md});return(y,B)=>{const u=L;return r(),g(u,{key:e(n).path,page:e(s),template:e(m)},null,8,["page","template"])}}});export{W 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.