mirror of
https://github.com/JessSystemV/zProtect.git
synced 2025-01-08 08:25:40 +00:00
2 lines
18 KiB
JavaScript
2 lines
18 KiB
JavaScript
|
import{_ as w,r as R,o as n,c as i,b as L,f as S,i as P,j as h,k as pe,h as e,F as I,l as A,m as y,a as b,t as T,n as W,p as J,q as C,w as B,s as ve,v as $,e as j,x as Y,y as Be,z as Ne,A as He,B as Q,C as Z,D as q,E as he,G as me,H as E,u as fe,g as H,T as be,I as z,J as ge,K as G,L as X,M as Ie,N as Me,O as ee,P as ke,Q as $e,d as De,R as te,S as Pe,U as K,V as ae,W as Ee,X as Re,Y as Ae,Z as Oe,$ as Fe,a0 as ze,a1 as We}from"./app.fe610a35.js";const Ue={},Ve={class:"theme-default-content"};function Ke(v,a){const t=R("Content");return n(),i("div",Ve,[L(t)])}var je=w(Ue,[["render",Ke],["__file","HomeContent.vue"]]);const qe={key:0,class:"features"},Ge=S({__name:"HomeFeatures",setup(v){const a=P(),t=h(()=>pe(a.value.features)?a.value.features:[]);return(u,o)=>e(t).length?(n(),i("div",qe,[(n(!0),i(I,null,A(e(t),_=>(n(),i("div",{key:_.title,class:"feature"},[b("h2",null,T(_.title),1),b("p",null,T(_.details),1)]))),128))])):y("",!0)}});var Xe=w(Ge,[["__file","HomeFeatures.vue"]]);const Ye=["innerHTML"],Je=["textContent"],Qe=S({__name:"HomeFooter",setup(v){const a=P(),t=h(()=>a.value.footer),u=h(()=>a.value.footerHtml);return(o,_)=>e(t)?(n(),i(I,{key:0},[e(u)?(n(),i("div",{key:0,class:"footer",innerHTML:e(t)},null,8,Ye)):(n(),i("div",{key:1,class:"footer",textContent:T(e(t))},null,8,Je))],64)):y("",!0)}});var Ze=w(Qe,[["__file","HomeFooter.vue"]]);const et=["href","rel","target","aria-label"],tt=S({inheritAttrs:!1}),at=S({...tt,__name:"AutoLink",props:{item:{type:Object,required:!0}},setup(v){const a=v,t=W(),u=He(),{item:o}=J(a),_=h(()=>Y(o.value.link)),f=h(()=>Be(o.value.link)||Ne(o.value.link)),c=h(()=>{if(!f.value){if(o.value.target)return o.value.target;if(_.value)return"_blank"}}),r=h(()=>c.value==="_blank"),s=h(()=>!_.value&&!f.value&&!r.value),l=h(()=>{if(!f.value){if(o.value.rel)return o.value.rel;if(r.value)return"noopener noreferrer"}}),p=h(()=>o.value.ariaLabel||o.value.text),d=h(()=>{const k=Object.keys(u.value.locales);return k.length?!k.some(m=>m===o.value.link):o.value.link!=="/"}),g=h(()=>d.value?t.path.startsWith(o.value.link):!1),x=h(()=>s.value?o.value.activeMatch?new RegExp(o.value.activeMatch).test(t.path):g.value:!1);return(k,m)=>{const N=R("RouterLink"),M=R("AutoLinkExternalIcon");return e(s)?(n(),C(N,ve({key:0,class:{"router-link-active":e(x)},to:e(o).link,"aria-label":e(p)},k.$attrs),{default:B(()=>[$(k.$slots,"before"),j(" "+T(e(o).text)+" ",1),$(k.$slots,"after")]),_:3},16,["class","to","aria-label"])):(n(),i("a",ve({key:1,class:"external-link",href:e(o).link,rel:e(l),target:e(c),"aria-label":e(p)},k.$attrs),[$(k.$slots,"before"),j(" "+T(e(o).text)+" ",1),e(r)?(n(),C(M,{key:0})):y("",!0),$(k.$slots,"after")],16,et))}}});var D=w(at,[["__file","AutoLink.vue"]]);const nt={class:"hero"},ot={key:0,id:"main-title"},rt={key:1,class:"description"},st={key:2,class:"actions"},lt=S({__name:"HomeHero",setup(v){const a=P(),t=Q(),u=Z(),o=h(()=>u.value&&a.value.heroImageDark!==void 0?a.value.heroImageDark:a.value.heroImage),_=h(()=>a.value.heroText===null?null:a.value.heroText||t.value.title||"Hello"),f=h(()=>a.value.heroAlt||_.value||"hero"),c=h(()=>a.value.tagline===null?null:a.value.tagline||t.value.description||"Welcome to your VuePress site"),r=h(()=>pe(a.value.actions)?a.value.actions.map(({text:l,link:p,type:d="primary"})=>({text:l,link:p,type:d})):[]),s=()=>{if(!o.value)return null;const l=q("img",{src:he(o.value),alt:f.value});return a.value.heroImageDark===void 0?l:q(me,()=>l)};return(l,p)=>(n(),i("header",nt,[L(s),e(_)?(n(),i("h1",ot,T(e(_)),1)):y("",!0),e(c)?(n(),i("p",rt,T(e(c)),1)):y("",!0),e(r).length?(n(),i("p",st,[(n(!0),i(I,null,A(e(r),d=>(n(),C(D,{key:d.text,class:E(["action-button",[d.type]]),item:d},null,8,["class","item"]))),128))])):y("",!0)]))}});var ut=w(lt,[["__file","HomeHero.vue"]]);const it={class:"home"},ct=S({__name:"Home",setup(v){return(a,t)=>(n(),i("main",it,[L(ut),L(Xe),L(je),L(Ze)]))}});var dt=w(ct,[["__file","Home.vue"]]);const vt=S({__name:"NavbarBrand",setup(v){const a=fe(),t=Q(),u=H(),o=Z(),_=h(()=>u.value.home||a.value),f=h(()=>t.value.title),c=h(()=>o.value&&u.value.logo
|