Files
static-php-cli/assets/chunks/theme.CtIPYXhG.js

4 lines
104 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPAlgoliaSearchBox.eXrXDI30.js","assets/chunks/framework.C2AwuPrQ.js","assets/chunks/mermaid.core.BrszyIat.js"])))=>i.map(i=>d[i]);
import{d as v,c as d,r as c,n as P,o as i,a as U,t as w,b as y,w as g,T as $e,e as m,_,u as Le,i as rs,f as ps,g as Pe,h as b,j as u,k as l,l as X,m as Ee,p as R,q as us,s as ie,v as cs,x as S,y as ae,z as G,A as ze,B as Ve,C as se,D as fe,E as Oe,F as Ge,G as z,H as C,I as Y,J as h,K as j,L as Re,M as K,N as ve,O as Ue,P as gs,Q as ms,R as ge,S as We,U as fs,V as vs,W as Ke,X as Je,Y as Xe,Z as hs,$ as bs,a0 as xs,a1 as ys,a2 as ws,a3 as _s,a4 as ks}from"./framework.C2AwuPrQ.js";const $s=v({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,s)=>(i(),d("span",{class:P(["VPBadge",e.type])},[c(e.$slots,"default",{},()=>[U(w(e.text),1)])],2))}}),Ls={key:0,class:"VPBackdrop"},Ps=v({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,s)=>(i(),y($e,{name:"fade"},{default:g(()=>[e.show?(i(),d("div",Ls)):m("",!0)]),_:1}))}}),zs=_(Ps,[["__scopeId","data-v-c79a1216"]]),L=Le;function Ye(o,e){let s,t=!1;return()=>{s&&clearTimeout(s),t?s=setTimeout(o,e):(o(),(t=!0)&&setTimeout(()=>t=!1,e))}}function xe(o){return o.startsWith("/")?o:`/${o}`}function Se(o){const{pathname:e,search:s,hash:t,protocol:n}=new URL(o,"http://a.com");if(rs(o)||o.startsWith("#")||!n.startsWith("http")||!ps(e))return o;const{site:a}=L(),r=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${s}${t}`);return Pe(r)}function le({correspondingLink:o=!1}={}){const{site:e,localeIndex:s,page:t,theme:n,hash:a}=L(),r=b(()=>({label:e.value.locales[s.value]?.label,link:e.value.locales[s.value]?.link||(s.value==="root"?"/":`/${s.value}/`)}));return{localeLinks:b(()=>Object.entries(e.value.locales).flatMap(([x,$])=>r.value.label===$.label?[]:{text:$.label,link:Vs($.link||(x==="root"?"/":`/${x}/`),n.value.i18nRouting!==!1&&o,t.value.relativePath.slice(r.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:r}}function Vs(o,e,s,t){return e?o.replace(/\/$/,"")+xe(s.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,t?".html":"")):o}const Ss={class:"NotFound"},Ts={class:"code"},Ns={class:"title"},Is={class:"quote"},Ms={class:"action"},qs=["href","aria-label"],Cs=v({__name:"NotFound",setup(o){const{theme:e}=L(),{currentLang:s}=le();return(t,n)=>(i(),d("div",Ss,[u("p",Ts,w(l(e).notFound?.code??"404"),1),u("h1",Ns,w(l(e).notFound?.title??"PAGE NOT FOUND"),1),n[0]||(n[0]=u("div",{class:"divider"},null,-1)),u("blockquote",Is,w(l(e).notFound?.quote??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",Ms,[u("a",{class:"link",href:l(Pe)(l(e).notFound?.link??l(s).link),"aria-label":l(e).notFound?.linkLabel??"go to home"},w(l(e).notFound?.linkText??"Take me home"),9,qs)])]))}}),Ds=_(Cs,[["__scopeId","data-v-829df670"]]);function Qe(o,e){if(Array.isArray(o))return ce(o);if(o==null)return[];e=xe(e);const s=Object.keys(o).sort((n,a)=>a.split("/").length-n.split("/").length).find(n=>e.startsWith(xe(n))),t=s?o[s]:[];return Array.isArray(t)?ce(t):ce(t.items,t.base)}function Hs(o){const e=[];let s=0;for(const t in o){const n=o[t];if(n.items){s=e.push(n);continue}e[s]||e.push({items:[]}),e[s].items.push(n)}return e}function As(o){const e=[];function s(t){for(const n of t)n.text&&n.link&&e.push({text:n.text,link:n.link,docFooterText:n.docFooterText}),n.items&&s(n.items)}return s(o),e}function ye(o,e){return Array.isArray(e)?e.some(s=>ye(o,s)):X(o,e.link)?!0:e.items?ye(o,e.items):!1}function ce(o,e){return[...o].map(s=>{const t={...s},n=t.base||e;return n&&t.link&&(t.link=n+t.link.replace(/^\//,n.endsWith("/")?"":"/")),t.items&&(t.items=ce(t.items,n)),t})}function Bs(){const{hasSidebar:o}=W(),e=Ee("(min-width: 960px)"),s=Ee("(min-width: 1280px)");return{isAsideEnabled:b(()=>!s.value&&!e.value?!1:o.value?s.value:e.value)}}const Es=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,we=[];function Ze(o){return typeof o.outline=="object"&&!Array.isArray(o.outline)&&o.outline.label||o.outlineTitle||"On this page"}function Os(o){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(s=>s.id&&
`)}let de=null;async function Ae(){if(!T.value||!He.value)return;const q=is();if(q)try{de||(de=(await Ke(()=>import("./mermaid.core.BrszyIat.js").then(Q=>Q.bn),__vite__mapDeps([2,1]))).default),de.initialize({startOnLoad:!1,theme:s.value?"dark":"default",securityLevel:"loose"});const D="deps-graph-"+Date.now(),{svg:f}=await de.render(D,q);T.value&&(T.value.innerHTML=f)}catch{T.value&&(T.value.innerHTML=`<pre class="mermaid-fallback">${q}</pre>`)}}function te(q){k.value=q}return G([k,$,s],async()=>{await ge(),await Ae()}),R(async()=>{await ge(),await Ae()}),(q,D)=>(i(),d("div",wa,[l(t)?(i(),d("div",_a,[...D[2]||(D[2]=[u("p",{class:"custom-block-title"},"WARNING",-1),u("p",null,[U("Dependency data not generated yet. Run "),u("code",null,"bin/spc dev:gen-deps-data"),U(" to generate it.")],-1)])])):(i(),d(z,{key:1},[u("div",ka,[_s(u("input",{class:"deps-search","onUpdate:modelValue":D[0]||(D[0]=f=>p.value=f),placeholder:r.value.searchPlaceholder,onInput:D[1]||(D[1]=f=>k.value=null)},null,40,$a),[[ks,p.value]]),u("div",La,[u("div",Pa,[(i(!0),d(z,null,C(M.value,f=>(i(),d("button",{key:f.value,class:P(["filter-btn",{active:x.value===f.value}]),onClick:E=>{x.value=f.value,k.value=null}},w(f.label),11,za))),128))]),u("div",Va,[(i(),d(z,null,C(N,f=>u("button",{key:f.value,class:P(["filter-btn",{active:$.value===f.value}]),onClick:E=>$.value=f.value},w(f.label),11,Sa)),64))])])]),u("div",Ta,[u("div",Na,[I.value.length===0?(i(),d("div",Ia,w(r.value.noResults),1)):m("",!0),(i(!0),d(z,null,C(I.value,f=>(i(),d("div",{key:f.name,class:P(["pkg-item",{selected:k.value===f.name}]),onClick:E=>te(f.name)},[u("span",qa,w(f.name),1),u("span",{class:P(["pkg-badge",f.type==="php-extension"?"badge-ext":"badge-lib"])},w(V(f.type)),3)],10,Ma))),128))]),k.value&&H.value?(i(),d("div",Ca,[u("h3",Da,w(k.value),1),u("span",{class:P(["detail-type-badge",H.value.type==="php-extension"?"badge-ext":"badge-lib"])},w(V(H.value.type)),3),H.value.type==="php-extension"&&H.value.os?(i(),d("div",Ha,[u("div",Aa,w(r.value.supportedPlatforms),1),u("div",Ba,[(i(!0),d(z,null,C(H.value.os,f=>(i(),d("span",{key:f,class:"chip chip-os"},w(f),1))),128))])])):m("",!0),u("div",Ea,[u("div",Oa,w(r.value.requiredDeps),1),O.value.length>0?(i(),d("div",ja,[(i(!0),d(z,null,C(O.value,f=>(i(),d("span",{key:f,class:P(["chip","chip-required",{clickable:l(n)[f]}]),onClick:E=>l(n)[f]&&te(f)},w(f),11,Fa))),128))])):(i(),d("div",Ga,w(r.value.none),1))]),u("div",Ra,[u("div",Ua,w(r.value.suggestedDeps),1),J.value.length>0?(i(),d("div",Wa,[(i(!0),d(z,null,C(J.value,f=>(i(),d("span",{key:f,class:P(["chip","chip-suggested",{clickable:l(n)[f]}]),onClick:E=>l(n)[f]&&te(f)},w(f),11,Ka))),128))])):(i(),d("div",Ja,w(r.value.none),1))]),u("div",Xa,[u("div",Ya,w(r.value.requiredBy),1),Ce.value.length>0?(i(),d("div",Qa,[(i(!0),d(z,null,C(Ce.value,f=>(i(),d("span",{key:f,class:"chip chip-rev clickable",onClick:E=>te(f)},w(f),9,Za))),128))])):(i(),d("div",el,w(r.value.none),1))]),u("div",sl,[u("div",tl,w(r.value.suggestedBy),1),De.value.length>0?(i(),d("div",nl,[(i(!0),d(z,null,C(De.value,f=>(i(),d("span",{key:f,class:"chip chip-rev-sug clickable",onClick:E=>te(f)},w(f),9,ol))),128))])):(i(),d("div",il,w(r.value.none),1))]),He.value?(i(),d("div",al,[u("div",ll,w(r.value.depGraph),1),u("div",{ref_key:"mermaidEl",ref:T,class:"mermaid-wrap"},null,512)])):m("",!0)])):(i(),d("div",dl,[u("p",null,w(r.value.selectHint),1)]))])],64))]))}},pl=_(rl,[["__scopeId","data-v-cfeac0e9"]]),gl={...ya,enhanceApp({app:o}){o.component("DepsMap",pl)},setup(){const{lang:o}=Le();ae(()=>{se&&(document.cookie=`nf_lang=${o.value}; expires=Mon, 1 Jan 2024 00:00:00 UTC; path=/`)})}};export{gl as R,cl as _,L as u};