import{uasEe,dasg,oasi,casp,rasf,nasD,aasJ,tasV,basP,wasv,easb,TasMe,_as$,iasNt,fasCt,gasBe,hasI,jasu,kasr,pasF,lasj,masae,qasVe,sasN,vasY,xasge,yaste,zasue,AasOe,BasAt,CasEt,Dasre,Fasx,Easz,GasZe,Hasbe,IasS,JasK,Kaset,Lasye,Masee,Nasde,OasMt,Paske,QasTe,RasBt,Sastt,Uas$e,VasOt,WasHt,Xasxt,Yasnt,Zasot,$asDt,a0asRt,a1asFt,a2asst,a3asjt,a4asUt,a5aszt,a6asoe,a7asse,a8asIe}from"./framework.C4_mTacX.js";constGt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitors",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!",easterEgg:"Congratulations on finding the Easter egg!",publishPlugin:"Publish Plugin",publishRes:"Publish Resource",closeButtonText:"Close",submitButtonText:"Submit",resName:"Name",resDesc:"Description",resAuthor:"Author",resLink:"Download Link",resHomepage:"Homepage",resNameText:"Example: Kawaii Style Theme",resDescText:"Example: A kawaii style and color theme",resAuthorText:"Usually the github username, Example: yanyongyu",resLinkText:"Direct download link, usually zip package link",resHomepageText:'Optional, can be the name of the git platform repository"'},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"分叉",issues:"议题",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!",easterEgg:"恭喜你发现了彩蛋!",publishPlugin:"发布插件",publishRes:"发布资源",closeButtonText:"关闭",submitButtonText:"提交",resName:"名称",resDesc:"描述",resAuthor:"作者",resLink:"下载链接",resHomepage:"主页",resNameText:"示例:可爱风格主题",resDescText:"示例:一个可爱风格和配色的主题",resAuthorText:"通常为github用户名,示例:yanyongyu",resLinkText:"直接下载链接,通常为zip包链接",resHomepageText:"可选,可为git平台仓库名"}};let_e={};functionat(t,e){returnt=He(t),Gt[t][e]}functionHe(t){returnt.includes("-")?t.split("-")[0]:t}functionWt(){constt=He(Ee().site.value.lang);for(letein_e)_e[e].value=at(t,e)}functionR(t){conste=He(Ee().site.value.lang);return_e[t]=at(e,t),_e[t]||t}constKt=g({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(i(),p("span",{class:D(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[J(V(e.text),1)])],2))}}),qt={key:0,class:"VPBackdrop"},Jt=g({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(i(),P(Me,{name:"fade"},{default:v(()=>[e.show?(i(),p("div",qt)):b("",!0)]),_:1}))}}),Yt=$(Jt,[["__scopeId","data-v-7e9fed24"]]),O=Ee;functionXt(t,e){letn,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}functionNe(t){return/^\//.test(t)?t:`/${t}`}functionxe(t){const{pathname:e,search:n,hash:s,protocol:o}=newURL(t,"http://a.com");if(Nt(t)||t.startsWith("#")||!o.startsWith("http")||!Ct(e))returnt;const{site:a}=O(),c=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);returnBe(c)}functionpe({correspondingLink:t=!1}={}){const{site:e,localeIndex:n,page:s,theme:o,hash:a}=O(),c=I(()=>{vard,h;return{label:(d=e.value.locales[n.value])==null?void0:d.label,link:((h=e.value.locales[n.value])==null?void0:h.link)||(n.value==
`);const _=`${le}/issues/new?title=${h}&body=${m}`;window.open(_,"_blank")};return(h,m)=>(i(),p("div",Il,[u("h1",null,V(r(R)("resourceStore")),1),u("div",Nl,[oe(u("input",{class:"item-search-box",type:"text",placeholder:r(R)("search"),"onUpdate:modelValue":m[0]||(m[0]=_=>Ie(s)?s.value=_:s=_)},null,8,Cl),[[se,r(s)]])]),u("div",Al,[u("button",{class:"store-button publish-button",onClick:c},V(r(R)("publishRes")),1)]),u("div",El,[(i(!0),p(x,null,z(r(e),_=>(i(),P(Pl,{key:_.id,item:_},null,8,["item"]))),128))]),S(Tl,{class:"pub-window","is-visible":o.value},{default:v(()=>[u("h2",null,V(r(R)("publishRes")),1),u("form",{onSubmit:st(d,["prevent"])},[u("label",Ml,V(r(R)("resName")),1),oe(u("input",{type:"text",id:"name","onUpdate:modelValue":m[1]||(m[1]=_=>r(a).name=_),placeholder:r(R)("resNameText")},null,8,Bl),[[se,r(a).name]]),u("label",Ol,V(r(R)("resDesc")),1),oe(u("input",{type:"text",id:"desc","onUpdate:modelValue":m[2]||(m[2]=_=>r(a).desc=_),placeholder:r(R)("resDescText")},null,8,Hl),[[se,r(a).desc]]),u("label",xl,V(r(R)("resAuthor")),1),oe(u("input",{type:"text",id:"author","onUpdate:modelValue":m[3]||(m[3]=_=>r(a).author=_),placeholder:r(R)("resAuthorText")},null,8,Dl),[[se,r(a).author]]),u("label",Rl,V(r(R)("resLink")),1),oe(u("input",{type:"text",id:"link","onUpdate:modelValue":m[4]||(m[4]=_=>r(a).link=_),placeholder:r(R)("resLinkText")},null,8,Fl),[[se,r(a).link]]),u("label",jl,V(r(R)("resHomepage")),1),oe(u("input",{type:"text",id:"homepage","onUpdate:modelValue":m[5]||(m[5]=_=>r(a).homepage=_),placeholder:r(R)("resHomepageText")},null,8,Ul),[[se,r(a).homepage]]),u("div",zl,[u("button",{class:"pub-option close",type:"button",onClick:l},V(r(R)("closeButtonText")),1),u("button",Gl,V(r(R)("submitButtonText")),1)])],32)]),_:1},8,["is-visible"])]))}}),Kl=$(Wl,[["__scopeId","data-v-b3593407"]]),Yl={extends:mt,enhanceApp({app:t}){t.component("StatsBar",Qe),t.component("PluginStore",dl),t.component("ResStore",Kl)},Layout:Qe};export{Yl as R,Ea as c,R as g,O as u};