import{A as e,D as t,I as n,N as r,P as i,Xt as a,et as o,k as s,nt as c,rt as l,x as u}from"./vue-vendor-DMUmTARL.js";import{tn as d}from"./icons-vendor-Buq6V-Ga.js";var f={class:`overflow-hidden rounded-lg border border-border`},p={class:`min-w-full divide-y divide-border`},m={class:`bg-page`},h={scope:`col`,class:`px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-secondary`},g={class:`divide-y divide-border bg-surface`},_={class:`whitespace-nowrap px-4 py-2 text-sm font-medium text-regular`},v={class:`px-4 py-2 font-mono text-sm text-regular`},y={class:`code select-all`},b=[`innerHTML`],x={key:0,class:`mt-4 flex flex-wrap gap-4 border-t border-border-light pt-4`},S={target:`_blank`,class:`flex items-center gap-1 text-sm text-blue-600 hover:underline`,href:`http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html`},C={target:`_blank`,class:`flex items-center gap-1 text-sm text-blue-600 hover:underline`,href:`https://github.com/whinc/blog/issues/18`},w=n({__name:`GlobRuleDescription`,props:{rules:{},patternLabel:{default:`通配符`},showLinks:{type:Boolean,default:!0}},setup(n){return(w,T)=>{let E=d;return o(),e(`div`,null,[t(`div`,f,[t(`table`,p,[t(`thead`,m,[t(`tr`,null,[T[0]||=t(`th`,{scope:`col`,class:`px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-secondary`},` 示例场景 `,-1),t(`th`,h,a(n.patternLabel),1),T[1]||=t(`th`,{scope:`col`,class:`px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-secondary`},` 说明 `,-1)])]),t(`tbody`,g,[(o(!0),e(u,null,c(n.rules,(n,r)=>(o(),e(`tr`,{key:r},[t(`td`,_,a(n.scene),1),t(`td`,v,[t(`code`,y,a(n.pattern),1)]),t(`td`,{class:`px-4 py-2 text-sm text-regular`,innerHTML:n.description},null,8,b)]))),128))])])]),l(w.$slots,`extra`),n.showLinks?(o(),e(`div`,x,[t(`a`,S,[i(E,{class:`h-4 w-4`}),T[2]||=r(` 参考文章 (阮一峰) `,-1)]),t(`a`,C,[i(E,{class:`h-4 w-4`}),T[3]||=r(` 参考文章 (Github) `,-1)])])):s(``,!0)])}}});export{w as t};