import{d as F,r as h,E as re,j as K,o,a as l,b as e,H as Y,_ as P,P as J,u as X,i as ee,c as q,e as t,t as I,F as b,q as V,v as R,I as ae,f as k,C as S,m as O,w as Q,k as z,p as W,h as G,l as ie,Y as ce,x as ue,n as de,Z as _e,$ as pe}from"./entry.9dd822ab.js";import{d as he}from"./icon-header-default.edde3136.js";import{_ as fe}from"./client-only.d53c295c.js";import{u as me}from"./asyncData.69a9296f.js";import{_ as te}from"./q-qrcode.54f9dbff.js";import{I as ve}from"./inject.types.f42954c5.js";import{i as we}from"./ie.492b1c80.js";const ge=F({__name:"YpcPopover",setup(a){const u=h(!1),r=h(!1),p=h(!1),n=h(null),c=h(null);re(u,i=>{if(i){const s=c.value;n.value.style.top=document.documentElement.scrollTop+s.offsetTop+s.offsetHeight+"px",n.value.style.right=window.innerWidth-s.offsetLeft-s.offsetWidth+"px",n.value.style.display="block",document.body.appendChild(n.value)}else document.body.removeChild(n.value)}),K(()=>{n.value=c.value.querySelector(".ypc-popover-popper")});function y(i){i==="refer"?p.value=!0:r.value=!0,u.value=!0}function v(i){i==="refer"?(p.value=!1,setTimeout(s=>{r.value||(u.value=!1)},100)):(u.value=!1,r.value=!1)}return(i,s)=>(o(),l("div",{ref_key:"root",ref:c,class:"ypc-popover"},[e("div",{class:"ypc-popover-popper",onMouseenter:s[0]||(s[0]=f=>y("pop")),onMouseleave:s[1]||(s[1]=f=>v("pop"))},[Y(i.$slots,"default",{},void 0,!0)],32),e("div",{class:"ypc-popover-reference",onMouseenter:s[2]||(s[2]=f=>y("refer")),onMouseleave:s[3]||(s[3]=f=>v("refer"))},[Y(i.$slots,"reference",{},void 0,!0)],32)],512))}});const ye=P(ge,[["__scopeId","data-v-aba290d7"]]),qe=""+new URL("logo-nav.5e93ab96.png",import.meta.url).href,be=""+new URL("logo-nav.59e0934f.png",import.meta.url).href,ke=""+new URL("logo-nav.d19debc5.png",import.meta.url).href,$e=""+new URL("logo-nav.bda142a2.png",import.meta.url).href,N=a=>(W("data-v-31d11a5d"),a=a(),G(),a),Se={class:"wrap"},Ie={class:"left"},Ne=["href","title"],Te={class:"logo-title"},Ce=["alt"],xe=["alt"],Ue=["alt"],Ee=["alt"],Ae={class:"tabs"},De=["href"],Le=["href"],Oe={class:"right"},Re={key:0,class:"search"},Qe=["value","onKeyup"],Fe={class:"other"},Pe=["href"],Be=N(()=>e("a",{class:"ypc-link",rel:"nofollow",href:"https://write.qq.com/?siteid=3",target:"_blank"},"作家专区",-1)),je=["href"],He=["href"],Me={class:"popover"},Ye=["href"],Ve=N(()=>e("i",{class:"iconfont icon-default-avatar"},null,-1)),Ke=N(()=>e("span",{class:"desc"},"个人中心",-1)),Xe=[Ve,Ke],ze=N(()=>e("i",{class:"iconfont icon-goback"},null,-1)),We=N(()=>e("span",{class:"desc"},"退出登录",-1)),Ge=[ze,We],Ze={class:"user"},Je=["src"],et=N(()=>e("i",{class:"iconfont icon-triangle-down"},null,-1)),tt=F({__name:"Nav",props:{isFixed:{type:Boolean,default:!1}},setup(a){const u=J(),r=z(),p=X(),{$utils:n,$ywLogin:c,$report:y}=ee(),v=h(""),i=h(!1),s=["search-keyword","so-keyword"].includes(p.name),f=q(()=>u.userInfo),x=q(()=>u.isLogin),$=q(()=>p.name),U=q(()=>u.initData.tab),B=q(()=>$.value==="index"?"":$.value==="tab-id"?p.params.id:-1);K(()=>{window.onscroll=n.throttle(()=>{document.documentElement.scrollTop>30?i.value=!0:i.value=!1})});function d(){n.goLogin()}function j(){c.logout()}function E(C){v.value=C.target.value.trim().slice(0,30)}function A(){window.location.href=`${n.getDomain()}/search/${v.value}`}function H(){y({dt:"button",did:"darentuiguang",x2:3})}return(C,Z)=>{const M=ye;return o(),l("div",{class:R(["nav",{"nav-sloid":t(i),fixed:a.isFixed}])},[e("div",Se,[e("div",Ie,[e("a",{href:`${t(n).getDomain()}/`,title:t(r).public.SITE_CONSTANTS.siteName},[e("div",Te,I(t(r).public.SITE_CONSTANTS.siteName),1),t(r).public.NUXT_SITE==="female"?(o(),l("img",{key:0,class:"logo",src:qe,alt:t(r).public.SITE_CONSTANTS.siteName},null,8,Ce)):t(r).public.NUXT_SITE==="chuangshi"?(o(),l("img",{key:1,class:"logo",src:be,alt:t(r).public.SITE_CONSTANTS.siteName},null,8,xe)):t(r).public.NUXT_SITE==="yunqi"?(o(),l("img",{key:2,class:"logo",src:ke,alt:t(r).public.SITE_CONSTANTS.siteName},null,8,Ue)):(o(),l("img",{key:3,class:"logo",src:$e,alt:t(r).public.SITE_CONSTANTS.siteName},null,8,Ee))],8,Ne),e("ul",Ae,[(o(!0),l(b,null,V(t(U),w=>(o(),l("li",{key:w.id,class:R({active:t(B)===w.id})},[w.title==="首页"?(o(),l("a",{key:0,href:t(n).getDomain()},I(w.title),9,De)):(o(),l("a",{key:1,href:`${t(n).getDomain()}/tab/${w.id}`},I(w.title),9,Le))],2))),128))])]),e("div",Oe,[t(s)?k("",!0):(o(),l("div",Re,[e("input",{ref:"search",value:t(v),type:"text",placeholder:"搜索书籍或作者",onInput:E,onKeyup:ae(A,["enter"])},null,40,Qe),e("i",{class:"iconfont icon-search",onClick:A})])),e("div",Fe,[t(r).public.IS_CHUANGSHI_OR_YUNQI?(o(),l(b,{key:0},[e("a",{class:"ypc-link mg0",rel:"nofollow",href:t(r).public.NUXT_SITE==="chuangshi"?"https://acts.book.qq.com/2020/202010/index.html":"https://acts.book.qq.com/2020/202010/yqsy.html",target:"_blank"}," 作家福利 ",8,Pe),S("  |  "),Be],64)):(o(),l("a",{key:1,class:"ypc-link",href:"https://kol.yuewen.com",target:"_blank",onClick:H},"达人推广")),e("a",{class:"ypc-link",rel:"nofollow",href:`${t(n).getDomain()}/shelf`,target:"_blank"},"书架",8,je),e("a",{class:"ypc-link",rel:"nofollow",href:`${t(n).getDomain()}/shelf/history`,target:"_blank"},"浏览历史",8,He)]),t(x)?(o(),O(M,{key:1,placement:"right",trigger:"hover"},{reference:Q(()=>[e("div",Ze,[e("img",{class:"avatar",src:t(f).iconurl||t(he),alt:"avatar-default"},null,8,Je),et])]),default:Q(()=>[e("div",Me,[e("a",{href:`${t(n).getDomain()}/user`,rel:"nofollow",class:"item"},Xe,8,Ye),e("div",{class:"item",onClick:j},Ge)])]),_:1})):(o(),l("p",{key:2,class:"unlogin ypc-link",onClick:d},"登录   |   注册"))])])],2)}}});const ot=P(tt,[["__scopeId","data-v-31d11a5d"]]),g=a=>(W("data-v-6a508e1f"),a=a(),G(),a),st={class:"footer"},nt={class:"wrap"},lt={class:"items"},rt=["href","rel"],at={class:"cooperation"},it=g(()=>e("a",{href:"https://kol.yuewen.com",target:"_blank"},"达人推广合作：https://kol.yuewen.com",-1)),ct=g(()=>e("p",null,"网站合作：傅女士 fuli.a@yuewen.com",-1)),ut=g(()=>e("p",null,"双新用户（设备和账号都新为双新用户）下载并登录后1-20天最多可免费领取20本会员/单订书且可免费读10天",-1)),dt={class:"copyright"},_t=g(()=>e("br",null,null,-1)),pt=g(()=>e("a",{rel:"nofollow",class:"link",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030002000001",target:"_blank"}," 粤公网安备 44030002000001号 ",-1)),ht=g(()=>e("a",{rel:"nofollow",class:"link",href:"https://beian.miit.gov.cn/#/Integrated/index",target:"_blank"},"粤B2-20090059-5",-1)),ft=g(()=>e("a",{rel:"nofollow",class:"link",href:"https://beian.miit.gov.cn/#/Integrated/index",target:"_blank"},"沪ICP备14016804号-3",-1)),mt=g(()=>e("a",{rel:"nofollow",class:"link",href:"https://16dd-advertise-1252317822.image.myqcloud.com/common_file/efd7_2023-09-06/1693981300230_110693.png",target:"_blank"}," 营业执照 ",-1)),vt=g(()=>e("br",null,null,-1)),wt={class:"logos"},gt=["href"],yt=F({__name:"Footer",setup(a){const u=X(),r=z(),p=[{title:"关于腾讯",rel:"nofollow",url:"http://www.tencent.com/"},{title:"About Tencent",rel:"nofollow",url:"http://www.tencent.com/index_e.shtml"},{title:"服务协议",rel:"nofollow",url:"http://www.qq.com/contract.shtml"},{title:"开放平台",rel:"nofollow",url:"http://open.qq.com/"},{title:"广告服务",rel:"nofollow",url:"http://www.tencentmind.com/"},{title:"腾讯招聘",rel:"nofollow",url:"http://hr.tencent.com/"},{title:"腾讯公益",rel:"nofollow",url:"http://gongyi.qq.com/"},{title:"客服中心",rel:"nofollow",url:"https://www.yuewen.com/service.html"},{title:"网站导航",rel:"nofollow",url:"http://www.qq.com/map/"},{title:"违规举报",rel:"nofollow",url:"https://jubao.yuewen.com/"},{title:"起点中文网",url:"https://www.qidian.com"},{title:"潇湘书院",url:"http://www.xxsy.net"},{title:"红袖添香",url:"https://www.hongxiu.com"}],n=[{title:"关于我们",rel:"nofollow",url:"https://www.yuewen.com/#&about"},{title:"作者投稿",rel:"nofollow",url:"https://write.qq.com/?http_referer=https%3A%2F%2Faccount.book.qq.com%2Fusermember%2Fauthor"},{title:"诚聘英才",rel:"nofollow",url:"https://join.yuewen.com/"},{title:"服务协议",rel:"nofollow",url:"https://passport.yuewen.com/terms_of_service.html"},{title:"客服中心",rel:"nofollow",url:"https://help.yuewen.com/"},{title:"联系我们",rel:"nofollow",url:"https://www.yuewen.com/#&contact"},{title:"漏洞提交",rel:"nofollow",url:"https://security.tencent.com/"},{title:"QQ阅读",url:"https://book.qq.com/"},{title:"QQ阅读男生网",url:"https://xiaoshuo.qq.com"},{title:"QQ阅读女生网",url:"https://read.qq.com"}],c=r.public.IS_CHUANGSHI_OR_YUNQI?n:p,y=[{title:"深圳网警",url:"http://cyberpolice.mps.gov.cn/wfjb/"},{title:"安网",url:"https://www.beian.gov.cn/portal/index.do"},{title:"经营性网站备案",url:"https://beian.miit.gov.cn/#/Integrated/index"},{title:"举报中心",url:"https://www.12377.cn/"},{title:"中国文明网",url:"http://www.wenming.cn/"},{title:"上海互联网",url:"https://www.shjbzx.cn/"}];return(v,i)=>(o(),l("div",st,[e("div",nt,[e("div",lt,[(o(!0),l(b,null,V(t(u).path==="/"?t(c):t(c).slice(0,-3),(s,f)=>(o(),l(b,{key:s.title},[e("a",{href:s.url,rel:s.rel,target:"_blank"},I(s.title),9,rt),f!==t(c).length-1?(o(),l("i",{key:f})):k("",!0)],64))),128))]),e("div",at,[t(r).public.IS_CHUANGSHI_OR_YUNQI?k("",!0):(o(),l(b,{key:0},[it,ct],64)),ut]),e("p",dt,[S(" Copyright (C) "+I(new Date().getFullYear())+" "+I(t(r).public.SITE_CONSTANTS.host)+" All Rights Reserved 上海阅文信息技术有限公司 版权所有 ",1),_t,pt,S("      增值电信业务经营许可证：粤B2-20090059     互联网ICP备案号： "),ht,S("    "),ft,S("      举报电话：010-59357051 "),mt,vt,S(" 网络文化经营许可证：沪网文 (2023) 3296-228号 网络出版服务许可证：（署）网出证（沪）字第055号    互联网宗教信息服务许可证：沪（2023）0000015 ")]),e("div",wt,[(o(),l(b,null,V(y,s=>e("a",{key:s.url,rel:"nofollow",href:s.url,target:"_blank"},null,8,gt)),64))])])]))}});const qt=P(yt,[["__scopeId","data-v-6a508e1f"]]),bt=""+new URL("qrcode.9b33e9ef.png",import.meta.url).href,L={index:{qUrl:"uniteqqreader://nativepage/feed/recommend"},"channel-name":{qUrl:"uniteqqreader://nativepage/feed/recommend"},"chapter-bid":{qUrl:"uniteqqreader://nativepage/book/detail"},"column-id":{qUrl:"uniteqqreader://nativepage/feed/recommend"},"detail-bid":{qUrl:"uniteqqreader://nativepage/book/detail"},"rank-id":{qUrl:"uniteqqreader://nativepage/rank/index?rankFlag=1"},shelf:{qUrl:"uniteqqreader://nativepage/client/bookshelf"},"shelf-history":{qUrl:"uniteqqreader://nativepage/feed/recommend"},"tab-id":{qUrl:"uniteqqreader://nativepage/feed/recommend"},user:{qUrl:"uniteqqreader://nativepage/client/main?tabIndex=4"},"cate-id":{qUrl:"uniteqqreader://nativepage/feed/recommend"},"writer-id":{qUrl:"uniteqqreader://nativepage/authors/mainpage"},"search-keyword":{qUrl:"uniteqqreader://nativepage/search"},"so-keyword":{qUrl:"uniteqqreader://nativepage/search"}},kt=_e(()=>pe(()=>import("./Empty.46e1d376.js"),["./Empty.46e1d376.js","./entry.9dd822ab.js","./entry.5bfa1411.css","./Empty.fcb83fce.css"],import.meta.url).then(a=>a.default||a)),T=a=>(W("data-v-f4e82d6b"),a=a(),G(),a),$t=T(()=>e("span",null,"你正在使用的浏览器无法兼容此网站",-1)),St={key:0,class:"qrcode-wrapper-large"},It=T(()=>e("img",{class:"q",src:te},null,-1)),Nt={class:"qrcode-content"},Tt=T(()=>e("p",{class:"title"},"QQ阅读手机版",-1)),Ct=["src"],xt={key:1,class:"qrcode-wrapper-small"},Ut=T(()=>e("img",{class:"q",src:te},null,-1)),Et=T(()=>e("div",{class:"qrcode-place"},[e("img",{src:bt}),e("p",null,"手机版")],-1)),At={class:"qrcode-content"},Dt=T(()=>e("p",{class:"title"},"QQ阅读手机版",-1)),Lt=["src"],Ot=F({__name:"default",async setup(a){let u,r;const p=J(),n=z(),{$utils:c,$report:y,$ywLogin:v}=ee(),i=X(),s=ie();ce(ve,w);const f=h(!1),x=h(1920),$=h(""),U=h(!1),B=h(i.query.isdebug),d=i.name,j=!["search-keyword","so-keyword"].includes(d),E=q(()=>!["read-bid-cid"].includes(d)),A=q(()=>["tab-id","index"].includes(d)),H=q(()=>!["chapter-bid","read-bid-cid"].includes(d)),{data:C}=([u,r]=ue(async()=>me(async()=>await s.getInit().then(m=>Promise.resolve(m)).catch(m=>Promise.resolve({})),"$i9bCpVDU6M")),u=await u,r(),u);C.value.code===0&&p.setInitData(C.value.data),K(()=>{oe(),Z(),n.public.NUXT_ENV==="pro"&&!B.value&&c.forbidDevelope(),v.setCheckStatusCallback(),M(),x.value=window.innerWidth,y({event_code:"shown",x2:0}),p.setUserInfoAsyc(s)});function Z(){if(L[d]&&(U.value=!0,p.setReportData({pn:d}),!!L[d].qUrl)){let m=`${n.public.SITE_CONSTANTS.commonDownloadUrl}?ch=${L[d].ch||n.public.SITE_CONSTANTS.defaultChannelId}`,_=L[d].qUrl;const D=`queryforuser=$${n.public.SITE_CONSTANTS.readershare}$${c.getCookie("ETCI")}`;["detail-bid","chapter-bid"].indexOf(d)>-1?_+=`?bid=${c.getOriginBid(i.params.bid)}`:d==="writer-id"&&(_+=`?authorId=${i.params.id}`),_.indexOf("?")!==-1?_+=`&${D}`:_+=`?${D}`,m+=`&qurl=${encodeURIComponent(_)}`,w(m)}}function M(){c.checkBrowser()&&(f.value=!0,document.body.classList.add("body-fixed"))}function w(m){c.toDataURL(m).then(_=>{$.value=_,p.setCurUrlQrcode(_)}).catch(_=>{})}function oe(){c.getCookie("source")==="pc_jump"&&c.removeCookie("source");const _=i.query.source;_==="m_jump"&&c.setCookie("source",_,"session","/",n.public.SITE_CONSTANTS.cookieDomain)}return(m,_)=>{const D=ot,se=qt,ne=kt,le=fe;return o(),l("div",{class:R(["default",{bg:t(E)&&!["qingyunian"].includes(t(d))}])},[t(E)?(o(),O(D,{key:0,"is-fixed":t(A)},null,8,["is-fixed"])):k("",!0),e("div",{class:R({main:j})},[Y(m.$slots,"default",{},void 0,!0)],2),t(H)?(o(),O(se,{key:1,"show-friend":t(d)==="index"},null,8,["show-friend"])):k("",!0),t(f)?(o(),O(ne,{key:2,class:"browser-tip",image:t(we),desc:"无法正常使用此网站，请升级你的浏览器"},{default:Q(()=>[$t]),_:1},8,["image"])):k("",!0),de(le,null,{default:Q(()=>[t(U)?(o(),l(b,{key:0},[t(x)>1440?(o(),l("div",St,[It,e("div",Nt,[Tt,e("img",{class:"qrcode",src:t($)},null,8,Ct)])])):(o(),l("div",xt,[Ut,Et,e("div",At,[Dt,e("img",{class:"qrcode",src:t($)},null,8,Lt)])]))],64)):k("",!0)]),_:1})],2)}}});const Mt=P(Ot,[["__scopeId","data-v-f4e82d6b"]]);export{Mt as default};
