1(window.webpackJsonp=window.webpackJsonp||[]).push([["reader"],{0:function(e,t,a){e.exports=a("9adc")},"032d":function(e,t,a){"use strict";a("0c3b")},"044a":function(e,t,a){"use strict";a("c210")},"0489":function(e,t,a){"use strict";a("4d9c")},"0620":function(e,t,a){},"0766":function(e,t,a){},"0978":function(e,t,a){"use strict";var o=a("90f1");const r=e=>(Object(o.pushScopeId)("data-v-739ff8a3"),e=e(),Object(o.popScopeId)(),e),c={class:"paper-intro"},s={key:0,class:"paper-intro__loading"},n=[r(()=>Object(o.createElementVNode)("div",{class:"loading-spinner"},null,-1)),r(()=>Object(o.createElementVNode)("p",null,"å è½½ä¸...",-1))],i={key:1,class:"paper-intro__section"},l=r(()=>Object(o.createElementVNode)("h1",{class:"paper-intro__title"},"䏿 ä»ç»",-1)),d={class:"paper-intro__content"},p=["innerHTML"],u={key:2,class:"divider"},m={key:3,class:"paper-copyright"},h=r(()=>Object(o.createElementVNode)("h1",{class:"paper-copyright__title"},"çæ",-1)),b={class:"paper-copyright__content"},g={class:"paper-copyright__item"},O=r(()=>Object(o.createElementVNode)("div",{class:"paper-copyright__label"},"ä½è
",-1)),j={class:"paper-copyright__author"},C=["src","alt"],f={class:"paper-copyright__name"},v={class:"paper-copyright__item"},w=r(()=>Object(o.createElementVNode)("div",{class:"paper-copyright__label"},"åæ°",-1)),V={class:"paper-copyright__value paper-copyright__type",style:{"font-weight":"normal"}},k=r(()=>Object(o.createElementVNode)("div",{class:"paper-copyright__item"},[Object(o.createElementVNode)("div",{class:"paper-copyright__label"},"履约æ¿è¯º"),Object(o.createElementVNode)("div",{class:"paper-copyright__value"},[Object(o.createElementVNode)("span",{class:"paper-copyright__type"},"24å°æ¶å¯éï¼"),Object(o.createTextVNode)(" è´ä¹°å 24 å°æ¶å
ï¼å¦å¯¹å
容䏿»¡æï¼å¯ç³è¯·æ çç±éæ¬¾ï¼æ¾å¿è¯è¯»ã ")])],-1)),y={class:"paper-copyright__item"},_=r(()=>Object(o.createElementVNode)("div",{class:"paper-copyright__label"},"䏿 ç±»å",-1)),E={class:"paper-copyright__value"},N={key:0,class:"paper-copyright__license"},B=[r(()=>Object(o.createElementVNode)("span",{class:"paper-copyright__type"},"ä¹°æå¶ï¼",-1)),Object(o.createTextVNode)(" 䏿¬¡ä»è´¹ï¼æ°¸ä¹
æ¥æï¼ä½ 坿 鿬¡é
è¯»ï¼æ éé¢å¤æ¯ä»ã ")],H={key:1,class:"paper-copyright__license"},x=[r(()=>Object(o.createElementVNode)("span",{class:"paper-copyright__type"},"订é
å¶ï¼",-1)),Object(o.createTextVNode)(" ä½è
å°æè®¡åå®ææ´æ°ä¸æ ï¼è®¢é
æé´å
ä½ å¯äº«å宿´é
读ä¸äºå¨æå¡ã ")],M={key:4,class:"paper-intro__empty"},L=[r(()=>Object(o.createElementVNode)("p",null,"ææ ä¸æ ä¿¡æ¯",-1))];var S=a("fa7d");const T={name:"PaperIntro",props:{paper:{type:Object,default:null},showCopyright:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},maxLines:{type:Number,default:8},allowCollapse:{type:Boolean,default:!0}},emits:["intro-loaded"],setup(e,{emit:t}){const a=Object(o.ref)(!1),r=Object(o.ref)(null),c=Object(o.ref)(!1),s=Object(o.computed)(()=>{if(e.paper&&e.paper.intro){let t=e.paper.intro.replace(/\n/g,"<br/>");return t=t.replace(/(https?:\/\/([^\s</#)ï¼]+)[^\s<)ï¼]*)/g,(function(e,t,a){return`<a href="${t.replace('"',"%22")}" target="_blank">${a}</a>`})),t.trim()||(t="ææ ä»ç»"),Object(S.l)(t)}return"ææ ä»ç»"}),n=async()=>{if(await Object(o.nextTick)(),r.value&&e.paper){const o=r.value,s=window.getComputedStyle(o),n=parseInt(s.lineHeight)*e.maxLines,i=o.scrollHeight;c.value=i>n,a.value=i>n,t("intro-loaded",{hasOverflow:i>n,actualHeight:i,maxHeight:n})}},i=Object(o.computed)(()=>e.paper&&e.paper.word_count?e.paper.word_count.toLocaleString():"0");return Object(o.watch)(()=>e.maxLines,()=>{e.paper&&n()}),Object(o.onMounted)(()=>{e.paper&&n()}),{isCollapsed:a,introTextRef:r,shouldShowMoreButton:c,parsedIntro:s,toggleShowMore:()=>{a.value=!a.value},checkContentHeight:n,paper_word_count:i}}},A=()=>{Object(o.useCssVars)(e=>({"1cd2bcc4":e.maxLines}))},P=T.setup;T.setup=P?(e,t)=>(A(),P(e,t)):A;var D=T,I=(a("60fe"),a("5e0b"));const $=a.n(I)()(D,[["render",function(e,t,a,r,S,T){return Object(o.openBlock)(),Object(o.createElementBlock)("div",c,[a.loading?(Object(o.openBlock)(),Object(o.createElementBlock)("div",s,n)):a.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",i,[l,Object(o.createElementVNode)("div",d,[Object(o.createElementVNode)("div",{ref:"introTextRef",class:Object(o.normalizeClass)(["paper-intro__text",{"paper-intro__text--collapsed":r.isCollapsed&&a.allowCollapse}]),innerHTML:r.parsedIntro},null,10,p),r.shouldShowMoreButton&&a.allowCollapse?(Object(o.openBlock)(),Object(o.createElementBlock)("button",{key:0,class:"paper-intro__more-btn",onClick:t[0]||(t[0]=(...e)=>r.toggleShowMore&&r.toggleShowMore(...e))},Object(o.toDisplayString)(r.isCollapsed?"å±å¼":"æ¶èµ·"),1)):Object(o.createCommentVNode)("",!0)])])):Object(o.createCommentVNode)("",!0),a.paper&&a.showCopyright?(Object(o.openBlock)(),Object(o.createElementBlock)("div",u)):Object(o.createCommentVNode)("",!0),a.paper&&a.showCopyright?(Object(o.openBlock)(),Object(o.createElementBlock)("div",m,[h,Object(o.createElementVNode)("div",b,[Object(o.createElementVNode)("div",g,[O,Object(o.createElementVNode)("div",j,[Object(o.createElementVNode)("img",{class:"paper-copyright__avatar",src:a.paper.creator.full_avatar_url,alt:a.paper.creator.nickname},null,8,C),Object(o.createElementVNode)("span",f,Object(o.toDisplayString)(a.paper.creator.nickname),1)])]),Object(o.createElementVNode)("div",v,[w,Object(o.createElementVNode)("div",V,Object(o.toDisplayString)(r.paper_word_count)+" åï¼å·²æ´æ° "+Object(o.toDisplayString)(a.paper.post_count)+" ç¯ ",1)]),k,Object(o.createElementVNode)("div",y,[_,Object(o.createElementVNode)("div",E,["BOOKLET"===a.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("p",N,B)):(Object(o.openBlock)(),Object(o.createElementBlock)("p",H,x))])])])])):a.loading?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",M,L))])}],["__scopeId","data-v-739ff8a3"]]);t.a=$},"0aed":function(e,t,a){},"0c3b":function(e,t,a){},"0ddc":function(e,t,a){"use strict";var o=a("0dea"),r=(a("194c"),a("90f1"));const c=["title","aria-label"],s={class:"theme-cycle-icon-stack","aria-hidden":"true"},n=["title"],i={class:"theme-menu"},l=["onClick"];a("f764");var d=a("116d"),p=a("8715");const u=[{value:"light",label:"æµ
è²",icon:d.M},{value:"dark",label:"æ·±è²",icon:d.G},{value:"system",label:"è·éç³»ç»",icon:d.i}];var m={name:"ThemeSwitcher",components:{RiCheckLine:d.f,RiContrast2Line:d.i,RiMoonLine:d.G,RiSunLine:d.M},props:{placement:{type:String,default:"bottom"},variant:{type:String,default:"popover",validator:e=>["popover","cycle"].includes(e)}},setup(){const{theme:e,currentTheme:t,setTheme:a}=Object(p.b)(),o=Object(r.computed)(()=>{const t=u.findIndex(t=>t.value===e.value);return t>=0?t:0}),c=Object(r.computed)(()=>u[(o.value+1)%u.length]),s=Object(r.computed)(()=>{const a=u.find(t=>t.value===e.value);return(null==a?void 0:a.icon)||("dark"===t.value?d.G:d.M)});return{theme:e,currentTheme:t,cycleTheme:()=>{a(c.value.value)},currentThemeIcon:s,getThemeLabel:e=>({light:"æµ
è²",dark:"æ·±è²",system:"è·éç³»ç»"}[e]||e),handleThemeChange:e=>{a(e)},nextTheme:c,themeOptions:u}}},h=(a("b331"),a("5a00"),a("5e0b"));const b=a.n(h)()(m,[["render",function(e,t,a,d,p,u){const m=Object(r.resolve
1Component)("RiCheckLine"),h=o.a;return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["theme-switcher","theme-switcher--"+a.variant])},["cycle"===a.variant?(Object(r.openBlock)(),Object(r.createElementBlock)("button",{key:0,class:"theme-cycle-trigger",type:"button",title:`å½å主é¢: ${d.getThemeLabel(d.theme)}ï¼ç¹å»åæ¢å°${d.nextTheme.label}`,"aria-label":`忢䏻é¢ï¼å½å为${d.getThemeLabel(d.theme)}ï¼ä¸ä¸é¡¹ä¸º${d.nextTheme.label}`,onClick:t[0]||(t[0]=(...e)=>d.cycleTheme&&d.cycleTheme(...e))},[Object(r.createElementVNode)("span",s,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(d.themeOptions,e=>(Object(r.openBlock)(),Object(r.createBlock)(Object(r.resolveDynamicComponent)(e.icon),{key:e.value,class:Object(r.normalizeClass)(["theme-cycle-icon",{active:d.theme===e.value}])},null,8,["class"]))),128))])],8,c)):(Object(r.openBlock)(),Object(r.createBlock)(h,{key:1,placement:a.placement,width:136,trigger:"click","popper-class":"theme-popover","show-arrow":!1,teleported:!0},{reference:Object(r.withCtx)(()=>[Object(r.createElementVNode)("button",{class:"theme-trigger",type:"button",title:"å½å主é¢: "+d.getThemeLabel(d.theme),"aria-label":"忢䏻é¢"},[(Object(r.openBlock)(),Object(r.createBlock)(Object(r.resolveDynamicComponent)(d.currentThemeIcon),{class:"theme-trigger-icon","aria-hidden":"true"}))],8,n)]),default:Object(r.withCtx)(()=>[Object(r.createElementVNode)("div",i,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(d.themeOptions,e=>(Object(r.openBlock)(),Object(r.createElementBlock)("button",{key:e.value,class:Object(r.normalizeClass)(["theme-option",{active:d.theme===e.value}]),type:"button",onClick:t=>d.handleThemeChange(e.value)},[(Object(r.openBlock)(),Object(r.createBlock)(Object(r.resolveDynamicComponent)(e.icon),{class:"theme-option-icon","aria-hidden":"true"})),Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e.label),1),d.theme===e.value?(Object(r.openBlock)(),Object(r.createBlock)(m,{key:0,class:"check-icon","aria-hidden":"true"})):Object(r.createCommentVNode)("",!0)],10,l))),128))])]),_:1},8,["placement"]))],2)}],["__scopeId","data-v-15050fe7"]]);t.a=b},"0e54":function(e,t,a){"use strict";a("d6f1")},"0ed7":function(e,t,a){},"0f26":function(e,t,a){},1:function(e,t){},"113e":function(e,t,a){},1207:function(e,t,a){"use strict";a("bde3")},1263:function(e,t,a){},1437:function(e,t,a){},"16f3":function(e,t,a){"use strict";a("61c7")},"172e":function(e,t,a){"use strict";a("1be8")},1911:function(e,t,a){"use strict";a("4015")},"1b45":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var o=a("90f1");function r(){const e=Object(o.ref)(!1);return Object(o.onMounted)(()=>{e.value=navigator.userAgent.match(/micromessenger/i)&&navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment}),{isInWechatMP:e}}},"1b64":function(e,t,a){"use strict";a("e1cc")},"1bca":function(e,t,a){"use strict";a("4ba7")},"1be8":function(e,t,a){},"1e1c":function(e,t,a){},"1e20":function(e,t,a){},"1f14":function(e,t,a){"use strict";a("6839")},"21b2":function(e,t,a){"use strict";a("951b")},"21de":function(e,t,a){"use strict";a("cec6")},"224e":function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var o=a("90f1"),r=a("c1a7");function c(e={}){const{createOrderApi:t,getStatusApi:a,onSuccess:c,maxPollTime:s=3e5,pollInterval:n=2e3}=e,i=Object(o.ref)("input"),l=Object(o.ref)(!1),d=Object(o.ref)(""),p=Object(o.ref)(""),u=Object(o.ref)(0),m=Object(o.ref)(null),h=Object(o.ref)(null),b=()=>{m.value&&(clearInterval(m.value),m.value=null)},g=()=>{b(),i.value="input",d.value="",p.value="",u.value=0,l.value=!1},O=(e,t)=>{const o=e||p.value,l=t||a;o&&l&&(h.value=Date.now(),b(),m.value=setInterval(async()=>{if(Date.now()-h.value>s)return b(),r.a.warning("æ¯ä»è¶
æ¶ï¼è¯·éæ°åèµ·å
å¼"),void g();try{const e=await l(o);if(200===e.data.code){const{paid:t,state:a}=e.data.data;(t&&"SUCCEED"===a||"SUCCEED"===a)&&(b(),i.value="success",c&&c({orderNo:o,amount:u.value}))}}catch(e){console.error("æ¥è¯¢è®¢åç¶æå¤±è´¥:",e)}},n))};return Object(o.onUnmounted)(()=>{b()}
1),{step:i,creatingOrder:l,qrcodeUrl:d,orderNo:p,rechargeAmount:u,handleCreateOrder:async e=>{if(t){l.value=!0;try{const a=await t(e);if(200===a.data.code){const{out_trade_no:e,code_url:t,amount:o}=a.data.data;return p.value=e,d.value=t,u.value=o,i.value="qrcode",O(e),a.data.data}r.a.error(a.data.message||"å建订å失败ï¼è¯·éè¯")}catch(e){console.error("å建订å失败:",e),r.a.error("å建订å失败ï¼è¯·ç¨åéè¯")}finally{l.value=!1}}},startPolling:O,stopPolling:b,resetState:g}}},2635:function(e,t,a){"use strict";var o=a("dd7b"),r=(a("c752"),a("90f1"));const c=e=>(Object(r.pushScopeId)("data-v-42b9ed11"),e=e(),Object(r.popScopeId)(),e),s={class:"container theme-light"},n={key:0,class:"tips"},i={key:0},l={key:1},d=Object(r.createTextVNode)("å±ç¤ºå
¨æ"),p={class:"body post"},u={class:"paper"},m=["src"],h={class:"paper_info"},b={class:"name"},g=c(()=>Object(r.createElementVNode)("div",{class:"divider_1"},null,-1)),O=c(()=>Object(r.createElementVNode)("div",{class:"divider_2"},null,-1)),j={key:0,class:"time"},C=["innerHTML"],f=["innerHTML"],v={key:2},w={class:"actions"},V={class:"tags"},k={key:0,class:"comment"},y={key:0,class:"qr_tip"},_={key:1,class:"divider_thin"},E={class:"qr_container"},N={key:0,class:"qr_paper_tip"},B={class:"red name"},H={class:"hint"},x={key:2,class:"divider_thin"},M={key:3,class:"copyright"},L={key:3,class:"read-more"},S=c(()=>Object(r.createElementVNode)("div",{class:"text"},"å å
容è¿é¿ï¼è¯·æ«ç ç»§ç»é
读",-1));a("f764"),a("6072"),a("b076"),a("b93c");var T=a("8c79"),A=a.n(T),P=a("fa7d"),D=a("1b45"),I=a("7e14");var $=a("7b0f"),Z=a.n($);const R=a("5292");var U={props:{created:{type:Function,default:()=>{}},type:{type:String,default:""}},data:()=>({post:null,paper:null,creating:!0,loading:!1,card_url:null,expand:!1,cardHeight:0,PLACEHOLDER_IMAGE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",IMAGE_LOAD_TIMEOUT:3e3,RENDER_DELAY:300,CANVAS_SCALE:2}),components:{QrcodeVue:A.a},computed:{created_date(){return R(this.post.created_at).format("YYYY/MM/DD")},parsed_content(){let e=(this.post.content?this.post.content:"").replace(/\n/g,"<br/>");if(e=e.replace(/([^>^<]*)</g,(function(e){return e=e.replace(/(https?:\/\/([^\s</#)ï¼]+)[^\s<)ï¼ï¼]*)/g,(function(e,t,a){return'<a href="'+t.replace('"',"%22")+'">'+a+"</a>"}))})),e.includes("<mark>")){const t=e.match(/(<mark>)([\s\S]*?)(<\/mark>)/g);t&&t.forEach(t=>{const a=[...t.replace(/<\/?mark>/g,"").replace(/<[^>]+>/g,"")].map(e=>`<span class="mark">${e}</span>`).join("");e=e.replace(t,a)})}return!this.expand&&e.length>160?(e=e.replace(/<img[^>]*>/g,""),e=e.replace(/<div class="image-desc">.*?<\/div>/g,""),this.truncateRichText(e,160)):e}},setup(){const{isInWechatMP:e}=Object(D.a)(),{toPng:t,error:a}=function(){const e=Object(r.ref)(!1),t=Object(r.ref)(null);return{loading:e,error:t,toPng:async(a,o={pixelRatio:2,fetchRequestInit:{mode:"cors"}})=>{if(!a)return null;e.value=!0,t.value=null;let r={...o};try{return await I.b(a,r)}catch(e){return t.value=e,console.error("toPng error:",e),null}finally{e.value=!1}},toJpeg:async(a,o={},r=.95)=>{if(!a)return null;e.value=!0,t.value=null;try{return await I.a(a,{quality:r,...o})}catch(e){return t.value=e,console.error("toJpeg error:",e),null}finally{e.value=!1}},toSvg:async(a,o={})=>{if(!a)return null;e.value=!0,t.value=null;try{return await I.c(a,o)}catch(e){return t.value=e,console.error("toSvg error:",e),null}finally{e.value=!1}}}}();return{isInWechatMP:e,error:a,toPng:t,browser:class{static getInfo(){window.navigator.userAgent.toLowerCase(),window.navigator.platform.toLowerCase();return{isMobile:this.isMobile(),isDesktop:this.isDesktop(),browser:this.getBrowser(),browserVersion:this.getBrowserVersion(),os:this.getOS(),osVersion:this.getOSVersion(),isTouch:this.isTouchDevice(),language:navigator.language}}static isMobile(){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(window.navigator.userAgent)}static isDesktop(){return!this.isMobile()}static getBrowser(){const e=window.navigator.userAgent.toLowerCase();return e.includes("edg")?"Edge":e.includes("chrome")?"Chrome":e.includes("firefox")?"Firefox":e.includes("safari")&&!e.includes("chrome")?"Safari":e.includes("trident")||e.includes("msie")?"IE":e.includes("micromessenger")?"WeChat":"Unknown"}static getBrowserVersion(){const e=window.navigator.userAgent.toLowerCase(),t=this.getBrowser(),a=e.match({Edge:/edg\/(\d+(\.\d+)?)/,Chrome:/chrome\/(\d+(\.\d+)?)/,Firefox:/firefox\/(\d+(\.\d+)?)/,Safari:/version\/(\d+(\.\d+)?)/,"Internet Explorer":/msie (\d+(\.\d+)?)/}[t]||"");return a?a[1]:"Unknown"}
1static getOS(){const e=window.navigator.userAgent.toLowerCase(),t=window.navigator.platform.toLowerCase();return/windows/.test(t)?"Windows":/mac/.test(t)?"macOS":/linux/.test(t)?"Linux":/android/.test(e)?"Android":/iphone|ipad|ipod/.test(e)?"iOS":"Unknown"}static getOSVersion(){const e=window.navigator.userAgent.toLowerCase(),t=this.getOS(),a=e.match({Windows:/Windows NT (\d+\.\d+)/,macOS:/Mac OS X (\d+[._]\d+)/,Android:/Android (\d+\.\d+)/,iOS:/OS (\d+[._]\d+)/}[t]||"");return a?a[1].replace(/_/g,"."):"Unknown"}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}}.getBrowser()}},methods:{truncateRichText(e,t){var a=document.createElement("div");a.innerHTML=e;var o=a.childNodes,r="",c=[];function s(e){var a=e.nodeType;if(a===Node.TEXT_NODE){var o=e.textContent;o.length>t?(r+=o.substring(0,t),t=0):(r+=o,t-=o.length)}else if(a===Node.ELEMENT_NODE){var n=e.tagName.toLowerCase(),i=e.outerHTML;if(i.length<=t)if(r+=i,t-=i.length,n.startsWith("/"))c.pop();else{if(c.includes(n)){for(;c.length>0&&c[c.length-1]!==n;)r+=`</${c.pop()}>`;c.pop()}c.push(n)}else{var l=i.length-n.length-3;if(l>=t)r+=i.substring(0,t),t=0;else{if(r+=i.substring(0,l),t-=l,!n.startsWith("/")){if(c.includes(n)){for(;c.length>0&&c[c.length-1]!==n;)r+=`</${c.pop()}>`;c.pop()}c.push(n)}for(var d=0;d<e.childNodes.length;d++)s(e.childNodes[d])}}}}for(var n=0;n<o.length;n++)s(o[n]);var i=r.lastIndexOf("<");for(i>r.lastIndexOf(">")&&(r=r.substring(0,i));c.length>0;)r+=`</${c.pop()}>`;return r+="..."},paperUrl(){let e=Object(P.h)()+"/p/"+this.paper.slug;const t=this.$store.state.user.user.uuid;return t&&(e=e+"?refer="+t),e},postUrl(){let e=Object(P.h)()+"/post/"+this.post.uuid;const t=this.$store.state.user.user.uuid;return t&&(e=e+"?refer="+t),e},setPost(e,t){this.post=e,this.paper=t||e.paper,this.rerender()},rerender(){this.creating=!0,document.querySelector("img.share-card")&&(document.querySelector("img.share-card").src=""),document.querySelector("#share-card")&&document.querySelector("#share-card").remove(),setTimeout(()=>{this.createShareCard()},800)},createShareCard(){let e=[],t=document.querySelectorAll(".post-content img");null!=t&&t.length>0&&t.forEach(t=>{Object(P.a)(t.src)&&e.push({e:t,src:t.src})});const a=this.$refs.avatar||document.querySelector(".avatar");var o,r;null!=a&&e.push({e:a,src:a.src||(null===(o=this.paper)||void 0===o||null===(o=o.creator)||void 0===o?void 0:o.full_avatar_url)||(null===(r=this.post)||void 0===r||null===(r=r.creator)||void 0===r?void 0:r.full_avatar_url)});this.creating=!0;let c=this;Promise.all(e.map(e=>this.getBase64(e.src).catch(t=>(console.error("getBase64 error for:",e.src,t),this.PLACEHOLDER_IMAGE)))).then(t=>{const a=t.map((t,a)=>this.replaceImageAndWait(e[a],t,a));return Promise.all(a)}).then(()=>{c.$nextTick(()=>{const e=c.$refs.card,t=e.offsetWidth,a=e.offsetHeight;c.cardHeight=a,c.isInWechatMP||"IE"===c.browser||"Safari"===c.browser||"WeChat"===c.browser?c.generateWithHtml2Canvas(e,t,a,{logging:!0,delay:300}):c.generateWithDomToImage(e,t,a+2)})}).catch(e=>{console.error("createShareCard error:",e),c.creating=!1})},async generateWithDomToImage(e,t,a){try{await this.waitForImages(e),e.classList.add("theme-light"),e.classList.remove("theme-dark");let o=null;try{o=await this.toPng(e)}finally{e.classList.remove("theme-light")}o?this.renderImage(o,t,a,"share-card dom-to-image",e=>{this.appendImageToCard(e),setTimeout(()=>{this.creating=!1,this.created()},this.RENDER_DELAY)}):(this.error&&console.error("toPng error:",this.error),this.fallbackToHtml2Canvas(e,t,a))}catch(o){console.error("generateWithDomToImage error:",o),this.fallbackToHtml2Canvas(e,t,a)}},waitForImages(e){return new Promise(t=>{const a=e.querySelectorAll("img");if(0===a.length)return void t();let o=0;const r=a.length,c=()=>{o++,o>=r&&t()};a.forEach(e=>{e.complete?c():(e.onload=c,e.onerror=c)}),setTimeout(()=>{t()},this.IMAGE_LOAD_TIMEOUT+2e3)})},generateWithHtml2Canvas(e,t,a,o={}){const{logging:r=!1,delay:c=this.RENDER_DELAY}=o,s=document.createElement("canvas"),n=this.CANVAS_SCALE;s.width=t*n,s.height=a*n;const i={scrollY:0,logging:r,scale:n,useCORS:!0,dpi:2*window.devicePixelRatio,letterRendering:!0,width:t,height:a,canvas:s};setTimeout(()=>{e.classList.add("theme-light"),e.classList.remove("theme-dark"),Z()(e,i).then(e=>{const o=e.toDataURL("image/png",1);this.renderImage(o,t,a,"share-card html-to-canvas",e=>{this.appendImageToCard(e),setTimeout(()=>{this.creating=!1,this.created()},this.RENDER_DELAY)})},e=>{console.error("html2canvas error:",e),this.creating=!1}).finally(()=>{e.classList.remove("theme-light")})},c)},fallbackToHtml2Canvas(e,t,a){this.generateWithHtml2Canvas(e,t,a,{logging:!1})},appendImageToCard(e){const t=this.$refs.card;t&&e?t.appendChild(e):console.error("æ æ³æ¾å°å¡çå
ç´ æå¾çå
ç´ æ æ",{cardElement:!!t,img:!!e})},replaceImageAndWait(e,t,a){return new Promise(o=>{if(!t||!e||!e.e)return void o();const r=e.e;if(r.complete&&r.src===t)o();else{if(r.hasAttribute("src")&&r.removeAttribute("src"),r.src=t,r.src!==t&&!r.src.includes("data:"))return console.warn("å¾çæ¿æ¢å¯è½å¤±è´¥ï¼å°è¯éæ°è®¾ç½®:",a,t.substring(0,50)),void setTimeout(()=>{r.src=t,r.complete?o():(r.onload=()=>o(),r.onerror=()=>o(),setTimeout(()=>
1o(),this.IMAGE_LOAD_TIMEOUT))},100);r.complete?o():(r.onload=()=>{console.log("å¾çå è½½å®æ:",a),o()},r.onerror=()=>{console.warn("å¾çå 载失败:",a,t.substring(0,50)),o()},setTimeout(()=>{console.warn("å¾çå è½½è¶
æ¶:",a),o()},this.IMAGE_LOAD_TIMEOUT))}})},renderImage(e,t,a,o,r){const c=new Image;c.src=e,c.id="share-card",c.width=t,c.height=a,c.className=o,c.style.width=t,c.style.height=a,c.style.position="absolute",c.style.top="0",c.style.left="0",c.crossOrigin="Anonymous",r&&r(c)},replaceAsImage(e){this.card_url=e},downloadImage(e,t){const a=document.createElement("a");a.href=e,a.download=t;const o=document.createEvent("MouseEvents");o.initEvent("click",!0,!0),a.dispatchEvent(o)},getBase64(e){return new Promise(t=>{if(e.startsWith("http")){var a=new Image;a.crossOrigin="Anonymous",a.onload=function(){try{var o=document.createElement("canvas");o.width=a.width,o.height=a.height,o.getContext("2d").drawImage(a,0,0,a.width,a.height);var r=a.src.substring(a.src.lastIndexOf(".")+1).toLowerCase(),c=o.toDataURL("image/"+r);t(c)}catch(a){console.error("getBase64 error:",a),t(e)}},a.onerror=a=>{console.error("Image load error:",a,e),t(this.PLACEHOLDER_IMAGE)},a.src=e}else t(e)})},isMobile:()=>/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)}},F=(a("538e"),a("1911"),a("5e0b"));const z=a.n(F)()(U,[["render",function(e,t,a,c,T,A){const P=o.a,D=Object(r.resolveComponent)("qrcode-vue"),I=Object(r.resolveDirective)("highlight");return Object(r.openBlock)(),Object(r.createElementBlock)("div",s,[a.type?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("div",n,[T.creating?(Object(r.openBlock)(),Object(r.createElementBlock)("div",i,"å¶ä½å¾çä¸ï¼è¯·ç¨ç...")):Object(r.createCommentVNode)("",!0),T.creating?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("div",l,"å¶ä½å®æï¼å¯é¿ææå³é®ä¿åå¾ç")),T.paper&&T.paper.writable?(Object(r.openBlock)(),Object(r.createBlock)(P,{key:2,disabled:T.creating,modelValue:T.expand,"onUpdate:modelValue":t[0]||(t[0]=e=>T.expand=e),onChange:A.rerender},{default:Object(r.withCtx)(()=>[d]),_:1},8,["disabled","modelValue","onChange"])):Object(r.createCommentVNode)("",!0)])),T.paper?(Object(r.openBlock)(),Object(r.createElementBlock)("div",{key:1,class:Object(r.normalizeClass)(["card",T.cardHeight<8e3?"":"unfinish"]),ref:"card"},[Object(r.createElementVNode)("div",p,[Object(r.createElementVNode)("div",u,[Object(r.createElementVNode)("img",{src:T.paper.creator?T.paper.creator.full_avatar_url:T.post.creator.full_avatar_url,class:"avatar",ref:"avatar"},null,8,m),Object(r.createElementVNode)("div",h,[Object(r.createElementVNode)("div",b,Object(r.toDisplayString)(T.paper.creator?T.paper.creator.nickname:T.post.creator.nickname),1),Object(r.createElementVNode)("div",null,Object(r.toDisplayString)(T.expand?"å享ä¸ç¯ä»è´¹å
容ç»ä½ å
è´¹ç":"å享ä¸ç¯ä»è´¹å
容"),1)])]),g,O,T.expand?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("div",j,Object(r.toDisplayString)(A.created_date),1)),T.post&&T.post.title?(Object(r.openBlock)(),Object(r.createElementBlock)("h1",{key:1,class:"title",innerHTML:T.post.title},null,8,C)):Object(r.createCommentVNode)("",!0),Object(r.withDirectives)(Object(r.createElementVNode)("div",{class:"content post-content",innerHTML:A.parsed_content},null,8,f),[[I]]),T.cardHeight<8e3?(Object(r.openBlock)(),Object(r.createElementBlock)("div",v,[Object(r.createElementVNode)("div",w,[Object(r.createElementVNode)("div",V,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(T.post.tag_names,e=>(Object(r.openBlock)(),Object(r.createElementBlock)("span",{key:e,class:"post_tag"},"#"+Object(r.toDisplayString)(e)+" ",1))),128))]),T.post.comment_count>0?(Object(r.openBlock)(),Object(r.createElementBlock)("div",k,Object(r.toDisplayString)(T.post.comment_count>0?T.post.comment_count:"")+" çè¨ ",1)):Object(r.createCommentVNode)("",!0)]),T.expand?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("div",y,"微信æ«ç ç»§ç»é
读")),T.expand?(Object(r.openBlock)(),Object(r.createElementBlock)("div",_)):Object(r.createCommentVNode)("",!0),Object(r.createElementVNode)("div",E,[T.expand?(Object(r.openBlock)(),Object(r.createElementBlock)("div",N,[Object(r.createElementVNode)("div",null,[Object(r.createElementVNode)("span",B,Object(r.toDisplayString)(T.paper.name),1),Object(r.createElementVNode)("p",H,"微信æ«ç çå
¨é¨ "+Object(r.toDisplayString)(T.paper.post_count)+" ç¯å
容",1)])])):Object(r.createCommentVNode)("",!0),Object(r.createVNode)(D,{class:"qrcode",value:T.expand?A.paperUrl():A.postUrl(),size:80},null,8,["value"])]),T.expand?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("div",x)),T.expand?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("div",M,"© xiaobot.net"))])):(Object(r.openBlock)(),Object(r.createElementBlock)("div",L,[Object(r.createVNode)(D,{class:"qrcode",value:A.postUrl(),size:80},null,8,["value"]),S]))])],2)):Object(r.createCommentVNode)("",!0)])}],["__scopeId","data-v-42b9ed11"]]);t.a=z},2648:function(e,t,a){},2716:function(e,t,a){"use strict";a("7862")},"273c":function(e,t,a){"use strict";a("3248")},"279e":function(e,t,a){"use strict";a("0aed")},"28ae":function(e,t,a){"use strict";a("b5e3")},"28da":function(e,t,a){"use strict";a("4c93")},"2a36":function(e,t,a){},"2aca":function(e,t,a){"use strict";a("b418")},"2be1":function(e,t,a){"use strict";a("a05a")},"2c6e":function(e,t,a){"use strict";a("fa3c")},"2e34":function(e,t,a){"use strict";a("5ef5")},3033:function(e,t,a){},3102:function(e,t,a){"use strict";a("c063")},3248:function(e,t,a){},3287:function(e,t,a){},3394:function(e,t,a){},3595:function(e,t,a){},"365c":function(e,t,a){"use strict";var o=a("7cc4"),r=(a("f764"),a("4360"));const c=a("4f14"),s=a("5292"),n=a("63bb");
1class i{static call(e,t,a,o){let n="";n=-1!==t.indexOf("http")?t:this.BASE_PRODUCTION+t;let i=s().unix(),l=this._getSign(a,i);return c.request({method:e,url:n,params:["POST","PUT","PATCH"].includes(e)?null:a,data:["POST","PUT","PATCH"].includes(e)?a:null,headers:{timestamp:i,"api-key":"xiaobot_web","app-version":"0.1",sign:l,Authorization:"Bearer "+r.a.state.user.user.access_token}}).then(e=>(e.data&&411===e.data.code&&(console.log("请å
ç»å½"),r.a.commit("user/setUser",{})),o?o(e):e)).catch(e=>{throw console.error("API call error:",e),e})}static _getSign(e,t){e=this._ksort(e);let a="";for(let t in e){let o=e[t];void 0!==o&&(a+=t+"="+o+"&")}return a=a.substring(0,a.length-1),n(a+"dbbc1dd37360b4084c3a69346e0ce2b2."+t)}static _ksort(e){var t=Object.keys(e).sort(),a={};for(var o in t)a[t[o]]=e[t[o]];return a}}Object(o.a)(i,"BASE_DEVELOPMENT","http://127.0.0.1:8000"),Object(o.a)(i,"BASE_PRODUCTION","https://api.xiaobot.net"),Object(o.a)(i,"TEST_BASE_URL","https://www.api.xiaobot.net"),t.a=i},"376d":function(e,t,a){"use strict";a("4320")},"39b1":function(e,t,a){"use strict";a("3287")},"3afb":function(e,t,a){"use strict";a("c252")},"3b6f":function(e,t,a){},"3c0a":function(e,t,a){},"3c36":function(e,t,a){},"3d8a":function(e,t,a){},4015:function(e,t,a){},4131:function(e,t,a){},4320:function(e,t,a){},4360:function(e,t,a){"use strict";var o=a("5a4b"),r=a("2cf3");var c={namespaced:!0,state:()=>({user:{},redirect_url:"/"}),getters:{is_login:e=>!!e.user.access_token,is_creator:e=>e.user.is_creator,user:e=>e.user,isBetaUser:e=>[170,2,1,772534,5,13509,62817].indexOf(e.user.id)>-1},actions:{login({commit:e,dispatch:t},a){e("setUser",a,t),a.is_creator&&t("papers/getUserPapers",null,{root:!0})}},mutations:{setUser(e,t){e.user=t},setRedirectUrl(e,t){e.redirect_url=t}}},s=a("365c"),n=a("a32b"),i=a.n(n),l=a("fa7d"),d=a("c1a7");var p={namespaced:!0,state:()=>({latest_post_uuid_map:{},current:null,list:[],paperInfo:null,settings:[],refers:[],archivePapers:[]}),getters:{archivePapers:e=>e.archivePapers},actions:{setCurrent({commit:e},t){e("setCurrent",t)},setList({commit:e},t){e("setList",t)},setPaperInfo({commit:e},t){e("setPaperInfo",t)},addPaperSetting({commit:e},t){e("addPaperSetting",t)},addRefer({commit:e},t){e("addRefer",t)},removeRefer({commit:e},t){e("removeRefer",t)},getUserPapers({commit:e}){s.a.call("GET","/paper/created",{},t=>{200==t.data.code&&e("setList",t.data.data)})},copyPaperLink(e,{slug:t}){const{toClipboard:a}=i()();a(Object(l.g)(t)),Object(d.a)({message:"å¤å¶æå",type:"success",duration:500})},archivePaper({commit:e},{slug:t}){e("addArchivePaper",t)},unArchivePaper({commit:e},{slug:t}){e("removeArchivePaper",t)},copyPaperWxUrl(e,t){const{toClipboard:a}=i()();a(Object(l.f)(t)),Object(d.a)({message:"å¤å¶æå",type:"success",duration:500})}},mutations:{setLatestPostUuidMap(e,t){for(const a in t)e.latest_post_uuid_map[a]=t[a]},setCurrent(e,t){e.current=t},setList(e,t){e.list=t},setPaperInfo(e,t){e.paperInfo=t},addPaperSetting(e,t){const a=e.settings.findIndex(e=>e.id===t.id);if(-1===a)e.settings.push(t);else{let o=e.settings[a];o&&(o={...o,...t}),e.settings.splice(a,1,{...e.settings[a],...o})}},addRefer(e,t){const a=e.refers.findIndex(e=>e.slug===t.slug);-1===a?e.refers.push(t):e.refers.splice(a,1,{...e.refers[a],...t})},removeRefer(e,t){const a=e.refers.findIndex(e=>e.slug===t);-1!==a&&e.refers.splice(a,1)},addArchivePaper(e,t){e.archivePapers.push(t)},removeArchivePaper(e,t){const a=e.archivePapers.findIndex(e=>e===t);-1!==a&&e.archivePapers.splice(a,1)}}};var u={namespaced:!0,state:()=>({urls:[],current:null,from:{path:""}}),getters:{urls:e=>e.urls,current:e=>e.current,from:e=>e.from},actions:{setCurrent({commit:e},t){e("setCurrent",t.path),e("setUrls",t)},setFrom({commit:e},t){e("setFrom",t)}},mutations:{setUrls(e,t){if(e.urls.length>0){const a=e.urls.findIndex(e=>e.path===t.path);-1!=a&&e.urls.splice(a,1)}e.urls.push(t)},setCurrent(e,t){e.current=t},setFrom(e,t){e.from=t,e.urls.length&&(e.urls=[])}}},m=(a("6072"),a("55c5"),{namespaced:!0,state:{scrollTop:0,discoverScrollTop:0,seachScrollTop:0,homeY:0,postY:[]},getters:{scrollTop:e=>e.scrollTop,discoverScrollTop:e=>e.discoverScrollTop,seachScrollTop:e=>e.seachScrollTop,getHomeY:e=>e.homeY,getPostY:e=>t=>{let a=e.postY.find(e=>e.uuid===t);return a?a.scrollTop:0}},mutations:{setScrollTop(e,t){e.scrollTop=t},setDiscoverScrollTop(e,t){e.discoverScrollTop=t},setSeachScrollTop(e,t){e.seachScrollTop=t},setHomeY(e,t){e.homeY=t},setPostY(e,t){const a=e.postY.findIndex(e=>e.uuid===t.uuid);a>-1?e.postY.splice(a,1,t):e.postY.push(t)}},actions:{}});var h={namespaced:!0,state:()=>({posts:[],currentPost:null}),getters:{posts:e=>e.posts,currentPost:e=>e.currentPost},actions:{},mutations:{setPosts(e,t){e.posts=t},setCurrentPost(e,t){e.currentPost=t},addPost(e,t){e.posts.push(t)},updatePost(e,t){const a=e.posts.findIndex(e=>e.id===t.id);e.posts.splice(a,1,t)},deletePost(e,t){const a=e.posts.findIndex(e=>e.id===t.id);e.posts.splice(a,1)}}};var b={namespaced:!0,state:()=>({drafts:[]}),getters:{drafts:e=>e.drafts},actions:{},mutations:{addDraft(e,t){const a=e.drafts.findIndex(e=>e.id===t.id);-1===a?e.drafts.push(t):e.drafts.splice(a,1,{...e.drafts[a],...t})},deleteDraft(e,t){const a=e.drafts.findIndex(e=>e.id===t.id);a>=0&&e.drafts.splice(a,1)}}};var g={namespaced:!0,state:()=>({data:{},show_withdrawal_notice_date:""}),getters:{wallet:e=>e.data,show_withdrawal_notice_date:e=>e.show_withdrawal_notice_date},actions:{setWallet({commit:e},t){e("setWallet",t)},setShowWithdrawalNotice({commit:e},t){e("setShowWithdrawalNotice",t)}},mutations:{setWallet(e,t){e.data=t},setShowWithdrawalNotice(e,t){e.show_withdrawal_notice_date=t?(new Date).getTime():""}}};var O={namespaced:!0,state:()=>({subscribe_type:"post",sort_type:"update",showNoticeSubscribeWx:!1}
1),getters:{subscribe_type:e=>e.subscribe_type,sort_type:e=>e.sort_type,showNoticeSubscribeWx:e=>e.showNoticeSubscribeWx},actions:{setSubscribeType({commit:e},t){e("setSubscribeType",t)},setSortType({commit:e},t){e("setSortType",t)},setShowNoticeSubscribeWx({commit:e},t){e("setShowNoticeSubscribeWx",t)}},mutations:{setSubscribeType(e,t){e.subscribe_type=t},setSortType(e,t){e.sort_type=t},setShowNoticeSubscribeWx(e,t){e.showNoticeSubscribeWx=t}}};var j={namespaced:!0,state:()=>({coupon:null}),getters:{coupon:e=>e.coupon},actions:{setCoupon({commit:e},t){e("setCoupon",t)}},mutations:{setCoupon(e,t){e.coupon=t}}};var C={namespaced:!0,state:()=>({config:null,theme:"system",fontSize:localStorage.getItem("post_font_size")||"default"}),getters:{config:e=>e.config,theme:e=>e.theme,fontSize:e=>e.fontSize},actions:{async loadConfig({commit:e}){const t=await new Promise(e=>{s.a.call("GET","/app/config",{},t=>{e(t)})});200===t.data.code&&e("setConfig",t.data.data)}},mutations:{setConfig(e,t){e.config=t},setTheme(e,t){e.theme=t},setFontSize(e,t){e.fontSize=t,localStorage.setItem("post_font_size",t)}}};var f={namespaced:!0,state:()=>({history:[]}),getters:{history:e=>e.history},actions:{addHistory({commit:e},t){e("addHistoryItem",t)},clearHistory({commit:e}){e("clearHistory")}},mutations:{setHistory(e,t){e.history=t},addHistoryItem(e,t){if(!t||!t.trim())return;const a=t.trim(),o=e.history.indexOf(a);o>-1&&e.history.splice(o,1),e.history.unshift(a),e.history.length>10&&e.history.pop()},clearHistory(e){e.history=[]}}};t.a=Object(o.a)({modules:{user:c,papers:p,history:u,position:m,posts:h,editor:b,wallet:g,home:O,coupon:j,app:C,search:f},state:{new_post_draft:"",new_post_title:"",new_post_creator_tags:[],new_post_creator_draft:"",new_post_creator_title:"",isMobile:!1,entrance_page:"",isClickDeliverySettings:!1,showWxGuide:!1,currentUrl:""},mutations:{setNewPostDraft(e,t){e.new_post_draft=t},setNewPostTitle(e,t){e.new_post_title=t},setNewPostCreatorTags(e,t){e.new_post_creator_tags=t},setNewPostCreatorDraft(e,t){e.new_post_creator_draft=t},setNewPostCreatorTitle(e,t){e.new_post_creator_title=t},setIsMobile(e,t){e.isMobile=t},setEntrancePage(e,t){e.entrance_page=t},setIsClickDeliverySettings(e,t){e.isClickDeliverySettings=t},setShowWxGuide(e,t){e.showWxGuide=t},setCurrentUrl(e,t){e.currentUrl=t}},actions:{},plugins:[Object(r.a)({paths:["user","papers","new_post_draft","history","position","posts","new_post_title","new_post_creator_tags","new_post_creator_draft","new_post_creator_title","editor","isMobile","entrance_page","isClickDeliverySettings","wallet","home","app.theme","search"]})]})},4400:function(e,t,a){},4657:function(e,t,a){"use strict";a.r(t);var o=a("8a75");a.d(t,"highlight",(function(){return o.a}))},"48c2":function(e,t,a){},"491a":function(e,t,a){"use strict";a("113e")},"49df":function(e,t,a){"use strict";a("8e5e")},"4a6e":function(e,t,a){},"4ac0":function(e,t,a){"use strict";a("fcff")},"4ad5":function(e,t,a){},"4ba7":function(e,t,a){},"4c93":function(e,t,a){},"4d9c":function(e,t,a){},"4e8b":function(e,t,a){},"4f38":function(e,t,a){},5051:function(e,t,a){"use strict";a("b630")},5056:function(e,t,a){"use strict";a("bb33")},5075:function(e,t,a){"use strict";a("8c85")},"510a":function(e,t,a){},"538e":function(e,t,a){"use strict";a("7340")},"55c0":function(e,t,a){"use strict";a("2a36")},"568d":function(e,t,a){"use strict";a("a07a")},"56f6":function(e,t,a){"use strict";a("fb8e")},5726:function(e,t,a){"use strict";a("6fd3")},"58be":function(e,t,a){},"58d0":function(e,t,a){"use strict";a.d(t,"a",(function(){return $})),a.d(t,"b",(function(){return Z}));a("6072"),a("b076");var o=a("4991"),r=a.n(o),c=a("5661"),s=a.n(c),n=a("d3cb"),i=a.n(n),l=a("4162"),d=a.n(l),p=a("b8bd"),u=a.n(p),m=a("6451"),h=a.n(m),b=a("e1d4"),g=a.n(b),O=a("8d1b"),j=a.n(O),C=a("3f4d"),f=a.n(C),v=a("e2a6"),w=a.n(v),V=a("f530"),k=a.n(V),y=a("8d10"),_=a.n(y),E=a("10ad"),N=a.n(E),B=a("b55e"),H=a.n(B),x=a("b1d
1a"),M=a.n(x),L=a("09f1"),S=a.n(L),T=a("2efe"),A=a.n(T),P=a("5b4e"),D=a.n(P);a("c5d1");r.a.registerLanguage("css",s.a),r.a.registerLanguage("js",i.a),r.a.registerLanguage("ts",d.a),r.a.registerLanguage("html",u.a),r.a.registerLanguage("bash",h.a),r.a.registerLanguage("go",g.a),r.a.registerLanguage("java",j.a),r.a.registerLanguage("json",f.a),r.a.registerLanguage("php",w.a),r.a.registerLanguage("python",k.a),r.a.registerLanguage("ruby",_.a),r.a.registerLanguage("sql",N.a),r.a.registerLanguage("swift",H.a),r.a.registerLanguage("kotlin",M.a),r.a.registerLanguage("markdown",S.a),r.a.registerLanguage("objectivec",A.a),r.a.registerLanguage("plaintext",D.a),r.a.registerLanguage("xml",u.a);r.a.addPlugin({"before:highlightBlock":({block:e})=>{e.innerHTML=e.innerHTML.replace(/<br[ /]*>/g,"\n")},"after:highlightBlock":({result:e})=>{e.value=e.value.replace(/\n/g,"<br>")}});const I=/\blang(?:uage)?-([\w-]+)\b/i;function $(e){if(!e||"function"!=typeof e.querySelectorAll)return;e.querySelectorAll("pre code").forEach(e=>{(e=>{var t;"yes"===(null===(t=e.dataset)||void 0===t?void 0:t.highlighted)&&(e.textContent=e.textContent||"",delete e.dataset.highlighted)})(e),r.a.highlightElement(e);const t=(e=>{var t,a;if(null!=e&&null!==(t=e.result)&&void 0!==t&&t.language)return e.result.language;const o=("string"==typeof e.className?e.className:Array.from(e.classList||[]).join(" ")).match(I);return o&&o[1]?o[1]:e.getAttribute("lang")||(null===(a=e.dataset)||void 0===a?void 0:a.language)||""})(e);t&&e.setAttribute("lang",t)})}function Z(){return{highlightCode:function(e){$(e)}}}},"59e0":function(e,t,a){},"5a00":function(e,t,a){"use strict";a("ca2f")},"5a60":function(e,t,a){},"5bdd":function(e,t,a){"use strict";a("4e8b")},"5eb2":function(e,t,a){"use strict";a("8681")},"5ef5":function(e,t,a){},"60fe":function(e,t,a){"use strict";a("510a")},"61c7":function(e,t,a){},6391:function(e,t,a){},6398:function(e,t,a){"use strict";a("58be")},"66ee":function(e,t,a){"use strict";a("def0")},6776:function(e,t,a){"use strict";a("f379")},6839:function(e,t,a){},"68cd":function(e,t,a){},6977:function(e,t,a){},"6bc7":function(e,t,a){},"6c49":function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return s}));var o=a("365c");const r=e=>new Promise(t=>{o.a.call("GET","/paper/"+e,{},e=>{t(e)})}),c=e=>new Promise(t=>{o.a.call("POST","/paper_application/application",e,e=>{t(e)})}),s=(e,t)=>new Promise(a=>{o.a.call("GET","/paper_application/history",{page:e,size:t},e=>{a(e)})})},"6d7e":function(e,t,a){"use strict";a("9427")},"6e89":function(e,t,a){},"6f76":function(e,t,a){"use strict";a("ee2c")},"6fd3":function(e,t,a){},7006:function(e,t,a){},7086:function(e,t,a){"use strict";a("3b6f")},7340:function(e,t,a){},"743d":function(e,t,a){"use strict";a("924c")},"755a":function(e,t,a){},"76d6":function(e,t,a){},"773c":function(e,t,a){"use strict";a("68cd")},"77d7":function(e,t,a){},7862:function(e,t,a){},7901:function(e,t,a){"use strict";var o=a("90f1");const r=e=>(Object(o.pushScopeId)("data-v-6e852b6b"),e=e(),Object(o.popScopeId)(),e),c={class:"audio-info"},s={class:"audio-title"},n={class:"audio-time"},i={class:"audio-controls"},l={key:0,viewBox:"0 0 24 24",width:"24",height:"24"},d=[r(()=>Object(o.createElementVNode)("path",{d:"M8 5v14l11-7z",fill:"currentColor"},null,-1))],p={key:1,viewBox:"0 0 24 24",width:"24",height:"24"},u=[r(()=>Object(o.createElementVNode)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z",fill:"currentColor"},null,-1))],m=r(()=>Object(o.createElementVNode)("div",{class:"progress-bar-bg"},null,-1)),h=["src"];var b={name:"AudioPlayer",props:{src:{type:String,required:!0},title:{type:String,default:""}},data:()=>({isPlaying:!1,currentTime:0,duration:0,isDragging:!1}),computed:{progress(){return 0===this.duration?0:this.currentTime/this.duration*100}},methods:{togglePlay(){const e=this.$refs.audioRef;e&&(this.isPlaying?e.pause():e.play())},pause(){const e=this.$refs.audioRef;e&&this.isPlaying&&e.pause()},onPlay(){this.isPlaying=!0,this.$emit("play")},onTimeUpdate(){this.isDragging||(this.currentTime=this.$refs.audioRef.currentTime)},onLoadedMetadata(){this.duration=this.$refs.audioRef.duration},onEnded(){this.isPlaying=!1,this.currentTime=0},formatTime(e){if(!e||isNaN(e))return"00:00";const t=Math.floor(e/60),a=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`},onMouseDown(e){this.isDragging=!0,this.updateProgress(e),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove(e){this.isDragging&&this.updateProgress(e)},onMouseUp(e){this.isDragging&&(this.updateProgress(e),this.isDragging=!1,this.$refs.audioRef.currentTime=this.currentTime,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp))},updateProgress(e){const t=this.$refs.progressContainer.getBoundingClientRect();let a=e.clientX-t.left;a=Math.max(0,Math.min(a,t.width));const o=a/t.width;this.currentTime=o*this.duration}}},g=(a("fed6"),a("5e0b"));const O=a.n(g)()(b,[["render",function(e,t,a,r,b,g){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["audio-player",{"is-playing":b.isPlaying}
1])},[Object(o.createElementVNode)("div",c,[Object(o.createElementVNode)("div",s,Object(o.toDisplayString)(a.title||"æªç¥é³é¢"),1),Object(o.createElementVNode)("div",n,Object(o.toDisplayString)(g.formatTime(b.currentTime))+" / "+Object(o.toDisplayString)(g.formatTime(b.duration)),1)]),Object(o.createElementVNode)("div",i,[Object(o.createElementVNode)("div",{class:"play-btn",onClick:t[0]||(t[0]=(...e)=>g.togglePlay&&g.togglePlay(...e))},[b.isPlaying?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",p,u)):(Object(o.openBlock)(),Object(o.createElementBlock)("svg",l,d))]),Object(o.createElementVNode)("div",{class:"progress-bar-container",onMousedown:t[1]||(t[1]=(...e)=>g.onMouseDown&&g.onMouseDown(...e)),ref:"progressContainer"},[m,Object(o.createElementVNode)("div",{class:"progress-bar-fill",style:Object(o.normalizeStyle)({width:g.progress+"%"})},null,4),Object(o.createElementVNode)("div",{class:"progress-handle",style:Object(o.normalizeStyle)({left:g.progress+"%"})},null,4)],544)]),Object(o.createElementVNode)("audio",{ref:"audioRef",src:a.src,onTimeupdate:t[2]||(t[2]=(...e)=>g.onTimeUpdate&&g.onTimeUpdate(...e)),onLoadedmetadata:t[3]||(t[3]=(...e)=>g.onLoadedMetadata&&g.onLoadedMetadata(...e)),onEnded:t[4]||(t[4]=(...e)=>g.onEnded&&g.onEnded(...e)),onPlay:t[5]||(t[5]=(...e)=>g.onPlay&&g.onPlay(...e)),onPause:t[6]||(t[6]=e=>b.isPlaying=!1)},null,40,h)],2)}],["__scopeId","data-v-6e852b6b"]]);t.a=O},"7a3f":function(e,t,a){"use strict";a("eeb7")},"7c0a":function(e,t,a){},"7e60":function(e,t,a){"use strict";a("a891")},8052:function(e,t,a){"use strict";a("77d7")},"80fa":function(e,t,a){"use strict";a("0ed7")},"82d7":function(e,t,a){"use strict";var o=a("fa05"),r=(a("ec52"),a("90f1"));a("f764");var c={emits:["click"],props:{isActive:{type:Boolean,default:!1},action:String,isSpan:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},isMobile:{type:Boolean,default:!1}},methods:{handleClick(){this.$emit("click")},getTooltipContent:e=>function(e){const t=navigator.platform.toUpperCase().includes("MAC");return"bold"===e?t?"å ç² (Cmd+B)":"å ç² (Ctrl+B)":"underline"===e?t?"ä¸å线 (Cmd+U)":"ä¸å线 (Ctrl+U)":"highlight"===e?t?"é«äº® (Cmd+Shift+H)":"é«äº® (Ctrl+Shift+H)":"orderedList"===e?"æåºå表":"bulletList"===e?"æ åºå表":"quote"===e?t?"å¼ç¨ (Cmd+Shift+B)":"å¼ç¨ (Ctrl+Shift+B)":"code"===e?"代ç å":"link"===e?"è¶
龿¥":"unlink"===e?"ç§»é¤é¾æ¥":"image"===e?"æå
¥å¾ç":"horizontal"===e?"åå²çº¿":"H1"===e?t?"ä¸çº§æ é¢ (Cmd+Alt+1)":"ä¸çº§æ é¢ (Ctrl+Alt+1)":"H2"===e?t?"äºçº§æ é¢ (Cmd+Alt+2)":"äºçº§æ é¢ (Ctrl+Alt+2)":"H3"===e?t?"ä¸çº§æ é¢ (Cmd+Alt+3)":"ä¸çº§æ é¢ (Ctrl+Alt+3)":"paragraph"==e?"æ£æ":"table"===e?"è¡¨æ ¼":"heading"===e?"æ é¢":"audio"===e?"é³é¢":""}(e)}},s=(a("5eb2"),a("c62c"),a("5e0b"));const n=a.n(s)()(c,[["render",function(e,t,a,c,s,n){const i=o.a;return Object(r.openBlock)(),Object(r.createBlock)(i,{"popper-class":"tooltip__body",effect:"light",content:n.getTooltipContent(a.action),placement:a.placement,"hide-after":0,disabled:a.disabled},{default:Object(r.withCtx)(()=>[a.isMobile?(Object(r.openBlock)(),Object(r.createElementBlock)("span",{key:0,onTouchstart:t[0]||(t[0]=(...e)=>n.handleClick&&n.handleClick(...e)),class:Object(r.normalizeClass)({tooltip__component:!a.isSpan,"tooltip__component--span":a.isSpan,actived:a.isActive&&!a.isSpan})},[Object(r.renderSlot)(e.$slots,"default",{},void 0,!0)],34)):(Object(r.openBlock)(),Object(r.createElementBlock)("span",{key:1,onClick:t[1]||(t[1]=(...e)=>n.handleClick&&n.handleClick(...e)),class:Object(r.normalizeClass)({tooltip__component:!a.isSpan,"tooltip__component--span":a.isSpan,actived:a.isActive&&!a.isSpan})},[Object(r.renderSlot)(e.$slots,"default",{},void 0,!0)],2))]),_:3},8,["content","placement","disabled"])}],["__scopeId","data-v-291e85d1"]]);t.a=n},8333:function(e,t,a){},8681:function(e,t,a){},8715:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i}));a("f764");var o=a("90f1"),r=a("5a4b");const c=()=>"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
1k":"light",s=e=>{if("undefined"==typeof document)return;const t=document.documentElement;t.classList.remove("theme-light","theme-dark"),t.classList.add("theme-"+e),t.setAttribute("data-theme",e)};function n(e){var t;if("undefined"==typeof window)return;const a=(null==e||null===(t=e.state)||void 0===t||null===(t=t.app)||void 0===t?void 0:t.theme)||"system";let o=a;if("system"===a&&(o=c()),s(o),window.matchMedia){const t=window.matchMedia("(prefers-color-scheme: dark)"),a=t=>{var a;"system"===((null==e||null===(a=e.state)||void 0===a||null===(a=a.app)||void 0===a?void 0:a.theme)||"system")&&s(t.matches?"dark":"light")};t.addEventListener?t.addEventListener("change",a):t.addListener(a)}}function i(){const e=Object(r.b)(),t=Object(o.computed)(()=>{const t=e.getters["app/theme"];return"system"===t?c():t});return Object(o.onMounted)(()=>{const t=e.getters["app/theme"]||"system";s("system"===t?c():t)}),Object(o.watch)(()=>e.getters["app/theme"],e=>{s("system"===e?c():e)},{immediate:!0}),{theme:Object(o.computed)(()=>e.getters["app/theme"]),currentTheme:t,setTheme:t=>{["light","dark","system"].includes(t)?(e.commit("app/setTheme",t),s("system"===t?c():t)):console.warn(`Invalid theme: ${t}. Must be 'light', 'dark', or 'system'`)}}}},"87a8":function(e,t,a){"use strict";a("6e89")},8829:function(e,t,a){"use strict";a("d27f")},8999:function(e,t,a){"use strict";a.r(t);var o=a("0bd7"),r=(a("d6e4"),a("cdd5"),a("5499"),a("90f1"));const c=e=>(Object(r.pushScopeId)("data-v-7b5d498e"),e=e(),Object(r.popScopeId)(),e),s={class:"icon-wrapper",title:"åå·è®¾ç½®"},n=c(()=>Object(r.createElementVNode)("span",{class:"label"},"å°",-1)),i=c(()=>Object(r.createElementVNode)("span",{class:"label"},"é»è®¤",-1)),l=c(()=>Object(r.createElementVNode)("span",{class:"label"},"大",-1));a("f764");var d={name:"FontSizeSwitch",components:{ALargeSmall:a("b0bf6").a},props:{modelValue:{type:String,default:"default"}},emits:["update:modelValue","change"],computed:{isShow(){return["PostPage","PostDetail","Paper","Home"].includes(this.$route.name)}},methods:{handleCommand(e){e!==this.modelValue&&(this.$emit("update:modelValue",e),this.$emit("change",e))}}},p=(a("a965"),a("5e0b"));const u=a.n(p)()(d,[["render",function(e,t,a,c,d,p){const u=Object(r.resolveComponent)("ALargeSmall"),m=o.b,h=o.c,b=o.a;return p.isShow?(Object(r.openBlock)(),Object(r.createBlock)(b,{key:0,trigger:"click",onCommand:p.handleCommand,class:"font-size-switch"},{dropdown:Object(r.withCtx)(()=>[Object(r.createVNode)(h,null,{default:Object(r.withCtx)(()=>[Object(r.createVNode)(m,{command:"small",class:Object(r.normalizeClass)({active:"small"===a.modelValue})},{default:Object(r.withCtx)(()=>[n]),_:1},8,["class"]),Object(r.createVNode)(m,{command:"default",class:Object(r.normalizeClass)({active:"default"===a.modelValue})},{default:Object(r.withCtx)(()=>[i]),_:1},8,["class"]),Object(r.createVNode)(m,{command:"large",class:Object(r.normalizeClass)({active:"large"===a.modelValue})},{default:Object(r.withCtx)(()=>[l]),_:1},8,["class"])]),_:1})]),default:Object(r.withCtx)(()=>[Object(r.createElementVNode)("div",s,[Object(r.createVNode)(u,{class:"icon",size:16})])]),_:1},8,["onCommand"])):Object(r.createCommentVNode)("",!0)}],["__scopeId","data-v-7b5d498e"]]);t.default=u},"8a73":function(e,t,a){"use strict";a("1263")},"8bf3":function(e,t,a){"use strict";a("cafa")},"8c15":function(e,t,a){"use strict";a("0766")},"8c85":function(e,t,a){},"8ce2":function(e,t,a){"use strict";a("b8ef")},"8d8f":function(e,t,a){"use strict";a("b2c0")},"8e5e":function(e,t,a){},"8f20":function(e,t,a){"use strict";a("48c2")},"910c":function(e,t,a){"use strict";a("dbc3")},"924c":function(e,t,a){},9278:function(e,t,a){"use strict";a("fc59")},"92f1":function(e,t,a){"use strict";var o=a("0dea"),r=(a("194c"),a("6eac")),c=(a("2ff2"),a("90f1"));const s=e=>(Object(c.pushScopeId)("data-v-2356eeec"),e=e(),Object(c.popScopeId)(),e),n=["src"],i={class:"menu"},l={class:"menu-item"},d={key:0,href:"/setting",target:"_blank"},p=Object(c.createTextVNode)("æç"),u={class:"menu-item"},m={key:0,href:"/setting/delivery",target:"_blank"},h=Object(c.createTextVNode)("æé设置"),b={key:0,class:"menu-item"},g=[s(()=>Object(c.createElementVNode)("a",{href:"/subscribed"},"è¿å订é
模å¼",-1))],O={key:1,class:"menu-item"},j=[s(()=>Object(c.createElementVNode)("a",{href:"/creator",target:"_blank"},"åä½è
ä¸å¿",-1))],C=s(()=>Object(c.createElementVNode)("div",{class:"divider"},null,-1)),f=s(()=>Object(c.createElementVNode)("span",{class:"btn"},"ç»å½",-1));var v={name:"UserAvatarMenu",components:{ArrowDown:a("89b4").a},props:{isReader:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},showChevron:{type:Boolean,default:!1}},computed:{login_url(){return"/wechat_auth?redirect="+this.$route.href}},methods:{logout(){this.$store.commit("user/setUser",{}),this.isReader?this.$router.replace("/setting"):(this.$store.commit("papers/setCurrent",null),this.$store.commit("papers/setList",[]),this.$router.replace("/creator/login"))}}},w=(a("3102"),a("1bca"),a("5e0b"));const V=a.n(w)()(v,[["render",function(e,t,a,s,v,w){const V=Object(c.resolveComponent)("ArrowDown"),k=r.a,y=Object(c.resolveComponent)("router-link"),_=o.a;return e.$store.state.user.user.access_token?(Object(c.openBlock)(),Object(c.createBlock)(_,{key:0,placement:a.placement,width:134,trigger:"click","popper-class":"account-popover","show-arrow":!1,teleported:!0}
1,{reference:Object(c.withCtx)(()=>[Object(c.createElementVNode)("button",{class:Object(c.normalizeClass)(["avatar-trigger",{"avatar-trigger--with-chevron":a.showChevron}]),type:"button","aria-label":"æå¼è´¦å·èå"},[Object(c.createElementVNode)("img",{class:"avatar",src:e.$store.state.user.user.full_avatar_url,alt:""},null,8,n),a.showChevron?(Object(c.openBlock)(),Object(c.createBlock)(k,{key:0,class:"avatar-chevron"},{default:Object(c.withCtx)(()=>[Object(c.createVNode)(V)]),_:1})):Object(c.createCommentVNode)("",!0)],2)]),default:Object(c.withCtx)(()=>[Object(c.createElementVNode)("div",i,[Object(c.createElementVNode)("div",l,[a.isReader?(Object(c.openBlock)(),Object(c.createBlock)(y,{key:1,to:"/setting"},{default:Object(c.withCtx)(()=>[p]),_:1})):(Object(c.openBlock)(),Object(c.createElementBlock)("a",d,"æç"))]),Object(c.createElementVNode)("div",u,[a.isReader?(Object(c.openBlock)(),Object(c.createBlock)(y,{key:1,to:"/setting/delivery"},{default:Object(c.withCtx)(()=>[h]),_:1})):(Object(c.openBlock)(),Object(c.createElementBlock)("a",m,"æé设置"))]),a.isReader?Object(c.createCommentVNode)("",!0):(Object(c.openBlock)(),Object(c.createElementBlock)("div",b,g)),a.isReader&&e.$store.getters["user/is_creator"]?(Object(c.openBlock)(),Object(c.createElementBlock)("div",O,j)):Object(c.createCommentVNode)("",!0),C,Object(c.createElementVNode)("div",{class:"menu-item logout",onClick:t[0]||(t[0]=(...e)=>w.logout&&w.logout(...e))},"ç«å³éåº")])]),_:1},8,["placement"])):a.isReader?(Object(c.openBlock)(),Object(c.createBlock)(y,{key:1,to:w.login_url},{default:Object(c.withCtx)(()=>[f]),_:1},8,["to"])):Object(c.createCommentVNode)("",!0)}],["__scopeId","data-v-2356eeec"]]);t.a=V},9314:function(e,t,a){"use strict";a("d786")},"93db":function(e,t,a){"use strict";a("2648")},9427:function(e,t,a){},"951b":function(e,t,a){},9777:function(e,t,a){},"99fa":function(e,t,a){"use strict";a("0f26")},"9adc":function(e,t,a){"use strict";a.r(t);a("6072"),a("b076");var o=a("90f1");const r={class:"body"},c=(e=>(Object(o.pushScopeId)("data-v-c90240bc"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("div",{class:"description"},[Object(o.createTextVNode)(" 微信æ«ä¸æ« "),Object(o.createElementVNode)("br"),Object(o.createTextVNode)("æå°æ¬é¡µæªå¾ååç»å¾®ä¿¡ãæä»¶ä¼ è¾å©æã "),Object(o.createElementVNode)("br"),Object(o.createTextVNode)("å¨å¾®ä¿¡ä¸é¿æäºç»´ç è¯å« ")],-1));const s={class:"modal-content-wrapper"},n={key:0,class:"modal-header"},i={key:0,class:"modal-title"},l=["src"],d={key:1,class:"modal-divider"},p={class:"body"},u={key:0,class:"bottom_btn"};function m(){const e=Object(o.ref)(!1),t=()=>{e.value=window.innerWidth<980};return Object(o.onMounted)(()=>{t(),window.addEventListener("resize",t)}),Object(o.onUnmounted)(()=>{window.removeEventListener("resize",t)}),e}var h=a("3777"),b=a("c856"),g=Object(o.defineComponent)({name:"app-modal",components:{ElDialog:h.a,ElDrawer:b.a},props:{visible:{type:Boolean,default:!1,required:!0},closeDrawer:{type:Function,default:()=>{},required:!0},title:{type:String,default:"",required:!0},bottomBtn:{type:Object,default:()=>{},required:!1},height:{type:String,default:"auto",required:!1},width:{type:String,default:"480px",required:!1},buttonClick:{type:Function,default:()=>{},required:!1},showClose:{type:Boolean,default:!0,required:!1}},setup(e){const t=m(),a=Object(o.computed)(()=>t.value?{direction:"btt",size:e.height,"with-header":!1,"append-to-body":!0}:{width:e.width,"show-close":!1,title:"","align-center":!0,"overlay-class":"custom_dialog_overlay"});return{isMobile:t,componentProps:a,ElDialog:h.a,ElDrawer:b.a}},methods:{handleButtonClick(){this.buttonClick?this.buttonClick():this.closeDrawer()}}}),O=(a("8bf3"),a("9e5a"),a("5e0b")),j=a.n(O);var C=j()(g,[["render",function(e,t,a,r,c,m){return e.visible?(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(e.isMobile?e.ElDrawer:e.ElDialog),Object(o.mergeProps)({key:0,"model-value":e.visible,"onUpdate:modelValue":t[2]||(t[2]=t=>!t&&e.closeDrawer())},e.componentProps,{"custom-class":e.isMobile?"custom_model":"custom_dialog","before-close":e.closeDrawer,"destroy-on-close":"","close-on-click-modal":e.showClose}),{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",s,[e.title||e.showClose?(Object(o.openBlock)(),Object(o.createElementBlock)("div",n,[e.title?(Object(o.openBlock)(),Object(o.createElementBlock)("div",i,Object(o.toDisplayString)(e.title),
11)):Object(o.createCommentVNode)("",!0),e.showClose?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:1,src:"/img/icon_close.svg",class:"close",onClick:t[0]||(t[0]=(...t)=>e.closeDrawer&&e.closeDrawer(...t))},null,8,l)):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),e.title?(Object(o.openBlock)(),Object(o.createElementBlock)("div",d)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",p,[Object(o.renderSlot)(e.$slots,"default",{},void 0,!0),e.bottomBtn?(Object(o.openBlock)(),Object(o.createElementBlock)("div",u,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large back",onClick:t[1]||(t[1]=(...t)=>e.handleButtonClick&&e.handleButtonClick(...t)),style:Object(o.normalizeStyle)({background:e.bottomBtn.background,color:e.bottomBtn.color})},Object(o.toDisplayString)(e.bottomBtn.text),5)])):Object(o.createCommentVNode)("",!0)])])]),_:3},16,["model-value","custom-class","before-close","close-on-click-modal"])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-24a19006"]]),f=a("8c79"),v=a.n(f),w={name:"GuideToWx",props:{visible:{type:Boolean,default:!1,required:!0},closeDrawer:{type:Function,default:()=>{},required:!0},url:{type:String,default:"",required:!0}},components:{AppModalVue:C,QrCodeVue:v.a},data:()=>({bottomBtn:{text:"è·³è¿",background:"#333333",color:"#F8F6F4"}}),mounted(){if(this.updateBottomBtnColors(),"undefined"!=typeof window){const e=new MutationObserver(()=>{this.updateBottomBtnColors()});e.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),this.themeObserver=e}},beforeUnmount(){this.themeObserver&&this.themeObserver.disconnect()},watch:{visible(e){e&&this.$nextTick(()=>{this.updateBottomBtnColors()})}},methods:{updateBottomBtnColors(){if("undefined"!=typeof window){const e=document.documentElement,t=getComputedStyle(e).getPropertyValue("--text-color").trim()||"#333333",a=getComputedStyle(e).getPropertyValue("--bg-color").trim()||"#F8F6F4";this.bottomBtn={text:"è·³è¿",background:t,color:a}}}}};a("0489");var V=j()(w,[["render",function(e,t,a,s,n,i){const l=Object(o.resolveComponent)("qr-code-vue"),d=Object(o.resolveComponent)("AppModalVue");return Object(o.openBlock)(),Object(o.createBlock)(d,{title:"请å¨å¾®ä¿¡æå¼",closeDrawer:a.closeDrawer,visible:a.visible,bottomBtn:n.bottomBtn},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",r,[a.url?(Object(o.openBlock)(),Object(o.createBlock)(l,{key:0,value:a.url,size:180},null,8,["value"])):Object(o.createCommentVNode)("",!0),c])]),_:1},8,["closeDrawer","visible","bottomBtn"])}],["__scopeId","data-v-c90240bc"]]),k=a("e039");a("f57c");const y={key:0,id:"nav"},_=Object(o.createElementVNode)("svg",{width:"74",height:"28",viewBox:"0 0 74 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M13.4167 0H9.7013V21.7982C9.7013 23.6118 9.04766 24.1349 7.7748 24.1349H6.57074V27.9016H7.7748C11.559 27.9016 13.4167 26.1229 13.4167 21.7982V0ZM2.09851 7.70783C2.09851 15.1018 1.82329 17.9617 0 20.996L3.23377 22.8793C5.40108 19.1824 5.8139 16.0086 5.8139 7.70783H2.09851ZM17.2353 7.70783C17.2353 16.0086 17.6481 19.1824 19.8154 22.8793L23.0492 20.996C21.2259 17.9617 20.9507 15.1018 20.9507 7.70783H17.2353Z",fill:"var(--text-color)"}),Object(o.createElementVNode)("path",{d:"M73.312 4.45746V1.42911H64.3331V0H60.6177V1.42911H51.6389V4.45746H66.1564V6.43099H58.7944V5.13798H55.079V6.43099H50.9508V9.42531H74V6.43099H69.8718V4.45746H73.312ZM73.312 23.7504V20.7561H64.3331V19.6332H73.312V10.4461H51.6389V19.6332H60.6177V20.7561H51.6389V23.7504H60.6177V24.9073H50.9508V27.9016H74V24.9073H64.3331V23.7504H73.312ZM55.3542 14.155V12.7599H60.6177V14.155H55.3542ZM69.5966 12.7599V14.155H64.3331V12.7599H69.5966ZM55.3542 17.3194V15.9243H60.6177V17.3194H55.3542ZM69.5966 15.9243V17.3194H64.3331V15.9243H69.5966Z",fill:"var(--text-color)"}),Object(o.createElementVNode)("path",{d:"M28.3217 2.51795H24.2623V6.1928H28.3217V8.03023H24.2623V11.7051H25.2944V15.1417H24.2623V18.8166H28.3217V20.5519H24.2623V24.2268H28.3217V27.9016H32.0715V24.2268H36.1309V20.5519H32.0715V18.8166H36.1309V15.1417H35.0989V11.7051H36.1309V8.03023H32.0715V6.1928H36.1309V2.51795H32.0715V0H28.3217V2.51795ZM40.5343 4.35538H43.2521C43.1833 5.75046 42.8737 6.15878 42.0136 6.15878V9.83363C45.1098 9.83363 46.9675 8.09828 46.9675 3.87901V0.680526H37.163V27.9016H40.5343V25.2476L41.8416 27.9016C42.5296 27.2892 43.1489 26.6767 43.6649 26.0302C44.2497 26.7107 44.9034 27.3232 45.6946 27.9016L47.3115 24.6011C46.6234 24.1247 46.073 23.5803 45.557 23.0018C47.0363 19.8034 47.3115 15.9244 47.3115 10.6162H40.5343V4.35538ZM29.0097 15.1417V11.7051H31.3835V15.1417H29.0097ZM43.5273 19.1909C43.2521 18.2381 43.0801 17.2514 42.9769 16.2986L40.5343 16.9792V14.2911H44.2153C44.1121 16.2646 43.9057 17.8298 43.5273 19.1909ZM40.5343 17.6597C40.7407 19.2589 41.0848 21.0623 41.7728 22.7977C41.4288 23.3081 41.016 23.7844 40.5343 24.2608V17.6597Z",fill:"var(--text-color)"})],-1),E={class:"account"},N=["src"],B=Object(o.createElementVNode)("img",{class:"avatar",src:"https://xiaobot-resource.oss-cn-shanghai.aliyuncs.com/web/default-avatar.png"}
1,null,-1),H={key:1,id:"nav_sep"},x={key:1},M={key:0,class:"app-container"},L={class:"left"};a("f764");var S=a("0ddc"),T=a("8999"),A=a("6eac");a("2ff2");const P=e=>(Object(o.pushScopeId)("data-v-9d7d861c"),e=e(),Object(o.popScopeId)(),e),D={class:"left"},I=P(()=>Object(o.createElementVNode)("div",{style:{color:"var(--border-color)","margin-left":"13px"}},"|",-1)),$={class:"title"},Z={class:"rightArea"},R={class:"account"},U=["src"],F=P(()=>Object(o.createElementVNode)("span",{class:"btn"},"ç»å½",-1)),z={key:0,class:"addToMyWxApp"},q={class:"tip-container"},W={class:"tip-content"},G=P(()=>Object(o.createElementVNode)("span",null,"ç¹æ¤æ·»å å°ãæçå°ç¨åºãï¼ä¸æ¬¡é
è¯»æ´æ¹ä¾¿",-1)),Y=[P(()=>Object(o.createElementVNode)("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.425781 8.27832C0.344401 8.19694 0.29069 8.10254 0.264648 7.99512C0.238607 7.8877 0.238607 7.78027 0.264648 7.67285C0.29069 7.56543 0.342773 7.47266 0.420898 7.39453L3.33105 4.47949L0.420898 1.56934C0.342773 1.49447 0.29069 1.40332 0.264648 1.2959C0.241862 1.18522 0.241862 1.07617 0.264648 0.96875C0.29069 0.861328 0.344401 0.766927 0.425781 0.685547C0.503906 0.604167 0.59668 0.550456 0.704102 0.524414C0.814779 0.498372 0.923828 0.498372 1.03125 0.524414C1.14193 0.550456 1.23633 0.602539 1.31445 0.680664L4.22461 3.59082L7.13477 0.680664C7.21289 0.602539 7.30566 0.550456 7.41309 0.524414C7.52051 0.498372 7.62793 0.498372 7.73535 0.524414C7.84277 0.550456 7.93717 0.605794 8.01855 0.69043C8.09993 0.768555 8.15365 0.861328 8.17969 0.96875C8.20898 1.07617 8.20898 1.18359 8.17969 1.29102C8.15365 1.39844 8.10156 1.49121 8.02344 1.56934L5.11816 4.47949L8.02344 7.39453C8.10156 7.47266 8.15365 7.56543 8.17969 7.67285C8.20573 7.78027 8.20573 7.8877 8.17969 7.99512C8.15365 8.10254 8.09993 8.19694 8.01855 8.27832C7.93717 8.3597 7.84277 8.41341 7.73535 8.43945C7.62793 8.46549 7.52051 8.46549 7.41309 8.43945C7.30566 8.41341 7.21289 8.36133 7.13477 8.2832L4.22461 5.37305L1.31445 8.2832C1.23633 8.36133 1.14355 8.41341 1.03613 8.43945C0.928711 8.46549 0.819661 8.46549 0.708984 8.43945C0.601562 8.41341 0.507161 8.3597 0.425781 8.27832Z",fill:"#ACABAE"})],-1))];var Q=a("b50a"),K=a("1b45"),J=a("3129"),X=a("4360"),ee=(a("5339"),a("dd7b"));a("c752");const te=e=>(Object(o.pushScopeId)("data-v-17f91ad5"),e=e(),Object(o.popScopeId)(),e),ae={class:"login",style:{"text-align":"center","margin-top":"200px"}},oe={key:0},re=te(()=>Object(o.createElementVNode)("div",{class:"info"},[Object(o.createElementVNode)("img",{src:"/img/login.png",alt:""})],-1)),ce={key:0,class:"loginBox"},se={class:"privacy"},ne=Object(o.createTextVNode)(" æå·²é
读并åæã"),ie=te(()=>Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/legal.html",target:"_blank"},"ç¨æ·åè®®",-1)),le=Object(o.createTextVNode)("ãåã"),de=te(()=>Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/privacy.html",target:"_blank"},"éç§åè®®",-1)),pe=Object(o.createTextVNode)("ã "),ue={key:1,style:{"margin-top":"10px"}},me={key:1,class:"qrcode-section"},he={key:0,class:"qrcode-wrapper"},be={class:"qrcode-box"},ge={key:0,class:"qrcode-tip"},Oe={key:1,class:"qrcode-confirm-tip"},je={key:1,class:"qrcode-expired"},Ce=te(()=>Object(o.createElementVNode)("div",{class:"expired-icon"},"â ï¸",-1)),fe=te(()=>Object(o.createElementVNode)("div",{class:"expired-text"},"äºç»´ç å·²è¿æ",-1)),ve={key:2,class:"qrcode-loading"},we=[te(()=>Object(o.createElementVNode)("div",{class:"loading-spinner"},null,-1)),te(()=>Object(o.createElementVNode)("div",{class:"loading-text"},"æ£å¨çæäºç»´ç ...",-1))];var Ve=a("365c"),ke=a("c1a7"),ye=a("fa7d"),_e={name:"WechatAuth",components:{QrcodeVue:v.a},data:()=>({in_wechat:!1,wechat_login_qrcode_info:{},loginByWechatQrcode_Interval:null,loginByWechatQrcode_Interval_Time:0,qrcode_expire:!1,qrcode_waiting_wechat_confirm:!1,code:"",checkboxVModel:!1}),setup(){const{isInWechatMP:e}=Object(K.a)();return{isInWechatMP:e}},methods:{loginInWechat(){if(!1===this.checkboxVModel)return void Object(ke.a)({message:"请å
é
读并åæãç¨æ·åè®®ãåãéç§åè®®ã",type:"error"});let e=AV.currentRoute.value.query.code;if(window.location.href.startsWith("https://stage.xiaobot.net")){e="test";const t=AV.currentRoute.value.query.redirect;t&&X.a.commit("user/setRedirectUrl",t)}if(e)Ve.a.call("POST","/account/login_by_wechat_code",{code:e},e=>{200==e.data.code?(X.a.dispatch("user/login",e.data.data),e.data.data.access_token?AV.replace(X.a.state.user.redirect_url||"/subscribed/"):Object(ke.a)({message:e.data.message,type:"error"})):Object(ke.a)({message:e.data.message,type:"error"})});else{const e=AV.currentRoute.value.query.redirect;e&&X.a.commit("user/setRedirectUrl",e);const t=window.location.host;let a="";a=t.indexOf("xiaobot.net")>-1?t.indexOf("www")>-1?"https://www.xiaobot.net/wechat_auth":"https://xiaobot.net/wechat_auth":t.indexOf("xiaobot.com")>-1?t.indexOf("www")>-1?"https://www.xiaobot.com/wechat_auth":"https://xiaobot.com/wechat_auth":"https://xiaobot.net/wechat_auth",window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3baae59a0b706c98&redirect_uri="+encodeURIComponent(a)+"&response_type=code&scope=snsapi_userinfo#wechat_redirect"}}
1,loadWechatLoginQrcode(){this.loginByWechatQrcode_Interval&&clearInterval(this.loginByWechatQrcode_Interval),this.qrcode_expire=!1,this.qrcode_waiting_wechat_confirm=!1,this.loginByWechatQrcode_Interval_Time=0,this.wechat_login_qrcode_info={},Ve.a.call("POST","/account/generate_wechat_login_qrcode",{},e=>{if(200!=e.data.code)return void Object(ke.a)({message:e.data.message,type:"error"});this.wechat_login_qrcode_info=e.data.data;let t=this;this.loginByWechatQrcode_Interval=setInterval((function(){if(t.loginByWechatQrcode_Interval_Time>=50)return t.qrcode_expire=!0,void clearInterval(t.loginByWechatQrcode_Interval);t.loginByWechatQrcode_Interval_Time+=1,t.loginByWechatQrcode()}),2e3)})},loginByWechatQrcode(){Ve.a.call("POST","/account/login_by_wechat_qrcode",{uniqueKey:this.wechat_login_qrcode_info.uniqueKey},e=>{const{code:t,message:a,data:o}=e.data;return 200===t?(clearInterval(this.loginByWechatQrcode_Interval),X.a.dispatch("user/login",o),void(o.access_token?AV.replace(AV.currentRoute.value.query.redirect||"/subscribed/"):Object(ke.a)({message:a,type:"error"}))):430!==t?431===t?(clearInterval(this.loginByWechatQrcode_Interval),this.qrcode_expire=!0,void Object(ke.a)({message:a,type:"error"})):void("æ¤å¾®ä¿¡å·å°æªæ³¨å"===a&&(clearInterval(this.loginByWechatQrcode_Interval),Object(ke.a)({message:a,type:"error"}))):void(this.qrcode_waiting_wechat_confirm=!0)})},back(){this.$route.query.redirect&&(this.$route.query.redirect.indexOf("/p/")>-1||this.$route.query.redirect.indexOf("/post/")>-1)?AV.replace(this.$route.query.redirect):window.location.href=Object(ye.c)()+"/"}},created(){this.in_wechat=/MicroMessenger/i.test(window.navigator.userAgent);const e=AV.currentRoute.value.query.code;X.a.getters["user/is_login"]?AV.replace(AV.currentRoute.value.query.redirect||"/subscribed/"):this.in_wechat?e&&(this.code=e,this.checkboxVModel=!0,this.loginInWechat()):this.loadWechatLoginQrcode()},beforeUnmount(){this.loginByWechatQrcode_Interval&&(clearInterval(this.loginByWechatQrcode_Interval),this.loginByWechatQrcode_Interval=null)}};a("db22"),a("6f76");var Ee=j()(_e,[["render",function(e,t,a,r,c,s){const n=ee.a,i=Object(o.resolveComponent)("qrcode-vue");return Object(o.openBlock)(),Object(o.createElementBlock)("div",ae,[c.in_wechat?(Object(o.openBlock)(),Object(o.createElementBlock)("div",oe,[re,c.code?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",ce,[Object(o.createElementVNode)("div",{class:"loginBtn",onClick:t[0]||(t[0]=e=>s.loginInWechat())},"微信ç»å½"),Object(o.createElementVNode)("div",{class:"cancelBtn",onClick:t[1]||(t[1]=(...e)=>s.back&&s.back(...e))},"åæ¶"),Object(o.createElementVNode)("p",se,[Object(o.createVNode)(n,{"text-color":"rgba(172, 171, 174, 1)",modelValue:c.checkboxVModel,"onUpdate:modelValue":t[2]||(t[2]=e=>c.checkboxVModel=e),size:"large"},{default:Object(o.withCtx)(()=>[ne,ie,le,de,pe]),_:1},8,["modelValue"])])])),c.code?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ue,"æ£å¨ç»å½...")):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),c.in_wechat?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",me,[c.wechat_login_qrcode_info.url&&!c.qrcode_expire?(Object(o.openBlock)(),Object(o.createElementBlock)("div",he,[Object(o.createElementVNode)("div",be,[Object(o.createVNode)(i,{value:c.wechat_login_qrcode_info.url,size:"200"},null,8,["value"])]),c.qrcode_waiting_wechat_confirm?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Oe,"æ¬æ¬¡ä¸ºå¼å°ç»å½ï¼è¯·ç¹å»ææºå¾®ä¿¡ä¸çæ¨¡æ¿æ¶æ¯è¿è¡ç¡®è®¤")):(Object(o.openBlock)(),Object(o.createElementBlock)("div",ge,"请ç¨å¾®ä¿¡æ«ç ç»å½"))])):Object(o.createCommentVNode)("",!0),c.qrcode_expire?(Object(o.openBlock)(),Object(o.createElementBlock)("div",je,[Ce,fe,Object(o.createElementVNode)("button",{class:"btn-refresh",onClick:t[3]||(t[3]=(...e)=>s.loadWechatLoginQrcode&&s.loadWechatLoginQrcode(...e))}
1,"å·æ°äºç»´ç ")])):Object(o.createCommentVNode)("",!0),c.wechat_login_qrcode_info.url||c.qrcode_expire?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",ve,we))]))])}],["__scopeId","data-v-17f91ad5"]]),Ne=a("eabf"),Be=(a("e202"),a("6d59"));const He=e=>(Object(o.pushScopeId)("data-v-58aeceee"),e=e(),Object(o.popScopeId)(),e),xe={class:"login-success"},Me={class:"success-content"},Le={class:"success-icon"},Se=He(()=>Object(o.createElementVNode)("h2",{class:"success-title"},"ç»å½æå",-1)),Te=He(()=>Object(o.createElementVNode)("p",{class:"success-message"},"ç»å½æåï¼è¯·å¨çµèä¸ç»§ç»æä½",-1)),Ae=Object(o.createTextVNode)("ç¡®å®");var Pe={setup(e){const t=Object(J.d)(),a=Object(J.c)(),r=()=>{const e=a.query.redirect||"/subscribed/";t.replace(e)};return(e,t)=>{const a=A.a,c=Ne.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",xe,[Object(o.createElementVNode)("div",Me,[Object(o.createElementVNode)("div",Le,[Object(o.createVNode)(a,{size:80,color:"#67C23A"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(Be.a))]),_:1})]),Se,Te,Object(o.createVNode)(c,{type:"primary",class:"confirm-button",onClick:r},{default:Object(o.withCtx)(()=>[Ae]),_:1})])])}}};a("b0c7");var De=j()(Pe,[["__scopeId","data-v-58aeceee"]]);a("9030");const Ie=e=>(Object(o.pushScopeId)("data-v-ef86293c"),e=e(),Object(o.popScopeId)(),e),$e={class:"container theme-light"},Ze={key:0,class:"tips"},Re={key:0},Ue={key:1},Fe={key:1,class:"card",ref:"card"},ze={class:"paper"},qe=["src"],We={class:"name"},Ge={class:"paper_info"},Ye={key:0},Qe=Ie(()=>Object(o.createElementVNode)("div",{class:"sp_divider"},"â§",-1)),Ke=["innerHTML"],Je=Ie(()=>Object(o.createElementVNode)("div",{class:"qr_tip"},"微信æ«ç æ¥ç䏿 ",-1)),Xe=["src"];var et=a("7b0f"),tt=a.n(et),at={props:{created:{type:Function,default:()=>{}},type:{type:String,default:""}},data:()=>({paper:null,creating:!0,loading:!1,card_url:null}),setup(){const{isInWechatMP:e}=Object(K.a)();return{isInWechatMP:e}},components:{QrcodeVue:v.a}
1,computed:{coupon(){return this.$store.getters["coupon/coupon"]},parsed_intro(){let e=this.paper.intro.replace(/\n/g,"<br/>");return e=e.replace(/(https?:\/\/([^\s</#)ï¼]+)[^\s<)ï¼]*)/g,(function(e,t){return'<a href="'+t.replace('"',"%22")+'" target="_blank">'+t+"</a>"})),e=e.replace(/([\u4e00-\u9fa5])/g,"<span>$1</span>"),e},paperUrl(){return this.coupon?Object(ye.g)(this.paper.slug,!0)+"&couponId="+this.coupon.uuid:Object(ye.g)(this.paper.slug,!0)}},methods:{setPaper(e){this.paper=e,this.rerender()},rerender(){this.creating=!0,this.card_url=null,document.querySelector("img.share-card")&&(document.querySelector("img.share-card").src=""),setTimeout(()=>{this.createShareCard()},500)},createShareCard(){let e=document.querySelector(".card .avatar"),t=[];t.push({e:e,src:e.src}),this.creating=!0;let a=this;Promise.all(t.map(e=>this.getBase64(e.src))).then((function(e){e.forEach((e,a)=>{t[a].e.src=e});const o=a.$refs.card;o.classList.add("theme-light"),o.classList.remove("theme-dark");tt()(o,{scrollY:0,logging:!1,scale:3,useCORS:!0,letterRendering:!0}).then(e=>{const{height:t,width:o}=e,r=e.toDataURL("image/png",1);a.renderImage(r,o,t,()=>{a.replaceAsImage(r,a.paper.slug+".png"),a.creating=!1,a.created()})},e=>{console.log(e)}).finally(()=>{o.classList.remove("theme-light")})}))},renderImage(e,t,a,o){const r=new Image;r.src=e,r.width=t,r.height=a,r.crossOrigin="Anonymous",o&&o(r)},replaceAsImage(e,t){this.card_url=e,console.log(t)},downloadImage(e,t){const a=document.createElement("a");a.href=e,a.download=t;const o=document.createEvent("MouseEvents");o.initEvent("click",!0,!0),a.dispatchEvent(o)},getBase64:e=>new Promise(t=>{e.startsWith("http")||t(e);var a=new Image;a.crossOrigin="Anonymous",a.src=e,a.onload=function(){var e=document.createElement("canvas");e.width=a.width,e.height=a.height,e.getContext("2d").drawImage(a,0,0,a.width,a.height);var o=a.src.substring(a.src.lastIndexOf(".")+1).toLowerCase(),r=e.toDataURL("image/"+o);t(r)}})}};a("2aca"),a("491a");var ot=j()(at,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("qrcode-vue");return Object(o.openBlock)(),Object(o.createElementBlock)("div",$e,[a.type?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ze,[c.creating?(Object(o.openBlock)(),Object(o.createElementBlock)("p",Re,"å¶ä½å¾çä¸ï¼è¯·ç¨ç...")):Object(o.createCommentVNode)("",!0),c.creating?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("p",Ue,"å¶ä½å®æï¼å¯é¿ææå³é®ä¿åå¾ç"))])),c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Fe,[Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("div",ze,[Object(o.createElementVNode)("img",{src:c.paper.avatar_url,class:"avatar",ref:"avatar"},null,8,qe),Object(o.createElementVNode)("div",We,Object(o.toDisplayString)(c.paper.name),1),Object(o.createElementVNode)("div",Ge,[c.paper.subscriber_count>0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Ye,Object(o.toDisplayString)(c.paper.subscriber_count)+" 读è
ï¼",1)):Object(o.createCommentVNode)("",!0),Object(o.createTextVNode)(Object(o.toDisplayString)(c.paper.post_count)+" å
容 ",1)]),Qe,Object(o.createElementVNode)("div",{class:"intro",innerHTML:s.parsed_intro},null,8,Ke)]),Je,Object(o.createVNode)(n,{class:"qrcode",value:s.paperUrl,size:84},null,8,["value"])]),c.card_url?Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,src:c.card_url,class:"share-card"},null,8,Xe)),[[o.vShow,!c.loading]]):Object(o.createCommentVNode)("",!0)],512)):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-ef86293c"]]),rt=a("2635"),ct=a("0bca");a("8ab7");const st={class:"light_feedback"},nt={class:"light_feedback_content"},it=["src"];const lt={class:"body"},dt=["src"],pt={class:"name"};var ut={name:"likeUserModal",props:{likers:{type:Array,default:()=>[],required:!0},visible:{type:Boolean,default:!1,required:!0},closeDrawer:{type:Function,default:()=>{},required:!0}},components:{AppModalVue:C}};a("93db");var mt={props:{likers:{type:Array,default:()=>[],required:!0},isLike:{type:Boolean,default:!1,required:!0},likeFun:{type:Function,default:()=>{},required:!0},unLikeFun:{type:Function,default:()=>{},required:!0}},components:{LikeUserModalVue:j()(ut,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("AppModalVue");return Object(o.openBlock)(),Object(o.createBlock)(n,{title:"å·²å¯å "+a.likers.length+" ä½è¯»è
",closeDrawer:a.closeDrawer,visible:a.visible},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",lt,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(a.likers,(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"likeUser",key:t},[Object(o.createElementVNode)("img",{class:"avatar",src:e.full_avatar_url},null,8,dt),Object(o.createElementVNode)("div",pt,Object(o.toDisplayString)(e.nickname),1)]))),128))])]),_:1},8,["title","closeDrawer","visible"])}],["__scopeId","data-v-490c945c"]])},setup(){const e=Object(o.reactive)({visible:!1});return{state:e,closeModal:()=>{e.visible=!1},showModal:()=>{e.visible=!0}}}};a("bd1c");var ht=j()(mt,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("LikeUserModalVue");return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createElementVNode)("div",st,[a.isLike?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"light_feedback_action like",onClick:t[1]||(t[1]=(...e)=>a.unLikeFun&&a.unLikeFun(...e))},"ð å·²åé¦")):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"light_feedback_action unlike",onClick:t[0]||(t[0]=(...e)=>a.likeFun&&a.likeFun(...e))},"ð¡ æå¯å")),Object(o.createElementVNode)("div",nt,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(a.likers.slice(0,7),(e,a)=>(Object(o.openBlock)(),Object(o.createElementBlock)("img",{class:"avatar",onClick:t[2]||(t[2]=(...e)=>r.showModal&&r.showModal(...e)),src:e.full_avatar_url,key:a},null,8,it))),128)),a.likers.length>7?(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,class:"light_feedback_content_total",onClick:t[3]||(t[3]=(...e)=>r.showModal&&r.showModal(...e))},Object(o.toDisplayString)(a.likers.length),1)):Object(o.createCommentVNode)("",!0)])]),Object(o.createVNode)(n,{likers:a.likers,visible:r.state.visible,closeDrawer:r.closeModal},null,8,["likers","visible","closeDrawer"])],64)}],["__scopeId","data-v-728c4b74"]]),bt=a("0bd7");
1a("d6e4"),a("cdd5"),a("5499");const gt=e=>(Object(o.pushScopeId)("data-v-8eb3f7ee"),e=e(),Object(o.popScopeId)(),e),Ot={key:0,class:"drawer_header"},jt=gt(()=>Object(o.createElementVNode)("div",{class:"title"},"详æ
",-1)),Ct=["src"],ft={key:1,class:"drawer_divider"},vt={class:"header"},wt={class:"user"},Vt=["src"],kt={class:"info"},yt={class:"name"},_t={class:"date"},Et={key:0},Nt={key:1,class:"audio-icon"},Bt=Object(o.createTextVNode)(" · "),Ht={class:"action"},xt=[gt(()=>Object(o.createElementVNode)("path",{d:"M9.0007 4.51425L10.2142 6.9735L10.563 7.68075L11.3437 7.794L14.0572 8.1885L12.0937 10.1025L11.529 10.653L11.6625 11.43L12.126 14.133L9.69895 12.8573L9.0007 12.4897L8.30245 12.8565L5.87545 14.1322L6.33895 11.4293L6.47245 10.6523L5.9077 10.1025L3.9442 8.1885L6.6577 7.794L7.43845 7.68075L7.7872 6.9735L9.0007 4.51425ZM9.0007 1.125L6.4417 6.30975L0.720703 7.14075L4.8607 11.1765L3.88345 16.875L9.0007 14.1847L14.118 16.875L13.1407 11.1765L17.2807 7.14075L11.559 6.309L9.0007 1.125Z",fill:"#979797"},null,-1))],Mt=[gt(()=>Object(o.createElementVNode)("path",{d:"M9 1.125L6.44092 6.30908L0.720703 7.14111L4.86035 11.1768L3.8833 16.875L9 14.1841L14.1167 16.875L13.1396 11.1768L17.2793 7.14111L11.5591 6.30908L9 1.125Z",fill:"#B14B43"},null,-1))],Lt=["src"],St=Object(o.createTextVNode)("çææµ·æ¥"),Tt=Object(o.createTextVNode)("å¤å¶é¾æ¥"),At=Object(o.createTextVNode)("ç¼è¾"),Pt=["innerHTML"],Dt=["innerHTML"],It={key:3,class:"tags"},$t=["onClick"],Zt={key:4,class:"adjacent_posts"},Rt=gt(()=>Object(o.createElementVNode)("div",{class:"adjacent_post__label"},"ä¸ä¸ç¯",-1)),Ut={class:"adjacent_post__title"},Ft=gt(()=>Object(o.createElementVNode)("div",{class:"adjacent_post__label"},"ä¸ä¸ç¯",-1)),zt={class:"adjacent_post__title"},qt={class:"card_paper_name"},Wt={class:"card_info"},Gt={key:0},Yt=["src"],Qt={key:6,id:"bottom_fixed"},Kt={key:0},Jt={key:2},Xt=gt(()=>Object(o.createElementVNode)("span",{style:{"font-size":"14px",display:"block",color:"gray"}}," ææ¶ä¸æ¯æå¨å°ç¨åºå
è´ä¹°",-1)),ea={key:3,class:"btn btn-primary btn-large btn-disabled"},ta={key:7,class:"actions"},aa={key:0,class:"comments"},oa={class:"comment_header"},ra=["src","onClick"],ca={class:"comment_header_info"},sa=["onClick"],na=["src"],ia={class:"date"},la={key:0},da=["src"],pa=Object(o.createTextVNode)("åå¤"),ua=Object(o.createTextVNode)("å é¤"),ma=["innerHTML"],ha={key:0,class:"replys"},ba={class:"reply_header"},ga=["onClick"],Oa=["src"],ja=["src"],Ca=Object(o.createTextVNode)("åå¤"),fa=Object(o.createTextVNode)("å é¤"),va=["innerHTML"],wa=gt(()=>Object(o.createElementVNode)("div",{class:"divider_thin"},null,-1)),Va=gt(()=>Object(o.createElementVNode)("div",{class:"footer"},null,-1)),ka={class:"form"},ya=gt(()=>Object(o.createElementVNode)("div",{class:"divider_thin"},null,-1)),_a=["disabled"],Ea={class:"drawer_body reference_drawer"},Na={class:"reference_papers"},Ba=["onClick"],Ha={class:"info"},xa=["src"],Ma={class:"name"},La={class:"paper_info"},Sa=["src"],Ta={class:"plans"},Aa={key:0,class:"plan"},Pa={class:"price"},Da={class:"num"},Ia=["onClick"],$a={class:"p-10"};a("ed24");var Za=a("7901");function Ra(){const e=Object(o.ref)([]),t=t=>{e.value.forEach(e=>{e!==t&&e.pause()})};return Object(o.onBeforeUnmount)(()=>{e.value=[]}),{audioInstances:e,mountAudioPlayers:a=>{if(!a||"function"!=typeof a.querySelectorAll)return;a.querySelectorAll('.audio-wrapper[data-type="audio"]').forEach(a=>{if(a.__vue_app__)return;const r=a.querySelector("audio"),c=r?r.getAttribute("src"):null,s=a.querySelector(".audio-title-static"),n=s?s.innerText:"é³é¢";if(c){a.innerHTML="";let r=null;const s=Object(o.createApp)(Za.a,{src:c,title:n,onPlay:()=>{r&&t(r)}});r=s.mount(a),a.__vue_app__=s,e.value.push(r)}})},handleAudioPlay:t}}var Ua=a("defb"),Fa=a("a32b"),za=a.n(Fa),qa=a("d551"),Wa=a.n(qa);function Ga({title:e,desc:t,img:a,path:o}){if(!Object(ye.i)())return!1;let r=Object(ye.l)(e)||"å°æ¥ç«¥",c=t||"",s=a||Object(ye.c)()+"/img/icons/favicon-32x32.png",n=o;n=o.indexOf("?")>-1?o+"×tamp="+(new Date).getTime():o+"?timestamp="+(new Date).getTime();
1const i={title:r,desc:c.replace(/<[^>]+>/g,""),link:n,imgUrl:s};Wa.a.ready((function(){Wa.a.updateAppMessageShareData(i),Wa.a.updateTimelineShareData(i)}))}var Ya=a("58d0");const Qa=(e,t="idle")=>(e.dataset.copyState=t,"success"===t?(e.textContent="å·²å¤å¶",e.title="代ç å·²å¤å¶",void e.setAttribute("aria-label","代ç å·²å¤å¶")):"error"===t?(e.textContent="éè¯",e.title="å¤å¶å¤±è´¥ï¼è¯·éè¯",void e.setAttribute("aria-label","å¤å¶å¤±è´¥ï¼è¯·éè¯")):(e.textContent="å¤å¶",e.title="å¤å¶ä»£ç ",void e.setAttribute("aria-label","å¤å¶ä»£ç ")));function Ka(){const{toClipboard:e}=za()();return{attachCodeCopyButtons:t=>{if(!t||"function"!=typeof t.querySelectorAll)return;const a=t.querySelectorAll("pre");a.length&&a.forEach(t=>{if("true"===t.dataset.copyBound)return;t.dataset.copyBound="true";const a=document.createElement("button");let o=null;a.type="button",a.className="code-copy-btn",Qa(a);const r=()=>{clearTimeout(o),o=setTimeout(()=>{Qa(a)},1600)};a.addEventListener("click",async o=>{o.stopPropagation();try{const o=t.querySelector("code")||t,c=o.innerText||o.textContent||"";if(!c.trim())return Qa(a,"error"),r(),void Object(ke.a)({message:"ææ å¯å¤å¶å
容",type:"warning"});await e(c),Qa(a,"success"),r(),Object(ke.a)({message:"å·²å¤å¶å°åªè´´æ¿",type:"success"})}catch(e){Qa(a,"error"),r(),Object(ke.a)({message:"å¤å¶å¤±è´¥ï¼è¯·æå¨å¤å¶",type:"error"})}}),t.style.position&&"static"!==t.style.position||(t.style.position="relative"),t.appendChild(a)})}}}const Ja=e=>(Object(o.pushScopeId)("data-v-197a2d59"),e=e(),Object(o.popScopeId)(),e),Xa={class:"confirm-order-wrapper"},eo={class:"price"},to={class:"priceText"},ao={class:"priceNum"},oo={class:"num"},ro={key:0,class:"couponTip"},co=Ja(()=>Object(o.createElementVNode)("span",{class:"bold"},"伿 å¸",-1)),so={class:"priceNum bold"},no=Object(o.createTextVNode)("  æ¥ç«¥å¸ "),io={key:1,class:"totalTip"},lo=Ja(()=>Object(o.createElementVNode)("span",{class:"bold"},"å计",-1)),po={class:"savingAmount"},uo={class:"priceNum bold"},mo=Object(o.createTextVNode)("  æ¥ç«¥å¸ "),ho={class:"balance"},bo=Ja(()=>Object(o.createElementVNode)("span",{class:"bold"},"ä½é¢",-1)),go={class:"priceNum bold",style:{"margin-left":"10px"}},Oo={class:"num"},jo=Object(o.createTextVNode)(" æ¥ç«¥å¸ "),Co={key:0},fo=Ja(()=>Object(o.createElementVNode)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0ZM7.00343 9.57829L5.22629 7.8C5.16258 7.73629 5.08694 7.68575 5.0037 7.65127C4.92046 7.61679 4.83124 7.59905 4.74114 7.59905C4.65104 7.59905 4.56183 7.61679 4.47859 7.65127C4.39534 7.68575 4.31971 7.73629 4.256 7.8C4.12733 7.92867 4.05505 8.10318 4.05505 8.28514C4.05505 8.46711 4.12733 8.64162 4.256 8.77029L6.51886 11.0331C6.58239 11.0972 6.65796 11.148 6.74123 11.1827C6.82449 11.2174 6.9138 11.2352 7.004 11.2352C7.0942 11.2352 7.18351 11.2174 7.26677 11.
11827C7.35004 11.148 7.42561 11.0972 7.48914 11.0331L12.1749 6.34629C12.2394 6.28284 12.2908 6.20724 12.326 6.12385C12.3612 6.04045 12.3795 5.95091 12.3799 5.8604C12.3804 5.76988 12.3629 5.68017 12.3284 5.59646C12.294 5.51274 12.2434 5.43666 12.1794 5.37262C12.1154 5.30858 12.0394 5.25783 11.9557 5.22331C11.872 5.18879 11.7824 5.17118 11.6918 5.1715C11.6013 5.17181 11.5118 5.19004 11.4283 5.22514C11.3449 5.26024 11.2692 5.31151 11.2057 5.376L7.00343 9.57829Z",fill:"#B14B43"})],-1)),vo={key:2,class:"desc"},wo={class:"p-10"},Vo={key:0},ko={key:1},yo={key:1,class:"btn btn-primary btn-large back block"},_o={style:{padding:"10px"}},Eo={style:{padding:"10px"}};a("b93c");var No=a("dbaf");const Bo=()=>new Promise(e=>{Ve.a.call("GET","/coupon/mine",{},t=>{e(t)})}),Ho=e=>(Object(o.pushScopeId)("data-v-55f545c4"),e=e(),Object(o.popScopeId)(),e),xo={class:"ratio"},Mo={class:"number"},Lo=Object(o.createTextVNode)(" æ "),So={key:0,class:"unit"},To={key:1},Ao={class:"info"},Po={class:"box"},Do={class:"name"},Io={class:"expired_at"},$o={key:1,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zo=[Ho(()=>Object(o.createElementVNode)("path",{d:"M9 1.5C4.85775 1.5 1.5 4.85775 1.5 9C1.5 13.1423 4.85775 16.5 9 16.5C13.1423 16.5 16.5 13.1423 16.5 9C16.5 4.85775 13.1423 1.5 9 1.5ZM7.5 13.0605L3.96975 9.53025L5.03025 8.46975L7.5 10.9395L12.9697 5.46975L14.0303 6.53025L7.5 13.0605Z",fill:"#BD4322"},null,-1))];var Ro={name:"CouponBig",props:{coupon:{type:Object,default:()=>{}},isSelect:{type:Boolean,default:!1},paper:{type:Object,default:()=>{}},subscribePrice:{type:Object,default:()=>{}},selectCoupon:{type:Object,default:()=>{}}},computed:{price(){return this.subscribePrice.price/100},user_claim_status_str(){switch(this.coupon.user_claim_status){case 1:return"å»ä½¿ç¨";case 2:return"已使ç¨";case 3:return"å·²è¿æ";default:return"å»ä½¿ç¨"}}},methods:{HandleCouponClick(){this.isSelect&&1==this.coupon.user_claim_status&&this.$emit("selectCoupon",this.coupon)},claim(){1==this.coupon.user_claim_status&&this.$router.push({name:"Paper",params:{slug:this.coupon.paper_slug}})}}};a("5bdd");var Uo=j()(Ro,[["render",function(e,t,a,r,c,s){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["coupon",{select:a.isSelect}]),onClick:t[1]||(t[1]=(...e)=>s.HandleCouponClick&&s.HandleCouponClick(...e))},[Object(o.createElementVNode)("div",xo,[Object(o.createElementVNode)("div",Mo,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(10*a.coupon.pay_ratio),1),Lo]),a.isSelect?(Object(o.openBlock)(),Object(o.createElementBlock)("div",To,"坿µ "+Object(o.toDisplayString)((s.price*(1-a.coupon.pay_ratio)).toFixed(2))+" æ¥ç«¥å¸",1)
1):(Object(o.openBlock)(),Object(o.createElementBlock)("div",So,"伿 å¸"))]),Object(o.createElementVNode)("div",Ao,[Object(o.createElementVNode)("div",Po,[Object(o.createElementVNode)("div",Do,Object(o.toDisplayString)(a.coupon.paper_name),1),Object(o.createElementVNode)("div",Io,"æææè³ "+Object(o.toDisplayString)(a.coupon.expired_at),1)]),a.isSelect?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:Object(o.normalizeClass)(["action",{claimed:2==a.coupon.user_claim_status,expired:3==a.coupon.user_claim_status}]),onClick:t[0]||(t[0]=(...e)=>s.claim&&s.claim(...e))},Object(o.toDisplayString)(s.user_claim_status_str),3)),a.selectCoupon&&a.selectCoupon.coupon_plan_uuid==a.coupon.coupon_plan_uuid?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",$o,Zo)):Object(o.createCommentVNode)("",!0)])],2)}],["__scopeId","data-v-55f545c4"]]);const Fo=e=>new Promise(t=>{Ve.a.call("GET","/currency/history",e,e=>{t(e)})}),zo=e=>new Promise(t=>{Ve.a.call("POST",`/currency/order/${e}/sync`,{},e=>{t(e)})});function qo(){const e=Object(o.ref)(0),t=Object(o.ref)(!1),a=Object(o.ref)(null),r=e=>Number(e).toFixed(2).replace(/\.00$/,"");return{balance:e,loading:t,error:a,getBalance:async()=>{t.value=!0,a.value=null;try{var o;const s=await new Promise(e=>{Ve.a.call("GET","/currency/balance",{},t=>{e(t)})});if(200===(null===(o=s.data)||void 0===o?void 0:o.code)){const t=s.data.data||0;return e.value=r(t/100),e.value}var c;return a.value=(null===(c=s.data)||void 0===c?void 0:c.message)||"è·åä½é¢å¤±è´¥",null}catch(e){return console.error("è·åä½é¢å¤±è´¥:",e),a.value=e.message||"è·åä½é¢å¤±è´¥",null}finally{t.value=!1}},formatBalance:r}}var Wo=a("c567");a("6ec4");const Go=e=>(Object(o.pushScopeId)("data-v-57292f1e"),e=e(),Object(o.popScopeId)(),e),Yo={class:"account"},Qo={class:"balance"},Ko={class:"num"},Jo=Go(()=>Object(o.createElementVNode)("span",null," æ¥ç«¥å¸",-1)),Xo=Go(()=>Object(o.createElementVNode)("div",{class:"recharge"},[Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",{class:"title"},"å
å¼"),Object(o.createElementVNode)("span",null,"ï¼1 æ¥ç«¥å¸ = 1 å
ï¼")])],-1)),er={class:"recharge-options"},tr=["onClick"],ar={style:{"line-height":"24px"}},or=Object(o.createTextVNode)(" æ¥ç«¥å¸ "),rr={style:{padding:"0px 5px"}},cr=[Object(o.createTextVNode)("确认å
å¼å¹¶è´ä¹°")],sr=Go(()=>Object(o.createElementVNode)("div",{class:"desc"},[Object(o.createElementVNode)("div",{class:"title"},"说æï¼"),Object(o.createElementVNode)("p",null,"1. æ¥ç«¥å¸å¯ç¨äºç´æ¥è´ä¹°å°æ¥ç«¥å
ç䏿 å
容ï¼"),Object(o.createElementVNode)("p",null,"2. æ¥ç«¥å¸ä¸ºèæå¸ï¼å
å¼åçæ¥ç«¥å¸ä¸ä¼è¿æï¼ä½ä¸å¯éæ¢ã转让ï¼"),Object(o.createElementVNode)("p",null,[Object(o.createTextVNode)("3. å
å¼å¦éå°é®é¢ï¼è¯·"),Object(o.createElementVNode)("a",{class:"link-text",href:"https://xiaobot.net/feedback/new"},"èç³»æä»¬"),Object(o.createTextVNode)("ã")])],-1)),nr={class:"recharge-dialog-content"},ir={key:0},lr={class:"qrcode-wrapper"},dr=Go(()=>Object(o.createElementVNode)("p",{class:"recharge-tip-text"},"è¯·ä½¿ç¨ææºå¾®ä¿¡æ«ç å
å¼",-1)),pr={class:"order-info"},ur={class:"dialog-footer"},mr=Object(o.createTextVNode)("åæ¶"),hr={key:1,class:"pay-success"},br={class:"success-icon"},gr=Go(()=>Object(o.createElementVNode)("p",{class:"success-text"},"å
弿åï¼",-1)),Or=Go(()=>Object(o.createElementVNode)("div",{class:"follow-wx"},[Object(o.createElementVNode)("p",null,"å
³æ³¨å
¬ä¼å·ï¼ç¬¬ä¸æ¶é´è·å¾æééç¥"),Object(o.createElementVNode)("img",{src:"/img/qrcode_for_gh_a14c27ae9ee8_258.jpg",alt:""})],-1)),jr={class:"dialog-footer"},Cr=Object(o.createTextVNode)("ç¡®å®");a("55c5");var fr=a("c24f"),vr=a("224e"),wr={name:"Recharge",props:{rechargeSuccess:{type:Function,default:()=>{}},rechargePrice:{type:String,default:""},closeRecharge:{type:Function,default:()=>{}}},components:{QrcodeVue:v.a,CircleCheck:Be.a},data(){return{rechargeOptions:[{num:10,price:1e3},{num:20,price:2e3},{num:30,price:3e3},{num:50,price:5e3},{num:100,price:1e4}],selectPrice:{num:50,price:50},paying:!1,maxDiscountCoupon:null,paperSlug:null,couponList:[],paper:null,isMobile:this.$store.state.isMobile||window.innerWidth<=1020}},setup(e){const{balance:t,loading:a,error:o,getBalance:r}=qo();r(),document.title="å
å¼";const{step:c,creatingOrder:s,qrcodeUrl:n,orderNo:i,rechargeAmount:l,handleCreateOrder:d,startPolling:p,stopPolling:u,resetState:m}=Object(vr.a)({createOrderApi:fr.a,getStatusApi:fr.c,onSuccess:()=>{e.rechargeSuccess&&e.rechargeSuccess()}});return{balance:t,loading:a,error:o,step:c,creatingOrder:s,qrcodeUrl:n,orderNo:i,rechargeAmount:l,createOrder:d,startPolling:p,stopPolling:u,resetRechargeState:m}},computed:{price(){return this.paper.prices.filter(e=>e.type==this.$route.query.subscribePriceType)[0].price/100},savingAmount(){return this.maxDiscountCoupon?((1-this.maxDiscountCoupon.pay_ratio)*this.price).toFixed(2):0},totalAmount(){return(this.price-this.savingAmount).toFixed(2)}},methods:{viewBalanceHistory(){this.closeRecharge&&this.closeRecharge(),this.$router.push({name:"Setting.Account.History"})},isInWechatMP:()=>navigator.userAgent.match(/micromessenger/i)&&navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment,async recharge(){if(this.paying)return;if(!this.$store.getters["user/is_login"]){const e=this.paper?"/p/"+this.paper.slug:this.$route.fullPath;return void this.$router.replace("/wechat_auth/?redirect="+encodeURIComponent(e))}const e=/MicroMessenger/i.test(window.navigator.userAgent);if(!e)return Object(ke.a)({message:"æä»
æ¯æå¨å¾®ä¿¡å
æ¯ä»ï¼è¯·å¨å¾®ä¿¡å
æå¼æ¤é¡µé¢",type:"error"}),this.$store.commit("setCurrentUrl",window.location.href),void this.$store.commit("setShowWxGuide",!0);if(this.isInWechatMP())return void Wa.a.miniProgram.navigateTo({url:"/pages/pay/pay?slug="+(this.paper?this.paper.slug:"")+"&name="+(this.paper?this.paper.n
1ame:"")+"&price="+this.totalAmount});this.paying=!0;const t={amount:this.selectPrice.price},a=await(e=>new Promise(t=>{Ve.a.call("POST","/currency/recharge_by_wechat_pay",e,e=>{t(e)})}))(t),o=this;if(200==a.data.code){const t=a.data.data.out_trade_no;a.data.data.appid?(o.startPolling(t,zo),WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:a.data.data.appid,timeStamp:a.data.data.timeStamp,nonceStr:a.data.data.nonce_str,package:"prepay_id="+a.data.data.prepay_id,signType:"MD5",paySign:a.data.data.paySign},(function(e){"get_brand_wcpay_request:ok"==e.err_msg?Object(ke.a)({message:"æ£å¨ç¡®è®¤å
å¼ç»æ...",type:"info"}):(o.paying=!1,Object(ke.a)({message:"å
å¼å¤±è´¥ï¼",type:"error"}),o.stopPolling(),o.resetRechargeState(),o.backPaper())}))):(e?e&&!this.isInWechatMP()&&ke.a.error("æ¯ä»ç¯å¢åå§å失败ï¼è¯·ç¨åéè¯"):(this.$store.commit("setCurrentUrl",window.location.href),this.$store.commit("setShowWxGuide",!0)),this.paying=!1)}else this.paying=!1,Object(ke.a)({message:a.data.message,type:"info"}),console.log(a.data.message)},backPaper(){const{redirect:e}=this.$route.query;e?this.$router.replace(e):this.$router.go(-1)},handleCloseQRDialog(){this.resetRechargeState(),this.paying=!1},handleSuccessConfirm(){this.resetRechargeState(),this.rechargeSuccess()}},watch:{step(e){"success"===e&&this.step}},created(){const e=this.rechargePrice;this.selectPrice={num:e,price:100*e},this.rechargeOptions.find(t=>t.num===e)||(this.rechargeOptions=[...this.rechargeOptions,this.selectPrice])}};a("1207"),a("28ae");var Vr=j()(wr,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("qrcode-vue"),i=Ne.a,l=Object(o.resolveComponent)("CircleCheck"),d=A.a,p=h.a,u=Wo.b;return Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[Object(o.createElementVNode)("div",Yo,[Object(o.createElementVNode)("div",Qo,[Object(o.createElementVNode)("span",Ko,Object(o.toDisplayString)(r.balance),1),Jo,Object(o.createElementVNode)("div",{class:"tip-text",onClick:t[0]||(t[0]=(...e)=>s.viewBalanceHistory&&s.viewBalanceHistory(...e))},"æ¥çæç»")])]),Xo,Object(o.createElementVNode)("div",er,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.rechargeOptions,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["option",{active:c.selectPrice.num===e.num}]),key:e.num,onClick:t=>c.selectPrice=e},[Object(o.createElementVNode)("div",ar,[Object(o.createElementVNode)("span",{class:"num bold",style:Object(o.normalizeStyle)({fontSize:e.num.length>3?"16px":"24px"})},Object(o.toDisplayString)(e.num),5),or]),Object(o.createElementVNode)("div",null,Object(o.toDisplayString)(e.num)+" å
",1)],10,tr))),128))]),Object(o.createElementVNode)("div",rr,[Object(o.withDirectives)(Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large back block",onClick:t[1]||(t[1]=(...e)=>s.recharge&&s.recharge(...e))},cr,512),[[u,c.paying]])]),sr,Object(o.createVNode)(p,{"custom-class":"rechargeDialog","model-value":"qrcode"===r.step||"success"===r.step,title:"微信æ«ç å
å¼",width:"400px","before-close":s.handleCloseQRDialog,"destroy-on-close":"","append-to-body":"","align-center":""},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",nr,["qrcode"===r.step?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ir,[Object(o.createElementVNode)("div",lr,[Object(o.createVNode)(n,{value:r.qrcodeUrl,size:240,class:"qrcode-image"},null,8,["value"])]),dr,Object(o.createElementVNode)("p",pr,"订åå·ï¼"+Object(o.toDisplayString)(r.orderNo),1),Object(o.createElementVNode)("div",ur,[Object(o.createVNode)(i,{onClick:s.handleCloseQRDialog},{default:Object(o.withCtx)(()=>[mr]),_:1},8,["onClick"])])])):"success"===r.step?(Object(o.openBlock)(),Object(o.createElementBlock)("div",hr,[Object(o.createElementVNode)("div",br,[Object(o.createVNode)(d,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l)]),_:1})]),gr,Or,Object(o.createElementVNode)("div",jr,[Object(o.createVNode)(i,{type:"primary",onClick:s.handleSuccessConfirm},{default:Object(o.withCtx)(()=>[Cr]),_:1},8,["onClick"])])])):Object(o.createCommentVNode)("",!0)])]),_:1},8,["model-value","before-close"])])}],["__scopeId","data-v-57292f1e"]]);const kr=a("5292");var yr={name:"ConfirmAnOrder",props:{visible:{type:Boolean,default:!1,required:!0},close:{type:Function,default:()=>{},required:!0},paper:{type:Object,default:()=>{},required:!0},subscribePrice:{type:Object,default:()=>{}},paySuccess:{type:Function,default:()=>{},required:!0}},data:()=>
1({paying:!1,couponList:[],couponDrawer:!1,maxDiscountCoupon:null,rechargeModal:!1}),setup(){const{balance:e,loading:t,error:a,getBalance:o}=qo();return{balance:e,loading:t,error:a,refreshBalance:o}},components:{AppModalVue:C,ArrowRight:No.a,BigCoupon:Uo,Recharge:Vr},computed:{price(){return this.subscribePrice.price/100},savingAmount(){return this.maxDiscountCoupon?((1-this.maxDiscountCoupon.pay_ratio)*this.price).toFixed(2):0},totalAmount(){return(this.price-this.savingAmount).toFixed(2)},isBalanceEnough(){return!!this.balance&&(0!=this.balance&&this.balance>=parseInt(this.totalAmount))},toBePrepaidAmount(){return(this.totalAmount-this.balance).toFixed(2)},isBetaUser(){return this.$store.getters["user/isBetaUser"]}},methods:{closeRecharge(){this.rechargeModal=!1,this.handleClose()},handleCloseRechargeModal(){this.rechargeModal=!1},toRecharge(){this.isInWechatMP()?Wa.a.miniProgram.navigateTo({url:"/pages/pay/pay?slug="+this.paper.slug+"&name="+this.paper.name+"&price="+this.totalAmount}):this.rechargeModal=!0},handleRechargeSuccess(){this.rechargeModal=!1,this.refreshBalance(),this.purchasePaperWithBalance()},getMaxDiscountCoupon(){let e=null;this.couponList.forEach(t=>{t.pay_ratio>0&&(e?t.pay_ratio<e.pay_ratio&&(e=t):e=t)}),this.maxDiscountCoupon=e},handleSelectCoupon(e){this.maxDiscountCoupon=e,this.handleCloseCouponDrawer()},handleCloseCouponDrawer(){this.couponDrawer=!1},showCouponList(){this.couponDrawer=!0},handleClose(){this.close(),this.paying=!1},isInWechatMP:()=>navigator.userAgent.match(/micromessenger/i)&&navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment,handleRefer(){let e=Object(ye.d)(this.paper.slug);if(e){(new Date).getTime()-e.time>6048e5&&(e=null,this.$store.commit("papers/removeRefer",this.paper.slug))}return e},showSuccessMessage(){const e="BOOKLET"===this.paper.type?"è´ä¹°æå":"订é
æåï¼";Object(ke.a)({message:e,type:"success"}),this.$store.state.user.user.subscribe_wechat||Ua.a.alert('<img src="/img/qrcode_for_gh_a14c27ae9ee8_258.jpg" /><p style="text-align:center; font-size:14px;">é¿æå
³æ³¨å
¬ä¼å·<br/>æ¯å¨æé䏿 æ´æ°</p>',e,{dangerouslyUseHTMLString:!0,showConfirmButton:!1})},pay(){if(this.paying)return;let e=/MicroMessenger/i.test(window.navigator.userAgent);if(e||!this.isMobile)if(this.isInWechatMP())Wa.a.miniProgram.navigateTo({url:"/pages/pay/pay?slug="+this.$route.params.slug+"&name="+this.paper.name+"&price="+this.totalAmount});else{if(this.$store.getters["user/is_login"])return e||this.isMobile?this.isBalanceEnough?this.purchasePaperWithBalance():void 0:(this.$store.commit("setCurrentUrl",window.location.href),void this.$store.commit("setShowWxGuide",!0));this.$router.replace("/wechat_auth/?redirect=/p/"+this.$route.params.slug)}else Object(ke.a)({message:"æä»
æ¯æå¨å¾®ä¿¡å
æ¯ä»ï¼è¯·å¨å¾®ä¿¡å
æå¼æ¤é¡µé¢",type:"error"})},async purchasePaperWithBalance(){this.paying=!0;const e=this.handleRefer();try{const a=await(t={price_type:this.subscribePrice.type,slug:this.paper.slug,refer:e&&e.refer?e.refer:"",refer_channel:e&&e.refer_channel?e.refer_channel:"",coupon_uuid:this.maxDiscountCoupon?this.maxDiscountCoupon.uuid:""},new Promise(e=>{Ve.a.call("POST",`/paper/${t.slug}/subscribe_by_currency_pay`,t,t=>{e(t)})}));200===a.data.code?(this.paySuccess(),this.paying=!1,this.refreshBalance(),this.showSuccessMessage()):Object(ke.a)({message:a.data.message||"è´ä¹°å¤±è´¥ï¼è¯·ç¨ååè¯",type:"error"})}catch(e){console.error("è´ä¹°å¤±è´¥:",e),Object(ke.a)({message:"è´ä¹°å¤±è´¥ï¼è¯·ç¨ååè¯",type:"error"})}finally{this.paying=!1}var t},async getUserCouponList(){const e=await Bo(),{data:{code:t,data:a}}=e;200===t&&(this.couponList=a,this.couponList=this.couponList.filter(e=>1===e.user_claim_status).filter(e=>e.paper_slug===this.paper.slug).map(e=>({...e,expired_at:kr(e.expired_at).format("YYYY-MM-DD")})),this.getMaxDiscountCoupon())}},watch:{visible(e){e&&(this.getUserCouponList(),this.refreshBalance())}}};a("3afb");var _r=j()(yr,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("ArrowRight"),i=A.a,l=Object(o.resolveComponent)("AppModalVue"),d=Object(o.resolveComponent)("BigCoupon"),p=Object(o.resolveComponent)("Recharge");return Object(o.openBlock)(),Object(o.createElementBlock)("div",Xa,[Object(o.createVNode)(l,{title:"确认订å",visible:a.visible,closeDrawer:s.handleClose},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",eo,[Object(o.createElementVNode)("span",to,Object(o.toDisplayString)(a.paper.n
1ame),1),Object(o.createElementVNode)("span",ao,[Object(o.createElementVNode)("span",oo,Object(o.toDisplayString)(s.price),1),Object(o.createTextVNode)(" æ¥ç«¥å¸/"+Object(o.toDisplayString)(a.subscribePrice.name),1)])]),c.maxDiscountCoupon?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ro,[co,Object(o.createElementVNode)("span",{class:"savingAmount",onClick:t[0]||(t[0]=(...e)=>s.showCouponList&&s.showCouponList(...e))},[Object(o.createElementVNode)("span",so,"-"+Object(o.toDisplayString)(s.savingAmount),1),no,Object(o.createVNode)(i,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n)]),_:1})])])):Object(o.createCommentVNode)("",!0),c.maxDiscountCoupon?(Object(o.openBlock)(),Object(o.createElementBlock)("div",io,[lo,Object(o.createElementVNode)("span",po,[Object(o.createElementVNode)("span",uo,Object(o.toDisplayString)(s.totalAmount),1),mo])])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",ho,[Object(o.createElementVNode)("div",null,[bo,Object(o.createElementVNode)("span",go,[Object(o.createElementVNode)("span",Oo,Object(o.toDisplayString)(r.balance),1),jo]),s.isBalanceEnough?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("span",Co,"ï¼è¿éå
å¼ "+Object(o.toDisplayString)(s.toBePrepaidAmount)+" æ¥ç«¥å¸ï¼",1))]),fo]),s.isBalanceEnough?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",vo,"æ¥ç«¥å¸ä¸ºèæå¸ï¼å
å¼å䏿¯æéæ¢ã转让ï¼è¯·ç¡®è®¤ååå
å¼ï¼")),Object(o.createElementVNode)("div",wo,[s.isBalanceEnough?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ko,[c.paying?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:0,class:"btn btn-primary btn-large back block",onClick:t[2]||(t[2]=(...e)=>s.pay&&s.pay(...e))},[Object(o.createElementVNode)("span",null,"确认æ¯ä»ï¼ "+Object(o.toDisplayString)(s.totalAmount)+" æ¥ç«¥å¸ï¼",1)])),c.paying?(Object(o.openBlock)(),Object(o.createElementBlock)("a",yo,"æ¯ä»ä¸")):Object(o.createCommentVNode)("",!0)])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Vo,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large back block",onClick:t[1]||(t[1]=(...e)=>s.toRecharge&&s.toRecharge(...e))},"å
å¼å¹¶è´ä¹°")]))])]),_:1},8,["visible","closeDrawer"]),Object(o.createVNode)(l,{title:"鿩伿 å¸",visible:c.couponDrawer,closeDrawer:s.handleCloseCouponDrawer,size:"80%"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",_o,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.couponList,e=>(Object(o.openBlock)(),Object(o.createBlock)(d,{"is-select":!0,paper:a.paper,coupon:e,key:e.coupon_plan_uuid,"subscribe-price":a.subscribePrice,onSelectCoupon:s.handleSelectCoupon,selectCoupon:c.maxDiscountCoupon},null,8,["paper","coupon","subscribe-price","onSelectCoupon","selectCoupon"]))),128))])]),_:1},8,["visible","closeDrawer"]),Object(o.createVNode)(l,{title:"å
弿¥ç«¥å¸",visible:c.rechargeModal,closeDrawer:s.handleCloseRechargeModal,size:"100%"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Eo,[Object(o.createVNode)(p,{rechargeSuccess:s.handleRechargeSuccess,closeRecharge:s.closeRecharge,rechargePrice:s.toBePrepaidAmount},null,8,["rechargeSuccess","closeRecharge","rechargePrice"])])]),_:1},8,["visible","closeDrawer"])])}],["__scopeId","data-v-197a2d59"]]);a("04d6");const Er={SearchPage:"/search","Setting.Delivery":"/setting/delivery",Setting:"/setting",Paper:"/p/:slug",PostDetail:"/post/:uuid",Apply:"/apply"},Nr=(e,t={})=>{const a=Object(ye.c)().replace(/\/$/,""),{processedPath:o,remainingParams:r}=((e,t={})=>{let a=e;const o={...t};return(e.match(/:[a-zA-Z][a-zA-Z0-9]*/g)||[]).forEach(e=>{const t=e.slice(1);if(null==o[t])throw new Error("Missing required path parameter: "+t);a=a.replace(e,o[t]),delete o[t]}),{processedPath:a,remainingParams:o}})(e,t);return`${`${a}/${o.replace(/^\//,"")}`}${((e={})=>{const t={...e};if(!t||0===Object.keys(t).length)return"";const a=Object.entries(t).filter(([e,t])=>null!=t).map(([e,t])=>Array.isArray(t)?t.map(t=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&"):"object"==typeof t?`${encodeURIComponent(e)}=${encodeURIComponent(JSON.stringify(t))}`:`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&");return a?"?"+a:""})(r)}`},Br=async(e,t={},a={})=>{try{if(!(e in Er))throw new Error("Invalid page name: "+e);let o=Nr(Er[e],t);
1decodeURIComponent(o)!==o&&console.log("The target URL appears to be already encoded: "+o),console.log("Navigating to: "+o);const r="/pages/webpage/webpage?url="+encodeURIComponent(o);a.replace?await Wa.a.miniProgram.redirectTo({url:r}):await Wa.a.miniProgram.navigateTo({url:r})}catch(e){throw console.error("Navigation failed:",e),e}};function Hr(){const e=Object(J.d)(),{isInWechatMP:t}=Object(K.a)(),a=m(),r=e=>t.value?{...e,wechat_mp:"wechat_mp"}:a.value?{...e,web:"web"}:{...e,pc:"pc"},c=(e,t,a={})=>{const o=r(a);window.TDAPP&&window.TDAPP.onEvent(e,t,o)};return Object(o.onMounted)(()=>{e.afterEach(e=>{c(e.path,e.name)})}),{trackPageView:c,trackEvent:(e,t,a={})=>{const o=r(a);window.TDAPP&&window.TDAPP.onEvent(e,t,o)}}}var xr=a("bbf9");const Mr=a("5292");var Lr={name:"PostDetail",inject:["reload"],components:{PostShareCard:rt.a,LightFeedback:ht,AppModal:C,ConfirmAnOrder:_r,FontSizeSwitch:T.default,FileSignal:xr.a},data(){return{post:null,paper:null,creator:null,show_comment_drawer:!1,content:null,comments:[],target_comment:null,submitting:!1,is_drawer:!0,scroll_to_comment:!1,targetUser:null,show_reference_drawer:!1,show_subscribe_drawer:!1,show_post_share_card:!1,isMobile:this.$store.state.isMobile||window.innerWidth<=1020,showDeleteModal:!1,deleteCommentTarget:null,showConfirmAnOrder:!1,subscribePrice:null,isComposing:!1}},setup(){const{isInWechatMP:e}=Object(K.a)(),{trackEvent:t}=Hr(),{mountAudioPlayers:a}=Ra(),{attachCodeCopyButtons:o}=Ka();return{isInWechatMP:e,trackEvent:t,mountAudioPlayers:a,attachCodeCopyButtons:o}},computed:{calcWidth(){return this.isMobile?window.innerWidth>390?"390px":"90vw":"390px"},created_date(){return Mr(this.post.created_at).format("YYYY/MM/DD HH:mm:ss")},comment_date:()=>function(e){return Mr(e).format("YYYY/MM/DD")},parsed_content:()=>function(e){let t=e.replace(/\n/g,"<br/>");t.includes("<p>")||(t="<span>"+t+"</span>");const a=[];return t=t.replace(/<pre[\s\S]*?<\/pre>/gi,e=>{const t=`__CODE_BLOCK_${a.length}__`;return a.push(e),t}),t=Object(ye.b)(t),t=Object(ye.e)(t),a.forEach((e,a)=>{t=t.replace(`__CODE_BLOCK_${a}__`,e)}),t},parsed_comment:()=>function(e){let t=e.replace(/\n/g,"<br/>");t.includes("<p>")||(t="<span>"+t+"</span>");const a=[];return t=t.replace(/<pre[\s\S]*?<\/pre>/gi,e=>{const t=`__CODE_BLOCK_${a.length}__`;return a.push(e),t}),t=Object(ye.b)(t),t=Object(ye.e)(t),a.forEach((e,a)=>{t=t.replace(`__CODE_BLOCK_${a}__`,e)}),t},subscription_expired_days(){return this.paper.subscription?Mr(this.paper.subscription.expired_at).diff(Mr(),"days"):-1},isShowLabel:()=>function(e){return e.creator.papers&&e.creator.papers.length>0},hasAudio(){return this.post.content.includes("<audio src=")},articleFontSize(){return{small:"14px",default:"16px",large:"18px"}[this.$store.state.app.fontSize]||"16px"},fontSize:{get(){return this.$store.state.app.fontSize},set(e){this.$store.commit("app/setFontSize",e)}},hasAdjacentPosts(){if(!this.post)return!1;const e=this.post.prev_post&&this.post.prev_post.uuid,t=this.post.next_post&&this.post.next_post.uuid;return!(!e&&!t)}},methods:{adjacentPostTitle(e){if(!e)return"æ æ é¢";const t=e.title;return null==t||""===String(t).trim()?"æ æ é¢":Object(ye.l)(String(t))},goToAdjacentPost(e){if(e&&e.uuid)if(this.isInWechatMP)Br("PostDetail",{uuid:e.uuid,refer:this.$store.state.user.user.uuid});else{if(!this.is_drawer){const t={...this.$route.query};return delete t.scrollToComment,void this.$router.push({name:"PostPage",params:{uuid:e.uuid},query:t})}this.post={...this.post,uuid:e.uuid},this.loadPost()}},handleCantBuy(){this.$store.getters["user/is_login"]?Wa.a.miniProgram.navigateTo({url:"/pages/pay/pay?slug="+this.paper.slug+"&name="+this.paper.name+"&price="+this.totalAmount}):this.$router.replace("/wechat_auth/?redirect="+this.$route.fullPath)},showConfirmAnOrderModal(e){this.showConfirmAnOrder=!0,this.subscribePrice=e},paySuccess(){this.hideConfirmAnOrder(),this.show_subscribe_drawer=!1,this.refresh()},hideConfirmAnOrder(){this.showConfirmAnOrder=!1},favoritePost(){this.$store.getters["user/is_login"]?this.$api.call("POST","/post/"+this.post.uuid+"/fav",{},e=>{const{data:{code:t,message:a}}=e;200==t?(ke.a.success(a),this.post.has_favorited=!0):ke.a.error(a)}):this.$router.push("/login")},unfavoritePost(){this.$store.getters["user/is_login"]?this.$api.call("POST","/post/"+this.post.uuid+"/u
1nfav",{},e=>{const{data:{code:t,message:a}}=e;200==t?(ke.a.success(a),this.post.has_favorited=!1):ke.a.error(a)}):this.$router.push("/login")},closeDeleteModal(){this.showDeleteModal=!1,this.deleteCommentTarget=null},composeValue:(e,t)=>({target:t,command:e}),handleCommentCommand(e){"reply"===e.command?this.replyComment(e.target):"delete"===e.command&&(this.showDeleteModal=!0,this.deleteCommentTarget=e.target)},handlePostCommand(e){"copy"===e.command?this.copyUrl():"share"===e.command?this.openShare():"edit"===e.command&&this.edit()},handlePictureCardPreview(e){let t=this.post.files;if(!this.paper.writable&&this.subscription_expired_days<0)return void Object(ke.a)({message:"订é
䏿 忹坿¥ç大å¾",type:"info"});let a=t.indexOf(e),o=[];t.forEach((function(e){o.push(e.url)})),this.$viewerApi({options:{toolbar:!1,initialViewIndex:a,title:!1},images:o})},writeComment(){this.show_comment_drawer=!0,this.target_comment=null;let e=this;setTimeout(()=>{e.$nextTick(()=>{e.$refs.comment_input_box.focus()})},1e3)},handleCompositionStart(){this.isComposing=!0,console.log("handleCompositionStart")},handleCompositionEnd(){this.isComposing=!1,console.log("handleCompositionEnd")},handleDrawerClose(e){this.isComposing||(e?e():this.show_comment_drawer=!1)},closeCommentDrawer(){this.isComposing||(this.show_comment_drawer=!1)},submit(){if(null==this.content||0==this.content.length)return void Object(ke.a)({message:"è¿æ²¡æè¾å
¥å
容å¦",type:"info"});if(this.submitting)return;this.submitting=!0;let e="/post/"+this.post.uuid+"/comment";this.target_comment&&(e="/comment/"+this.target_comment.id+"/comment"),this.$api.call("PUT",e,{content:this.content},e=>{if(200==e.data.code){Object(ke.a)({message:"å叿å",type:"success"}),this.content="",this.show_comment_drawer=!1;let t=this;if(this.target_comment)this.comments.forEach((function(a){a.id==t.target_comment.id&&a.comments.push(e.data.data)}));else{let t=e.data.data;t.comments=[],this.comments.unshift(t),this.post.comment_count=this.post.comment_count+1}this.$emit("create-comment",this.post)}else Object(ke.a)({message:e.data.message,type:"error"});this.submitting=!1})},loadPost(){this.$api.call("GET","/post/"+this.post.uuid,{},e=>{if(200==e.data.code){this.post={...e.data.data,likers:e.data.data.likers.reverse()},this.highlightCode(),this.paper={...this.post.paper,isNotAllowBuy:0==this.post.paper.prices.length||this.post.paper.prices.length&&!this.post.paper.prices.filter(e=>e.price>0).length,name:Object(ye.l)(this.post.paper.name),creator:this.post.creator},this.creator=this.post.creator,this.$store.commit("papers/setPaperInfo",this.paper),document.title=this.post.title?Object(ye.l)(this.post.title):"详æ
";let t=window.location.href;const a=this.$store.state.user.user.uuid;if(a){const e=t.includes("?")?"&":"?";t=-1==t.indexOf("refer")?t+e+"refer="+a:t.replace(/refer=[^&]*/,"refer="+a)}this.comments=[],(this.paper&&this.subscription_expired_days>0||this.paper&&this.paper.writable)&&this.loadComments(),Ga({title:this.post.title?this.post.title:"",desc:this.post.content,img:this.paper.avatar_url,path:t})}else Object(ke.a)({message:e.data.message,type:"error"})})},highlightCode(){this.$nextTick(()=>{const{highlightCode:e}=Object(Ya.b)(),t=this.$refs.content;t&&(e(t),this.attachCodeCopyButtons(t))})},loadComments(){this.$api.call("GET","/post/"+this.post.uuid+"/comment",{},e=>{if(200==e.data.code){this.comments=e.data.data;let t=this;this.scroll_to_comment=this.$route.query.scrollToComment,t.$nextTick(()=>{if(this.scroll_to_comment&&t.scrollToComment(),this.$route.hash){const e=this.$route.hash,t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})}})}else Object(ke.a)({message:e.data.message,type:"error"})})},replyComment(e){this.show_comment_drawer=!0,this.target_comment=e;let t=this;setTimeout(()=>{t.$nextTick(()=>{t.$refs.comment_input_box.focus()})},1e3)},deleteComment(){const e=this.deleteCommentTarget;this.$api.call("POST","/comment/"+e.id+"/hide",{hide:1},t=>{if(200==t.data.code){Object(ke.a)({message:"å 餿å",type:"info"}),this.deleteCommentTarget=null,this.closeDeleteModal();let t=this;
1this.comments.forEach((function(a){a.id==e.id&&(a.deleted=1,t.post.comment_count=t.post.comment_count-1),a.comments&&a.comments.length>0&&a.comments.forEach((function(t){t.id==e.id&&(t.deleted=1)}))})),this.$emit("delete-comment",this.post)}else Object(ke.a)({message:t.data.message,type:"error"})})},closeDrawer(){window.location.href.indexOf("/post/")>0?this.$router.push({name:"Home"}):this.$emit("cancel-clicked")},scrollToComment(){document.getElementById("write_comment").scrollIntoView({behavior:"smooth",block:"start"})},showReferenceDrawer(e){e.papers&&e.papers.length>0&&(this.show_reference_drawer=!0,this.targetUser=e)},closeReferenceDrawer(){this.show_reference_drawer=!1},closeSubscribeDrawer(){this.show_subscribe_drawer=!1},redirectToPaper(e){this.isInWechatMP?Br("Paper",{slug:e.slug,refer:this.$store.state.user.user.uuid}):(this.$router.push({name:"Paper",params:{slug:e.slug}}),this.is_drawer&&setTimeout(()=>{this.reload()},500))},copyUrl(){let{toClipboard:e}=za()(),t=Object(ye.c)()+"/post/"+this.post.uuid;const a=this.$store.state.user.user.uuid;a&&(t=t+"?refer="+a),e(t),Object(ke.a)({message:"å¤å¶æå",type:"success"})},openSubscribeDrawer(){this.$store.getters["user/is_login"]?this.show_subscribe_drawer=!0:this.$router.replace("/wechat_auth/?redirect=/post/"+this.post.uuid)},subscribe(e){if(!this.$store.getters["user/is_login"])return void this.$router.replace("/wechat_auth/?redirect=/post/"+this.post.uuid);let t=Object(ye.d)(this.paper.slug);if(t){(new Date).getTime()-t.time>6048e5&&(t=null,this.$store.commit("papers/removeRefer",this.paper.slug))}let a=/MicroMessenger/i.test(window.navigator.userAgent);if(!a&&this.isMobile)return void Object(ke.a)({message:"æä»
æ¯æå¨å¾®ä¿¡å
æ¯ä»ï¼è¯·å¨å¾®ä¿¡å
æå¼æ¤é¡µé¢",type:"error"});if(!a&&!this.isMobile)return this.$store.commit("setCurrentUrl",window.location.href),void this.$store.commit("setShowWxGuide",!0);let o=this;this.$api.call("POST","/paper/"+this.paper.slug+"/subscribe_by_wechat_pay",{price_type:e,refer:t&&t.refer?t.refer:"",refer_channel:t&&t.refer_channel?t.refer_channel:""},e=>{200==e.data.code?WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.data.data.appid,timeStamp:e.data.data.timeStamp,nonceStr:e.data.data.nonce_str,package:"prepay_id="+e.data.data.prepay_id,signType:"MD5",paySign:e.data.data.paySign},(function(e){"get_brand_wcpay_request:ok"==e.err_msg&&(o.show_subscribe_drawer=!1,Object(ke.a)({message:"订é
æåï¼",type:"success"}),o.$store.state.user.user.subscribe_wechat||Ua.a.alert('<img src="/img/qrcode_for_gh_a14c27ae9ee8_258.jpg" /><p style="text-align:center; font-size:14px;">é¿æå
³æ³¨å
¬ä¼å·<br/>æ¯å¨æé䏿 æ´æ°</p>',"订é
æåï¼",{dangerouslyUseHTMLString:!0,showConfirmButton:!1}),o.refresh())})):console.log(e.data.message)})},leadToOfficeAccount(){Ua.a.alert('<img src="/img/qrcode_for_gh_a14c27ae9ee8_258.jpg" />',"å
³æ³¨å
¬ä¼å·",{dangerouslyUseHTMLString:!0})},refresh(){this.loadPost()},tagClick(e){this.$emit("tag-click",e),this.$emit("cancel-clicked")},openShare(){const e=this.$store.getters["user/is_login"]&&this.paper.writable;this.trackEvent("share_paper_post","post",{user:e?"creator":"reader"}),this.show_post_share_card=!0,this.$refs.share_post_card?this.$refs.share_post_card.setPost(this.post,this.paper):setTimeout(()=>{this.openShare()},500)},edit(){this.$emit("edit-click",this.post)},doAction(e){this.$api.call("POST","/post/"+this.post.uuid+"/"+e,{},e=>{console.log(e)})},likePost(){!this.paper.writable&&this.subscription_expired_days<0?Object(ke.a)({message:"订é
䏿 åæ¹å¯åé¦",type:"info"}):(this.doAction("like"),this.post.has_liked=!0,this.post.likers.unshift(this.$store.state.user.user),this.$store.commit("posts/updatePost",{id:this.post.uuid,has_liked:!0}))},unlikePost(){this.doAction("unlike"),this.post={...this.post,likers:this.post.likers.filter(e=>e.id!=this.$store.state.user.user.id),has_liked:!1}
1,this.$store.commit("posts/updatePost",{id:this.post.uuid,has_liked:!1})},contentClick(e){const t=e.target.tagName;let a=e.target.href;if("IMG"==t){let t=e.target.src;return t.indexOf("!postoriginal")>-1&&(t=t.replace("!postoriginal","")),t.indexOf("!post")>-1&&(t=t.replace("!post","")),!this.paper.writable&&this.subscription_expired_days<0?void Object(ke.a)({message:"订é
䏿 忹坿¥ç大å¾",type:"info"}):void this.$viewerApi({options:{toolbar:!1,initialViewIndex:0,title:!1},images:[t]})}if(("U"==t||"STRONG"==t&&"A"==e.target.parentNode.tagName)&&(a=e.target.parentNode.href),a)if(e.preventDefault?e.preventDefault():window.event.returnValue=!0,-1!==a.indexOf("xiaobot.net"))if(a.indexOf("xiaobot.net/p/")>-1){if(/xiaobot\.net\/p\/(\w+)\/address/.test(a)){const e=a.match(/xiaobot\.net\/p\/(\w+)\/address/)[1];return void this.$router.push({name:"Collection",params:{slug:e}})}const e=a.substr(a.indexOf("xiaobot.net/p/")+14);if(e.indexOf("?")>-1)return window.open(a);this.$router.push({name:"Paper",params:{slug:e}})}else if(a.indexOf("xiaobot.net/post/")>-1){if(/xiaobot\.net\/post\/(\w+)/.test(a)){const e=a.split("/");let t=e[e.length-1],o="";if(t.indexOf("?")>-1){const e=t.split("?");t=e[0],e[1].indexOf("refer=")>-1&&(o=e[1].split("refer=")[1])}return void(o?this.$router.push({name:"PostPage",params:{uuid:t},query:{refer:o}}):this.$router.push({name:"PostPage",params:{uuid:t}}))}}else(a.indexOf("help.xiaobot.net")>-1||a.indexOf("xiaobot.net/coupon/")>-1||"https://xiaobot.net/home.html"==a)&&window.open(a);else window.open(a)}},updated(){this.$nextTick(()=>{this.mountAudioPlayers(this.$refs.content)})},created(){window.location.href.indexOf("/post/")>0&&(this.is_drawer=!1)},watch:{$route(e){e.params.uuid&&(this.post.uuid=e.params.uuid,this.refresh())}}};a("2716"),a("1b64");var Sr=j()(Lr,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("FileSignal"),i=T.default,l=bt.b,d=bt.c,p=bt.a,u=ht,m=ct.a,b=C,g=rt.a,O=h.a,j=Object(o.resolveComponent)("ConfirmAnOrder");return c.post&&c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:Object(o.normalizeClass)(["post",{post_page:!c.is_drawer,forbidd:!c.paper.writable&&!c.paper.copyable}])},[c.is_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ot,[jt,Object(o.createElementVNode)("img",{src:"/img/icon_close.svg",class:"close",onClick:t[0]||(t[0]=(...e)=>s.closeDrawer&&s.closeDrawer(...e))},null,8,Ct)])):Object(o.createCommentVNode)("",!0),c.is_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ft)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",vt,[Object(o.createElementVNode)("div",wt,[Object(o.createElementVNode)("img",{src:c.creator.full_avatar_url,class:"avatar"},null,8,Vt),Object(o.createElementVNode)("div",kt,[Object(o.createElementVNode)("div",yt,Object(o.toDisplayString)(c.creator.nickname),1),Object(o.createElementVNode)("div",_t,[Object(o.createTextVNode)(Object(o.toDisplayString)(s.created_date)+" ",1),c.post.ip_location?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Et," · "+Object(o.toDisplayString)(c.post.ip_location),1)):Object(o.createCommentVNode)("",!0),s.hasAudio?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Nt,[Bt,Object(o.createVNode)(n,{size:"12"})])):Object(o.createCommentVNode)("",!0)])])]),Object(o.createElementVNode)("div",Ht,[r.isInWechatMP?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:0,modelValue:s.fontSize,"onUpdate:modelValue":t[1]||(t[1]=e=>s.fontSize=e)},null,8,["modelValue"])):Object(o.createCommentVNode)("",!0),c.post.has_favorited?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{key:2,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:t[3]||(t[3]=(...e)=>s.unfavoritePost&&s.unfavoritePost(...e))},Mt)):(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{key:1,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:t[2]||(t[2]=(...e)=>s.favoritePost&&s.favoritePost(...e))},xt)),Object(o.createVNode)(p,{trigger:"click",onCommand:s.handlePostCommand,class:"more_dropdown"},{dropdown:Object(o.withCtx)(()=>[Object(o.createVNode)(d,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{command:s.composeValue("share","comment")},{default:Object(o.withCtx)(()=>[St]),_:1},8,["command"]),Object(o.createVNode)(l,{command:s.composeValue("copy","comment")},{default:Object(o.withCtx)(()=>[Tt]),_:1},8,["command"]),c.paper.writable?(Object(o.openBlock)(),Object(o.createBlock)(l,{key:0,command:s.composeValue("edit","comment")},{default:Object(o.withCtx)(()=>[At]),_:1},8,["command"])):Object(o.createCommentVNode)("",!0)]),_:1})]),default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("img",{src:"/img/icon_more.svg",style:{cursor:"pointer"},class:"icon_action"},null,8,Lt)]),_:1},8,["onCommand"])])]),c.post&&c.post.title?(Object(o.openBlock)(),Object(o.createElementBlock)("h1",{key:2,class:"title",innerHTML:c.post.title},null,8,Pt)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",{class:"content post-content",style:Object(o.normalizeStyle)([c.post.title?"":"margin-top:10px",{fontSize:s.articleFontSize}]),innerHTML:s.parsed_content(c.post.content,c.post.title),onClick:t[4]||(t[4]=(...e)=>s.contentClick&&s.contentClick(...e)),ref:"content"},null,12,Dt),c.post.tag_names.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",It,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.post.tag_names,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:e,class:"post_tag",onClick:t=>s.tagClick(e)},"#"+Object(o.toDisplayString)(e)+" ",9,$t))),128))])):Object(o.createCommentVNode)("",!0),s.hasAdjacentPosts?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Zt,[c.post.prev_post&&c.post.prev_post.uuid?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"adjacent_post adjacent_post--prev",onClick:t[5]||(t[5]=e=>s.goToAdjacentPost(c.post.prev_post))},[Rt,Object(o.createElementVNode)("div",Ut,Object(o.toDisplayString)(s.adjacentPostTitle(c.post.prev_post)),1
1)])):Object(o.createCommentVNode)("",!0),c.post.next_post&&c.post.next_post.uuid?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"adjacent_post adjacent_post--next",onClick:t[6]||(t[6]=e=>s.goToAdjacentPost(c.post.next_post))},[Ft,Object(o.createElementVNode)("div",zt,Object(o.toDisplayString)(s.adjacentPostTitle(c.post.next_post)),1)])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(u,{likeFun:s.likePost,unLikeFun:s.unlikePost,likers:c.post.likers,isLike:c.post.has_liked},null,8,["likeFun","unLikeFun","likers","isLike"]),c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:5,class:"paper_card",onClick:t[7]||(t[7]=e=>s.redirectToPaper(c.paper))},[Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("div",qt,Object(o.toDisplayString)(c.paper.name),1),Object(o.createElementVNode)("div",Wt,[c.paper.subscriber_count>0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Gt,Object(o.toDisplayString)(c.paper.subscriber_count)+" 读è
ï¼",1)):Object(o.createCommentVNode)("",!0),Object(o.createTextVNode)(" "+Object(o.toDisplayString)(c.paper.post_count)+" å
容 ",1)])]),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right_light.svg",class:"icon_arrow"},null,8,Yt)])):Object(o.createCommentVNode)("",!0),c.paper&&!c.paper.writable&&s.subscription_expired_days<0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Qt,[c.post.free?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Kt,"ä½ æ£å¨é¢è§å
è´¹å
容ï¼ä»è´¹åè§£éå
¨é¨ "+Object(o.toDisplayString)(c.paper.post_count)+" ç¯",1)):Object(o.createCommentVNode)("",!0),c.paper.isNotAllowBuy||r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:1,class:"btn btn-primary btn-large",onClick:t[8]||(t[8]=(...e)=>s.openSubscribeDrawer&&s.openSubscribeDrawer(...e))},"订é
å¹¶æ¥çå
¨æ")),!c.paper.isNotAllowBuy&&r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Jt,[Xt,Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[9]||(t[9]=(...e)=>s.handleCantBuy&&s.handleCantBuy(...e))},"ç¹æ¤è§£å³")])):Object(o.createCommentVNode)("",!0),c.paper.isNotAllowBuy?(Object(o.openBlock)(),Object(o.createElementBlock)("a",ea,"æä¸æä¾è®¢é
")):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),c.paper&&!c.paper.writable&&s.subscription_expired_days<0?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",ta,[c.comments.length||c.paper.commentable>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",aa,Object(o.toDisplayString)(c.post.comment_count)+" çè¨",1)):Object(o.createCommentVNode)("",!0),c.paper.commentable>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,id:"write_comment",class:"write_comment",onClick:t[10]||(t[10]=(...e)=>s.writeComment&&s.writeComment(...e))},"åçè¨")):Object(o.createCommentVNode)("",!0)])),Object(o.createElementVNode)("div",null,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.comments,a=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:a.id,class:Object(o.normalizeClass)(["comment",{hide:1==a.deleted||null!=a.hided_at&&!c.paper.writable&&a.creator.id!==e.$store.state.user.user.id}])},[Object(o.createElementVNode)("div",oa,[Object(o.createElementVNode)("img",{src:a.creator.full_avatar_url,class:"avatar",onClick:e=>s.showReferenceDrawer(a.creator)},null,8,ra),Object(o.createElementVNode)("div",ca,[Object(o.createElementVNode)("div",{class:"name",onClick:e=>s.showReferenceDrawer(a.creator)},[Object(o.createTextVNode)(Object(o.toDisplayString)(a.creator.nickname)+" ",1),s.isShowLabel(a)?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,src:"/img/icon_label.svg",class:"label"},null,8,na)):Object(o.createCommentVNode)("",!0)],8,sa),Object(o.createElementVNode)("div",ia,[Object(o.createTextVNode)(Object(o.toDisplayString)(s.comment_date(a.created_at))+" ",1),a.ip_location?(Object(o.openBlock)(),Object(o.createElementBlock)("span",la," · "+Object(o.toDisplayString)(a.ip_location),1)):Object(o.createCommentVNode)("",!0)])]),c.paper.writable||a.creator.id==e.$
1store.state.user.user.id?(Object(o.openBlock)(),Object(o.createBlock)(p,{key:0,trigger:"click",onCommand:s.handleCommentCommand,class:"dropdown"},{dropdown:Object(o.withCtx)(()=>[Object(o.createVNode)(d,null,{default:Object(o.withCtx)(()=>[c.paper.commentable>0&&(c.paper.writable||a.creator.id==e.$store.state.user.user.id)?(Object(o.openBlock)(),Object(o.createBlock)(l,{key:0,command:s.composeValue("reply",a)},{default:Object(o.withCtx)(()=>[pa]),_:2},1032,["command"])):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(l,{command:s.composeValue("delete",a)},{default:Object(o.withCtx)(()=>[ua]),_:2},1032,["command"]),(c.paper.writable,Object(o.createCommentVNode)("",!0))]),_:2},1024)]),default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("img",{src:"/img/icon_more.svg",class:"more"},null,8,da)]),_:2},1032,["onCommand"])):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",{class:"comment_content",innerHTML:s.parsed_comment(a.content),onClick:t[11]||(t[11]=(...e)=>s.contentClick&&s.contentClick(...e))},null,8,ma),a.comments&&a.comments.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ha,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(a.comments,(r,n)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:r.id,class:Object(o.normalizeClass)(["reply",{hide:1==r.deleted||null!=r.hided_at}])},[Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["reply_content",{first:0==n}])},[Object(o.createElementVNode)("div",ba,[Object(o.createElementVNode)("span",{class:"name",onClick:e=>s.showReferenceDrawer(r.creator)},[Object(o.createTextVNode)(Object(o.toDisplayString)(r.creator.nickname)+" ",1),s.isShowLabel(r)?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,src:"/img/icon_label.svg",class:"label"},null,8,Oa)):Object(o.createCommentVNode)("",!0)],8,ga),c.paper.writable||r.creator.id==e.$store.state.user.user.id||a.creator.id==e.$store.state.user.user.id?(Object(o.openBlock)(),Object(o.createBlock)(p,{key:0,trigger:"click",onCommand:s.handleCommentCommand,class:"dropdown"},{dropdown:Object(o.withCtx)(()=>[Object(o.createVNode)(d,null,{default:Object(o.withCtx)(()=>[c.paper.commentable>0&&(c.paper.writable||a.creator.id==e.$store.state.user.user.id)?(Object(o.openBlock)(),Object(o.createBlock)(l,{key:0,command:s.composeValue("reply",a)},{default:Object(o.withCtx)(()=>[Ca]),_:2},1032,["command"])):Object(o.createCommentVNode)("",!0),r.creator.id==e.$store.state.user.user.id?(Object(o.openBlock)(),Object(o.createBlock)(l,{key:1,command:s.composeValue("delete",r)},{default:Object(o.withCtx)(()=>[fa]),_:2},1032,["command"])):Object(o.createCommentVNode)("",!0)]),_:2},1024)]),default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("img",{src:"/img/icon_more.svg",class:"more"},null,8,ja)]),_:2},1032,["onCommand"])):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",{class:"text",innerHTML:s.parsed_comment(r.content),onClick:t[12]||(t[12]=(...e)=>s.contentClick&&s.contentClick(...e))},null,8,va)],2)],2))),128))])):Object(o.createCommentVNode)("",!0),wa],2))),128))]),c.comments&&c.comments.length>=1&&c.paper.commentable>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:8,onClick:t[13]||(t[13]=(...e)=>s.writeComment&&s.writeComment(...e)),id:"comment",class:"footer_write_comment"}," åçè¨ ")):Object(o.createCommentVNode)("",!0),Va,Object(o.createVNode)(b,{visible:c.show_comment_drawer,title:"åçè¨",closeDrawer:s.closeCommentDrawer},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("form",ka,[Object(o.createVNode)(m,{ref:"comment_input_box",class:"comment",type:"textarea",maxlength:"5000",autofocus:!1,autosize:{minRows:5,maxRows:10},placeholder:"åä¸å¯¹ä½ çå¯åâ¦â¦",modelValue:c.content,"onUpdate:modelValue":t[14]||(t[14]=e=>c.content=e),onCompositionstart:s.handleCompositionStart,onCompositionend:s.handleCompositionEnd},null,8,["modelValue","onCompositionstart","onCompositionend"]),ya,Object(o.createElementVNode)("a",{class:"btn btn-primary submit",onClick:t[15]||(t[15]=(...e)=>s.submit&&s.submit(...e)),disabled:c.submitting},"åå¸",8,_a)])]),_:1},8,["visible","closeDrawer"]),Object(o.createVNode)(b,{visible:c.show_reference_drawer,title:"æ¥ç @"+(c.targetUser?c.targetUser.nickname:"")+" ç䏿 ",closeDrawer:s.closeReferenceDrawer},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Ea,[Object(o.createElementVNode)("div",Na,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.targetUser.papers,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"reference_paper",key:e.id,onClick:t=>s.redirectToPaper(e)},[Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("div",Ha,[Object(o.createElementVNode)("img",{class:"avatar",src:e.avatar_url}
1,null,8,xa),Object(o.createElementVNode)("strong",Ma,Object(o.toDisplayString)(e.name),1)]),Object(o.createElementVNode)("div",La,Object(o.toDisplayString)(e.subscriber_count)+" ä½è¯»è
ï¼"+Object(o.toDisplayString)(e.post_count)+" ç¯å
容 ",1)]),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,Sa)],8,Ba))),128))])])]),_:1},8,["visible","title","closeDrawer"]),Object(o.createVNode)(b,{visible:c.show_subscribe_drawer,title:c.paper&&"BOOKLET"===c.paper.type?"ç«å³è´ä¹°":"éæ©è®¢é
æ¶é¿",closeDrawer:s.closeSubscribeDrawer},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",{style:Object(o.normalizeStyle)({fontSize:"15px",color:"var(--text-gray)",padding:"20px 0px 20px",borderBottom:"1px solid var(--border-color)",borderTop:"3px solid var(--border-dark)",marginBottom:"20px"})}," æ¬ä¸æ ç±ç¬¬ä¸æ¹ä½è
èªä¸»å建ï¼è´ä¹°å请确认å
容质éä¸ç¸å
³é£é©ãè´ä¹°å 24 å°æ¶å
å¯ç³è¯·é款ã ",4),Object(o.createElementVNode)("div",Ta,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.paper.prices,e=>(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:e.type},[e.price>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Aa,[Object(o.createElementVNode)("div",Pa,[Object(o.createElementVNode)("span",Da,Object(o.toDisplayString)(e.price/100),1),Object(o.createTextVNode)(" å
/"+Object(o.toDisplayString)(e.name)+Object(o.toDisplayString)("BOOKLET"===c.paper.type?"é
读":""),1)]),Object(o.createElementVNode)("a",{class:"btn btn-primary",onClick:t=>s.showConfirmAnOrderModal(e)},"订é
",8,Ia)])):Object(o.createCommentVNode)("",!0)],64))),128))])]),_:1}
1,8,["visible","title","closeDrawer"]),Object(o.createVNode)(O,{title:"çæå享å¡ç",modelValue:c.show_post_share_card,"onUpdate:modelValue":t[16]||(t[16]=e=>c.show_post_share_card=e),"custom-class":"share-dialog","destroy-on-close":!0,width:s.calcWidth},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(g,{ref:"share_post_card"},null,512)]),_:1},8,["modelValue","width"]),Object(o.createVNode)(b,{title:"å é¤åä¸å¯æ¢å¤",closeDrawer:s.closeDeleteModal,visible:c.showDeleteModal},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",$a,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large back block",onClick:t[17]||(t[17]=(...e)=>s.deleteComment&&s.deleteComment(...e))},"å é¤"),Object(o.createElementVNode)("a",{class:"btn btn-large bg-white back block cancel",onClick:t[18]||(t[18]=(...e)=>s.closeDeleteModal&&s.closeDeleteModal(...e))},"åæ¶")])]),_:1},8,["closeDrawer","visible"]),Object(o.createVNode)(j,{visible:c.showConfirmAnOrder,paper:c.paper,subscribePrice:c.subscribePrice,close:s.hideConfirmAnOrder,paySuccess:s.paySuccess},null,8,["visible","paper","subscribePrice","close","paySuccess"])],2)):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-8eb3f7ee"]]),Tr=(a("9408"),a("3b0e"));a("358c");const Ar=e=>(Object(o.pushScopeId)("data-v-4742b5f3"),e=e(),Object(o.popScopeId)(),e),Pr={class:"form"},Dr={class:"topbar"},Ir={key:1,class:"topbar__action"},$r=["fill"],Zr=[Ar(()=>Object(o.createElementVNode)("path",{d:"M16.6667 3.3335H3.33341C2.41258 3.3335 1.66675 4.07933 1.66675 5.00016V15.0002C1.66675 15.921 2.41258 16.6668 3.33341 16.6668H16.6667C17.5876 16.6668 18.3334 15.921 18.3334 15.0002V5.00016C18.3334 4.07933 17.5876 3.3335 16.6667 3.3335ZM4.16675 14.1668L7.08341 10.4168L9.16675 12.9252L12.0834 9.16683L15.8334 14.1668H4.16675Z",fill:"#ACABAE"},null,-1))],Rr=["fill"],Ur=[Ar(()=>Object(o.createElementVNode)("path",{d:"M4.5 5.25C2.42925 5.25 0.75 6.92925 0.75 9C0.75 11.0707 2.42925 12.75 4.5 12.75H7.5V11.25H4.5C3.25725 11.25 2.25 10.2427 2.25 9C2.25 7.75725 3.25725 6.75 4.5 6.75H7.5V5.25H4.5ZM10.5 5.25V6.75H13.5C14.7428 6.75 15.75 7.75725 15.75 9C15.75 10.2427 14.7428 11.25 13.5 11.25H10.5V12.75H13.5C15.5708 12.75 17.25 11.0707 17.25 9C17.25 6.92925 15.5708 5.25 13.5 5.25H10.5ZM5.25 8.25V9.75H12.75V8.25H5.25Z",fill:"#9D9D9D"},null,-1))],Fr=[Ar(()=>Object(o.createElementVNode)("path",{d:"M10.4884 2.15484C10.1759 1.84225 9.75207 1.6666 9.31008 1.6665H3.33341C2.89139 1.6665 2.46746 1.8421 2.1549 2.15466C1.84234 2.46722 1.66675 2.89114 1.66675 3.33317V9.30984C1.66684 9.75183 1.8425 10.1757 2.15508 10.4882L8.82175 17.1548C9.13429 17.4673 9.55814 17.6428 10.0001 17.6428C10.442 17.6428 10.8659 17.4673 11.1784 17.1548L17.1551 11.1782C17.4675 10.8656 17.6431 10.4418 17.6431 9.99984C17.6431 9.5579 17.4675 9.13405 17.1551 8.8215L10.4884 2.15484ZM5.83342 7.49984C5.39128 7.49973 4.96729 7.32398 4.65473 7.01127C4.34217 6.69855 4.16664 6.27448 4.16675 5.83234C4.16686 5.3902 4.3426 4.96621 4.65532 4.65365C4.96804 4.34109 5.39211 4.16556 5.83425 4.16567C6.27639 4.16578 6.70037 4.34153 7.01293 4.65424C7.32549 4.96696 7.50103 5.39103 7.50092 5.83317C7.5008 6.27531 7.32506 6.69929 7.01234 7.01186C6.69963 7.32442 6.27555 7.49995 5.83342 7.49984Z",fill:"#9D9D9D"},null,-1))],zr=["disabled"],qr={class:"m-editor"},Wr={ref:"textEditor",class:"post-content"},Gr={key:0,class:"tags"},Yr={class:"hide"},Qr={class:"image-actions"},Kr=["src","onClick"],Jr=["src","onClick"],Xr={class:"header"},ec=Ar(()=>Object(o.createElementVNode)("div",{class:"title"},"æ·»å æ ç¾",-1)),tc=["src"],ac={class:"content"},oc={class:"inline"},rc=Ar(()=>Object(o.createElementVNode)("input",{class:"tag_input",placeholder:"请è¾å
¥æéæ©æ ç¾"},null,-1)),cc=Ar(()=>Object(o.createElementVNode)("div",{class:"divider_thin"},null,-1)),sc=["onClick"],nc={key:1,class:"space"};a("4ccb"),a("11de"),a("2fd0"),a("7125");var ic=a("65b3"),lc=a("80e2"),dc=a.n(lc),pc=(a("8135"),a("ceb0")),uc=a("f0ab"),mc=a("80f9");const hc=a("4f14");let bc=a("63bb");var gc={name:"PostEditor",components:{Plus:ic.a,EditorVue:pc.a,AddLinkVue:uc.a,ChevronLeft:mc.a},data:()=>({post_uuid:null,content:"",submitting:!1,disabled:!1,fileList:[],uploadFileList:[],file_ids:[],show_drawer:!1,tagify:null,origin_tags:[],tags:[],recommend_tags:null,limit_recommend_tags:!1,paper_slug:null,isTagsChanged:!1,title:"",editor:null,showLinkModal:!1}),setup(){const{isInWechatMP:e}=Object(K.a)();return{isInWechatMP:e}},methods:{handleLinkClick(){this.showLinkModal=!0,this.$nextTick(()=>{const{from:e,to:t}=this.editor.state.selection,a=this.editor.state.doc.textBetween(e,t," "),o=this.editor.getAttributes("link").href;this.editLink={title:a,url:o},this.$refs.addLink.setLink(this.editLink)})},hideAddLink(){this.showLinkModal=!1},addLink(e){const{url:t,title:a}=e;this.editor.chain().focus().extendMarkRange("link").setLink({href:t,target:"_blank"}).command(({tr:e})=>(e.insertText(a),!0)).run(),this.showLinkModal=!1},submit(){if(this.content){if(this.$refs.upload.uploadFiles){let e=!0;
1if(this.$refs.upload.uploadFiles.forEach((function(t){if("success"!==t.status)return Object(ke.a)({message:"请çå¾
å¾çä¸ä¼ 宿",type:"error"}),void(e=!1)})),!e)return}this.post_uuid?this.update():this.create()}else Object(ke.a)({message:"请è¾å
¥å
容",type:"error"})},getImgSrc(e){let t=/src=['"]?([^'"]*)['"]?/i,a=e.match(/<img.*?(?:>|\/>)/gi),o=[];return a&&a.forEach((function(e){let a=e.match(t)[1];o.push(a)})),o},removeImg(e,t){let a=this.getImgSrc(t);if(a.length&&e.length){e.forEach((function(t){-1===a.indexOf(t.url)&&e.splice(e.indexOf(t),1)}));let t=[];return a.forEach((function(a){e.forEach((function(e){a===e.url&&t.push(e)}))})),t}return[]},create(){if(this.submitting)return;const e=this.$refs.editor.editor.getHTML(),t=this.$refs.editor.getUploadedImageIds(this.fileList);this.submitting=!0,this.$api.call("PUT","/paper/"+this.paper_slug+"/post",{content:e,file_ids:t,tag_names:this.tags,title:this.title},e=>{200==e.data.code?(this.$emit("new-post-created",e.data.data),this.reset(),this.$store.commit("setNewPostCreatorDraft",""),this.$store.commit("setNewPostCreatorTitle",""),this.$store.commit("editor/deleteDraft",{id:this.paper_slug}),Object(ke.a)({message:"å叿å",type:"success"}),null!=this.tags&&this.tags.length>0&&this.$emit("refresh-tags")):Object(ke.a)({message:e.data.message,type:"error"}),this.submitting=!1})},update(){if(this.submitting)return;this.submitting=!0;const e=this.$refs.editor.editor.getHTML(),t=this.$refs.editor.getUploadedImageIds(this.fileList);this.$api.call("PUT","/post/"+this.post_uuid,{content:e,file_ids:t,tag_names:this.tags,title:this.title},e=>{200==e.data.code?(this.$emit("post-edited",e.data.data),this.$store.commit("editor/deleteDraft",{id:this.post_uuid}),this.reset(),Object(ke.a)({message:"ç¼è¾æå",type:"success"}),this.isTagsChanged&&this.$emit("refresh-tags")):Object(ke.a)({message:e.data.message,type:"error"}),this.submitting=!1})},cancel(){this.reset(),this.$emit("cancel-clicked")},reset(){this.post_uuid=null,this.content="",this.title="",this.fileList=[],this.uploadFileList=[],this.file_ids=[],this.$emit("cancel-clicked")},titleChanged(e){this.$store.commit("editor/addDraft",{id:this.post_uuid?this.post_uuid:this.paper_slug,title:e})},handleBeforeFileUpload(e){if(!e.type.includes("image"))return Object(ke.a)({message:"åªè½ä¸ä¼ å¾ç",type:"error"}),!1;this.files_show=!0;const t=this;return new Promise(a=>{const o=new FileReader,r=new Image;r.onload=()=>{let o=null;if(r.src.startsWith("data:image/gif"))o=t.dataURItoBlob(r.src,e.type);else{const a=document.createElement("canvas"),c=a.getContext("2d"),s=Math.min(r.width,2400),n=s/r.width*r.height;a.width=s,a.height=n,c.clearRect(0,0,s,n),c.drawImage(r,0,0,s,n);const i=a.toDataURL(e.type);o=t.dataURItoBlob(i,e.type)}const c=new File([o],e.name,{type:o.type||e.type,lastModified:e.lastModified||Date.now()});c.uid=e.uid,a(c)},o.onload=e=>{r.src=e.target.result},o.readAsDataURL(e)})},emitUploadProgress(e,t){if(e&&e.onProgress)try{e.onProgress({percent:t})}catch(e){}},handleFileUpload(e){this.emitUploadProgress(e,0),new Promise(e=>{var t=JSON.parse(localStorage.getItem("oss_sign")),a=Date.parse(new Date)/1e3;t&&t.expire-10>a?e(t):this.$api.call("GET","/file/oss_sign",{},t=>{console.log("response.data",t.data),t.data&&-1===t.data.code?Object(ke.a)({message:t.data.message,type:"error"}):t.data&&200===t.data.code&&(localStorage.setItem("oss_sign",JSON.stringify(t.data.data)),e(t.data.data))})}).then(t=>{this.emitUploadProgress(e,50);var a=t,o=new FormData;o.append("name",e.file.name);let r=e.file.type.split("/")[1],c=e.file.name+e.file.size+Math.random(),s=a.dir+"/"+bc(c)+"."+r;o.append("key",s),o.append("policy",a.policy),o.append("OSSAccessKeyId",a.accessid),o.append("success_action_status",201),o.append("signature",a.signature),o.append("file",e.file,e.file.name),hc.post(a.host,o,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{if(this.emitUploadProgress(e,80),201==t.status){let t=this;this.$api.call("PUT","/file/",{name:e.file.name,size:e.file.size,path:s},a=>{a.data&&-1===a.data.code?Object(ke.a)({message:a.data.message,type:"error"}):a.data&&200===a.data.code&&(this.emitUploadProgress(e,100),e.file.id=a.data.data.id,this.$refs.upload.uploadFiles.forEac
1h((function(t){t.uid==e.file.uid&&(t.id=a.data.data.id)})),this.addInlineImage(a.data.data.url),this.fileList.push(a.data.data),t.file_ids.push(a.data.data.id),e.onSuccess(a.data))})}}).catch(e=>{console.log(e)})})},handleFileUploadSuccess(){},removeFile(e,t){if(e.id)this.file_ids=this.file_ids.filter(t=>t!==e.id),this.fileList=this.fileList.filter(t=>t.id!==e.id);else{let a=t.indexOf(e);a>=0&&this.file_ids.splice(a,1)}let a=this.$refs.upload.uploadFiles,o=a.findIndex(t=>t.uid===e.uid);return o>=0&&a.splice(o,1),!0},handlePictureCardPreview(e){let t=this.$refs.upload.uploadFiles,a=t.indexOf(e),o=[];t.forEach((function(e){o.push(e.url)})),this.$viewerApi({options:{toolbar:!1,initialViewIndex:a,title:!1,viewed(){}},images:o})},onExceedFileLimit(){Object(ke.a)({message:"æå¤ä¸ä¼ 9å¼ å¾ç",type:"error"})},dataURItoBlob(e,t){for(var a=atob(e.split(",")[1]),o=[],r=0;r<a.length;r++)o.push(a.charCodeAt(r));return new Blob([new Uint8Array(o)],{type:t})},refreshFilesAndTags(){this.fileList&&this.fileList.length>0?(this.uploadFileList=this.fileList.map(e=>({...e})),this.file_ids=this.fileList.map((function(e){return e.id})),this.files_show=!0):(this.uploadFileList=[],this.file_ids=[],this.files_show=!1),null!==this.origin_tags&&(this.recommend_tags=this.origin_tags.concat()),null==this.recommend_tags?this.loadTags():this.sortTags(),this.isTagsChanged=!1,this.content=this.decodeHtml(this.content)},decodeHtml(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},setBulletList(){this.editor.chain().focus().toggleBulletList().run()},addTag(){this.show_drawer=!0,this.$nextTick(()=>{var e=document.querySelector(".tag_input");if(null==this.tagify){this.tagify=new dc.a(e,{templates:{tag(e){return`<tag title="${e.title||e.value}"\n contenteditable='false'\n spellcheck='false'\n tabIndex="${this.settings.a11y.focusableTags?0:-1}"\n class="${this.settings.classNames.tag} ${e.class?e.class:""}"\n ${this.getAttributes(e)}>\n\n <div>\n <span class="${this.settings.classNames.tagText}">#${e[this.settings.tagTextProp]||e.value}</span>\n </div>\n </tag>`}}});let t=this;this.tagify.on("remove",e=>{let a=this.tags.indexOf(e.detail.data.value);t.tags.splice(a,1),t.checkLimit(),t.isTagsChanged=!0}).on("add",()=>{t.checkLimit(),t.isTagsChanged=!0})}this.tagify.removeAllTags(),this.tagify.addTags(this.tags),this.checkLimit()})},checkLimit(){let e=this.tagify.getCleanValue().length;null!=this.recommend_tags&&(e+=this.recommend_tags.length),this.limit_recommend_tags=e>=10},closeDrawer(){this.show_drawer=!1},submitTag(){let e=this.tagify.getCleanValue();this.tags=[];let t=this;e.forEach((function(e){t.tags.push(e.value)})),this.closeDrawer()},addRecommendTag(e){this.tags.indexOf(e.name)<0?(this.tagify.addTags(e.name),this.tags.push(e.name)):this.tagify.removeTags("#"+e.name)},loadTags(){this.$api.call("GET","/paper/"+this.paper_slug+"/tag",{},e=>{200==e.data.code?(this.recommend_tags=e.data.data,this.sortTags()):Object(ke.a)({message:e.data.message,type:"error"})})},sortTags(){this.recommend_tags.sort((function(e,t){return t.count-e.count}))},addImage(){document.querySelector(".el-upload__input").click()},setTextBold(){this.editor.chain().focus().toggleBold().run()},isBold(){return this.editor.isActive("bold")},isActiveBulletList(){if(this.editor)return this.editor.isActive("bulletList")},showCraftMessageBox(){const{new_post_creator_draft:e,new_post_creator_title:t}=this.$store.state,{drafts:a}=this.$store.state.editor;let o,r=a.find(e=>e.id===(this.post_uuid?this.post_uuid:this.$route.params.slug)),c="";r?(o=r.title,c=r.content):this.post_uuid||(o=t,c=e),(o||c)&&this.post_uuid?Object(Ua.a)({message:"æ¬ææå°æªä¿åçèç¨¿ï¼æ¯å¦æ¢å¤ï¼",showCancelButton:!0,confirmButtonText:"æ¢å¤",cancelButtonText:"丢å¼"}).then(e=>{"confirm"===e&&(c&&(this.content=c),o&&(this.title=o))}).catch(()=>{}):(c&&(this.content=c),o&&(this.title=o))},addInlineImage(e){if(!this.editor)return;const t=this.editor.state.selection.to;this.editor.chain().focus().setTextSelection(t).insertContent([{type:"image",attrs:{src:e}},{type:"paragraph"}]).run()}},created(){const{slug:e}=this.$route.params;this.paper_slug=e},mounted(){this.$nextTick(()=>{this.editor=this.$refs.editor.editor,this.$refs.textEditor.addEventListener("paste",async e=>{const t=(e.clipboardData||e.originalEvent.clipboardData).items;for(let a=0;a<t.length;
1a++)if(-1!==t[a].type.indexOf("image"));else if(e.clipboardData){let t=(e.originalEvent||e).clipboardData.getData("text/html");if(t.indexOf("img")>-1){let a=t.match(/src="(.*?)"/)[1];Object(ye.a)(a)||(document.execCommand("insertText",!1,""),e.preventDefault())}}else if(window.clipboardData){let t=window.clipboardData.getData("Text");document.selection.createRange().pasteHTML(t),e.preventDefault()}})}),window.addEventListener("touchmove",(function(e){let t=e.target;t&&"TEXTAREA"===t.tagName&&e.stopPropagation()}),!0)}};a("21de"),a("a850"),a("7086"),a("e1e72");var Oc=j()(gc,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("ChevronLeft"),i=ct.a,l=Object(o.resolveComponent)("EditorVue"),d=Object(o.resolveComponent)("plus"),p=A.a,u=Tr.a,m=b.a,g=Object(o.resolveComponent)("AddLinkVue"),O=h.a;return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createElementVNode)("form",Pr,[Object(o.createElementVNode)("div",Dr,[r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(n,{key:0,onClick:s.cancel},null,8,["onClick"])),c.editor?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ir,[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{onClick:t[0]||(t[0]=(...e)=>s.setTextBold&&s.setTextBold(...e)),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M16.2 11.73C17.4633 10.8686 18.3488 9.45429 18.3488 8.14286C18.3488 5.23714 16.0698 3 13.1395 3H5V21H14.1684C16.8902 21 19 18.8143 19 16.1271C19 14.1729 17.88 12.5014 16.2 11.73ZM8.90698 6.21429H12.814C13.8949 6.21429 14.7674 7.07571 14.7674 8.14286C14.7674 9.21 13.8949 10.0714 12.814 10.0714H8.90698V6.21429ZM13.4651 17.7857H8.90698V13.9286H13.4651C14.546 13.9286 15.4186 14.79 15.4186 15.8571C15.4186 16.9243 14.546 17.7857 13.4651 17.7857Z",fill:s.isBold()?"#333333 ":"#ACABAE"},null,8,$r)])),(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{onClick:t[1]||(t[1]=(...e)=>s.addImage&&s.addImage(...e)),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zr)),(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{onClick:t[2]||(t[2]=(...e)=>s.setBulletList&&s.setBulletList(...e)),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.5 3.75C2.16848 3.75 1.85054 3.8817 1.61612 4.11612C1.3817 4.35054 1.25 4.66848 1.25 5C1.25 5.33152 1.3817 5.64946 1.61612 5.88388C1.85054 6.1183 2.16848 6.25 2.5 6.25C2.83152 6.25 3.14946 6.1183 3.38388 5.88388C3.6183 5.64946 3.75 5.33152 3.75 5C3.75 4.66848 3.6183 4.35054 3.38388 4.11612C3.14946 3.8817 2.83152 3.75 2.5 3.75ZM5.83333 4.16667V5.83333H18.3333V4.16667H5.83333ZM2.5 8.75C2.16848 8.75 1.85054 8.8817 1.61612 9.11612C1.3817 9.35054 1.25 9.66848 1.25 10C1.25 10.3315 1.3817 10.6495 1.61612 10.8839C1.85054 11.1183 2.16848 11.25 2.5 11.25C2.83152 11.25 3.14946 11.1183 3.38388 10.8839C3.6183 10.6495 3.75 10.3315 3.75 10C3.75 9.66848 3.6183 9.35054 3.38388 9.11612C3.14946 8.8817 2.83152 8.75 2.5 8.75ZM5.83333 9.16667V10.8333H18.3333V9.16667H5.83333ZM2.5 13.75C2.16848 13.75 1.85054 13.8817 1.61612 14.1161C1.3817 14.3505 1.25 14.6685 1.25 15C1.25 15.3315 1.3817 15.6495 1.61612 15.8839C1.85054 16.1183 2.16848 16.25 2.5 16.25C2.83152 16.25 3.14946 16.1183 3.38388 15.8839C3.6183 15.6495 3.75 15.3315 3.75 15C3.75 14.6685 3.6183 14.3505 3.38388 14.1161C3.14946 13.8817 2.83152 13.75 2.5 13.75ZM5.83333 14.1667V15.8333H18.3333V14.1667H5.83333Z",fill:s.isActiveBulletList()?"#333333 ":"#ABABAE"},null,8,Rr)])),(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{onClick:t[3]||(t[3]=(...e)=>s.handleLinkClick&&s.handleLinkClick(...e)),width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ur)),(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{onClick:t[4]||(t[4]=(...e)=>s.addTag&&s.addTag(...e)),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fr))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("a",{class:"btn btn-primary",style:{padding:"6px 16px"},onClick:t[5]||(t[5]=(...e)=>s.submit&&s.submit(...e)),disabled:c.submitting},"åå¸",8,zr)]),Object(o.createElementVNode)("div",qr,[Object(o.createVNode)(i,{type:"text",style:{"margin-top":"10px","margin-bottom":"10px"},autofocus:!0,placeholder:"æ é¢ï¼å¯éï¼",modelValue:c.title,"onUpdate:modelValue":t[6]||(t[6]=e=>c.title=e),onInput:s.titleChanged},null,8,["modelValue","onInput"]),Object(o.createElementVNode)("p",{style:Object(o.normalizeStyle)({background:"var(--border-color)",height:"1px",margin:"0"})},null,4),Object(o.createElementVNode)("div",Wr,[Object(o.createVNode)(l,{isMobile:!0,modelValue:c.content,"onUpdate:modelValue":t[7]||(t[7]=e=>c.content=e),ref:"editor",postId:c.post_uuid,paper_slug:c.paper_slug},null,8,["modelValue","postId","paper_slug"])],512),c.tags.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Gr,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.tags,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:e.name,class:"tag",onClick:t[8]||(t[8]=(...e)=>s.addTag&&s.addTag(...e))},"#"+Object(o.toDisplayString)(e),1))),128))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",Yr,[Object(o.createVNode)(u,{action:"/api/file/upload","list-type":"picture-card",ref:"upload",name:"files",headers:{"X-CSRF-TOKEN":e.csrf_token},"file-list":c.uploadFileList,"before-upload":s.handleBeforeFileUpload,"http-request":s.handleFileUpload,"on-success":s.handleFileUploadSuccess,"on-preview":s.handlePictureCardPreview,"before-remove":e.beforeFileRemove,multiple:!0},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(p,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(d)]),_:1})]),file:Object(o.withCtx)(({file:e})=>[Object(o.createElementVNode)("div",Qr,[Object(o.createElementVNode)("img",{class:"el-upload-list__item-thumbnail","object-fit":"cover",src:e.url,alt:"",onClick:t=>s.handlePictureCardPreview(e)},null,8,Kr),Object(o.createElementVNode)("img",{src:"/img/icon_image_delete.svg",class:"image-delete",onClick:t=>s.removeFile(e,c.fileList)},null,8,Jr)])]),_:1},8,["headers","file-list","before-upload","http-request","on-success","on-preview","before-remove"])])])]),Object(o.createVNode)(m,{modelValue:c.show_drawer,"onUpdate:modelValue":t[11]||(t[11]=e=>c.show_drawer=e),direction:"btt","with-header":!1,"custom-class":"custom_drawer",size:"100%"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Xr,[ec,Object(o.createElementVNode)("img",{src:"/img/icon_close.svg",class:"close",onClick:t[9]||(t[9]=(...e)=>s.closeDrawer&&s.closeDrawer(...e))},null,8,tc)]),Object(o.createElementVNode)("div",ac,[Object(o.createElementVNode)("div",oc,[rc,Object(o.createElementVNode)("a",{class:"btn btn-primary submit",onClick:t[10
1]||(t[10]=(...e)=>s.submitTag&&s.submitTag(...e))},"宿")]),cc,c.recommend_tags?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:Object(o.normalizeClass)(["paper_tags",{limit:c.limit_recommend_tags}])},[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.recommend_tags,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:e,class:Object(o.normalizeClass)([{selected:c.tags.indexOf(e.name)>=0},"tag"]),onClick:t=>s.addRecommendTag(e)},"#"+Object(o.toDisplayString)(e.name)+" "+Object(o.toDisplayString)(e.count),11,sc))),128))],2)):Object(o.createCommentVNode)("",!0),e.show_name_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",nc)):Object(o.createCommentVNode)("",!0)])]),_:1},8,["modelValue"]),Object(o.createVNode)(O,{"custom-class":"addLinkDialog",top:"300px",modelValue:c.showLinkModal,"onUpdate:modelValue":t[12]||(t[12]=e=>c.showLinkModal=e),title:"",width:"270px","align-center":""},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(g,{handleOk:s.addLink,handleCancel:s.hideAddLink,ref:"addLink"},null,8,["handleOk","handleCancel"])]),_:1},8,["modelValue"])],64)}],["__scopeId","data-v-4742b5f3"]]),jc=a("b175");a("fb74");const Cc=e=>(Object(o.pushScopeId)("data-v-3ff6960a"),e=e(),Object(o.popScopeId)(),e),fc={key:0,class:"header"},vc={key:0,class:"user"},wc=["src"],Vc={class:"info"},kc={class:"name_container"},yc={class:"name"},_c={key:0,class:"pin_label"},Ec={key:1,class:"free_label"},Nc={class:"date"},Bc={key:0},Hc={key:1,class:"audio-icon"},xc=Object(o.createTextVNode)(" · "),Mc={key:1,class:"user"},Lc=["src"],Sc={class:"info"},Tc={class:"name_container"},Ac={class:"name"},Pc={key:0,class:"pin_label"},Dc={key:1,class:"free_label"},Ic={class:"date"},$c=["src"],Zc=Object(o.createTextVNode)("置顶"),Rc=Object(o.createTextVNode)("åæ¶ç½®é¡¶"),Uc=Object(o.createTextVNode)("çææµ·æ¥"),Fc=Object(o.createTextVNode)("å¤å¶é¾æ¥"),zc=Object(o.createTextVNode)("ç¼è¾"),qc=Object(o.createTextVNode)("å é¤"),Wc=Object(o.createTextVNode)("åæ¶æ¶è"),Gc={class:"user"},Yc=["src"],Qc=Cc(()=>Object(o.createElementVNode)("svg",{width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.726562 7.06L3.7799 4L0.726562 0.94L1.66656 0L5.66656 4L1.66656 8L0.726562 7.06Z",fill:"#64A1BC"})],-1)),Kc={class:"info"},Jc={class:"date"},Xc=["innerHTML"],es=["innerHTML"],ts=["innerHTML"],as={class:"text"},os={class:"info"},rs=["innerHTML"],cs=["innerHTML"],ss=["innerHTML"],ns={key:0,class:"stat"},is={key:0},ls={key:1},ds={key:2},ps={key:1,class:"stat"},us={key:0,class:"img"},ms=Cc(()=>Object(o.createElementVNode)("span",{class:"empty-box"},null,-1)),hs={key:7,class:"actions",id:"comment"},bs={class:"tags"},gs=["onClick"],Os={key:8,class:"stat",id:"comment"},js={key:0},Cs={key:1},fs={key:2},vs={key:9,class:"stat"},ws={key:0},Vs={key:1};const ks=a("5292");var ys={name:"Post",props:{post:{type:Object,default:()=>{}},paper:{type:Object,default:()=>{}},is_folder_props:{type:Boolean,default:()=>!1},is_hide:{type:Boolean,default:()=>!1},isSubPost:{type:Boolean,default:()=>!1},isFav:{type:Boolean,default:()=>!1},keyword:{type:String,default:()=>""}},components:{PostShareCard:rt.a,LightFeedback:ht,ElImage:jc.a,FileSignal:xr.a},data(){return{show_post_share_card:!1,is_folder:this.is_folder_props,contentHeight:0,titleHeight:0,titleLine:0,success:!1,isMobile:this.$store.state.isMobile||window.innerWidth<=1020}},computed:{calcWidth(){return this.isMobile?window.innerWidth>390?"390px":"90vw":"390px"},created_date(){return ks(this.post.created_at).format("YYYY/MM/DD HH:mm:ss")},parsed_content(){let e=this.post.content?this.post.content:"";if("article"!=this.paper.renderType||this.keyword){if("list"==this.paper.renderType||this.keyword)if(e=e.replace(/<[^>]*>/g,""),this.keyword){let t=new RegExp(this.keyword,"g"),a=e.match(t);if(a){let t=e.indexOf(a[0]);t>6&&(e="..."+e.substring(t-6))}e=e.substring(0,200),e=e.replace(new RegExp(this.keyword,"g"),'<span class="keyword">'+this.keyword+"</span>")}else e=e.substring(0,200)}else{const t=[];e=e.replace(/<pre[\s\S]*?<\/pre>/gi,e=>{const a=`__CODE_BLOCK_${t.length}__`;return t.push(e),a}),e=Object(ye.b)(e),e=Object(ye.e)(e),t.forEach((t,a)=>{e=e.replace(`__CODE_BLOCK_${a}__`,t)})}return e},subscription_expired_days(){return this.paper.subscription?ks(this.paper.subscription.expired_at).diff(ks(),"seconds")/86400:-1},hasAudio(){return this.post.content.includes("<audio src=")},articleFontSize(){return{small:"14px",default:"16px",large:"18px"}[this.$store.state.app.fontSize]||"16px"}},setup(){const{trackEvent:e}=Hr(),{mountAudioPlayers:t}=Ra(),{attachCodeCopyButtons:a}=Ka();return{trackEvent:e,mountAudioPlayers:t,attachCodeCopyButtons:a}},methods:{jumpToColumn(){this.$router.push({name:"Paper",params:{slug:this.paper.slug}})},parsed_title(e){let t=e;if(this.keyword){let e=new RegExp(this.keyword,"g");t=t.replace(e,'<span class="keyword">'+this.keyword+"</span>")}return t},unfavoritePost(){this.$store.getters["user/is_login"]?this.$api.call("POST","/post/"+this.post.uuid+"/u
1nfav",{},e=>{console.log(e.data);const{data:{code:t,message:a}}=e;200==t?(ke.a.success(a),this.$emit("post-unFav",this.post)):ke.a.error(a)}):this.$router.push("/login")},handleCommand(e){"edit"===e?this.editPost():"delete"===e?this.deletePost():"copy"===e?this.copyUrl():"share"===e?this.openShare():"pin"===e?this.pin():"unpin"===e?this.unpin():"unFav"==e&&this.unfavoritePost()},editPost(){this.paper.writable&&this.$emit("post-edit-clicked",this.post)},deletePost(){this.paper.writable&&Ua.a.confirm("确认è¦å é¤è¿æ¡å
容åï¼","",{confirmButtonText:"å é¤",cancelButtonText:"åæ¶",type:"warning"}).then(()=>{this.$api.call("DELETE","/post/"+this.post.uuid,{},e=>{200==e.data.code?(Object(ke.a)({message:e.data.message,type:"success"}),this.$emit("post-deleted",this.post)):Object(ke.a)({message:e.data.message,type:"error"})})}).catch(()=>{})},handlePictureCardPreview(e){this.$emit("show-preview-image-dialog",this.post.files,this.post.files.indexOf(e),this.post)},tagClick(e){this.$emit("tag-click",e)},commentClick(){this.$emit("comment-click",this.post)},contentClick(e){if("IMG"==e.target.tagName&&!e.target.classList.contains("el-image__inner")){let t=e.target.src;return t.indexOf("!postoriginal")>-1&&(t=t.replace("!postoriginal","")),t.indexOf("!post")>-1&&(t=t.replace("!post","")),!this.paper.writable&&this.subscription_expired_days<0?void Object(ke.a)({message:"订é
䏿 忹坿¥ç大å¾",type:"info"}):void this.$viewerApi({options:{toolbar:!1,initialViewIndex:0,title:!1},images:[t]})}if("A"!==e.target.nodeName)this.$emit("content-click",this.post);else{const t=e.target.href;if(e.preventDefault?e.preventDefault():window.event.returnValue=!0,-1!==t.indexOf("xiaobot.net")){if(t.indexOf("xiaobot.net/p/")>-1){const e=t.substr(t.indexOf("xiaobot.net/p/")+14);return e.indexOf("?")>-1?window.open(t):this.$router.push({name:"Paper",params:{slug:e}})}if(t.indexOf("xiaobot.net/post/")>-1){const e=t.substr(t.indexOf("xiaobot.net/post/")+17);return this.$router.push({name:"PostPage",params:{uuid:e}})}(t.indexOf("help.xiaobot.net")>-1||"https://xiaobot.net/home.html"==t)&&window.open(t)}else window.open(t)}},copyUrl(){let{toClipboard:e}=za()(),t=Object(ye.c)()+"/post/"+this.post.uuid;const a=this.$store.state.user.user.uuid;a&&(t=t+"?refer="+a),e(t),Object(ke.a)({message:"å¤å¶æå",type:"success"})},openShare(){const e=this.$store.getters["user/is_login"]&&this.paper.writable;this.trackEvent("share_paper_post","post",{user:e?"creator":"reader"}),this.show_post_share_card=!0,this.$refs.share_post_card?this.$refs.share_post_card.setPost(this.post,this.paper):setTimeout(()=>{this.openShare()},500)},hideDialog(){this.$refs.dropdown&&(this.$refs.dropdown.visible=!1)},expand(){this.is_folder=!1},pin(){let e=this;this.$api.call("POST","/paper/"+this.paper.slug+"/post/"+this.post.uuid+"/pin/",{},t=>{200==t.data.code?(Object(ke.a)({message:t.data.message,type:"success"}),e.post.pinned=!0,this.$emit("pin-edited",e.post)):Object(ke.a)({message:t.data.message,type:"error"})})},unpin(){let e=this;this.$api.call("POST","/paper/"+this.paper.slug+"/post/"+this.post.uuid+"/unpin/",{},t=>{200==t.data.code?(Object(ke.a)({message:t.data.message,type:"success"}),e.post.pinned=!1,this.$emit("pin-edited",e.post)):Object(ke.a)({message:t.data.message,type:"error"})})},doAction(e){this.$api.call("POST","/post/"+this.post.uuid+"/"+e,{},()=>{})},likePost(){if(!this.paper.writable&&this.subscription_expired_days<0)return void Object(ke.a)({message:"订é
䏿 åæ¹å¯åé¦",type:"info"});this.doAction("like");const{post:e}=this;e.has_liked=!0,e.likers.unshift(this.$store.state.user.user)},unlikePost(){const{post:e}=this;this.doAction("unlike"),e.has_liked=!1,e.likers=e.likers.filter(e=>e.id!=this.$store.state.user.user.id)},loadSuccess(){this.success=!0}},mounted(){this.mountAudioPlayers(this.$el),"Home"!=this.$route.name&&"paper"!=this.$route.name||this.$nextTick(()=>{if(this.$refs.content&&(this.contentHeight=this.$refs.content.clientHeight,this.$refs.title)){const e=+window.getComputedStyle(this.$refs.title).lineHeight.match(/\d+\.*\d+/g)[0];this.titleHeight=this.$refs.title.clientHeight,this.titleLine=4-this.$refs.title.clientHeight/e}}),this.attachCodeCopyButtons(this.$el)},updated(){this.$nextTick(()=>{this.mountAudioPlayers(this.$el),this.attachCodeCopyButtons(this.$el)})}};a("8d8f"),a("044a"),a("a368");var _s=j()(ys,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("FileSignal"),i=bt.b,l=bt.c,d=bt.a,p=jc.a,u=ht,m=rt.a,b=h.a,g=Object(o.resolveDirective)("highlight");return a.is_hide?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:Object(o.normalizeClass)(["post",{"paper-article":"article"==a.paper.renderType&&!a.keyword,"paper-list":"article"!==a.paper.renderType||a.keyword,forbidd:!a.paper.writable&&!a.paper.copyable}])},[a.paper.subscribeType?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"header subscribePost",onClick:t[0]||(t[0]=(...e)=>s.jumpToColumn&&s.jumpToColumn(...e))},[Object(o.createElementVNode)("div",Gc,[Object(o.createElementVNode)("img",{src:a.paper.avatar_url,class:"avatar"},null,8,Yc),Object(o.createElementVNode)("span",null,[Object(o.createTextVNode)(Object(o.toDisplayString)(a.paper.n
1ame)+" ",1),Qc])]),Object(o.createElementVNode)("div",Kc,[Object(o.createElementVNode)("div",Jc,Object(o.toDisplayString)(s.created_date),1)])])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",fc,["article"!=a.paper.renderType||a.keyword?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Mc,[Object(o.createElementVNode)("img",{src:a.paper.creator.full_avatar_url,class:"avatar"},null,8,Lc),Object(o.createElementVNode)("div",Sc,[Object(o.createElementVNode)("div",Tc,[Object(o.createElementVNode)("span",Ac,Object(o.toDisplayString)(a.paper.creator.nickname),1),a.post.pinned?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Pc,"置顶")):Object(o.createCommentVNode)("",!0),a.post.free?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Dc,"å
è´¹")):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Ic,Object(o.toDisplayString)(s.created_date),1)])])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",vc,[Object(o.createElementVNode)("img",{src:a.paper.creator.full_avatar_url,class:"avatar"},null,8,wc),Object(o.createElementVNode)("div",Vc,[Object(o.createElementVNode)("div",kc,[Object(o.createElementVNode)("span",yc,Object(o.toDisplayString)(a.paper.creator.nickname),1),a.post.pinned?(Object(o.openBlock)(),Object(o.createElementBlock)("span",_c,"置顶")):Object(o.createCommentVNode)("",!0),a.post.free?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Ec,"å
费")):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Nc,[Object(o.createTextVNode)(Object(o.toDisplayString)(s.created_date)+" ",1),a.post.ip_location?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Bc," · "+Object(o.toDisplayString)(a.post.ip_location),1)):Object(o.createCommentVNode)("",!0),s.hasAudio?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Hc,[xc,Object(o.createVNode)(n,{size:"12"})])):Object(o.createCommentVNode)("",!0)])])])),Object(o.createVNode)(d,{ref:"dropdown",trigger:"click",onCommand:s.handleCommand},{dropdown:Object(o.withCtx)(()=>[Object(o.createVNode)(l,null,{default:Object(o.withCtx)(()=>[a.paper.writable&&!a.post.pinned?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:0,command:"pin"},{default:Object(o.withCtx)(()=>[Zc]),_:1})):Object(o.createCommentVNode)("",!0),a.paper.writable&&a.post.pinned?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:1,command:"unpin"},{default:Object(o.withCtx)(()=>[Rc]),_:1})):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(i,{command:"share"},{default:Object(o.withCtx)(()=>[Uc]),_:1}),Object(o.createVNode)(i,{command:"copy"},{default:Object(o.withCtx)(()=>[Fc]),_:1}),a.paper.writable?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:2,command:"edit"},{default:Object(o.withCtx)(()=>[zc]),_:1})):Object(o.createCommentVNode)("",!0),a.paper.writable?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:3,command:"delete"},{default:Object(o.withCtx)(()=>[qc]),_:1})):Object(o.createCommentVNode)("",!0),a.isFav?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:4,command:"unFav"},{default:Object(o.withCtx)(()=>[Wc]),_:1})):Object(o.createCommentVNode)("",!0)]),_:1})]),default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("img",{src:"/img/icon_more.svg",class:"more"},null,8,$c)]),_:1},8,["onCommand"])])),a.post&&a.post.pinned&&"article"==a.paper.renderType&&!a.keyword?(Object(o.openBlock)(),Object(o.createElementBlock)("h1",{key:2,class:"title",onClick:t[1]||(t[1]=(...e)=>s.contentClick&&s.contentClick(...e)),innerHTML:a.post.title?a.post.title:s.parsed_content.slice(0,15)+"..."},null,8,Xc)):Object(o.createCommentVNode)("",!0),!a.post||a.post.pinned||"article"!=a.paper.renderType||a.keyword?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("h1",{key:3,class:"title",onClick:t[2]||(t[2]=(...e)=>s.contentClick&&s.contentClick(...e)),innerHTML:a.post.title},null,8,es)),"list"==a.paper.renderType||a.post.pinned||a.keyword?Object(o.createCommentVNode)("",!0):Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:4,class:"content post-content",innerHTML:s.parsed_content,onClick:t[3]||(t[3]=(...e)=>s.contentClick&&s.contentClick(...e)),style:Object(o.normalizeStyle)([a.post.title?"":"margin-top:10px",{fontSize:s.articleFontSize}])},null,12,ts)),[[g]]),"list"==a.paper.renderType||a.keyword?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:5,class:"wrap",onClick:t[5]||(t[5]=(...e)=>s.contentClick&&s.contentClick(...e))},[Object(o.createElementVNode)("div",as,[Object(o.createElementVNode)("div",os,[a.post&&a.post.title?(Object(o.openBlock)(),Object(o.createElementBlock)("h1",{key:0,class:"title",innerHTML:s.parsed_title(a.post.title),ref:"title"},null,8,rs)):(Object(o.openBlock)(),Object(o.createElementBlock)("h1",{key:1,class:"title",onClick:t[4]||(t[4]=(...e)=>s.contentClick&&s.contentClick(...e)),innerHTML:s.parsed_title(s.parsed_content.slice(0,15)+"..."),ref:"title"}
1,null,8,cs)),!a.post.pinned||a.keyword?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:2,class:"content",innerHTML:s.parsed_content,ref:"content",style:Object(o.normalizeStyle)([{"margin-top":a.post.title?"":"10px","-webkit-line-clamp":c.titleLine?c.titleLine:4,height:c.titleLine?26*c.titleLine-2+"px":""},{"line-height":"26px"}])},null,12,ss)):Object(o.createCommentVNode)("",!0)]),!a.isFav&&!a.paper.subscribeType&&a.post.likers&&a.post.likers.length||!a.isFav&&!a.paper.subscribeType&&a.post.comment_count?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ns,[a.post.likers&&a.post.likers.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",is,Object(o.toDisplayString)(a.post.likers.length)+" æå¯å",1)):Object(o.createCommentVNode)("",!0),a.post.likers&&a.post.likers.length>0&&a.post.comment_count?(Object(o.openBlock)(),Object(o.createElementBlock)("span",ls," · ")):Object(o.createCommentVNode)("",!0),a.post.comment_count?(Object(o.openBlock)(),Object(o.createElementBlock)("span",ds,Object(o.toDisplayString)(a.post.comment_count)+" çè¨",1)):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),a.isFav?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ps,[Object(o.createElementVNode)("span",null,"æ¥æºï¼"+Object(o.toDisplayString)(a.paper.name),1)])):Object(o.createCommentVNode)("",!0)]),a.post.files&&a.post.files.length&&!a.post.pinned||a.post.files&&a.post.files.length&&a.keyword?(Object(o.openBlock)(),Object(o.createElementBlock)("div",us,[ms,Object(o.createVNode)(p,{src:a.post.files[0].thumbnail_url,lazy:"",onLoad:s.loadSuccess,class:Object(o.normalizeClass)(c.success?"success":"")},null,8,["src","onLoad","class"])])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),a.post.pinned||"article"!=a.paper.renderType||a.keyword?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(u,{key:6,likeFun:s.likePost,unLikeFun:s.unlikePost,likers:a.post.likers,isLike:a.post.has_liked},null,8,["likeFun","unLikeFun","likers","isLike"])),"article"!=a.paper.renderType||a.post.pinned||a.keyword?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",hs,[Object(o.createElementVNode)("div",bs,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(a.post.tag_names,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:e,class:"post_tag",onClick:t=>s.tagClick(e)},"#"+Object(o.toDisplayString)(e)+" ",9,gs))),128))]),a.post.comment_count>0||a.paper.commentable>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"comment",onClick:t[6]||(t[6]=(...e)=>s.commentClick&&s.commentClick(...e))},Object(o.toDisplayString)(a.post.comment_count>0?a.post.comment_count:"")+" çè¨ ",1)):Object(o.createCommentVNode)("",!0)])),"article"==a.paper.renderType&&a.post.pinned&&!a.keyword?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Os,[a.post.likers&&a.post.likers.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",js,Object(o.toDisplayString)(a.post.likers.length)+" æå¯å",1)):Object(o.createCommentVNode)("",!0),a.post.likers&&a.post.likers.length>0&&a.post.comment_count?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Cs," · ")):Object(o.createCommentVNode)("",!0),a.post.comment_count?(Object(o.openBlock)(),Object(o.createElementBlock)("span",fs,Object(o.toDisplayString)(a.post.comment_count)+" çè¨",1)):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),a.paper.subscribeType?(Object(o.openBlock)(),Object(o.createElementBlock)("div",vs,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(a.paper.creator.nickname),1),a.post.likers&&a.post.likers.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",ws," · "+Object(o.toDisplayString)(a.post.likers.length)+" æå¯å",1)):Object(o.createCommentVNode)("",!0),a.post.comment_count?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Vs," · "+Object(o.toDisplayString)(a.post.comment_count)+" çè¨",1)):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(b,{title:"çæå享å¡ç",modelValue:c.show_post_share_card,"onUpdate:modelValue":t[7]||(t[7]=e=>c.show_post_share_card=e),"custom-class":"share-dialog","destroy-on-close":!0,width:s.calcWidth},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(m,{ref:"share_post_card"},null,512)]),_:1}
1,8,["modelValue","width"])],2))}],["__scopeId","data-v-3ff6960a"]]);const Es=e=>(Object(o.pushScopeId)("data-v-2ed4e354"),e=e(),Object(o.popScopeId)(),e),Ns={key:1,class:"page-initial-loading"},Bs=[Es(()=>Object(o.createElementVNode)("div",{class:"loader-spinner"},null,-1)),Es(()=>Object(o.createElementVNode)("p",null,"å è½½ä¸...",-1))],Hs={key:2,class:"paper",id:"paperContent"},xs={key:0,id:"nav_sep"},Ms={key:1,class:"paper-info-tip"},Ls={class:"header paper_info"},Ss={class:"avatar-wrap"},Ts=["src"],As={key:0,class:"editor-pick-badge"},Ps={class:"paper_info_content"},Ds={class:"paper_title"},Is={class:"name"},$s={class:"paper_user"},Zs=["src"],Rs={class:"intro"},Us={key:0,class:"moreIntro"},Fs={class:"stats"},zs={class:"stat"},qs=Es(()=>Object(o.createElementVNode)("div",{class:"type"},"读è
",-1)),Ws=Es(()=>Object(o.createElementVNode)("div",{class:"type"},"å·²è´ä¹°",-1)),Gs=Es(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),Ys={class:"stat"},Qs=Es(()=>Object(o.createElementVNode)("div",{class:"type"},"åæ°",-1)),Ks=["innerHTML"],Js={class:"type"},Xs=Es(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),en={class:"stat"},tn=Es(()=>Object(o.createElementVNode)("div",{class:"type"},"䏿 ç±»å",-1)),an={class:"num"},on={key:0,width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rn=["fill"],cn={key:1,width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sn=["fill"],nn={class:"type"},ln=Es(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),dn={class:"stat"},pn=Es(()=>Object(o.createElementVNode)("div",{class:"type"},"履约æ¿è¯º",-1)),un={class:"num"},mn={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hn=["fill"],bn=Es(()=>Object(o.createElementVNode)("div",{class:"type"},"24h å¯é",-1)),gn={key:1,class:"tag-wrap"},On=["fill"],jn=["fill"],Cn=["id"],fn=["stop-color"],vn=["stop-color"],wn={style:{overflow:"hidden"}},Vn=[Es(()=>Object(o.createElementVNode)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.821289 5.7793C0.821289 5.02734 0.962565 4.32324 1.24512 3.66699C1.52767 3.00618 1.9196 2.42513 2.4209 1.92383C2.9222 1.42253 3.50098 1.0306 4.15723 0.748047C4.81803 0.465495 5.52441 0.324219 6.27637 0.324219C7.02832 0.324219 7.73242 0.465495 8.38867 0.748047C9.04948 1.0306 9.63053 1.42253 10.1318 1.92383C10.6331 2.42513 11.0251 3.00618 11.3076 3.66699C11.5902 4.32324 11.7314 5.02734 11.7314 5.7793C11.7314 6.40365 11.6312 6.99609 11.4307 7.55664C11.2347 8.11719 10.9613 8.62533 10.6104 9.08105L13.9531 12.4443C14.026 12.5173 14.0807 12.6016 14.1172 12.6973C14.1582 12.793 14.1787 12.8955 14.1787 13.0049C14.1787 13.1553 14.1445 13.292 14.0762 13.415C14.0124 13.5381 13.9212 13.6338 13.8027 13.7021C13.6842 13.7751 13.5475 13.8115 13.3926 13.8115C13.2832 13.8115 13.1784 13.791 13.0781 13.75C12.9824 13.7135 12.8936 13.6566 12.8115 13.5791L9.44824 10.209C9.00163 10.528 8.50944 10.7786 7.97168 10.9609C7.43392 11.1432 6.86882 11.2344 6.27637 11.2344C5.52441 11.2344 4.81803 11.0931 4.15723 10.8105C3.50098 10.528 2.9222 10.1361 2.4209 9.63477C1.9196 9.13346 1.52767 8.55469 1.24512 7.89844C0.962565 7.23763 0.821289 6.53125 0.821289 5.7793ZM1.99023 5.7793C1.99023 6.37174 2.09961 6.92773 2.31836 7.44727C2.54167 7.96224 2.84928 8.41569 3.24121 8.80762C3.6377 9.19954 4.09342 9.50716 4.6084 9.73047C5.12793 9.95378 5.68392 10.0654 6.27637 10.0654C6.86882 10.0654 7.42253 9.95378 7.9375 9.73047C8.45703 9.50716 8.91276 9.19954 9.30469 8.80762C9.69661 8.41569 10.0042 7.96224 10.2275 7.44727C10.4508 6.92773 10.5625 6.37174 10.5625 5.7793C10.5625 5.18685 10.4508 4.63314 10.2275 4.11816C10.0042 3.59863 9.69661 3.1429 9.30469 2.75098C8.91276 2.35449 8.45703 2.04688 7.9375 1.82812C7.42253 1.60482 6.86882 1.49316 6.27637 1.49316C5.68392 1.49316 5.12793 1.60482 4.6084 1.82812C4.09342 2.04688 3.6377 2.35449 3.24121 2.75098C2.84928 3.1429 2.54167 3.59863 2.31836 4.11816C2.09961 4.63314 1.99023 5.18685 1.99023 5.7793Z",fill:"#9D9A98"})],-1))],kn=["onClick"],yn={key:1,class:"searchBox"},_n=Es(()=>Object(o.createElementVNode)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.820312 5.7793C0.820312 5.02734 0.961589 4.32324 1.24414 3.66699C1.52669 3.00618 1.91862 2.42513 2.41992 1.92383C2.92122 1.42253 3.5 1.0306 4.15625 0.748047C4.81706 0.465495 5.52344 0.324219 6.27539 0.324219C7.02734 0.324219 7.73145 0.465495 8.3877 0.748047C9.0485 1.0306 9.62956 1.42253 10.1309 1.92383C10.6322 2.42513 11.0241 3.00618 11.3066 3.66699C11.5892 4.32324 11.7305 5.02734 11.7305 5.7793C11.7305 6.40365 11.6302 6.99609 11.4297 7.55664C11.2337 8.11719 10.9603 8.62533 10.6094 9.08105L13.9521 12.4443C14.0251 12.5173 14.0798 12.6016 14.1162 12.6973C14.1572 12.793 14.1777 12.8955 14.1777 13.0049C14.1777 13.1553 14.1436 13.292 14.0752 13.415C14.0114 13.5381 13.9202 13.6338 13.8018 13.7021C13.6833 13.7751 13.5465 13.8115 13.3916 13.8115C13.2822 13.8115 13.1774 13.791 13.0771 13.75C12.9814 13.7135 12.8926 13.6566 12.8105 13.5791L9.44727 10.209C9.00065 10.528 8.50846 10.7786 7.9707 10.9609C7.43294 11.1432 6.86784 11.2344 6.27539 11.2344C5.52344 11.2344 4.81706 11.0931 4.15625 10.8105C3.5 10.528 2.92122 10.1361 2.41992 9.63477C1.91862 9.13346 1.52669 8.55469 1.24414 7.89844C0.961589 7.23763 0.820312 6.53125 0.820312 5.7793ZM1.98926 5.7793C1.98926 6.37174 2.09863 6.92773 2.31738 7.44727C2.54069 7.96224 2.84831 8.41569 3.24023 8.80762C3.63672 9.19954 4.09245 9.50716 4.60742 9.73047C5.12695 9.95378 5.68294 10.0654 6.27539 10.
10654C6.86784 10.0654 7.42155 9.95378 7.93652 9.73047C8.45605 9.50716 8.91178 9.19954 9.30371 8.80762C9.69564 8.41569 10.0033 7.96224 10.2266 7.44727C10.4499 6.92773 10.5615 6.37174 10.5615 5.7793C10.5615 5.18685 10.4499 4.63314 10.2266 4.11816C10.0033 3.59863 9.69564 3.1429 9.30371 2.75098C8.91178 2.35449 8.45605 2.04688 7.93652 1.82812C7.42155 1.60482 6.86784 1.49316 6.27539 1.49316C5.68294 1.49316 5.12695 1.60482 4.60742 1.82812C4.09245 2.04688 3.63672 2.35449 3.24023 2.75098C2.84831 3.1429 2.54069 3.59863 2.31738 4.11816C2.09863 4.63314 1.98926 5.18685 1.98926 5.7793Z",fill:"#9D9A98"})],-1)),En=["fill"],Nn=["fill"],Bn=["id"],Hn=["stop-color"],xn=["stop-color"],Mn={key:2},Ln={key:0,class:"tags",style:{"overflow-x":"auto",position:"relative",margin:"30px auto"}},Sn=[Es(()=>Object(o.createElementVNode)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.820312 5.7793C0.820312 5.02734 0.961589 4.32324 1.24414 3.66699C1.52669 3.00618 1.91862 2.42513 2.41992 1.92383C2.92122 1.42253 3.5 1.0306 4.15625 0.748047C4.81706 0.465495 5.52344 0.324219 6.27539 0.324219C7.02734 0.324219 7.73145 0.465495 8.3877 0.748047C9.0485 1.0306 9.62956 1.42253 10.1309 1.92383C10.6322 2.42513 11.0241 3.00618 11.3066 3.66699C11.5892 4.32324 11.7305 5.02734 11.7305 5.7793C11.7305 6.40365 11.6302 6.99609 11.4297 7.55664C11.2337 8.11719 10.9603 8.62533 10.6094 9.08105L13.9521 12.4443C14.0251 12.5173 14.0798 12.6016 14.1162 12.6973C14.1572 12.793 14.1777 12.8955 14.1777 13.0049C14.1777 13.1553 14.1436 13.292 14.0752 13.415C14.0114 13.5381 13.9202 13.6338 13.8018 13.7021C13.6833 13.7751 13.5465 13.8115 13.3916 13.8115C13.2822 13.8115 13.1774 13.791 13.0771 13.75C12.9814 13.7135 12.8926 13.6566 12.8105 13.5791L9.44727 10.209C9.00065 10.528 8.50846 10.7786 7.9707 10.9609C7.43294 11.1432 6.86784 11.2344 6.27539 11.2344C5.52344 11.2344 4.81706 11.0931 4.15625 10.8105C3.5 10.528 2.92122 10.1361 2.41992 9.63477C1.91862 9.13346 1.52669 8.55469 1.24414 7.89844C0.961589 7.23763 0.820312 6.53125 0.820312 5.7793ZM1.98926 5.7793C1.98926 6.37174 2.09863 6.92773 2.31738 7.44727C2.54069 7.96224 2.84831 8.41569 3.24023 8.80762C3.63672 9.19954 4.09245 9.50716 4.60742 9.73047C5.12695 9.95378 5.68294 10.0654 6.27539 10.0654C6.86784 10.0654 7.42155 9.95378 7.93652 9.73047C8.45605 9.50716 8.91178 9.19954 9.30371 8.80762C9.69564 8.41569 10.0033 7.96224 10.2266 7.44727C10.4499 6.92773 10.5615 6.37174 10.5615 5.7793C10.5615 5.18685 10.4499 4.63314 10.2266 4.11816C10.0033 3.59863 9.69564 3.1429 9.30371 2.75098C8.91178 2.35449 8.45605 2.04688 7.93652 1.82812C7.42155 1.60482 6.86784 1.49316 6.27539 1.49316C5.68294 1.49316 5.12695 1.60482 4.60742 1.82812C4.09245 2.04688 3.63672 2.35449 3.24023 2.75098C2.84831 3.1429 2.54069 3.59863 2.31738 4.11816C2.09863 4.63314 1.98926 5.18685 1.98926 5.7793Z",fill:"#9D9A98"})],-1))],Tn=["onClick"],An={key:1,class:"searchBox mobile-search"},Pn=Es(()=>Object(o.createElementVNode)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.820312 5.7793C0.820312 5.02734 0.961589 4.32324 1.24414 3.66699C1.52669 3.00618 1.91862 2.42513 2.41992 1.92383C2.92122 1.42253 3.5 1.0306 4.15625 0.748047C4.81706 0.465495 5.52344 0.324219 6.27539 0.324219C7.02734 0.324219 7.73145 0.465495 8.3877 0.748047C9.0485 1.0306 9.62956 1.42253 10.1309 1.92383C10.6322 2.42513 11.0241 3.00618 11.3066 3.66699C11.5892 4.32324 11.7305 5.02734 11.7305 5.7793C11.7305 6.40365 11.6302 6.99609 11.4297 7.55664C11.2337 8.11719 10.9603 8.62533 10.6094 9.08105L13.9521 12.4443C14.0251 12.5173 14.0798 12.6016 14.1162 12.6973C14.1572 12.793 14.1777 12.8955 14.1777 13.0049C14.1777 13.1553 14.1436 13.292 14.0752 13.415C14.0114 13.5381 13.9202 13.6338 13.8018 13.7021C13.6833 13.7751 13.5465 13.8115 13.3916 13.8115C13.2822 13.8115 13.1774 13.791 13.0771 13.75C12.9814 13.7135 12.8926 13.6566 12.8105 13.5791L9.44727 10.209C9.00065 10.528 8.50846 10.7786 7.9707 10.9609C7.43294 11.1432 6.86784 11.2344 6.27539 11.2344C5.52344 11.2344 4.81706 11.0931 4.15625 10.8105C3.5 10.528 2.92122 10.1361 2.41992 9.63477C1.91862 9.13346 1.52669 8.55469 1.24414 7.89844C0.961589 7.23763 0.820312 6.53125 0.820312 5.7793ZM1.98926 5.7793C1.98926 6.37174 2.09863 6.92773 2.31738 7.44727C2.54069 7.96224 2.84831 8.41569 3.24023 8.80762C3.63672 9.19954 4.09245 9.50716 4.60742 9.73047C5.12695 9.95378 5.68294 10.0654 6.27539 10.
10654C6.86784 10.0654 7.42155 9.95378 7.93652 9.73047C8.45605 9.50716 8.91178 9.19954 9.30371 8.80762C9.69564 8.41569 10.0033 7.96224 10.2266 7.44727C10.4499 6.92773 10.5615 6.37174 10.5615 5.7793C10.5615 5.18685 10.4499 4.63314 10.2266 4.11816C10.0033 3.59863 9.69564 3.1429 9.30371 2.75098C8.91178 2.35449 8.45605 2.04688 7.93652 1.82812C7.42155 1.60482 6.86784 1.49316 6.27539 1.49316C5.68294 1.49316 5.12695 1.60482 4.60742 1.82812C4.09245 2.04688 3.63672 2.35449 3.24023 2.75098C2.84831 3.1429 2.54069 3.59863 2.31738 4.11816C2.09863 4.63314 1.98926 5.18685 1.98926 5.7793Z",fill:"#9D9A98"})],-1)),Dn={class:"posts",id:"posts"},In={key:1,class:"footer"},$n=[Es(()=>Object(o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Object(o.createElementVNode)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})],-1)),Es(()=>Object(o.createElementVNode)("div",null,"å è½½ä¸",-1))],Zn=["innerHTML"],Rn={key:4,class:"page_footer"},Un=[Object(o.createTextVNode)(" ç¹å³ä¸è§è®¾ç½® "),Es(()=>Object(o.createElementVNode)("br",null,null,-1)),Object(o.createTextVNode)(" ç¹ä¸æ¹åå¸å¼å§åä½ ")],Fn={key:5,class:"page_footer"},zn=[Object(o.createTextVNode)(" ä½è
è¿å¨åå¤å
å®¹ä¸ "),Es(()=>Object(o.createElementVNode)("br",null,null,-1)),Object(o.createTextVNode)(" 请ç¨å忥~ ")],qn={key:6,class:"page_footer"},Wn=[Es(()=>Object(o.createElementVNode)("p",{style:{"font-size":"28px","margin-bottom":"10px"}},"ð¥¹",-1)),Es(()=>Object(o.createElementVNode)("p",null,"没æç¸å
³å
容",-1))],Gn={key:7,class:"page_footer",style:{"margin-top":"-122px"}},Yn={key:8,class:"page_footer"},Qn={key:9,class:"page_footer"},Kn={key:10,id:"bottom_fixed"},Jn={class:"paper_bottom_buy"},Xn=[Es(()=>Object(o.createElementVNode)("svg",{style:{display:"block",height:"25px"},width:"17",height:"4",viewBox:"0 0 17 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.2168 3.71973C1.89453 3.71973 1.60449 3.64355 1.34668 3.49121C1.08887 3.33301 0.880859 3.125 0.722656 2.86719C0.564453 2.60352 0.485352 2.31348 0.485352 1.99707C0.485352 1.6748 0.564453 1.38477 0.722656 1.12695C0.880859 0.869141 1.08887 0.664062 1.34668 0.511719C1.60449 0.353516 1.89453 0.274414 2.2168 0.274414C2.5332 0.274414 2.82031 0.353516 3.07812 0.511719C3.3418 0.664062 3.5498 0.869141 3.70215 1.12695C3.86035 1.38477 3.93945 1.6748 3.93945 1.99707C3.93945 2.31348 3.86035 2.60352 3.70215 2.86719C3.5498 3.125 3.3418 3.33301 3.07812 3.49121C2.82031 3.64355 2.5332 3.71973 2.2168 3.71973ZM8.44824 3.71973C8.12598 3.71973 7.83301 3.64355 7.56934 3.49121C7.31152 3.33301 7.10352 3.125 6.94531 2.86719C6.79297 2.60352 6.7168 2.31348 6.7168 1.99707C6.7168 1.6748 6.79297 1.38477 6.94531 1.12695C7.10352 0.869141 7.31152 0.664062 7.56934 0.511719C7.83301 0.353516 8.12598 0.274414 8.44824 0.274414C8.76465 0.274414 9.05176 0.353516 9.30957 0.511719C9.57324 0.664062 9.78125 0.869141 9.93359 1.12695C10.0918 1.38477 10.1709 1.6748 10.1709 1.99707C10.1709 2.31348 10.0918 2.60352 9.93359 2.86719C9.78125 3.125 9.57324 3.33301 9.30957 3.49121C9.05176 3.64355 8.76465 3.71973 8.44824 3.71973ZM14.6797 3.71973C14.3574 3.71973 14.0645 3.64355 13.8008 3.49121C13.543 3.33301 13.335 3.125 13.1768 2.86719C13.0244 2.60352 12.9482 2.31348 12.9482 1.99707C12.9482 1.6748 13.0244 1.38477 13.1768 1.12695C13.335 0.869141 13.543 0.664062 13.8008 0.511719C14.0645 0.353516 14.3574 0.274414 14.6797 0.274414C14.9961 0.274414 15.2832 0.353516 15.541 0.511719C15.8047 0.664062 16.0127 0.869141 16.165 1.12695C16.3232 1.38477 16.4023 1.6748 16.4023 1.99707C16.4023 2.3
11348 16.3232 2.60352 16.165 2.86719C16.0127 3.125 15.8047 3.33301 15.541 3.49121C15.2832 3.64355 14.9961 3.71973 14.6797 3.71973Z",fill:"white"})],-1))],ei={key:11,id:"bottom_fixed",style:{"padding-left":"10px","padding-right":"10px"}},ti={key:0,class:"btn btn-primary btn-large btn-disabled"},ai={key:1,class:"btn btn-primary btn-large btn-disabled"},oi={key:0},ri={key:0,style:{"font-size":"12px","margin-bottom":"16px",display:"block"}},ci={class:"paper_bottom_buy"},si=[Es(()=>Object(o.createElementVNode)("span",null,"ç«å³è´ä¹°",-1))],ni={key:0,class:"has_refer",width:"32",height:"14",viewBox:"0 0 32 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ii=[Es(()=>Object(o.createElementVNode)("rect",{width:"32",height:"14",rx:"2",fill:"#DAA520"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M4.87109 10.1055V7.87109H7.63281V11.0898H5.88672C5.56641 11.0898 5.31641 11.0052 5.13672 10.8359C4.95964 10.6667 4.87109 10.4232 4.87109 10.1055ZM8.36719 11.0898V7.87109H11.1289V10.1055C11.1289 10.4232 11.0391 10.6667 10.8594 10.8359C10.6797 11.0052 10.431 11.0898 10.1133 11.0898H8.36719ZM4.36719 6.78906V5.99219C4.36719 5.7526 4.43359 5.57552 4.56641 5.46094C4.69922 5.34635 4.88151 5.28906 5.11328 5.28906H5.79688C5.69271 5.1849 5.60938 5.0638 5.54688 4.92578C5.48698 4.78516 5.45703 4.63281 5.45703 4.46875C5.45703 4.22396 5.51693 4.00521 5.63672 3.8125C5.75651 3.61979 5.91667 3.46875 6.11719 3.35938C6.32031 3.25 6.54427 3.19531 6.78906 3.19531C7.06771 3.19531 7.31641 3.27214 7.53516 3.42578C7.75651 3.57682 7.91146 3.79167 8 4.07031C8.09115 3.79167 8.24609 3.57682 8.46484 3.42578C8.68359 3.27214 8.93229 3.19531 9.21094 3.19531C9.45833 3.19531 9.68229 3.25 9.88281 3.35938C10.0833 3.46875 10.2435 3.61979 10.3633 3.8125C10.4831 4.00521 10.543 4.22396 10.543 4.46875C10.543 4.63281 10.5117 4.78516 10.4492 4.92578C10.3893 5.0638 10.3073 5.1849 10.2031 5.28906H10.8867C11.1237 5.28906 11.3073 5.34635 11.4375 5.46094C11.5677 5.57552 11.6328 5.7526 11.6328 5.99219V6.78906C11.6328 6.9974 11.5755 7.15234 11.4609 7.25391C11.3464 7.35286 11.1849 7.40234 10.9766 7.40234H8.36719V5.28906H8.91406C9.19531 5.28906 9.41276 5.21745 9.56641 5.07422C9.72005 4.92839 9.79688 4.75521 9.79688 4.55469C9.79688 4.35938 9.73568 4.20573 9.61328 4.09375C9.49349 3.98177 9.33464 3.92578 9.13672 3.92578C8.92318 3.92578 8.74089 4.00391 8.58984 4.16016C8.44141 4.31641 8.36719 4.52214 8.36719 4.77734V5.28906H7.63281V4.77734C7.63281 4.52214 7.55729 4.31641 7.40625 4.16016C7.25781 4.00391 7.07812 3.92578 6.86719 3.92578C6.66667 3.92578 6.50521 3.98177 6.38281 4.09375C6.26302 4.20573 6.20312 4.35938 6.20312 4.55469C6.20312 4.75521 6.27995 4.92839 6.43359 5.07422C6.58724 5.21745 6.80469 5.28906 7.08594 5.28906H7.63281V7.40234H5.02344C4.81771 7.40234 4.65625 7.35286 4.53906 7.25391C4.42448 7.15234 4.36719 6.9974 4.36719 6.78906ZM13.0062 4.176H20.1422V5.072H13.0062V4.176ZM15.1662 7.056H18.6462V7.856H15.1662V7.056ZM14.4542 5.704H18.5022V6.544H15.4062V10.712H14.4542V5.704ZM18.3102 5.704H19.2462V9.68C19.2462 10.152 19.1582 10.416 18.8302 10.568C18.5102 10.712 18.0542 10.72 17.4062 10.72C17.3662 10.456 17.2382 10.048 17.1102 9.8C17.5262 9.824 17.9982 9.816 18.1342 9.816C18.2622 9.816 18.3102 9.776 18.3102 9.664V5.704ZM15.4862 3.2L16.4782 3.424C15.9182 5.232 14.9582 7.072 13.3982 8.16C13.2622 7.944 12.9582 7.6 12.7662 7.416C14.1902 6.48 15.0862 4.76 15.4862 3.2ZM15.1662 8.376H18.6462V9.176H15.1662V8.376ZM24.8062 3.36H25.7982V9.176C25.7982 9.632 25.8382 9.696 26.1502 9.696C26.2942 9.696 26.9182 9.696 27.0702 9.696C27.3902 9.696 27.4462 9.408 27.4942 8.28C27.7262 8.448 28.1262 8.632 28.3982 8.688C28.2862 10.096 28.0382 10.624 27.1662 10.624C26.9582 10.624 26.2062 10.624 26.0062 10.624C25.0782 10.624 24.8062 10.304 24.8062 9.168V3.36ZM20.9742 4.688H23.6302V5.56H20.9742V4.688ZM22.1822 7.424L23.1342 6.288V10.728H22.1822V7.424ZM22.1822 3.216H23.1342V5.096H22.1822V3.216ZM23.0382 6.464C23.3422 6.672 24.2862 7.52 24.5182 7.728L23.9262 8.512C23.5982 8.08 22.8942 7.304 22.5182 6.936L23.0382 6.464ZM23.3742 4.688H23.5582L23.7262 4.656L24.2622 5.008C23.6382 6.6 22.3742 8.008 21.1342 8.752C21.0542 8.496 20.8222 8.024 20.6782 7.84C21.8142 7.248 22.9182 6.064 23.3742 4.864V4.688Z",fill:"white"},null,-1))],li=Es(()=>Object(o.createElementVNode)("svg",{width:"16",height:"21",viewBox:"0 0 16 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.89551 20.1904C1.9873 20.1904 1.2959 19.9561 0.821289 19.4873C0.352539 19.0244 0.118164 18.3418 0.118164 17.4395V9.31836C0.118164 8.41602 0.352539 7.7334 0.821289 7.27051C1.2959 6.80176 1.9873 6.56738 2.89551 6.56738H5.30371V8.31641H3.02734C2.6582 8.31641 2.37402 8.41309 2.1748 8.60645C1.98145 8.7998 1.88477 9.09277 1.88477 9.48535V17.2637C1.88477 17.6562 1.98145 17.9492 2.1748 18.1426C2.37402 18.3359 2.6582 18.4326 3.02734 18.4326H12.3525C12.7217 18.4326 13.0059 18.3359 13.2051 18.1426C13.4043 17.9492 13.5039 17.6562 13.5039 17.2637V9.48535C13.5039 9.09277 13.4043 8.7998 13.2051 8.60645C13.0059 8.41309 12.7217 8.31641 12.3525 8.31641H10.0762V6.56738H12.4844C13.3984 6.56738 14.0898 6.80176 14.5586 7.27051C15.0273 7.7334 15.2617 8.41602 15.2617 9.31836V17.4395C15.2617 18.3359 15.0273 19.0186 14.5586 19.4873C14.0898 19.9561 13.3984 20.1904 12.4844 20.1904H2.89551ZM7.69434 13.4141C7.46582 13.4141 7.26953 13.335 7.10547 13.1768C6.94727 13.0127 6.86816 12.8223 6.86816 12.6055V4.30859L6.93848 3.06934L6.5166 3.61426L5.37402 4.83594C5.22754 5 5.04297 5.08203 4.82031 5.08203C4.62109 5.08203 4.45117 5.01758 4.31055 4.88867C4.16992 4.75977 4.09961 4.59277 4.09961 4.3877C4.09961 4.19434 4.17578 4.02148 4.32812 3.86914L7.06152 1.24121C7.16699 1.13574 7.26953 1.0625 7.36914 1.02148C7.47461 0.980469 7.58301 0.959961 7.69434 0.959961C7.7998 0.959961 7.90234 0.980469 8.00195 1.02148C8.10742 1.0625 8.21289 1.13574 8.31836 1.24121L11.0518 3.86914C11.1982 4.02148 11.2715 4.19434 11.2715 4.3877C11.2715 4.59277 11.2012 4.75977 11.0605 4.88867C10.9199 5.01758 10.75 5.08203 10.5508 5.08203C10.334 5.08203 10.1523 5 10.0059 4.83594L8.86328 3.61426L8.44141 3.07812L8.51172 4.30859V12.6055C8.51172 12.8223 8.42969 13.0127 8.26562 13.1768C8.10742 13.335 7.91699 13.4141 7.69434 13.4141Z",fill:"white"})],-1)),di={key:1},pi=Es(()=>Object(o.createElementVNode)("span",{style:{"font-size":"12px","margin-bottom":"10px",display:"block",color:"gray"}}," ææ¶ä¸æ¯æå¨å°ç¨åºå
è´ä¹°",-1)),ui={class:"paper_bottom_buy"},mi={key:0,class:"has_refer",width:"32",height:"14",viewBox:"0 0 32 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hi=[Es(()=>Object(o.createElementVNode)("rect",{width:"32",height:"14",rx:"2",fill:"#DAA520"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M4.87109 10.1055V7.87109H7.63281V11.0898H5.88672C5.56641 11.0898 5.31641 11.0052 5.13672 10.8359C4.95964 10.6667 4.87109 10.4232 4.87109 10.1055ZM8.36719 11.0898V7.87109H11.1289V10.1055C11.1289 10.4232 11.0391 10.6667 10.8594 10.8359C10.
16797 11.0052 10.431 11.0898 10.1133 11.0898H8.36719ZM4.36719 6.78906V5.99219C4.36719 5.7526 4.43359 5.57552 4.56641 5.46094C4.69922 5.34635 4.88151 5.28906 5.11328 5.28906H5.79688C5.69271 5.1849 5.60938 5.0638 5.54688 4.92578C5.48698 4.78516 5.45703 4.63281 5.45703 4.46875C5.45703 4.22396 5.51693 4.00521 5.63672 3.8125C5.75651 3.61979 5.91667 3.46875 6.11719 3.35938C6.32031 3.25 6.54427 3.19531 6.78906 3.19531C7.06771 3.19531 7.31641 3.27214 7.53516 3.42578C7.75651 3.57682 7.91146 3.79167 8 4.07031C8.09115 3.79167 8.24609 3.57682 8.46484 3.42578C8.68359 3.27214 8.93229 3.19531 9.21094 3.19531C9.45833 3.19531 9.68229 3.25 9.88281 3.35938C10.0833 3.46875 10.2435 3.61979 10.3633 3.8125C10.4831 4.00521 10.543 4.22396 10.543 4.46875C10.543 4.63281 10.5117 4.78516 10.4492 4.92578C10.3893 5.0638 10.3073 5.1849 10.2031 5.28906H10.8867C11.1237 5.28906 11.3073 5.34635 11.4375 5.46094C11.5677 5.57552 11.6328 5.7526 11.6328 5.99219V6.78906C11.6328 6.9974 11.5755 7.15234 11.4609 7.25391C11.3464 7.35286 11.1849 7.40234 10.9766 7.40234H8.36719V5.28906H8.91406C9.19531 5.28906 9.41276 5.21745 9.56641 5.07422C9.72005 4.92839 9.79688 4.75521 9.79688 4.55469C9.79688 4.35938 9.73568 4.20573 9.61328 4.09375C9.49349 3.98177 9.33464 3.92578 9.13672 3.92578C8.92318 3.92578 8.74089 4.00391 8.58984 4.16016C8.44141 4.31641 8.36719 4.52214 8.36719 4.77734V5.28906H7.63281V4.77734C7.63281 4.52214 7.55729 4.31641 7.40625 4.16016C7.25781 4.00391 7.07812 3.92578 6.86719 3.92578C6.66667 3.92578 6.50521 3.98177 6.38281 4.09375C6.26302 4.20573 6.20312 4.35938 6.20312 4.55469C6.20312 4.75521 6.27995 4.92839 6.43359 5.07422C6.58724 5.21745 6.80469 5.28906 7.08594 5.28906H7.63281V7.40234H5.02344C4.81771 7.40234 4.65625 7.35286 4.53906 7.25391C4.42448 7.15234 4.36719 6.9974 4.36719 6.78906ZM13.0062 4.176H20.1422V5.072H13.0062V4.176ZM15.1662 7.056H18.6462V7.856H15.1662V7.056ZM14.4542 5.704H18.5022V6.544H15.4062V10.712H14.4542V5.704ZM18.3102 5.704H19.2462V9.68C19.2462 10.152 19.1582 10.416 18.8302 10.568C18.5102 10.712 18.0542 10.72 17.4062 10.72C17.3662 10.456 17.2382 10.048 17.1102 9.8C17.5262 9.824 17.9982 9.816 18.1342 9.816C18.2622 9.816 18.3102 9.776 18.3102 9.664V5.704ZM15.4862 3.2L16.4782 3.424C15.9182 5.232 14.9582 7.072 13.3982 8.16C13.2622 7.944 12.9582 7.6 12.7662 7.416C14.1902 6.48 15.0862 4.76 15.4862 3.2ZM15.1662 8.376H18.6462V9.176H15.1662V8.376ZM24.8062 3.36H25.7982V9.176C25.7982 9.632 25.8382 9.696 26.1502 9.696C26.2942 9.696 26.9182 9.696 27.0702 9.696C27.3902 9.696 27.4462 9.408 27.4942 8.28C27.7262 8.448 28.1262 8.632 28.3982 8.688C28.2862 10.096 28.0382 10.624 27.1662 10.624C26.9582 10.624 26.2062 10.624 26.0062 10.624C25.0782 10.624 24.8062 10.304 24.8062 9.168V3.36ZM20.9742 4.688H23.6302V5.56H20.9742V4.688ZM22.1822 7.424L23.1342 6.288V10.728H22.1822V7.424ZM22.1822 3.216H23.1342V5.096H22.1822V3.216ZM23.0382 6.464C23.3422 6.672 24.2862 7.52 24.5182 7.728L23.9262 8.512C23.5982 8.08 22.8942 7.304 22.5182 6.936L23.0382 6.464ZM23.3742 4.688H23.5582L23.7262 4.656L24.2622 5.008C23.6382 6.6 22.3742 8.008 21.1342 8.752C21.0542 8.496 20.8222 8.024 20.6782 7.84C21.8142 7.248 22.9182 6.064 23.3742 4.864V4.688Z",fill:"white"},null,-1))],bi=Es(()=>Object(o.createElementVNode)("svg",{width:"16",height:"21",viewBox:"0 0 16 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.89551 20.1904C1.9873 20.1904 1.2959 19.9561 0.821289 19.4873C0.352539 19.0244 0.118164 18.3418 0.118164 17.4395V9.31836C0.118164 8.41602 0.352539 7.7334 0.821289 7.27051C1.2959 6.80176 1.9873 6.56738 2.89551 6.56738H5.30371V8.31641H3.02734C2.6582 8.31641 2.37402 8.41309 2.1748 8.60645C1.98145 8.7998 1.88477 9.09277 1.88477 9.48535V17.2637C1.88477 17.6562 1.98145 17.9492 2.1748 18.1426C2.37402 18.3359 2.6582 18.4326 3.02734 18.4326H12.3525C12.7217 18.4326 13.0059 18.3359 13.2051 18.1426C13.4043 17.9492 13.5039 17.6562 13.5039 17.2637V9.48535C13.5039 9.09277 13.4043 8.7998 13.2051 8.60645C13.0059 8.41309 12.7217 8.31641 12.3525 8.31641H10.0762V6.56738H12.4844C13.3984 6.56738 14.0898 6.80176 14.5586 7.27051C15.0273 7.7334 15.2617 8.41602 15.2617 9.31836V17.4395C15.2617 18.3359 15.0273 19.0186 14.5586 19.4873C14.0898 19.9561 13.3984 20.1904 12.4844 20.1904H2.89551ZM7.69434 13.4141C7.46582 13.4141 7.26953 13.335 7.10547 13.1768C6.94727 13.0127 6.86816 12.8223 6.86816 12.6055V4.30859L6.93848 3.06934L6.5166 3.61426L5.37402 4.83594C5.22754 5 5.04297 5.08203 4.82031 5.08203C4.62109 5.08203 4.45117 5.01758 4.31055 4.88867C4.16992 4.75977 4.09961 4.59277 4.09961 4.3877C4.09961 4.19434 4.17578 4.02148 4.32812 3.86914L7.06152 1.24121C7.16699 1.13574 7.26953 1.0625 7.36914 1.02148C7.47461 0.980469 7.58301 0.959961 7.69434 0.959961C7.7998 0.959961 7.90234 0.980469 8.00195 1.02148C8.10742 1.0625 8.21289 1.13574 8.31836 1.24121L11.0518 3.86914C11.1982 4.02148 11.2715 4.19434 11.2715 4.3877C11.2715 4.59277 11.2012 4.75977 11.0605 4.88867C10.9199 5.01758 10.75 5.08203 10.5508 5.08203C10.334 5.08203 10.1523 5 10.0059 4.83594L8.86328 3.61426L8.44141 3.07812L8.51172 4.30859V12.6055C8.51172 12.8223 8.42969 13.0127 8.26562 13.1768C8.10742 13.335 7.91699 13.4141 7.69434 13.4141Z",fill:"white"})],-1)),gi={key:0,style:{"font-size":"12px","margin-bottom":"10px",color:"gray"}},Oi={key:1,class:"paper_bottom_buy"},ji={key:0,class:"has_refer",width:"32",height:"14",viewBox:"0 0 32 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ci=[Es(()=>Object(o.createElementVNode)("rect",{width:"32",height:"14",rx:"2",fill:"#DAA520"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M4.87109 10.1055V7.87109H7.63281V11.0898H5.88672C5.56641 11.0898 5.31641 11.0052 5.13672 10.8359C4.95964 10.6667 4.87109 10.4232 4.87109 10.1055ZM8.36719 11.0898V7.87109H11.1289V10.1055C11.1289 10.4232 11.0391 10.6667 10.8594 10.8359C10.
16797 11.0052 10.431 11.0898 10.1133 11.0898H8.36719ZM4.36719 6.78906V5.99219C4.36719 5.7526 4.43359 5.57552 4.56641 5.46094C4.69922 5.34635 4.88151 5.28906 5.11328 5.28906H5.79688C5.69271 5.1849 5.60938 5.0638 5.54688 4.92578C5.48698 4.78516 5.45703 4.63281 5.45703 4.46875C5.45703 4.22396 5.51693 4.00521 5.63672 3.8125C5.75651 3.61979 5.91667 3.46875 6.11719 3.35938C6.32031 3.25 6.54427 3.19531 6.78906 3.19531C7.06771 3.19531 7.31641 3.27214 7.53516 3.42578C7.75651 3.57682 7.91146 3.79167 8 4.07031C8.09115 3.79167 8.24609 3.57682 8.46484 3.42578C8.68359 3.27214 8.93229 3.19531 9.21094 3.19531C9.45833 3.19531 9.68229 3.25 9.88281 3.35938C10.0833 3.46875 10.2435 3.61979 10.3633 3.8125C10.4831 4.00521 10.543 4.22396 10.543 4.46875C10.543 4.63281 10.5117 4.78516 10.4492 4.92578C10.3893 5.0638 10.3073 5.1849 10.2031 5.28906H10.8867C11.1237 5.28906 11.3073 5.34635 11.4375 5.46094C11.5677 5.57552 11.6328 5.7526 11.6328 5.99219V6.78906C11.6328 6.9974 11.5755 7.15234 11.4609 7.25391C11.3464 7.35286 11.1849 7.40234 10.9766 7.40234H8.36719V5.28906H8.91406C9.19531 5.28906 9.41276 5.21745 9.56641 5.07422C9.72005 4.92839 9.79688 4.75521 9.79688 4.55469C9.79688 4.35938 9.73568 4.20573 9.61328 4.09375C9.49349 3.98177 9.33464 3.92578 9.13672 3.92578C8.92318 3.92578 8.74089 4.00391 8.58984 4.16016C8.44141 4.31641 8.36719 4.52214 8.36719 4.77734V5.28906H7.63281V4.77734C7.63281 4.52214 7.55729 4.31641 7.40625 4.16016C7.25781 4.00391 7.07812 3.92578 6.86719 3.92578C6.66667 3.92578 6.50521 3.98177 6.38281 4.09375C6.26302 4.20573 6.20312 4.35938 6.20312 4.55469C6.20312 4.75521 6.27995 4.92839 6.43359 5.07422C6.58724 5.21745 6.80469 5.28906 7.08594 5.28906H7.63281V7.40234H5.02344C4.81771 7.40234 4.65625 7.35286 4.53906 7.25391C4.42448 7.15234 4.36719 6.9974 4.36719 6.78906ZM13.0062 4.176H20.1422V5.072H13.0062V4.176ZM15.1662 7.056H18.6462V7.856H15.1662V7.056ZM14.4542 5.704H18.5022V6.544H15.4062V10.712H14.4542V5.704ZM18.3102 5.704H19.2462V9.68C19.2462 10.152 19.1582 10.416 18.8302 10.568C18.5102 10.712 18.0542 10.72 17.4062 10.72C17.3662 10.456 17.2382 10.048 17.1102 9.8C17.5262 9.824 17.9982 9.816 18.1342 9.816C18.2622 9.816 18.3102 9.776 18.3102 9.664V5.704ZM15.4862 3.2L16.4782 3.424C15.9182 5.232 14.9582 7.072 13.3982 8.16C13.2622 7.944 12.9582 7.6 12.7662 7.416C14.1902 6.48 15.0862 4.76 15.4862 3.2ZM15.1662 8.376H18.6462V9.176H15.1662V8.376ZM24.8062 3.36H25.7982V9.176C25.7982 9.632 25.8382 9.696 26.1502 9.696C26.2942 9.696 26.9182 9.696 27.0702 9.696C27.3902 9.696 27.4462 9.408 27.4942 8.28C27.7262 8.448 28.1262 8.632 28.3982 8.688C28.2862 10.096 28.0382 10.624 27.1662 10.624C26.9582 10.624 26.2062 10.624 26.0062 10.624C25.0782 10.624 24.8062 10.304 24.8062 9.168V3.36ZM20.9742 4.688H23.6302V5.56H20.9742V4.688ZM22.1822 7.424L23.1342 6.288V10.728H22.1822V7.424ZM22.1822 3.216H23.1342V5.096H22.1822V3.216ZM23.0382 6.464C23.3422 6.672 24.2862 7.52 24.5182 7.728L23.9262 8.512C23.5982 8.08 22.8942 7.304 22.5182 6.936L23.0382 6.464ZM23.3742 4.688H23.5582L23.7262 4.656L24.2622 5.008C23.6382 6.6 22.3742 8.008 21.1342 8.752C21.0542 8.496 20.8222 8.024 20.6782 7.84C21.8142 7.248 22.9182 6.064 23.3742 4.864V4.688Z",fill:"white"},null,-1))],fi=Es(()=>Object(o.createElementVNode)("svg",{width:"16",height:"21",viewBox:"0 0 16 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.89551 20.1904C1.9873 20.1904 1.2959 19.9561 0.821289 19.4873C0.352539 19.0244 0.118164 18.3418 0.118164 17.4395V9.31836C0.118164 8.41602 0.352539 7.7334 0.821289 7.27051C1.2959 6.80176 1.9873 6.56738 2.89551 6.56738H5.30371V8.31641H3.02734C2.6582 8.31641 2.37402 8.41309 2.1748 8.60645C1.98145 8.7998 1.88477 9.09277 1.88477 9.48535V17.2637C1.88477 17.6562 1.98145 17.9492 2.1748 18.1426C2.37402 18.3359 2.6582 18.4326 3.02734 18.4326H12.3525C12.7217 18.4326 13.0059 18.3359 13.2051 18.1426C13.4043 17.9492 13.5039 17.6562 13.5039 17.2637V9.48535C13.5039 9.09277 13.4043 8.7998 13.2051 8.60645C13.0059 8.41309 12.7217 8.31641 12.3525 8.31641H10.0762V6.56738H12.4844C13.3984 6.56738 14.0898 6.80176 14.5586 7.27051C15.0273 7.7334 15.2617 8.41602 15.2617 9.31836V17.4395C15.2617 18.3359 15.0273 19.0186 14.5586 19.4873C14.0898 19.9561 13.3984 20.1904 12.4844 20.1904H2.89551ZM7.69434 13.4141C7.46582 13.4141 7.26953 13.335 7.10547 13.1768C6.94727 13.0127 6.86816 12.8223 6.86816 12.6055V4.30859L6.93848 3.06934L6.5166 3.61426L5.37402 4.83594C5.22754 5 5.04297 5.08203 4.82031 5.08203C4.62109 5.08203 4.45117 5.01758 4.31055 4.88867C4.16992 4.75977 4.09961 4.59277 4.09961 4.3877C4.09961 4.19434 4.17578 4.02148 4.32812 3.86914L7.06152 1.24121C7.16699 1.13574 7.26953 1.0625 7.36914 1.02148C7.47461 0.980469 7.58301 0.959961 7.69434 0.959961C7.7998 0.959961 7.90234 0.980469 8.00195 1.02148C8.10742 1.0625 8.21289 1.13574 8.31836 1.24121L11.0518 3.86914C11.1982 4.02148 11.2715 4.19434 11.2715 4.3877C11.2715 4.59277 11.2012 4.75977 11.0605 4.88867C10.9199 5.01758 10.75 5.08203 10.5508 5.08203C10.334 5.08203 10.1523 5 10.0059 4.83594L8.86328 3.61426L8.44141 3.07812L8.51172 4.30859V12.6055C8.51172 12.8223 8.42969 13.0127 8.26562 13.1768C8.10742 13.335 7.91699 13.4141 7.69434 13.4141Z",fill:"white"})],-1)),vi={key:2,class:"paper_bottom_buy"},wi={key:0,class:"has_refer",width:"32",height:"14",viewBox:"0 0 32 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vi=[Es(()=>Object(o.createElementVNode)("rect",{width:"32",height:"14",rx:"2",fill:"#DAA520"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M4.87109 10.1055V7.87109H7.63281V11.0898H5.88672C5.56641 11.0898 5.31641 11.0052 5.13672 10.8359C4.95964 10.6667 4.87109 10.4232 4.87109 10.1055ZM8.36719 11.0898V7.87109H11.1289V10.1055C11.1289 10.4232 11.0391 10.6667 10.8594 10.8359C10.
16797 11.0052 10.431 11.0898 10.1133 11.0898H8.36719ZM4.36719 6.78906V5.99219C4.36719 5.7526 4.43359 5.57552 4.56641 5.46094C4.69922 5.34635 4.88151 5.28906 5.11328 5.28906H5.79688C5.69271 5.1849 5.60938 5.0638 5.54688 4.92578C5.48698 4.78516 5.45703 4.63281 5.45703 4.46875C5.45703 4.22396 5.51693 4.00521 5.63672 3.8125C5.75651 3.61979 5.91667 3.46875 6.11719 3.35938C6.32031 3.25 6.54427 3.19531 6.78906 3.19531C7.06771 3.19531 7.31641 3.27214 7.53516 3.42578C7.75651 3.57682 7.91146 3.79167 8 4.07031C8.09115 3.79167 8.24609 3.57682 8.46484 3.42578C8.68359 3.27214 8.93229 3.19531 9.21094 3.19531C9.45833 3.19531 9.68229 3.25 9.88281 3.35938C10.0833 3.46875 10.2435 3.61979 10.3633 3.8125C10.4831 4.00521 10.543 4.22396 10.543 4.46875C10.543 4.63281 10.5117 4.78516 10.4492 4.92578C10.3893 5.0638 10.3073 5.1849 10.2031 5.28906H10.8867C11.1237 5.28906 11.3073 5.34635 11.4375 5.46094C11.5677 5.57552 11.6328 5.7526 11.6328 5.99219V6.78906C11.6328 6.9974 11.5755 7.15234 11.4609 7.25391C11.3464 7.35286 11.1849 7.40234 10.9766 7.40234H8.36719V5.28906H8.91406C9.19531 5.28906 9.41276 5.21745 9.56641 5.07422C9.72005 4.92839 9.79688 4.75521 9.79688 4.55469C9.79688 4.35938 9.73568 4.20573 9.61328 4.09375C9.49349 3.98177 9.33464 3.92578 9.13672 3.92578C8.92318 3.92578 8.74089 4.00391 8.58984 4.16016C8.44141 4.31641 8.36719 4.52214 8.36719 4.77734V5.28906H7.63281V4.77734C7.63281 4.52214 7.55729 4.31641 7.40625 4.16016C7.25781 4.00391 7.07812 3.92578 6.86719 3.92578C6.66667 3.92578 6.50521 3.98177 6.38281 4.09375C6.26302 4.20573 6.20312 4.35938 6.20312 4.55469C6.20312 4.75521 6.27995 4.92839 6.43359 5.07422C6.58724 5.21745 6.80469 5.28906 7.08594 5.28906H7.63281V7.40234H5.02344C4.81771 7.40234 4.65625 7.35286 4.53906 7.25391C4.42448 7.15234 4.36719 6.9974 4.36719 6.78906ZM13.0062 4.176H20.1422V5.072H13.0062V4.176ZM15.1662 7.056H18.6462V7.856H15.1662V7.056ZM14.4542 5.704H18.5022V6.544H15.4062V10.712H14.4542V5.704ZM18.3102 5.704H19.2462V9.68C19.2462 10.152 19.1582 10.416 18.8302 10.568C18.5102 10.712 18.0542 10.72 17.4062 10.72C17.3662 10.456 17.2382 10.048 17.1102 9.8C17.5262 9.824 17.9982 9.816 18.1342 9.816C18.2622 9.816 18.3102 9.776 18.3102 9.664V5.704ZM15.4862 3.2L16.4782 3.424C15.9182 5.232 14.9582 7.072 13.3982 8.16C13.2622 7.944 12.9582 7.6 12.7662 7.416C14.1902 6.48 15.0862 4.76 15.4862 3.2ZM15.1662 8.376H18.6462V9.176H15.1662V8.376ZM24.8062 3.36H25.7982V9.176C25.7982 9.632 25.8382 9.696 26.1502 9.696C26.2942 9.696 26.9182 9.696 27.0702 9.696C27.3902 9.696 27.4462 9.408 27.4942 8.28C27.7262 8.448 28.1262 8.632 28.3982 8.688C28.2862 10.096 28.0382 10.624 27.1662 10.624C26.9582 10.624 26.2062 10.624 26.0062 10.624C25.0782 10.624 24.8062 10.304 24.8062 9.168V3.36ZM20.9742 4.688H23.6302V5.56H20.9742V4.688ZM22.1822 7.424L23.1342 6.288V10.728H22.1822V7.424ZM22.1822 3.216H23.1342V5.096H22.1822V3.216ZM23.0382 6.464C23.3422 6.672 24.2862 7.52 24.5182 7.728L23.9262 8.512C23.5982 8.08 22.8942 7.304 22.5182 6.936L23.0382 6.464ZM23.3742 4.688H23.5582L23.7262 4.656L24.2622 5.008C23.6382 6.6 22.3742 8.008 21.1342 8.752C21.0542 8.496 20.8222 8.024 20.6782 7.84C21.8142 7.248 22.9182 6.064 23.3742 4.864V4.688Z",fill:"white"},null,-1))],ki=Es(()=>Object(o.createElementVNode)("svg",{width:"16",height:"21",viewBox:"0 0 16 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.89551 20.1904C1.9873 20.1904 1.2959 19.9561 0.821289 19.4873C0.352539 19.0244 0.118164 18.3418 0.118164 17.4395V9.31836C0.118164 8.41602 0.352539 7.7334 0.821289 7.27051C1.2959 6.80176 1.9873 6.56738 2.89551 6.56738H5.30371V8.31641H3.02734C2.6582 8.31641 2.37402 8.41309 2.1748 8.60645C1.98145 8.7998 1.88477 9.09277 1.88477 9.48535V17.2637C1.88477 17.6562 1.98145 17.9492 2.1748 18.1426C2.37402 18.3359 2.6582 18.4326 3.02734 18.4326H12.3525C12.7217 18.4326 13.0059 18.3359 13.2051 18.1426C13.4043 17.9492 13.5039 17.6562 13.5039 17.2637V9.48535C13.5039 9.09277 13.4043 8.7998 13.2051 8.60645C13.0059 8.41309 12.7217 8.31641 12.3525 8.31641H10.0762V6.56738H12.4844C13.3984 6.56738 14.0898 6.80176 14.5586 7.27051C15.0273 7.7334 15.2617 8.41602 15.2617 9.31836V17.4395C15.2617 18.3359 15.0273 19.0186 14.5586 19.4873C14.0898 19.9561 13.3984 20.1904 12.4844 20.1904H2.89551ZM7.69434 13.4141C7.46582 13.4141 7.26953 13.335 7.10547 13.1768C6.94727 13.0127 6.86816 12.8223 6.86816 12.6055V4.30859L6.93848 3.06934L6.5166 3.61426L5.37402 4.83594C5.22754 5 5.04297 5.08203 4.82031 5.08203C4.62109 5.08203 4.45117 5.01758 4.31055 4.88867C4.16992 4.75977 4.09961 4.59277 4.09961 4.3877C4.09961 4.19434 4.17578 4.02148 4.32812 3.86914L7.06152 1.24121C7.16699 1.13574 7.26953 1.0625 7.36914 1.02148C7.47461 0.980469 7.58301 0.959961 7.69434 0.959961C7.7998 0.959961 7.90234 0.980469 8.00195 1.02148C8.10742 1.0625 8.21289 1.13574 8.31836 1.24121L11.0518 3.86914C11.1982 4.02148 11.2715 4.19434 11.2715 4.3877C11.2715 4.59277 11.2012 4.75977 11.0605 4.88867C10.9199 5.01758 10.75 5.08203 10.5508 5.08203C10.334 5.08203 10.1523 5 10.0059 4.83594L8.86328 3.61426L8.44141 3.07812L8.51172 4.30859V12.6055C8.51172 12.8223 8.42969 13.0127 8.26562 13.1768C8.10742 13.335 7.91699 13.4141 7.69434 13.4141Z",fill:"white"})],-1)),yi={key:14,id:"bottom_fixed",style:{"padding-bottom":"20px !important"}},_i={style:{"font-size":"14px","margin-bottom":"16px",display:"block"}},Ei=Object(o.createTextVNode)("ï¼"),Ni={key:0,style:{"font-size":"12px","margin-bottom":"10px",color:"gray"}},Bi={key:1,class:"paper_bottom_buy",style:{display:"flex","align-items":"center","justify-content":"center"}}
1,Hi={key:0,class:"has_refer",width:"32",height:"14",viewBox:"0 0 32 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xi=[Es(()=>Object(o.createElementVNode)("rect",{width:"32",height:"14",rx:"2",fill:"#DAA520"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M4.87109 10.1055V7.87109H7.63281V11.0898H5.88672C5.56641 11.0898 5.31641 11.0052 5.13672 10.8359C4.95964 10.6667 4.87109 10.4232 4.87109 10.1055ZM8.36719 11.0898V7.87109H11.1289V10.1055C11.1289 10.4232 11.0391 10.6667 10.8594 10.8359C10.6797 11.0052 10.431 11.0898 10.1133 11.0898H8.36719ZM4.36719 6.78906V5.99219C4.36719 5.7526 4.43359 5.57552 4.56641 5.46094C4.69922 5.34635 4.88151 5.28906 5.11328 5.28906H5.79688C5.69271 5.1849 5.60938 5.0638 5.54688 4.92578C5.48698 4.78516 5.45703 4.63281 5.45703 4.46875C5.45703 4.22396 5.51693 4.00521 5.63672 3.8125C5.75651 3.61979 5.91667 3.46875 6.11719 3.35938C6.32031 3.25 6.54427 3.19531 6.78906 3.19531C7.06771 3.19531 7.31641 3.27214 7.53516 3.42578C7.75651 3.57682 7.91146 3.79167 8 4.07031C8.09115 3.79167 8.24609 3.57682 8.46484 3.42578C8.68359 3.27214 8.93229 3.19531 9.21094 3.19531C9.45833 3.19531 9.68229 3.25 9.88281 3.35938C10.0833 3.46875 10.2435 3.61979 10.3633 3.8125C10.4831 4.00521 10.543 4.22396 10.543 4.46875C10.543 4.63281 10.5117 4.78516 10.4492 4.92578C10.3893 5.0638 10.3073 5.1849 10.2031 5.28906H10.8867C11.1237 5.28906 11.3073 5.34635 11.4375 5.46094C11.5677 5.57552 11.6328 5.7526 11.6328 5.99219V6.78906C11.6328 6.9974 11.5755 7.15234 11.4609 7.25391C11.3464 7.35286 11.1849 7.40234 10.9766 7.40234H8.36719V5.28906H8.91406C9.19531 5.28906 9.41276 5.21745 9.56641 5.07422C9.72005 4.92839 9.79688 4.75521 9.79688 4.55469C9.79688 4.35938 9.73568 4.20573 9.61328 4.09375C9.49349 3.98177 9.33464 3.92578 9.13672 3.92578C8.92318 3.92578 8.74089 4.00391 8.58984 4.16016C8.44141 4.31641 8.36719 4.52214 8.36719 4.77734V5.28906H7.63281V4.77734C7.63281 4.52214 7.55729 4.31641 7.40625 4.16016C7.25781 4.00391 7.07812 3.92578 6.86719 3.92578C6.66667 3.92578 6.50521 3.98177 6.38281 4.09375C6.26302 4.20573 6.20312 4.35938 6.20312 4.55469C6.20312 4.75521 6.27995 4.92839 6.43359 5.07422C6.58724 5.21745 6.80469 5.28906 7.08594 5.28906H7.63281V7.40234H5.02344C4.81771 7.40234 4.65625 7.35286 4.53906 7.25391C4.42448 7.15234 4.36719 6.9974 4.36719 6.78906ZM13.0062 4.176H20.1422V5.072H13.0062V4.176ZM15.1662 7.056H18.6462V7.856H15.1662V7.056ZM14.4542 5.704H18.5022V6.544H15.4062V10.712H14.4542V5.704ZM18.3102 5.704H19.2462V9.68C19.2462 10.152 19.1582 10.416 18.8302 10.568C18.5102 10.712 18.0542 10.72 17.4062 10.72C17.3662 10.456 17.2382 10.048 17.1102 9.8C17.5262 9.824 17.9982 9.816 18.1342 9.816C18.2622 9.816 18.3102 9.776 18.3102 9.664V5.704ZM15.4862 3.2L16.4782 3.424C15.9182 5.232 14.9582 7.072 13.3982 8.16C13.2622 7.944 12.9582 7.6 12.7662 7.416C14.1902 6.48 15.0862 4.76 15.4862 3.2ZM15.1662 8.376H18.6462V9.176H15.1662V8.376ZM24.8062 3.36H25.7982V9.176C25.7982 9.632 25.8382 9.696 26.1502 9.696C26.2942 9.696 26.9182 9.696 27.0702 9.696C27.3902 9.696 27.4462 9.408 27.4942 8.28C27.7262 8.448 28.1262 8.632 28.3982 8.688C28.2862 10.096 28.0382 10.624 27.1662 10.624C26.9582 10.624 26.2062 10.624 26.0062 10.624C25.0782 10.624 24.8062 10.304 24.8062 9.168V3.36ZM20.9742 4.688H23.6302V5.56H20.9742V4.688ZM22.1822 7.424L23.1342 6.288V10.728H22.1822V7.424ZM22.1822 3.216H23.1342V5.096H22.1822V3.216ZM23.0382 6.464C23.3422 6.672 24.2862 7.52 24.5182 7.728L23.9262 8.512C23.5982 8.08 22.8942 7.304 22.5182 6.936L23.0382 6.464ZM23.3742 4.688H23.5582L23.7262 4.656L24.2622 5.008C23.6382 6.6 22.3742 8.008 21.1342 8.752C21.0542 8.496 20.8222 8.024 20.6782 7.84C21.8142 7.248 22.9182 6.064 23.3742 4.864V4.688Z",fill:"white"},null,-1))],Mi=Es(()=>Object(o.createElementVNode)("svg",{width:"16",height:"21",viewBox:"0 0 16 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.89551 20.1904C1.9873 20.1904 1.2959 19.9561 0.821289 19.4873C0.352539 19.0244 0.118164 18.3418 0.118164 17.4395V9.31836C0.118164 8.41602 0.352539 7.7334 0.821289 7.27051C1.2959 6.80176 1.9873 6.56738 2.89551 6.56738H5.30371V8.31641H3.02734C2.6582 8.31641 2.37402 8.41309 2.1748 8.60645C1.98145 8.7998 1.88477 9.09277 1.88477 9.48535V17.2637C1.88477 17.6562 1.98145 17.9492 2.1748 18.1426C2.37402 18.3359 2.6582 18.4326 3.02734 18.4326H12.3525C12.7217 18.4326 13.0059 18.3359 13.2051 18.1426C13.4043 17.9492 13.5039 17.6562 13.5039 17.2637V9.48535C13.5039 9.09277 13.4043 8.7998 13.2051 8.60645C13.0059 8.41309 12.7217 8.31641 12.3525 8.31641H10.0762V6.56738H12.4844C13.3984 6.56738 14.0898 6.80176 14.5586 7.27051C15.0273 7.7334 15.2617 8.41602 15.2617 9.31836V17.4395C15.2617 18.3359 15.0273 19.0186 14.5586 19.4873C14.0898 19.9561 13.3984 20.1904 12.4844 20.1904H2.89551ZM7.69434 13.4141C7.46582 13.4141 7.26953 13.335 7.10547 13.1768C6.94727 13.0127 6.86816 12.8223 6.86816 12.6055V4.30859L6.93848 3.06934L6.5166 3.61426L5.37402 4.83594C5.22754 5 5.04297 5.08203 4.82031 5.08203C4.62109 5.08203 4.45117 5.01758 4.31055 4.88867C4.16992 4.75977 4.09961 4.59277 4.09961 4.3877C4.09961 4.19434 4.17578 4.02148 4.32812 3.86914L7.06152 1.24121C7.16699 1.13574 7.26953 1.0625 7.36914 1.02148C7.47461 0.980469 7.58301 0.959961 7.69434 0.959961C7.7998 0.959961 7.90234 0.980469 8.00195 1.02148C8.10742 1.0625 8.21289 1.13574 8.31836 1.24121L11.0518 3.86914C11.1982 4.02148 11.2715 4.19434 11.2715 4.3877C11.2715 4.59277 11.2012 4.75977 11.0605 4.88867C10.9199 5.01758 10.75 5.08203 10.5508 5.08203C10.334 5.08203 10.1523 5 10.0059 4.83594L8.86328 3.61426L8.44141 3.07812L8.51172 4.30859V12.6055C8.51172 12.8223 8.42969 13.0127 8.26562 13.1768C8.10742 13.335 7.91699 13.4141 7.69434 13.4141Z",fill:"white"})],-1)),Li={key:2,class:"paper_bottom_buy"},Si={key:0,class:"has_refer",width:"32",height:"14",viewBox:"0 0 32 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ti=[Es(()=>Object(o.createElementVNode)("rect",{width:"32",height:"14",rx:"2",fill:"#DAA520"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M4.87109 10.1055V7.87109H7.63281V11.0898H5.88672C5.56641 11.0898 5.31641 11.0052 5.13672 10.8359C4.95964 10.6667 4.87109 10.4232 4.87109 10.1055ZM8.36719 11.0898V7.87109H11.1289V10.1055C11.1289 10.4232 11.0391 10.6667 10.8594 10.8359C10.
16797 11.0052 10.431 11.0898 10.1133 11.0898H8.36719ZM4.36719 6.78906V5.99219C4.36719 5.7526 4.43359 5.57552 4.56641 5.46094C4.69922 5.34635 4.88151 5.28906 5.11328 5.28906H5.79688C5.69271 5.1849 5.60938 5.0638 5.54688 4.92578C5.48698 4.78516 5.45703 4.63281 5.45703 4.46875C5.45703 4.22396 5.51693 4.00521 5.63672 3.8125C5.75651 3.61979 5.91667 3.46875 6.11719 3.35938C6.32031 3.25 6.54427 3.19531 6.78906 3.19531C7.06771 3.19531 7.31641 3.27214 7.53516 3.42578C7.75651 3.57682 7.91146 3.79167 8 4.07031C8.09115 3.79167 8.24609 3.57682 8.46484 3.42578C8.68359 3.27214 8.93229 3.19531 9.21094 3.19531C9.45833 3.19531 9.68229 3.25 9.88281 3.35938C10.0833 3.46875 10.2435 3.61979 10.3633 3.8125C10.4831 4.00521 10.543 4.22396 10.543 4.46875C10.543 4.63281 10.5117 4.78516 10.4492 4.92578C10.3893 5.0638 10.3073 5.1849 10.2031 5.28906H10.8867C11.1237 5.28906 11.3073 5.34635 11.4375 5.46094C11.5677 5.57552 11.6328 5.7526 11.6328 5.99219V6.78906C11.6328 6.9974 11.5755 7.15234 11.4609 7.25391C11.3464 7.35286 11.1849 7.40234 10.9766 7.40234H8.36719V5.28906H8.91406C9.19531 5.28906 9.41276 5.21745 9.56641 5.07422C9.72005 4.92839 9.79688 4.75521 9.79688 4.55469C9.79688 4.35938 9.73568 4.20573 9.61328 4.09375C9.49349 3.98177 9.33464 3.92578 9.13672 3.92578C8.92318 3.92578 8.74089 4.00391 8.58984 4.16016C8.44141 4.31641 8.36719 4.52214 8.36719 4.77734V5.28906H7.63281V4.77734C7.63281 4.52214 7.55729 4.31641 7.40625 4.16016C7.25781 4.00391 7.07812 3.92578 6.86719 3.92578C6.66667 3.92578 6.50521 3.98177 6.38281 4.09375C6.26302 4.20573 6.20312 4.35938 6.20312 4.55469C6.20312 4.75521 6.27995 4.92839 6.43359 5.07422C6.58724 5.21745 6.80469 5.28906 7.08594 5.28906H7.63281V7.40234H5.02344C4.81771 7.40234 4.65625 7.35286 4.53906 7.25391C4.42448 7.15234 4.36719 6.9974 4.36719 6.78906ZM13.0062 4.176H20.1422V5.072H13.0062V4.176ZM15.1662 7.056H18.6462V7.856H15.1662V7.056ZM14.4542 5.704H18.5022V6.544H15.4062V10.712H14.4542V5.704ZM18.3102 5.704H19.2462V9.68C19.2462 10.152 19.1582 10.416 18.8302 10.568C18.5102 10.712 18.0542 10.72 17.4062 10.72C17.3662 10.456 17.2382 10.048 17.1102 9.8C17.5262 9.824 17.9982 9.816 18.1342 9.816C18.2622 9.816 18.3102 9.776 18.3102 9.664V5.704ZM15.4862 3.2L16.4782 3.424C15.9182 5.232 14.9582 7.072 13.3982 8.16C13.2622 7.944 12.9582 7.6 12.7662 7.416C14.1902 6.48 15.0862 4.76 15.4862 3.2ZM15.1662 8.376H18.6462V9.176H15.1662V8.376ZM24.8062 3.36H25.7982V9.176C25.7982 9.632 25.8382 9.696 26.1502 9.696C26.2942 9.696 26.9182 9.696 27.0702 9.696C27.3902 9.696 27.4462 9.408 27.4942 8.28C27.7262 8.448 28.1262 8.632 28.3982 8.688C28.2862 10.096 28.0382 10.624 27.1662 10.624C26.9582 10.624 26.2062 10.624 26.0062 10.624C25.0782 10.624 24.8062 10.304 24.8062 9.168V3.36ZM20.9742 4.688H23.6302V5.56H20.9742V4.688ZM22.1822 7.424L23.1342 6.288V10.728H22.1822V7.424ZM22.1822 3.216H23.1342V5.096H22.1822V3.216ZM23.0382 6.464C23.3422 6.672 24.2862 7.52 24.5182 7.728L23.9262 8.512C23.5982 8.08 22.8942 7.304 22.5182 6.936L23.0382 6.464ZM23.3742 4.688H23.5582L23.7262 4.656L24.2622 5.008C23.6382 6.6 22.3742 8.008 21.1342 8.752C21.0542 8.496 20.8222 8.024 20.6782 7.84C21.8142 7.248 22.9182 6.064 23.3742 4.864V4.688Z",fill:"white"},null,-1))],Ai=Es(()=>Object(o.createElementVNode)("svg",{width:"16",height:"21",viewBox:"0 0 16 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M2.89551 20.1904C1.9873 20.1904 1.2959 19.9561 0.821289 19.4873C0.352539 19.0244 0.118164 18.3418 0.118164 17.4395V9.31836C0.118164 8.41602 0.352539 7.7334 0.821289 7.27051C1.2959 6.80176 1.9873 6.56738 2.89551 6.56738H5.30371V8.31641H3.02734C2.6582 8.31641 2.37402 8.41309 2.1748 8.60645C1.98145 8.7998 1.88477 9.09277 1.88477 9.48535V17.2637C1.88477 17.6562 1.98145 17.9492 2.1748 18.1426C2.37402 18.3359 2.6582 18.4326 3.02734 18.4326H12.3525C12.7217 18.4326 13.0059 18.3359 13.2051 18.1426C13.4043 17.9492 13.5039 17.6562 13.5039 17.2637V9.48535C13.5039 9.09277 13.4043 8.7998 13.2051 8.60645C13.0059 8.41309 12.7217 8.31641 12.3525 8.31641H10.0762V6.56738H12.4844C13.3984 6.56738 14.0898 6.80176 14.5586 7.27051C15.0273 7.7334 15.2617 8.41602 15.2617 9.31836V17.4395C15.2617 18.3359 15.0273 19.0186 14.5586 19.4873C14.0898 19.9561 13.3984 20.1904 12.4844 20.1904H2.89551ZM7.69434 13.4141C7.46582 13.4141 7.26953 13.335 7.10547 13.1768C6.94727 13.0127 6.86816 12.8223 6.86816 12.6055V4.30859L6.93848 3.06934L6.5166 3.61426L5.37402 4.83594C5.22754 5 5.04297 5.08203 4.82031 5.08203C4.62109 5.08203 4.45117 5.01758 4.31055 4.88867C4.16992 4.75977 4.09961 4.59277 4.09961 4.3877C4.09961 4.19434 4.17578 4.02148 4.32812 3.86914L7.06152 1.24121C7.16699 1.13574 7.26953 1.0625 7.36914 1.02148C7.47461 0.980469 7.58301 0.959961 7.69434 0.959961C7.7998 0.959961 7.90234 0.980469 8.00195 1.02148C8.10742 1.0625 8.21289 1.13574 8.31836 1.24121L11.0518 3.86914C11.1982 4.02148 11.2715 4.19434 11.2715 4.3877C11.2715 4.59277 11.2012 4.75977 11.0605 4.88867C10.9199 5.01758 10.75 5.08203 10.5508 5.08203C10.334 5.08203 10.1523 5 10.0059 4.83594L8.86328 3.61426L8.44141 3.07812L8.51172 4.30859V12.6055C8.51172 12.8223 8.42969 13.0127 8.26562 13.1768C8.10742 13.335 7.91699 13.4141 7.69434 13.4141Z",fill:"white"})],-1)),Pi={key:15,id:"bottom_fixed",style:{"padding-bottom":"20px !important"},class:"expireDay"},Di=Object(o.createTextVNode)("ï¼ "),Ii={key:0,width:"101",height:"30",viewBox:"0 0 101 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$i=[Es(()=>Object(o.createElementVNode)("rect",{width:"101",height:"30",rx:"6",fill:"#B14B43"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M15.3428 20.7393V16.9932H20.2236V22.5029H17.1611C16.5869 22.5029 16.1403 22.3503 15.8213 22.0449C15.5023 21.7396 15.3428 21.3044 15.3428 20.7393ZM21.6592 22.5029V16.9932H26.5332V20.7393C26.5332 21.3044 26.3737 21.7396 26.0547 22.0449C25.7357 22.3503 25.2913 22.5029 24.7217 22.5029H21.6592ZM14.4883 14.9424V13.6641C14.4883 13.1992 14.6159 12.8506 14.8711 12.6182C15.1309 12.3812 15.4863 12.2627 15.9375 12.2627H16.9355C16.7533 12.0758 16.6097 11.8594 16.5049 11.6133C16.4001 11.3672 16.3477 11.1006 16.3477 10.8135C16.3477 10.3714 16.4548 9.97949 16.6689 9.6377C16.8831 9.29134 17.1702 9.02018 17.5303 8.82422C17.8949 8.62826 18.2982 8.53027 18.7402 8.53027C19.2461 8.53027 19.7018 8.67383 20.1074 8.96094C20.513 9.24349 20.791 9.64453 20.9414 10.1641C21.0918 9.64453 21.3675 9.24349 21.7686 8.96094C22.1742 8.67383 22.6322 8.53027 23.1426 8.53027C23.5846 8.53027 23.9857 8.62826 24.3457 8.82422C24.7057 9.02018 24.9928 9.29134 25.207 9.6377C25.4258 9.97949 25.5352 10.3714 25.5352 10.8135C25.5352 11.1006 25.4805 11.3672 25.3711 11.6133C25.2663 11.8594 25.1227 12.0758 24.9404 12.2627
1H25.9453C26.4056 12.2627 26.7611 12.3812 27.0117 12.6182C27.2624 12.8506 27.3877 13.1992 27.3877 13.6641V14.9424C27.3877 15.3206 27.2829 15.6055 27.0732 15.7969C26.8636 15.9883 26.5742 16.084 26.2051 16.084H21.6592V12.2627H22.582C23.0605 12.2627 23.4297 12.1419 23.6895 11.9004C23.9538 11.6589 24.0859 11.3649 24.0859 11.0186C24.0859 10.6859 23.9834 10.4215 23.7783 10.2256C23.5778 10.0296 23.3066 9.93164 22.9648 9.93164C22.6048 9.93164 22.2972 10.0684 22.042 10.3418C21.7868 10.6152 21.6592 10.9661 21.6592 11.3945V12.2627H20.2236V11.3945C20.2236 10.9661 20.096 10.6152 19.8408 10.3418C19.5856 10.0684 19.278 9.93164 18.918 9.93164C18.5716 9.93164 18.2959 10.0296 18.0908 10.2256C17.8903 10.4215 17.79 10.6859 17.79 11.0186C17.79 11.3649 17.9199 11.6589 18.1797 11.9004C18.444 12.1419 18.8154 12.2627 19.2939 12.2627H20.2236V16.084H15.6777C15.3086 16.084 15.0169 15.9883 14.8027 15.7969C14.5931 15.6055 14.4883 15.3206 14.4883 14.9424ZM34.8752 13.752H42.4492V15.39H34.8752V13.752ZM41.9032 13.752H43.6672C43.6672 13.752 43.6532 14.27 43.6392 14.48C43.4852 18.736 43.3172 20.402 42.8272 20.976C42.4772 21.452 42.0852 21.578 41.5532 21.662C41.0632 21.732 40.2512 21.718 39.4252 21.69C39.3972 21.2 39.1732 20.472 38.8652 19.996C39.6492 20.066 40.3772 20.08 40.7272 20.08C40.9792 20.08 41.1332 20.038 41.2872 19.884C41.6232 19.52 41.7772 17.952 41.9032 14.06V13.752ZM36.4572 8.796L38.2772 9.328C37.2272 11.764 35.5192 14.018 33.7552 15.404C33.4332 15.04 32.7052 14.368 32.2992 14.046C34.0632 12.884 35.6172 10.924 36.4572 8.796ZM41.7912 8.768C42.6732 10.546 44.4372 12.59 45.9772 13.766C45.5152 14.13 44.8712 14.816 44.5492 15.292C42.9672 13.836 41.2452 11.568 40.1392 9.426L41.7912 8.768ZM37.3812 14.228H39.2012C38.9352 17.378 38.3332 20.304 34.1612 21.858C33.9512 21.396 33.4612 20.682 33.0692 20.318C36.8212 19.086 37.1572 16.72 37.3812 14.228ZM46.8312 17.798H59.4872V19.226H46.8312V17.798ZM52.2072 8.614H53.9852V10.504H52.2072V8.614ZM48.2032 15.362H56.5892V16.664H48.2032V15.362ZM52.2352 17.21H54.0132V20.234C54.0132 21.06 53.7752 21.41 53.1032 21.606C52.4452 21.788 51.5212 21.788 50.2892 21.788C50.1912 21.368 49.9392 20.794 49.7152 20.416C50.5272 20.444 51.6332 20.444 51.8712 20.444C52.1372 20.43 52.2352 20.374 52.2352 20.164V17.21ZM56.2252 15.362H56.6732L57.0512 15.292L58.1012 16.202C56.7852 17 55.0912 17.77 53.3552 18.246C53.1732 17.98 52.7812 17.56 52.5712 17.35C53.9292 16.958 55.4832 16.216 56.2252 15.67V15.362ZM50.3312 12.856V13.64H55.9732V12.856H50.3312ZM48.6512 11.708H57.7512V14.788H48.6512V11.708ZM47.0272 9.65H59.2492V11.064H47.0272V9.65ZM60.9152 10.308H73.4032V11.876H60.9152V10.308ZM64.6952 15.348H70.7852V16.748H64.6952V15.348ZM63.4492 12.982H70.5332V14.452H65.1152V21.746H63.4492V12.982ZM70.1972 12.982H71.8352V19.94C71.8352 20.766 71.6812 21.228 71.1072 21.494C70.5472 21.746 69.7492 21.76 68.6152 21.76C68.5452 21.298 68.3212 20.584 68.0972 20.15C68.8252 20.192 69.6512 20.178 69.8892 20.178C70.1132 20.178 70.1972 20.108 70.1972 19.912V12.982ZM65.2552 8.6L66.9912 8.992C66.0112 12.156 64.3312 15.376 61.6012 17.28C61.3632 16.902 60.8312 16.3 60.4952 15.978C62.9872 14.34 64.5552 11.33 65.2552 8.6ZM64.6952 17.658H70.7852V19.058H64.6952V17.658ZM81.5652 8.88H83.3012V19.058C83.3012 19.856 83.3712 19.968 83.9172 19.968C84.1692 19.968 85.2612 19.968 85.5272 19.968C86.0872 19.968 86.1852 19.464 86.2692 17.49C86.6752 17.784 87.3752 18.106 87.8512 18.204C87.6552 20.668 87.2212 21.592 85.6952 21.592C85.3312 21.592 84.0152 21.592 83.6652 21.592C82.0412 21.592 81.5652 21.032 81.5652 19.044V8.88ZM74.8592 11.204H79.5072V12.73H74.8592V11.204ZM76.9732 15.992L78.6392 14.004V21.774H76.9732V15.992ZM76.9732 8.628H78.6392V11.918H76.9732V8.628ZM78.4712 14.312C79.0032 14.676 80.6552 16.16 81.0612 16.524L80.0252 17.896C79.4512 17.14 78.2192 15.782 77.5612 15.138L78.4712 14.312ZM79.0592 11.204H79.3812L79.6752 11.148L80.6132 11.764C79.5212 14.55 77.3092 17.014 75.1392 18.316C74.9992 17.868 74.5932 17.042 74.3412 16.72C76.3292 15.684 78.2612 13.612 79.0592 11.512V11.204Z",fill:"white"},null,-1))],Zi={key:1,width:"80",height:"30",viewBox:"0 0 80 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ri=[Es(()=>Object(o.createElementVNode)("rect",{width:"80",height:"30",rx:"6",fill:"#E9E9E9"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M16.1436 22.1182C15.4144 22.1182 14.8561 21.9268 14.4688 21.5439C14.0859 21.1657 13.8945 20.6143 13.8945 19.8896V13.6143C13.8945 12.8896 14.0859 12.3382 14.4688 11.96C14.8561 11.5771 15.4144 11.3857 16.1436 11.3857H17.9414V12.958H16.3008C16.0319 12.958 15.8268 13.0264 15.6855 13.1631C15.5443 13.2998 15.4736 13.5117 15.4736 13.7988V19.7051C15.4736 19.9922 15.5443 20.2018 15.6855 20.334C15.8268 20.4707 16.0319 20.5391 16.3008 20.5391H23.4648C23.7337 20.5391 23.9388 20.4707 24.0801 20.334C24.2214 20.2018 24.292 19.9922 24.292 19.7051V13.7988C24.292 13.5117 24.2214 13.2998 24.0801 13.1631C23.9388 13.0264 23.7337 12.958 23.4648 12.958H21.8174V11.3857H23.6221C24.3512 11.3857 24.9072 11.5771 25.29 11.96C25.6774 12.3428 25.8711 12.8942 25.8711 13.6143V19.8896C25.8711 20.6097 25.6774 21.1611 25.29 21.5439C24.9072 21.9268 24.3512 22.1182 23.6221 22.1182H16.1436ZM19.8828 16.7109C19.6823 16.7109 19.5114 16.6403 19.3701 16.499C19.2334 16.3577 19.165 16.1914 19.165 16V9.62891L19.2266 8.67871L18.9189 9.12988L18.0986 10.0049C17.971 10.1416 17.8138 10.21 17.627 10.21C17.4583 10.21 17.3125 10.1553 17.1895 10.0459C17.0664 9.93197 17.0049 9.78841 17.0049 9.61523C17.0049 9.45117 17.071 9.30306 17.2031 9.1709L19.3223 7.13379C19.4134 7.04264 19.5046 6.97884 19.5957 6.94238C19.6914 6.90592 19.7871 6.8877 19.8828 6.8877C19.9785 6.8877 20.0719 6.90592 20.1631 6.94238C20.2542 6.97884 20.3477 7.04264 20.4434 7.13379L22.5625 9.1709C22.6901 9.30306 22.7539 9.45117 22.7539 9.61523C22.7539 9.78841 22.6924 9.93197 22.5693 10.0459C22.4463 10.1553 22.3005 10.21 22.1318 10.21C21.945 10.21 21.79 10.1416 21.667 10.0049L20.8467 9.12988L20.5322 8.67871L20.5938 9.62891V16C20.5938 16.1914 20.5254 16.3577 20.3887 16.499C20.252 16.6403 20.0833 16.7109 19.8828 16.7109ZM36.4689 12.752H44.0429V14.39H36.4689V12.752ZM43.4969 12.752H45.2609C45.2609 12.752 45.2469 13.27 45.2329 13.48C45.0789 17.736 44.9109 19.402 44.4209 19.976C44.0709 20.452 43.6789 20.578 43.1469 20.662C42.6569 20.732 41.8449 20.718 41.0189 20.69C40.9909 20.2 40.7669 19.472 40.4589 18.996C41.2429 19.066 41.9709 19.08 42.3209 19.08C42.5729 19.08 42.7269 19.038 42.8809 18.884C43.2169 18.52 43.3709 16.952 43.4969 13.06V12.752ZM38.0509 7.796L39.8709 8.328C38.8209 10.764 37.1129 13.018 35.3489 14.404C35.0269 14.04 34.2989 13.368 33.8929 13.046C35.6569 11.884 37.2109 9.924 38.0509 7.796ZM43.3849 7.768C44.2669 9.546 46.0309 11.59 47.5709 12.766C47.1089 13.13 46.4649 13.816 46.1429 14.292C44.5609 12.836 42.8389 10.568 41.7329 8.426L43.3849 7.768ZM38.9749 13.228H40.7949C40.5289 16.378 39.9269 19.304 35.7549 20.858C35.5449 20.396 35.0549 19.682 34.6629 19.318C38.4149 18.086 38.7509 15.72 38.9749 13.228ZM48.4249 16.798H61.0809V18.226H48.4249V16.798ZM53.8009 7.614H55.5789V9.504H53.8009V7.614ZM49.7969 14.362H58.1829V15.664H49.7969V14.362ZM53.8289 16.21H55.6069V19.234C55.6069 20.06 55.3689 20.41 54.6969 20.606C54.0389 20.788 53.1149 20.788 51.8829 20.788C51.7849 20.368 51.5329 19.794 51.3089 19.416C52.1209 19.444 53.2269 19.444 53.4649 19.444C53.7309 19.43 53.8289 19.374 53.8289 19.164V16.21ZM57.8189 14.362H58.2669L58.6449 14.292L59.6949 15.202C58.3789 16 56.6849 16.77 54.9489 17.246C54.7669 16.98 54.3749 16.56 54.1649 16.35C55.5229 15.958 57.0769 15.216 57.8189 14.67V14.362ZM51.9249 11.856V12.64H57.5669V11.856H51.9249ZM50.2449 10.708H59.3449V13.788H50.2449V10.708ZM48.6209 8.65H60.8429V10.064H48.6209V8.65Z",fill:"#413E3B"},null,-1))],Ui={key:16,id:"bottom_fixed",class:"expireDay forEver",style:{"padding-bottom":"20px !important"}},Fi={key:0,width:"101",height:"30",viewBox:"0 0 101 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zi=[Es(()=>Object(o.createElementVNode)("rect",{width:"101",height:"30",rx:"6",fill:"#B14B43"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M15.3428 20.7393V16.9932H20.2236V22.5029H17.1611C16.5869 22.5029 16.1403 22.3503 15.8213 22.0449C15.5023 21.7396 15.3428 21.3044 15.3428 20.7393ZM21.6592 22.5029V16.9932H26.5332V20.7393C26.5332 21.3044 26.3737 21.7396 26.0547 22.0449C25.7357 22.3503 25.2913 22.5029 24.7217 22.5029H21.6592ZM14.4883 14.9424V13.6641C14.4883 13.1992 14.6159 12.8506 14.8711 12.6182C15.1309 12.3812 15.4863 12.2627 15.9375 12.2627H16.9355C16.7533 12.0758 16.6097 11.8594 16.5049 11.6133C16.4001 11.3672 16.3477 11.1006 16.3477 10.8135C16.3477 10.3714 16.4548 9.97949 16.6689 9.6377C16.8831 9.29134 17.1702 9.02018 17.5303 8.82422C17.8949 8.62826 18.2982 8.53027 18.7402 8.53027C19.2461 8.53027 19.7018 8.67383 20.1074 8.96094C20.513 9.24349 20.791 9.64453 20.9414 10.1641C21.0918 9.64453 21.3675 9.24349 21.7686 8.96094C22.1742 8.67383 22.6322 8.53027 23.1426 8.53027C23.5846 8.53027 23.9857 8.62826 24.3457 8.82422C24.7057 9.02018 24.9928 9.29134 25.207 9.6377C25.4258 9.97949 25.5352 10.3714 25.5352 10.8135C25.5352 11.1006 25.4805 11.3672 25.3711 11.6133C25.2663 11.8594 25.1227 12.0758 24.9404 12.2627
1H25.9453C26.4056 12.2627 26.7611 12.3812 27.0117 12.6182C27.2624 12.8506 27.3877 13.1992 27.3877 13.6641V14.9424C27.3877 15.3206 27.2829 15.6055 27.0732 15.7969C26.8636 15.9883 26.5742 16.084 26.2051 16.084H21.6592V12.2627H22.582C23.0605 12.2627 23.4297 12.1419 23.6895 11.9004C23.9538 11.6589 24.0859 11.3649 24.0859 11.0186C24.0859 10.6859 23.9834 10.4215 23.7783 10.2256C23.5778 10.0296 23.3066 9.93164 22.9648 9.93164C22.6048 9.93164 22.2972 10.0684 22.042 10.3418C21.7868 10.6152 21.6592 10.9661 21.6592 11.3945V12.2627H20.2236V11.3945C20.2236 10.9661 20.096 10.6152 19.8408 10.3418C19.5856 10.0684 19.278 9.93164 18.918 9.93164C18.5716 9.93164 18.2959 10.0296 18.0908 10.2256C17.8903 10.4215 17.79 10.6859 17.79 11.0186C17.79 11.3649 17.9199 11.6589 18.1797 11.9004C18.444 12.1419 18.8154 12.2627 19.2939 12.2627H20.2236V16.084H15.6777C15.3086 16.084 15.0169 15.9883 14.8027 15.7969C14.5931 15.6055 14.4883 15.3206 14.4883 14.9424ZM34.8752 13.752H42.4492V15.39H34.8752V13.752ZM41.9032 13.752H43.6672C43.6672 13.752 43.6532 14.27 43.6392 14.48C43.4852 18.736 43.3172 20.402 42.8272 20.976C42.4772 21.452 42.0852 21.578 41.5532 21.662C41.0632 21.732 40.2512 21.718 39.4252 21.69C39.3972 21.2 39.1732 20.472 38.8652 19.996C39.6492 20.066 40.3772 20.08 40.7272 20.08C40.9792 20.08 41.1332 20.038 41.2872 19.884C41.6232 19.52 41.7772 17.952 41.9032 14.06V13.752ZM36.4572 8.796L38.2772 9.328C37.2272 11.764 35.5192 14.018 33.7552 15.404C33.4332 15.04 32.7052 14.368 32.2992 14.046C34.0632 12.884 35.6172 10.924 36.4572 8.796ZM41.7912 8.768C42.6732 10.546 44.4372 12.59 45.9772 13.766C45.5152 14.13 44.8712 14.816 44.5492 15.292C42.9672 13.836 41.2452 11.568 40.1392 9.426L41.7912 8.768ZM37.3812 14.228H39.2012C38.9352 17.378 38.3332 20.304 34.1612 21.858C33.9512 21.396 33.4612 20.682 33.0692 20.318C36.8212 19.086 37.1572 16.72 37.3812 14.228ZM46.8312 17.798H59.4872V19.226H46.8312V17.798ZM52.2072 8.614H53.9852V10.504H52.2072V8.614ZM48.2032 15.362H56.5892V16.664H48.2032V15.362ZM52.2352 17.21H54.0132V20.234C54.0132 21.06 53.7752 21.41 53.1032 21.606C52.4452 21.788 51.5212 21.788 50.2892 21.788C50.1912 21.368 49.9392 20.794 49.7152 20.416C50.5272 20.444 51.6332 20.444 51.8712 20.444C52.1372 20.43 52.2352 20.374 52.2352 20.164V17.21ZM56.2252 15.362H56.6732L57.0512 15.292L58.1012 16.202C56.7852 17 55.0912 17.77 53.3552 18.246C53.1732 17.98 52.7812 17.56 52.5712 17.35C53.9292 16.958 55.4832 16.216 56.2252 15.67V15.362ZM50.3312 12.856V13.64H55.9732V12.856H50.3312ZM48.6512 11.708H57.7512V14.788H48.6512V11.708ZM47.0272 9.65H59.2492V11.064H47.0272V9.65ZM60.9152 10.308H73.4032V11.876H60.9152V10.308ZM64.6952 15.348H70.7852V16.748H64.6952V15.348ZM63.4492 12.982H70.5332V14.452H65.1152V21.746H63.4492V12.982ZM70.1972 12.982H71.8352V19.94C71.8352 20.766 71.6812 21.228 71.1072 21.494C70.5472 21.746 69.7492 21.76 68.6152 21.76C68.5452 21.298 68.3212 20.584 68.0972 20.15C68.8252 20.192 69.6512 20.178 69.8892 20.178C70.1132 20.178 70.1972 20.108 70.1972 19.912V12.982ZM65.2552 8.6L66.9912 8.992C66.0112 12.156 64.3312 15.376 61.6012 17.28C61.3632 16.902 60.8312 16.3 60.4952 15.978C62.9872 14.34 64.5552 11.33 65.2552 8.6ZM64.6952 17.658H70.7852V19.058H64.6952V17.658ZM81.5652 8.88H83.3012V19.058C83.3012 19.856 83.3712 19.968 83.9172 19.968C84.1692 19.968 85.2612 19.968 85.5272 19.968C86.0872 19.968 86.1852 19.464 86.2692 17.49C86.6752 17.784 87.3752 18.106 87.8512 18.204C87.6552 20.668 87.2212 21.592 85.6952 21.592C85.3312 21.592 84.0152 21.592 83.6652 21.592C82.0412 21.592 81.5652 21.032 81.5652 19.044V8.88ZM74.8592 11.204H79.5072V12.73H74.8592V11.204ZM76.9732 15.992L78.6392 14.004V21.774H76.9732V15.992ZM76.9732 8.628H78.6392V11.918H76.9732V8.628ZM78.4712 14.312C79.0032 14.676 80.6552 16.16 81.0612 16.524L80.0252 17.896C79.4512 17.14 78.2192 15.782 77.5612 15.138L78.4712 14.312ZM79.0592 11.204H79.3812L79.6752 11.148L80.6132 11.764C79.5212 14.55 77.3092 17.014 75.1392 18.316C74.9992 17.868 74.5932 17.042 74.3412 16.72C76.3292 15.684 78.2612 13.612 79.0592 11.512V11.204Z",fill:"white"},null,-1))],qi={key:1,width:"80",height:"30",viewBox:"0 0 80 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi=[Es(()=>Object(o.createElementVNode)("rect",{width:"80",height:"30",rx:"6",fill:"#E9E9E9"},null,-1)),Es(()=>Object(o.createElementVNode)("path",{d:"M16.1436 22.1182C15.4144 22.1182 14.8561 21.9268 14.4688 21.5439C14.0859 21.1657 13.8945 20.6143 13.8945 19.8896V13.6143C13.8945 12.8896 14.0859 12.3382 14.4688 11.96C14.8561 11.5771 15.4144 11.3857 16.1436 11.3857H17.9414V12.958H16.3008C16.0319 12.958 15.8268 13.0264 15.6855 13.1631C15.5443 13.2998 15.4736 13.5117 15.4736 13.7988V19.7051C15.4736 19.9922 15.5443 20.2018 15.6855 20.334C15.8268 20.4707 16.0319 20.5391 16.3008 20.5391H23.4648C23.7337 20.5391 23.9388 20.4707 24.0801 20.334C24.2214 20.2018 24.292 19.9922 24.292 19.7051V13.7988C24.292 13.5117 24.2214 13.2998 24.0801 13.1631C23.9388 13.0264 23.7337 12.958 23.4648 12.958H21.8174V11.3857H23.6221C24.3512 11.3857 24.9072 11.5771 25.29 11.96C25.6774 12.3428 25.8711 12.8942 25.8711 13.6143V19.8896C25.8711 20.6097 25.6774 21.1611 25.29 21.5439C24.9072 21.9268 24.3512 22.1182 23.6221 22.1182H16.1436ZM19.8828 16.7109C19.6823 16.7109 19.5114 16.6403 19.3701 16.499C19.2334 16.3577 19.165 16.1914 19.165 16V9.62891L19.2266 8.67871L18.9189 9.12988L18.0986 10.0049C17.971 10.1416 17.8138 10.21 17.627 10.21C17.4583 10.21 17.3125 10.1553 17.1895 10.0459C17.0664 9.93197 17.0049 9.78841 17.0049 9.61523C17.0049 9.45117 17.071 9.30306 17.2031 9.1709L19.3223 7.13379C19.4134 7.04264 19.5046 6.97884 19.5957 6.94238C19.6914 6.90592 19.7871 6.8877 19.8828 6.8877C19.9785 6.8877 20.0719 6.90592 20.1631 6.94238C20.2542 6.97884 20.3477 7.04264 20.4434 7.13379L22.5625 9.1709C22.6901 9.30306 22.7539 9.45117 22.7539 9.61523C22.7539 9.78841 22.6924 9.93197 22.5693 10.0459C22.4463 10.1553 22.3005 10.21 22.1318 10.21C21.945 10.21 21.79 10.1416 21.667 10.0049L20.8467 9.12988L20.5322 8.67871L20.5938 9.62891V16C20.5938 16.1914 20.5254 16.3577 20.3887 16.499C20.252 16.6403 20.0833 16.7109 19.8828 16.7109ZM36.4689 12.752H44.0429V14.39H36.4689V12.752ZM43.4969 12.752H45.2609C45.2609 12.752 45.2469 13.27 45.2329 13.48C45.0789 17.736 44.9109 19.402 44.4209 19.976C44.0709 20.452 43.6789 20.578 43.1469 20.662C42.6569 20.732 41.8449 20.718 41.0189 20.69C40.9909 20.2 40.7669 19.472 40.4589 18.996C41.2429 19.066 41.9709 19.08 42.3209 19.08C42.5729 19.08 42.7269 19.038 42.8809 18.884C43.2169 18.52 43.3709 16.952 43.4969 13.06V12.752ZM38.0509 7.796L39.8709 8.328C38.8209 10.764 37.1129 13.018 35.3489 14.404C35.0269 14.04 34.2989 13.368 33.8929 13.046C35.6569 11.884 37.2109 9.924 38.0509 7.796ZM43.3849 7.768C44.2669 9.546 46.0309 11.59 47.5709 12.766C47.1089 13.13 46.4649 13.816 46.1429 14.292C44.5609 12.836 42.8389 10.568 41.7329 8.426L43.3849 7.768ZM38.9749 13.228H40.7949C40.5289 16.378 39.9269 19.304 35.7549 20.858C35.5449 20.396 35.0549 19.682 34.6629 19.318C38.4149 18.086 38.7509 15.72 38.9749 13.228ZM48.4249 16.798H61.0809V18.226H48.4249V16.798ZM53.8009 7.614H55.5789V9.504H53.8009V7.614ZM49.7969 14.362H58.1829V15.664H49.7969V14.362ZM53.8289 16.21H55.6069V19.234C55.6069 20.06 55.3689 20.41 54.6969 20.606C54.0389 20.788 53.1149 20.788 51.8829 20.788C51.7849 20.368 51.5329 19.794 51.3089 19.416C52.1209 19.444 53.2269 19.444 53.4649 19.444C53.7309 19.43 53.8289 19.374 53.8289 19.164V16.21ZM57.8189 14.362H58.2669L58.6449 14.292L59.6949 15.202C58.3789 16 56.6849 16.77 54.9489 17.246C54.7669 16.98 54.3749 16.56 54.1649 16.35C55.5229 15.958 57.0769 15.216 57.8189 14.67V14.362ZM51.9249 11.856V12.64H57.5669V11.856H51.9249ZM50.2449 10.708H59.3449V13.788H50.2449V10.708ZM48.6209 8.65H60.8429V10.064H48.6209V8.65Z",fill:"#413E3B"},null,-1))],Gi=[Es(()=>Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",style:{"font-size":"14px"}},"å
³æ³¨å
¬ä¼å·ï¼ç¬¬ä¸æ¶é´è·å¾æé",-1))],Yi={key:0,class:"plans"}
1,Qi={key:0,class:"plan"},Ki={class:"price"},Ji={class:"num"},Xi=["onClick"];var el=a("0dea");a("194c");const tl=e=>(Object(o.pushScopeId)("data-v-70f2f1f6"),e=e(),Object(o.popScopeId)(),e),al={class:"category"},ol=tl(()=>Object(o.createElementVNode)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.960938 4.08002L6.00094 9.36002L11.0409 4.08002H0.960938Z",fill:"#ABABAE"})],-1)),rl={key:0},cl={key:1},sl={class:"filterList"},nl={key:0},il=["onClick"],ll={key:0,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dl=[tl(()=>Object(o.createElementVNode)("path",{d:"M7.5 0C3.35775 0 0 3.35775 0 7.5C0 11.6423 3.35775 15 7.5 15C11.6423 15 15 11.6423 15 7.5C15 3.35775 11.6423 0 7.5 0ZM6 11.5605L2.46975 8.03025L3.53025 6.96975L6 9.4395L11.4697 3.96975L12.5303 5.03025L6 11.5605Z",fill:"#BD4322"},null,-1))],pl=["onClick"],ul={key:0,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ml=[tl(()=>Object(o.createElementVNode)("path",{d:"M7.5 0C3.35775 0 0 3.35775 0 7.5C0 11.6423 3.35775 15 7.5 15C11.6423 15 15 11.6423 15 7.5C15 3.35775 11.6423 0 7.5 0ZM6 11.5605L2.46975 8.03025L3.53025 6.96975L6 9.4395L11.4697 3.96975L12.5303 5.03025L6 11.5605Z",fill:"#BD4322"},null,-1))];var hl={name:"PaperStyle",props:{paper:{type:Object,required:!0},handleChange:{type:Function,required:!0},showTagBar:{type:Boolean,default:!1},tabClick:{type:Function,required:!0},tab:{type:String,default:"description"},paperDescription:{type:Object,default:null},handleSortChange:{type:Function,required:!0}},setup(e){const t=Object(o.inject)("$store"),a=Object(o.reactive)({currentPaper:null,default_list_type:"",default_sort_type:"desc",list:[{name:"å表模å¼",value:"list"},{name:"å
¨ææ¨¡å¼",value:"article"}],sortList:[{name:"æ° -> æ§",value:"desc"},{name:"æ§ -> æ°",value:"asc"}],visible:!1});Object(o.watch)(()=>t.state.papers.paperInfo,e=>{const{settings:o}=t.state.papers;if(a.currentPaper=e,e)if(o.length){let t=o.find(t=>t.id===e.slug);t?(a.default_list_type=t.mode,a.default_sort_type=t.sort||"desc"):r(e)}else r(e)}),Object(o.onMounted)(()=>{const e=t.state.papers.paperInfo,{settings:o}=t.state.papers;if(window.addEventListener("scroll",s),a.currentPaper=e,e)if(o.length){let t=o.find(t=>t.id===e.slug);t?(a.default_list_type=t.mode,a.default_sort_type=t.sort||"desc"):r(e)}else r(e)});const r=e=>{if(e.subscription||e.writable){const t={BOOKLET:"list",COLUMN:"article"};a.default_list_type=t[e.type]}else a.default_list_type="list";t.commit("papers/addPaperSetting",{id:e.slug,mode:a.default_list_type})},c=Object(o.ref)(!1),s=()=>{const e=document.querySelector(".paper-info"),t=e?e.offsetHeight:300,a=window.scrollY;c.value=a>t};return Object(o.onUnmounted)(()=>{window.removeEventListener("scroll",s)}),{...e,state:a,selectMode:o=>{t.commit("papers/addPaperSetting",{id:a.currentPaper.slug,mode:o}),a.default_list_type=o,e.handleChange(o),a.visible=!1},isSubscribe:()=>e.paper&&!e.paper.writable&&!e.paper.subscription,isFreePreview:()=>e.paper&&e.paper.free_post_count,selectSortMode:o=>{t.commit("papers/addPaperSetting",{id:a.currentPaper.slug,sort:o}),a.default_sort_type=o,e.handleSortChange(o),a.visible=!1},isSticky:c}}};a("d27f9"),a("de7f");var bl=j()(hl,[["render",function(e,t,a,r,c,s){const n=el.a;return r.state.default_list_type?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:Object(o.normalizeClass)(["paperStyle",{sticky:r.isSticky,hasTag:a.showTagBar}])},[Object(o.createElementVNode)("div",al,[a.paperDescription?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:Object(o.normalizeClass)({active:"description"===a.tab}),onClick:t[0]||(t[0]=e=>a.tabClick("description"))}," ä»ç» ",2)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)({active:"content"===a.tab}),onClick:t[1]||(t[1]=e=>a.tabClick("content"))},"å
容",2),r.isSubscribe()&&r.isFreePreview()?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:Object(o.normalizeClass)({active:"freePreview"===a.tab}),onClick:t[2]||(t[2]=e=>a.tabClick("freePreview"))}," å
è´¹é¢è§ ",2)):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",null,[Object(o.createVNode)(n,{visible:r.state.visible,"onUpdate:visible":t[4]||(t[4]=e=>r.state.visible=e),placement:"bottom-end","popper-class":"filterPopover",trigger:"click","
1show-arrow":!1,offset:0},{reference:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",{class:"text",onClick:t[3]||(t[3]=e=>r.state.visible=!0)},[ol,a.paper&&-1==a.paper.slug.indexOf("pmthinking")?(Object(o.openBlock)(),Object(o.createElementBlock)("span",rl,"æåºä¸è§å¾")):Object(o.createCommentVNode)("",!0),a.paper&&a.paper.slug.indexOf("pmthinking")>-1?(Object(o.openBlock)(),Object(o.createElementBlock)("span",cl,"æåº ")):Object(o.createCommentVNode)("",!0)])]),default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",sl,[a.paper&&-1==a.paper.slug.indexOf("pmthinking")?(Object(o.openBlock)(),Object(o.createElementBlock)("div",nl,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(r.state.list,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"item",key:e.value,onClick:t=>r.selectMode(e.value)},[r.state.default_list_type==e.value?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",ll,dl)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("span",{class:Object(o.normalizeClass)(r.state.default_list_type==e.value?"active":"")},Object(o.toDisplayString)(e.name),3)],8,il))),128))])):Object(o.createCommentVNode)("",!0),a.paper&&-1==a.paper.slug.indexOf("pmthinking")?(Object(o.openBlock)(),Object(o.createElementBlock)("hr",{key:1,style:Object(o.normalizeStyle)({height:"1px",backgroundColor:"var(--border-color)",border:"none"})},null,4)):Object(o.createCommentVNode)("",!0),(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(r.state.sortList,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"item",key:e.value,onClick:t=>r.selectSortMode(e.value)},[r.state.default_sort_type==e.value?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",ul,ml)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("span",{class:Object(o.normalizeClass)(r.state.default_sort_type==e.value?"active":"")},Object(o.toDisplayString)(e.name),3)],8,pl))),128))])]),_:1},8,["visible"])])],2)):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-70f2f1f6"]]);const gl=e=>(Object(o.pushScopeId)("data-v-72f3455b"),e=e(),Object(o.popScopeId)(),e),Ol={key:0,class:"referText"},jl=Object(o.createTextVNode)(" å½æäººéè¿ä½ çå享ä»è´¹è´ä¹°è¯¥ä¸æ ï¼å
¶å®é
"),Cl=gl(()=>Object(o.createElementVNode)("span",{class:"text-bold"},"æ¯ä»éé¢",-1)),fl=Object(o.createTextVNode)("ä¸ç "),vl={class:"text-theme"},wl=Object(o.createTextVNode)(" ä¼è½¬å
¥ä½ çå°æ¥ç«¥é±å
ã "),Vl=gl(()=>Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/partner.html",style:{color:"#64a1bc","text-decoration":"none"},target:"_blank"},"äºè§£æ´å¤åä¼äººè®¡å...")],-1)),kl={class:"p-10"},yl={key:3,style:{height:"40px"}};var _l={name:"refer-model",props:{visible:{type:Boolean,default:!1,required:!0},close:{type:Function,default:()=>{},required:!0},paper:{type:Object,default:()=>{},required:!0},sharePaper:{type:Function,default:()=>{},required:!1},copyPaperUrl:{type:Function,default:()=>{},required:!0},shareCoupon:{type:Boolean,default:!1,required:!1}},components:{AppModalVue:C},computed:{title(){return this.paper&&this.paper.writable?"æ´å¤":this.paper&&this.paper.refer_ratio>0&&!this.paper.isNotAllowBuy&&this.paper.can_refer?"åä¼äººè®¡å":"å享"},coupon(){return this.$store.getters["coupon/coupon"]},isMobile(){return this.$store.state.isMobile||window.innerWidth<=1020}},setup(){const{isInWechatMP:e}=Object(K.a)(),{trackEvent:t}=Hr();return{isInWechatMP:e,trackEvent:t}},methods:{handleSharePaper(){const e=this.$store.getters["user/is_login"]&&this.paper.writable;this.trackEvent("share_paper","paper",{user:e?"creator":"reader"}),this.sharePaper()},toPaperSetting(){this.close(),this.$router.push({name:"PaperSetting",params:{slug:this.paper.slug}})},copyPaperWxUrl(){this.$store.dispatch("papers/copyPaperWxUrl",this.paper.slug)}}};a("66ee");var El=j()(_l,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("AppModalVue");return Object(o.openBlock)(),Object(o.createBlock)(n,{title:s.title,visible:a.visible,closeDrawer:a.close},{default:Object(o.withCtx)(()=>[a.paper&&a.paper.refer_ratio>0&&!a.paper.isNotAllowBuy&&a.paper.can_refer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ol,[Object(o.createElementVNode)("p",null,"ã"+Object(o.toDisplayString)(a.paper.n
1ame)+"ãå·²å¼å¯åä¼äººè®¡å",1),Object(o.createElementVNode)("p",null,[jl,Cl,fl,Object(o.createElementVNode)("span",vl,Object(o.toDisplayString)(100*a.paper.refer_ratio)+"%",1),wl]),Vl])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",kl,[a.shareCoupon?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:0,class:"btn bg-white btn-large back block",onClick:t[0]||(t[0]=()=>{s.handleSharePaper(),a.close()})},"çææµ·æ¥")),Object(o.createElementVNode)("a",{class:"btn btn-large bg-white back block copyUrl",onClick:t[1]||(t[1]=()=>{a.copyPaperUrl(),a.close()})},"å¤å¶é¾æ¥"),!a.shareCoupon&&a.paper&&a.paper.writable&&r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:1,class:"btn btn-large bg-white back block copyUrl",onClick:t[2]||(t[2]=()=>{s.copyPaperWxUrl(),a.close()})},"åµå
¥å
¬ä¼å·")):Object(o.createCommentVNode)("",!0),!a.shareCoupon&&a.paper&&a.paper.writable?(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:2,class:"btn btn-large bg-white back block copyUrl",onClick:t[3]||(t[3]=(...e)=>s.toPaperSetting&&s.toPaperSetting(...e))},"䏿 设置")):Object(o.createCommentVNode)("",!0),s.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",yl)):Object(o.createCommentVNode)("",!0)])]),_:1},8,["title","visible","closeDrawer"])}],["__scopeId","data-v-72f3455b"]]);const Nl=a("5292");var Bl={name:"Paper",components:{Post:_s,PostEditor:Oc,PostDetail:Sr,PaperShareCard:ot,PaperStyleVue:bl,ReferModelVue:El,ConfirmAnOrder:_r,AppModalVue:C},inject:["reload"],data(){return{loading:!1,isPostsFinished:!1,paper:null,tags:[],posts:[],pinnedPost:null,show_subscribe_drawer:!1,show_post_editor_drawer:!1,show_post_detail_drawer:!1,show_write_comment_drawer:!1,show_paper_share_card:!1,selectedTag:null,showTagBar:!1,itemRefs:[],title:"䏿 详æ
",isMobile:this.$store.state.isMobile||window.innerWidth<=1020,tagOffset:0,showReferRatioModel:!1,tab:"description",paperDescription:null,created_at:"desc",showConfirmAnOrder:!1,subscribePrice:null,clickSearch:!1,keyword:"",queryString:"",coupon:null,couponId:"",couponList:[],paperIntroShowMore:!1,restoredScroll:!1,restoreTimer:null}},setup(){const{isInWechatMP:e}=Object(K.a)(),{trackPageView:t}=Hr(),{balance:a}=qo(),r=Object(o.ref)(!1),c=()=>{const e=document.querySelector(".paper-info"),t=e?e.offsetHeight:300,a=window.scrollY;r.value=a>t};return Object(o.onMounted)(()=>{window.addEventListener("scroll",c),t("paper_page_show","paper")}),Object(o.onUnmounted)(()=>{window.removeEventListener("scroll",c)}),{isInWechatMP:e,isSticky:r,trackPageView:t,balance:a}},computed:{paper_word_count(){if(!this.paper||!this.paper.word_count)return 0;if(this.paper.word_count<100)return this.paper.word_count;const e=this.paper.word_count/1e3,t=e.toFixed(1);return t.endsWith(".0")?Math.round(e).toString():t},formatted_word_count(){const e=this.paper_word_count;return e?this.paper&&this.paper.word_count>=100?e+'<span style="font-size: 12px">k</span>':e.toString():"0"},calcWidth(){return this.isMobile?window.innerWidth>390?"390px":"90vw":"390px"},isLogin(){return this.$store.state.user.user.access_token},keyword_match(){return!this.keyword||(this.pinnedPost.title&&this.pinnedPost.title.includes(this.keyword)||this.pinnedPost.content.includes(this.keyword))},mute(){return this.paper.mute},servered_days(){return this.paper?Nl().diff(this.paper.created_at,"days"):"N/A"},subscription_expired_at(){return this.paper&&this.paper.subscription?Nl(this.paper.subscription.expired_at).format("YYYY/MM/DD"):""},subscription_expired_days(){return this.paper&&this.paper.subscription?Nl(this.paper.subscription.expired_at).diff(Nl(),"seconds")/86400:-1},subscription_expired_date(){return this.paper&&this.paper.subscription?Nl(this.paper.subscription.expired_at).format("YYYY/MM/DD"):""},parsed_intro(){if(!this.paper||!this.paper.intro)return"";let e=this.paper.intro.replace(/\n/g,"<br/>");return e=e.replace(/(https?:\/\/([^\s</#)ï¼]+)[^\s<)ï¼]*)/g,(function(e,t,a){return'<a href="'+t.replace('"',"%22")+'" target="_blank">'+a+"</a>"})),e||(e="ææ ä»ç»"),Object(ye.l)(e)},tagStyle(){return{transform:`translateX(-${this.tagOffset}px)`}},showRightArrow:()=>document.querySelectorAll(".tag")[document.querySelectorAll(".tag").length-1].getBoundingClientRect().x<document.querySelector(".right-arrow").getBoundingClientRect().x,showReferRatioIcon(){return this.paper&&this.paper.refer_ratio>0&&!this.paper.isNotAllowBuy&&this.paper.can_refer},paperPrice(){return this.paper&&this.paper.prices&&1==this.paper.prices.length?this.paper.prices[0].price/100:0},gradientId:()=>"paint0_linear_6635_1085",gradientUrl(){return`url(#${this.gradientId})`},leftGradientId:()=>"paint0_linear_6635_1086",leftGradientUrl(){return`url(#${this.leftGradientId})`},bgColor(){if("undefined"==typeof window)return"#F8F6F4";const e=document.documentElement;return getComputedStyle(e).getPropertyValue("--bg-color").trim()||"#F8F6F4"},textGrayColor(){if("undefined"==typeof window)return"#ACABAE";const e=document.documentElement;return getComputedStyle(e).getPropertyValue("--text-gray").trim()||"#ACABAE"},iconColor(){if("undefined"==typeof window)return"#3F3E3C";const e=document.documentElement;return getComputedStyle(e).getPropertyValue("--text-color").trim()||"#3F3E3C"}},methods:{handleClickIntro(){this.$router.push({name:"PaperIntro",params:{slug:this.$route.params.slug}})},clickSharePaper(){this.showReferRatioModel=!0},handleCantBuy(){this.$store.getters["user/is_login"]?Wa.a.miniProgram.navigateTo({url:"/pages/pay/pay?slug="+this.$route.params.slug+"&name="+this.paper.n
1ame+"&price="+this.totalAmount}):this.$router.replace("/wechat_auth/?redirect="+this.$route.fullPath)},handleClickCancel(){this.queryString="",this.keyword=this.queryString,this.clickSearch=!1,this.loadPosts()},doSearch(){this.keyword=this.queryString.trim(),this.loadPosts()},handleClickSearch(){this.clickSearch=!this.clickSearch,this.$nextTick(()=>{this.$refs.searchInput&&(this.$refs.searchInput.focus(),document.querySelector("#paperContent").scrollIntoView(!0))},500)},paySuccess(){this.hideConfirmAnOrder(),this.show_subscribe_drawer=!1;const{show_pay_popup:e}=this.$router.currentRoute.value.query;e&&(this.trackPageView("paper_page_show","paper",{paper_pay_success:"true"}),this.deleteShowPayPopup()),this.loadPaper()},deleteShowPayPopup(){this.$router.replace({query:{...this.$router.currentRoute.value.query,show_pay_popup:null}})},hideConfirmAnOrder(){this.showConfirmAnOrder=!1,this.deleteShowPayPopup()},showConfirmAnOrderModal(e){this.showConfirmAnOrder=!0,this.subscribePrice=e},toggleMute(){this.$api.call("POST",`/paper/${this.$route.params.slug}/subscription`,{mute:0==this.paper.mute?1:0},e=>{if(200==e.data.code){this.paper={...this.paper,...e.data.data};let t=0==this.paper.mute?"å·²å¼å¯":"å·²å
³é";Object(ke.a)({message:"微信/é®ä»¶æé"+t,type:"warning"})}else Object(ke.a)({message:e.data.message,type:"error"})})},notSubscribedPaper(){return this.paper&&!this.paper.writable&&!this.paper.subscription},loadPaperDescription(){const e=this;e.$api.call("GET",`/paper/${e.$route.params.slug}/post/description`,{},t=>{200==t.data.code?e.paperDescription=t.data.data:Object(ke.a)({message:t.data.message,type:"error"})})},showPayPopup(){const{show_pay_popup:e}=this.$router.currentRoute.value.query;e&&(this.openSubscribeDrawer(),this.trackPageView("paper_page_show","paper",{show_pay_popup:e}))},loadPaper(){this.loading=!0;const{query:{refer_channel:e,preview:t}}=this.$route;this.loadPaperDescription(),this.$api.call("GET","/paper/"+this.$route.params.slug,{refer_channel:e||""},async e=>{if(200==e.data.code){let a=this.getPaperStyle(e.data.data),o=Object(ye.l)(e.data.data.intro).replace(/<[^>]+>/g,"").replace(/\n/g,""),r=0,c=!0;r=a.name.length>12?12:28,o.length<r&&(r=o.length,c=!1),c&&(o=o.slice(0,r)+"..."),this.created_at=a.sortType,this.paper={...a,isNotAllowBuy:0==a.prices.length||a.prices.length&&!a.prices.filter(e=>e.price>0).length,name:Object(ye.l)(a.name),introText:o.length?o:"ææ ä»ç»"},this.scrollToContent(),this.loadTags(),this.loadPinnedPost(),(this.notSubscribedPaper()||this.paperDescription||t)&&this.paperDescription&&(t||this.notSubscribedPaper())?(this.tab="description",t&&this.$router.replace({path:"/p/"+this.$route.params.slug})):(this.tab="content",this.loadPosts()),this.paperIntroShowMore=o.length>74&&e.data.data.subscription,document.title=Object(ye.l)(this.paper.name),this.showPayPopup();let s={};s[this.paper.slug]=this.paper.latest_post_uuid,this.$store.commit("papers/setLatestPostUuidMap",s),this.$store.commit("papers/setPaperInfo",this.paper),this.title="䏿 详æ
";const n=Object(ye.g)(this.paper.slug);Ga({title:this.paper.name,desc:this.paper.intro,img:this.paper.avatar_url,path:n})}else Object(ke.a)({message:e.data.message,type:"error"}),this.loading=!1})},loadTags(){this.$api.call("GET","/paper/"+this.$route.params.slug+"/tag",{},e=>{if(200==e.data.code){let t=e.data.data;t.sort((function(e,t){return t.count-e.count})),this.tags=t,this.showTagBar=!1;let a=this;
1this.tags.forEach((function(e){e.recommended_index>=0&&(a.showTagBar=!0)}))}else Object(ke.a)({message:e.data.message,type:"error"})})},loadPosts(){this.isPostsFinished=!1,this.loading=!0,this.$api.call("GET","/paper/"+this.$route.params.slug+"/post",{limit:20,offset:0,tag_name:this.selectedTag?this.selectedTag.name:"",keyword:this.keyword,order_by:"created_at "+this.created_at},e=>{200==e.data.code?(this.posts=e.data.data.map(e=>{const t=e.likers.reverse();if(e.likers=t,0==e.files.length){const t=e.content||"",a=/<img[^>]+src="([^">]+)"/g.exec(t);a&&a[1]&&e.files.push({url:a[1],thumbnail_url:a[1]+"!thumbnail",id:(new Date).getTime()+Math.random(),name:a[1].split("/").pop()})}return e}).filter(e=>!e.is_description&&!e.draft),e.data.data.length<20&&(this.isPostsFinished=!0)):Object(ke.a)({message:e.data.message,type:"error"}),this.loading=!1})},loadMorePosts(){this.loading||this.paper&&null!=this.posts&&0!=this.posts.length&&this.$route.params.slug&&(this.loading=!0,this.$api.call("GET","/paper/"+this.$route.params.slug+"/post",{limit:20,offset:this.posts.length,tag_name:this.selectedTag?this.selectedTag.name:"",keyword:this.keyword,order_by:"created_at "+this.created_at},e=>{if(200==e.data.code){for(let t in e.data.data){let a=e.data.data[t];const o=a.likers.reverse();a.likers=o,a.is_description||a.draft||-1===this.posts.findIndex(e=>e.uuid===a.uuid)&&this.posts.push(a)}e.data.data.length<20&&(this.isPostsFinished=!0)}else Object(ke.a)({message:e.data.message,type:"error"}),this.isPostsFinished=!0;setTimeout(()=>{this.loading=!1},1500)}))},loadPinnedPost(){this.$api.call("GET","/paper/"+this.$route.params.slug+"/post/pinned",{},e=>{if(200==e.data.code){var t=e.data.data;this.pinnedPost=t[0]}else Object(ke.a)({message:e.data.message,type:"error"})})},createPost(){this.show_post_editor_drawer=!0,this.$nextTick(()=>{this.$refs.editor.fileList=[],this.$refs.editor.tags=[],this.$refs.editor.origin_tags=this.tags,this.$refs.editor.paper_slug=this.paper.slug,this.$refs.editor.refreshFilesAndTags(),this.$refs.editor.showCraftMessageBox()})},redirectToCreatePost(){Object(ye.k)(()=>{const e=Object(ye.c)()+"/creator/"+this.paper.slug+"/edit/";return window.open(e)},()=>{this.createPost()})},redirectToSubscriberList(){this.paper.writable&&this.$router.push({name:"SubscriberList",params:{slug:this.$route.params.slug}})},redirectToPaperSetting(){this.paper.writable&&(this.$store.commit("papers/setCurrent",this.paper),this.$router.push({name:"PaperSetting",params:{slug:this.$route.params.slug}}))},handleEditorDrawerClose(){Object(Ua.a)({message:"ç¡®å®å
³éç¼è¾å¨ï¼",showCancelButton:!0,confirmButtonText:"ç¡®å®",cancelButtonText:"åæ¶"}).then(e=>{"confirm"===e&&(this.show_post_editor_drawer=!1,this.$refs.editor.reset())}).catch(()=>{})},newPostCreated(e){this.posts.unshift(e),this.show_post_editor_drawer=!1},editPost(e){this.show_post_editor_drawer=!0,this.$nextTick(()=>{this.$refs.editor.post_uuid=e.uuid,this.$refs.editor.content=Object(ye.l)(e.content),this.$refs.editor.title=e.title?Object(ye.l)(e.title):"",this.$refs.editor.fileList=e.files&&e.files.length?e.files:[],this.$refs.editor.tags=e.tag_names,this.$refs.editor.origin_tags=this.tags,this.$refs.editor.paper_slug=this.paper.slug,this.$refs.editor.refreshFilesAndTags(),this.$refs.editor.showCraftMessageBox()})},postEditClicked(e){Object(ye.k)(()=>{const t=Object(ye.c)()+"/creator/"+this.paper.slug+"/edit/"+e.uuid;return window.open(t)},()=>{this.editPost(e)})},postEdited(e){for(let t=0;t<this.posts.length;t++){if(this.posts[t].uuid===e.uuid){this.posts[t]={...this.posts[t],...e};break}}null!=this.pinnedPost&&this.pinnedPost.uuid===e.uuid&&(this.pinnedPost=e,this.pinnedPost.pinned=!0),this.show_post_editor_drawer=!1,this.$refs.detail&&(this.$refs.detail.post=e)},pinEdited(e){e.pinned?this.pinnedPost=e:null==this.pinnedPost||this.pinnedPost.uuid!==e.uuid||e.pinned||(this.pinnedPost=null)},removeLocalPost(e){for(let t in this.posts)if(this.posts[t].uuid==e.uuid){this.posts.splice(t,1);break}
1this.tags.forEach((function(t){e.tag_names.indexOf(t.name)>=0&&(t.count=t.count-1)}))},openSubscribeDrawer(){this.$store.getters["user/is_login"]?this.paper&&this.paper.prices&&(1!=this.paper.prices.length?this.show_subscribe_drawer=!0:this.showConfirmAnOrderModal(this.paper.prices[0])):this.$router.replace("/wechat_auth/?redirect=/p/"+this.$route.params.slug)},subscribe(e){if(!this.$store.getters["user/is_login"])return void this.$router.replace("/wechat_auth/?redirect=/p/"+this.$route.params.slug);let t=Object(ye.d)(this.paper.slug);if(t){(new Date).getTime()-t.time>6048e5&&(t=null,this.$store.commit("papers/removeRefer",this.paper.slug))}let a=/MicroMessenger/i.test(window.navigator.userAgent);if(!a&&this.isMobile)return void Object(ke.a)({message:"æä»
æ¯æå¨å¾®ä¿¡å
æ¯ä»ï¼è¯·å¨å¾®ä¿¡å
æå¼æ¤é¡µé¢",type:"error"});if(!a&&!this.isMobile)return this.$store.commit("setCurrentUrl",window.location.href),void this.$store.commit("setShowWxGuide",!0);let o=this;this.$api.call("POST","/paper/"+this.$route.params.slug+"/subscribe_by_wechat_pay",{price_type:e,refer:t&&t.refer?t.refer:"",refer_channel:t&&t.refer_channel?t.refer_channel:""},e=>{200==e.data.code?WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.data.data.appid,timeStamp:e.data.data.timeStamp,nonceStr:e.data.data.nonce_str,package:"prepay_id="+e.data.data.prepay_id,signType:"MD5",paySign:e.data.data.paySign},(function(e){"get_brand_wcpay_request:ok"==e.err_msg&&(o.loadPaper(),o.show_subscribe_drawer=!1,Object(ke.a)({message:"BOOKLET"===o.paper.type?"è´ä¹°æå":"订é
æåï¼",type:"success"}),o.$store.state.user.user.subscribe_wechat||Ua.a.alert('<img src="/img/qrcode_for_gh_a14c27ae9ee8_258.jpg" /><p style="text-align:center; font-size:14px;">é¿æå
³æ³¨å
¬ä¼å·<br/>æ¯å¨æé䏿 æ´æ°</p>',"BOOKLET"===o.paper.type?"è´ä¹°æå":"订é
æåï¼",{dangerouslyUseHTMLString:!0,showConfirmButton:!1}))})):console.log(e.data.message)})},leadToOfficeAccount(){Ua.a.alert('<img src="/img/qrcode_for_gh_a14c27ae9ee8_258.jpg" />',"å
³æ³¨å
¬ä¼å·",{dangerouslyUseHTMLString:!0})},handlePictureCardPreview(e,t,a){if(!this.paper.writable&&this.subscription_expired_days<0&&this.compareDate(a.created_at))return void Object(ke.a)({message:"è´ä¹°ä¸æ 忹坿¥ç大å¾",type:"info"});let o=[];e.forEach((function(e){o.push(e.url)})),this.$viewerApi({options:{toolbar:!1,initialViewIndex:t,title:!1},images:o})},redirectToPaper(e){this.$router.push({name:"Paper",params:{slug:e.slug}}),setTimeout(()=>{this.reload()},500)},postTagClick(e){let t=null;
1this.tags.forEach((function(a){a.name==e&&(t=a)})),t&&this.clickTag(t)},clickTag(e){this.tagOffset=0,this.selectedTag=e,this.posts=[],this.loadPosts()},removeSelectedTag(){this.selectedTag=null,this.loadPosts()},commentClick(e){if(!this.paper.writable&&this.subscription_expired_days<0&&this.compareDate(e.created_at))return void Object(ke.a)({message:"è´ä¹°ä¸æ 忹坿¥ç",type:"info"});let t=this;this.showDetail(e,0==e.comment_count?function(){setTimeout(()=>{t.$refs.detail.writeComment()},500)}:null,!0)},contentClick(e){let t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;"Paper"==this.$router.currentRoute.value.name&&this.$store.commit("position/setScrollTop",t),this.showDetail(e)},showDetail(e,t,a){!this.paper.writable&&this.subscription_expired_days<0&&this.compareDate(e.created_at)&&!e.free?Object(ke.a)({message:"è´ä¹°ä¸æ 忹坿¥ç",type:"info"}):this.isInWechatMP?Br("PostDetail",{uuid:e.uuid,refer:this.$store.state.user.user.uuid}):this.$router.push({name:"PostPage",params:{uuid:e.uuid},query:{scrollToComment:a}})},createComment(e){this.posts.forEach((function(t){t.uuid==e.uuid&&(t.comment_count=t.comment_count+1)}))},deleteComment(e){this.posts.forEach((function(t){t.uuid==e.uuid&&(t.comment_count=t.comment_count-1)}))},scrollBottom(){const e=document.getElementById("posts");e&&e.getBoundingClientRect().bottom<window.innerHeight+600&&!this.isPostsFinished&&this.loadMorePosts()},openShare(){this.$store.getters["user/is_login"]?(this.show_paper_share_card=!0,this.$refs.share_paper_card?this.$refs.share_paper_card.setPaper(this.paper):setTimeout(()=>{this.openShare()},500)):this.$router.replace("/wechat_auth/?redirect="+this.$route.fullPath)},composeValue:(e,t)=>({target:t,command:e}),handleCommand(e){"copy"===e.command?this.copyUrl():"share"===e.command&&this.openShare()},copyUrl(){if(this.$store.getters["user/is_login"]){let{toClipboard:e}=za()(),t=Object(ye.g)(this.paper.slug);this.coupon&&(t=t+"&couponId="+this.coupon.uuid),e(t),Object(ke.a)({message:"å¤å¶æå",type:"success"})}else this.$router.replace("/wechat_auth/?redirect="+this.$route.fullPath)},setItemRef(e){this.itemRefs.push(e)},getLikeData(){const e=this.$store.getters["posts/posts"];this.posts.forEach(t=>{const a=e.find(e=>e.id===t.uuid);a&&(t.has_liked=a.has_liked,a.has_liked?t.likers.push(this.$store.state.user.user):t.likers=t.likers.filter(e=>e.id!=this.$store.state.user.user.id),this.$store.commit("posts/deletePost",a))})},onlyLoadPaper(){this.$api.call("GET","/paper/"+this.$route.params.slug,{},async e=>{if(200==e.data.code){let t=this.getPaperStyle(e.data.data),a=Object(ye.l)(e.data.data.intro).replace(/<[^>]+>/g,"").replace(/\n/g,""),o=0,r=!0;o=t.name.length>12?12:28,a.length<o&&(o=a.length,r=!1),r&&(a=a.slice(0,o)+"..."),this.paper={...t,isNotAllowBuy:0==t.prices.length||t.prices.length&&!t.prices.filter(e=>e.price>0).length,introText:a.length?a:"ææ ä»ç»"},this.loadPaperDescription(),this.$store.commit("papers/setPaperInfo",this.paper),document.title=this.paper.name,this.tab="content",this.loadPosts(),this.scrollToContent(),this.showPayPopup(),this.title="䏿 详æ
";const c=Object(ye.g)(this.paper.slug);Ga({title:this.paper.name,desc:this.paper.intro,img:this.paper.avatar_url,path:c})}else Object(ke.a)({message:e.data.message,type:"error"})})},scrollPrev(){this.tagOffset=0},scrollNext(){const e=this.$refs.tagScroll.clientWidth-60;document.querySelectorAll(".tag")[document.querySelectorAll(".tag").length-1].getBoundingClientRect().x<document.querySelector(".right-arrow").getBoundingClientRect().x||(this.tagOffset+=e)},compareDate(e){if(e&&this.paper.subscription){const t=new Date(e),a=new Date(this.paper.subscription.expired_at).getTime()-t.getTime();return Math.floor(a/864e5)<0}return!1},changePaperStyle(e){this.paper={...this.paper,renderType:e}},handleSortChange(e){this.created_at=e,this.loadPosts()},getPaperStyle(e){const{settings:t}=this.$store.state.papers,{slug:a}=this.$route.params;if(t.length){let o=t.find(e=>e.id===a);if(o)e.renderType=o.mode,e.sortType=o.sort;else{let t="";t=e.subscription||e.writable?"BOOKLET"==e.type?"list":"article":"list",this.$store.commit("papers/addPaperSetting",{id:a,mode:t}),e.renderType=t}}else{let t="";t=e.subscription||e.writable?"BOOKLET"==e.type?"list":"article":"list",e.renderType=t}return e},saveRefer(){const{query:{refer:e,refer_channel:t},params:{slug:a}}=this.$route;if(e||t){if(this.$store.getters["user/is_login"]&&this.$store.state.user.user.uuid===e)return;this.$store.commit("papers/addRefer",{slug:a,refer:e||"",time:(new Date).getTime(),refer_channel:t||""})}},hideReferModel(){this.showReferRatioModel=!1},clickFreeTag(){this.selectedTag={name:"å
è´¹é¢è§"},this.tagOffset=0,this.posts=[],this.loadFreePosts()},loadFreePosts(){this.loading=!0,this.$api.call("GET","/paper/"+this.$route.params.slug+"/post/free",{},e=>{200==e.data.code?(this.posts=e.data.data.map(e=>{const t=e.likers.reverse();return e.likers=t,e}),this.loading=!1,this.isPostsFinished=!0,this.pinnedPost=null):Object(ke.a)({message:e.data.message,type:"error"})})},tabClick(e){this.tab=e,"freePreview"==e&&this.clickFreeTag(),"content"==e&&this.removeSelectedTag(),"description"==e&&this.loadPaperDescription()},scrollToContent(){this.notSubscribedPaper()||!this.isMobile||this.restoredScroll||this.$nextTick(()=>{const e=document.querySelector(".paper-info"),t=e?e.offsetHeight:300;setTimeout(()=>{window.scrollTo({top:t,behavior:"smooth"})},300)})},restoreScrollSafely(){const e=this.$store.getters["position/scrollTop"]||0;if(!e||e<0)return;let t=0;const a=()=>{const a=document.documentElement;(a.scrollHeight-window.innerHeight>=e-10||this.isPostsFinished||t>=100)&&(window.scrollTo(0,Math.max(0,Math.min(e,a.scrollHeight-1))),this.restoreTimer&&(clearInterval(this.restoreTimer),this.restoreTimer=null),this.restoredScroll=!0),t+=1};this.restoreTimer&&(clearInterval(this.restoreTimer),this.restoreTimer=null),this.$nextTick(a),this.restoreTimer=setInterval(a,100)}},mounted(){this.saveRefer(),window.addEventListener("scroll",this.scrollBottom);const{showPublish:e}=this.$route.params;e&&this.createPost()},beforeUnmount(){window.removeEventListener("scroll",this.scrollBottom),this.restoreTimer&&(clearInterval(this.restoreTimer),this.restoreTimer=null)},activated(){const{tag:e,couponId:t}=this.$route.query;this.saveRefer(),this.couponId=t,t?this.$router.push({name:"Coupon",params:{couponId:t}}
1):(e?(this.clickTag({name:e}),history.replaceState(null,null,window.location.pathname)):this.selectedTag=null,this.paper&&this.$route.params.slug===this.paper.slug?this.onlyLoadPaper():(this.paper=null,this.tags=[],this.posts=[],this.pinnedPost=null,this.loadPaper()),this.restoreScrollSafely(),this.getLikeData())},watch:{$route(e){const{slug:t}=e.params;this.paper&&t&&t!==this.paper.slug&&(this.paper=null,this.tags=[],this.posts=[],this.pinnedPost=null,this.$store.commit("papers/setPaperInfo",null),this.loadPaper()),this.tagOffset=0,this.getLikeData()}}};a("8a73"),a("80fa"),a("21b2");var Hl=j()(Bl,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("PaperStyleVue"),i=Object(o.resolveComponent)("GlobalNav"),l=ct.a,d=_s,p=Object(o.resolveComponent)("AppModalVue"),u=Oc,m=b.a,g=Sr,O=ot,j=h.a,C=Object(o.resolveComponent)("ReferModelVue"),f=Object(o.resolveComponent)("ConfirmAnOrder");return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[c.isMobile?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(n,{key:0,paper:c.paper,handleChange:s.changePaperStyle,showTagBar:c.showTagBar,tabClick:s.tabClick,tab:c.tab,paperDescription:c.paperDescription,handleSortChange:s.handleSortChange},null,8,["paper","handleChange","showTagBar","tabClick","tab","paperDescription","handleSortChange"])),c.loading&&!c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ns,Bs)):Object(o.createCommentVNode)("",!0),c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Hs,[c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"paper-info",onClick:t[1]||(t[1]=(...e)=>s.handleClickIntro&&s.handleClickIntro(...e))},[Object(o.createVNode)(i,{title:"",visible:!r.isInWechatMP},null,8,["visible"]),r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",xs)),c.paper&&!c.paper.writable&&c.paper.subscription&&s.subscription_expired_days<0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ms," 已尿ï¼å¯ç»§ç»æ¥ç "+Object(o.toDisplayString)(s.subscription_expired_at)+" åçå
容 ",1)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",Ls,[Object(o.createElementVNode)("div",Ss,[Object(o.createElementVNode)("img",{src:c.paper.avatar_url,class:"avatar"},null,8,Ts),c.paper.is_editor_pick?(Object(o.openBlock)(),Object(o.createElementBlock)("span",As,"ç¼è¾ç²¾é")):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Ps,[Object(o.createElementVNode)("div",Ds,[Object(o.createElementVNode)("h1",Is,Object(o.toDisplayString)(c.paper.name),1)]),Object(o.createElementVNode)("div",$s,[Object(o.createElementVNode)("img",{src:c.paper.creator.full_avatar_url,alt:""},null,8,Zs),Object(o.createElementVNode)("div",null,Object(o.toDisplayString)(c.paper.creator.nickname),1)]),Object(o.createElementVNode)("p",Rs,[Object(o.createTextVNode)(Object(o.toDisplayString)(c.paper.introText)+" ",1),-1!==c.paper.introText.indexOf("...")?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Us,"æ´å¤")):Object(o.createCommentVNode)("",!0)])])]),Object(o.createElementVNode)("div",Fs,[Object(o.createElementVNode)("div",zs,[qs,Object(o.createElementVNode)("div",{class:"num",onClick:t[0]||(t[0]=Object(o.withModifiers)((...e)=>s.redirectToSubscriberList&&s.redirectToSubscriberList(...e),["stop"]))},Object(o.toDisplayString)(c.paper.subscriber_count),1),Ws]),Gs,Object(o.createElementVNode)("div",Ys,[Qs,Object(o.createElementVNode)("div",{class:"num word-count",innerHTML:s.formatted_word_count},null,8,Ks),Object(o.createElementVNode)("div",Js,"å·²æ´æ° "+Object(o.toDisplayString)(c.paper.post_count)+" ç¯",1)]),Xs,Object(o.createElementVNode)("div",en,[tn,Object(o.createElementVNode)("div",an,["BOOKLET"===c.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",on,[Object(o.createElementVNode)("path",{d:"M13 3C13.5523 3 14 3.44772 14 4V16.3301L13.9912 16.4678C13.9066 17.0974 13.2494 17.4908 12.6543 17.2686L12.5273 17.2109L8.47266 15.0391C8.17767 14.881 7.82233 14.881 7.52734 15.0391L3.47266 17.2109L3.3457 17.2686C2.75064 17.4908 2.09345 17.0974 2.00879 16.4678L2 16.3301V4C2 3.44772 2.44772 3 3 3H13ZM3.2998 15.8281L6.91406 13.8926L7.04297 13.8291C7.65055 13.5509 8.34945 13.5509 8.95703 13.8291L9.08594 13.8926L12.7002 15.8281V4.2998H3.2998V15.8281ZM10.2402 7.09277C10.4941 6.83897 10.9063 6.83895 11.1602 7.09277C11.4138 7.34661 11.4139 7.7589 11.1602 8.0127L7.82422 11.3486C7.57043 11.6024 7.15815 11.6023 6.9043 11.3486L5.12402 9.56836C4.87052 9.31449 4.87127 8.90314 5.125 8.64941C5.37876 8.39603 5.78922 8.39602 6.04297 8.64941L7.36328 9.96973L10.2402 7.09277Z",fill:s.iconColor},null,8,rn)])):(Object(o.openBlock)(),Object(o.createElementBlock)("svg",cn,[Object(o.createElementVNode)("path",{d:"M13 3C13.5523 3 14 3.44772 14 4V16.3301L13.9912 16.4678C13.9066 17.0974 13.2494 17.4908 12.6543 17.2686L12.5273 17.2109L8.47266 15.0391C8.17767 14.881 7.82233 14.881 7.52734 15.0391L3.47266 17.2109L3.3457 17.2686C2.75064 17.4908 2.09345 17.0974 2.00879 16.4678L2 16.3301V4C2 3.44772 2.44772 3 3 3H13ZM3.2998 15.8281L6.91406 13.8926L7.04297 13.8291C7.65055 13.5509 8.34945 13.5509 8.95703 13.8291L9.08594 13.8926L12.7002 15.8281V4.2998H3.2998V15.8281ZM8.15039 6C8.5092 6.00021 8.7998 6.29154 8.7998 6.65039V8.2002H10.3496L10.4814 8.21289C10.7773 8.27362 10.9998 8.5358 11 8.84961C11 9.16354 10.7774 9.42552 10.4814 9.48
1633L10.3496 9.5H8.7998V11.3496L8.78711 11.4814C8.72638 11.7773 8.4642 11.9998 8.15039 12C7.83646 12 7.57448 11.7774 7.51367 11.4814L7.5 11.3496V9.5H5.65039C5.29141 9.5 5 9.20859 5 8.84961C5.00021 8.4908 5.29154 8.2002 5.65039 8.2002H7.5V6.65039C7.5 6.29141 7.79141 6 8.15039 6Z",fill:s.iconColor},null,8,sn)]))]),Object(o.createElementVNode)("div",nn,Object(o.toDisplayString)("BOOKLET"===c.paper.type?"ä¹°æå¶":"订é
å¶"),1)]),ln,Object(o.createElementVNode)("div",dn,[pn,Object(o.createElementVNode)("div",un,[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",mn,[Object(o.createElementVNode)("path",{d:"M8.00391 8.70195C8.42272 8.70193 8.83197 8.82714 9.17908 9.06149C9.52619 9.29584 9.7953 9.62863 9.95183 10.0171C10.1084 10.4056 10.1452 10.8319 10.0575 11.2415C9.96984 11.651 9.76173 12.025 9.45991 12.3154L8.12291 13.6013H9.40391C9.79051 13.6013 10.1039 13.9147 10.1039 14.3013C10.1039 14.6879 9.79051 15.0013 9.40391 15.0013H6.75014C6.2827 15.0013 5.90369 14.6225 5.90342 14.155C5.90328 13.9246 5.99702 13.7042 6.163 13.5444L8.48901 11.306C8.57244 11.2258 8.63469 11.1261 8.67018 11.016C8.70567 10.9058 8.71329 10.7886 8.69237 10.6748C8.67145 10.5609 8.62264 10.4541 8.5503 10.3637C8.47796 10.2734 8.38436 10.2024 8.27786 10.1571C8.17136 10.1118 8.05529 10.0937 7.94005 10.1042C7.8248 10.1148 7.71397 10.1537 7.61748 10.2176C7.52098 10.2815 7.44183 10.3683 7.38711 10.4703C7.29693 10.6384 7.1492 10.802 6.95849 10.802H6.60358C6.21716 10.802 5.89301 10.4803 6.01939 10.1151C6.12241 9.8175 6.29204 9.54397 6.51898 9.31703C6.91281 8.9232 7.44695 8.70195 8.00391 8.70195ZM11.5039 8.70195C11.8905 8.70195 12.2039 9.01536 12.2039 9.40195V11.502H13.6039V9.40196C13.6039 9.01536 13.9173 8.70195 14.3039 8.70195C14.6905 8.70195 15.0039 9.01536 15.0039 9.40195V14.302C15.0039 14.6886 14.6905 15.002 14.3039 15.002C13.9173 15.002 13.6039 14.6886 13.6039 14.302V12.902H11.8039C11.2516 12.902 10.8039 12.4542 10.8039 11.902V9.40195C10.8039 9.01536 11.1173 8.70195 11.5039 8.70195ZM1.70341 8.00195C2.09017 8.00195 2.39908 8.3169 2.44703 8.70068C2.52172 9.29849 2.69277 9.88187 2.95495 10.4277C3.26536 11.074 3.69669
111.6535 4.22447 12.1354C4.39605 12.292 4.50391 12.5094 4.50391 12.7418C4.50391 13.3301 3.87189 13.6843 3.42669 13.2997C2.83681 12.79 2.33385 12.1834 1.94105 11.5029C1.44354 10.641 1.13695 9.68529 1.03856 8.70031C1.00015 8.31586 1.31704 8.00195 1.70341 8.00195ZM8.00391 1.00196C11.3642 1.00196 14.1719 3.36964 14.8482 6.52844C14.936 6.93847 14.6053 7.30195 14.186 7.30195C13.8286 7.30195 13.5318 7.03445 13.4479 6.68704C13.2315 5.79082 12.7962 4.95852 12.177 4.26671C11.4183 3.41897 10.4194 2.82239 9.31325 2.55637C8.20709 2.29036 7.04615 2.36753 5.98493 2.77761C4.92372 3.18769 4.01255 3.91124 3.37271 4.85195H4.50391C4.89051 4.85195 5.20391 5.16536 5.20391 5.55195C5.20391 5.93855 4.89051 6.25195 4.50391 6.25195H1.50391C1.22776 6.25195 1.00391 6.0281 1.00391 5.75195V2.75196C1.00391 2.36536 1.31731 2.05195 1.70391 2.05195C2.09051 2.05195 2.40391 2.36536 2.40391 2.75196V3.80125C3.05537 2.93128 3.90074 2.22521 4.87286 1.73915C5.84497 1.2531 6.91705 1.00114 8.00391 1.00196Z",fill:s.iconColor},null,8,hn)]))]),bn])])])):Object(o.createCommentVNode)("",!0),c.isMobile||"content"!=c.tab?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",gn,[c.tagOffset>0?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{key:0,onClick:t[2]||(t[2]=(...e)=>s.scrollPrev&&s.scrollPrev(...e)),width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",class:"left-arrow",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("rect",{x:"30",y:"30",width:"30",height:"30",transform:"rotate(-180 30 30)",fill:s.leftGradientUrl},null,8,On),Object(o.createElementVNode)("path",{d:"M17 21.0703L18.5 19.5703L13.9297 15L18.5 10.4297L17 8.92969L10.9297 15L17 21.0703Z",fill:s.textGrayColor},null,8,jn),Object(o.createElementVNode)("defs",null,[Object(o.createElementVNode)("linearGradient",{id:s.leftGradientId,x1:"60",y1:"45",x2:"30",y2:"45",gradientUnits:"userSpaceOnUse"},[Object(o.createElementVNode)("stop",{offset:"0.619792","stop-color":s.bgColor},null,8,fn),Object(o.createElementVNode)("stop",{offset:"1","stop-color":s.bgColor,"stop-opacity":"0"},null,8,vn)],8,Cn)])])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",wn,[!c.clickSearch&&c.tags.length&&s.isLogin||!s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"tags",ref:"tagScroll",style:Object(o.normalizeStyle)(s.tagStyle)},[s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,class:"tag search",onClick:t[3]||(t[3]=(...e)=>s.handleClickSearch&&s.handleClickSearch(...e))},Vn)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("span",{class:Object(o.normalizeClass)(["tag all-tag",{selected:null==c.selectedTag}]),onClick:t[4]||(t[4]=(...e)=>s.removeSelectedTag&&s.removeSelectedTag(...e))}," å
¨é¨ ",2),(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.tags,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:e.name,onClick:t=>s.clickTag(e)},[e.recommended_index>=0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,class:Object(o.normalizeClass)(["tag",{selected:null!=c.selectedTag&&c.selectedTag.name==e.name}])},"#"+Object(o.toDisplayString)(e.name)+" "+Object(o.toDisplayString)(e.count),3)):Object(o.createCommentVNode)("",!0)],8,kn))),128))],4)):Object(o.createCommentVNode)("",!0),c.clickSearch||!c.tags.length&&s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("div",yn,[Object(o.createVNode)(l,{clearable:"",placeholder:"æç´¢",onChange:s.doSearch,modelValue:c.queryString,"onUpdate:modelValue":t[5]||(t[5]=e=>c.queryString=e)},{prefix:Object(o.withCtx)(()=>[_n]),_:1},8,["onChange","modelValue"]),c.tags.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"cancel",onClick:t[6]||(t[6]=(...e)=>s.handleClickCancel&&s.handleClickCancel(...e))},"åæ¶")):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)]),!c.selectedTag&&c.tags.length>=5&&!c.clickSearch?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{key:1,width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"right-arrow",onClick:t[7]||(t[7]=(...e)=>s.scrollNext&&s.scrollNext(...e))},[Object(o.createElementVNode)("rect",{width:"30",height:"30",fill:s.gradientUrl},null,8,En),Object(o.createElementVNode)("path",{d:"M13 8.92969L11.5 10.4297L16.0703 15L11.5 19.5703L13 21.0703L19.0703 15L13 8.92969Z",fill:s.textGrayColor},null,8,Nn),Object(o.createElementVNode)("defs",null,[Object(o.createElementVNode)("linearGradient",{id:s.gradientId,x1:"30",y1:"15",x2:"0",y2:"15",gradientUnits:"userSpaceOnUse"},[Object(o.createElementVNode)("stop",{offset:"0.619792","stop-color":s.bgColor},null,8,Hn),Object(o.createElementVNode)("stop",{offset:"1","stop-color":s.bgColor,"stop-opacity":"0"},null,8,xn)],8,Bn)])])):Object(o.createCommentVNode)("",!0)])),c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Mn,[Object(o.createVNode)(n,{paper:c.paper,handleChange:s.changePaperStyle,showTagBar:c.showTagBar,tabClick:s.tabClick,tab:c.tab,paperDescription:c.paperDescription,key:"mobile",handleSortChange:s.handleSortChange},null,8,["paper","handleChange","showTagBar","tabClick","tab","paperDescription","handleSortChange"]),"content"==c.tab?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,style:Object(o.normalizeStyle)({paddingTop:r.isSticky?"60px":""})},[!c.clickSearch&&c.tags.length&&s.isLogin||!s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ln,[s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,class:"tag search",onClick:t[8]||(t[8]=(...e)=>s.handleClickSearch&&s.handleClickSearch(...e))},Sn)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("span",{class:Object(o.normalizeClass)(["tag all-tag",{selected:null==c.selectedTag}]),onClick:t[9]||(t[9]=(...e)=>s.removeSelectedTag&&s.removeSelectedTag(...e))}," å
¨é¨ ",2),(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.tags,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:e.name,onClick:t=>s.clickTag(e)},[e.recommended_index>=0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,class:Object(o.normalizeClass)([{selected:null!=c.selectedTag&&c.selectedTag.name==e.name},"tag"])}," #"+Object(o.toDisplayString)(e.name)+" "+Object(o.toDisplayString)(e.count),3)):Object(o.createCommentVNode)("",!0)],8,Tn))),128))])):Object(o.createCommentVNode)("",!0),c.clickSearch||!c.tags.length&&s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("div",An,[Object(o.createVNode)(l,{ref:"searchInput",placeholder:"æç´¢",clearable:"",onChange:s.doSearch,modelValue:c.queryString,"onUpdate:modelValue":t[10]||(t[10]=e=>c.queryString=e),enterkeyhint:"search"},{prefix:Object(o.withCtx)(()=>[Pn]),_:1},8,["onChange","modelValue"]),c.tags.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"cancel",onClick:t[11]||(t[11]=(...e)=>s.handleClickCancel&&s.handleClickCancel(...e))},"åæ¶")):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)],4)):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),Object(o.withDirectives)(Object(o.createElementVNode)("div",Dn,[c.pinnedPost&&null==c.selectedTag&&s.keyword_match?(Object(o.openBlock)(),Object(o.createBlock)(d,{key:0,ref:s.setItemRef,post:c.pinnedPost,paper:c.paper,is_folder_props:c.pinnedPost.content.length>120,keyword:c.keyword,onPostEditClicked:s.postEditClicked,onPostDeleted:s.removeLocalPost,onShowPreviewImageDialog:s.handlePictureCardPreview,onTagClick:s.postTagClick,onCommentClick:s.commentClick,onContentClick:s.contentClick,onPostEdited:s.postEdited,onPinEdited:s.pinEdited},null,8,["post","paper","is_folder_props","keyword","onPostEditClicked","onPostDeleted","onShowPreviewImageDialog","onTagClick","onCommentClick","onContentClick","onPostEdited","onPinEdited"])):Object(o.createCommentVNode)("",!0),(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.posts,(e,t)=>(Object(o.openBlock)(),Object(o.createBlock)(d,{ref:s.setItemRef,key:e.uuid,post:e,paper:c.paper,is_folder_props:(t>=6||null!=c.selectedTag)&&e.content.length>120,is_hide:null!=c.pinnedPost&&e.uuid==c.pinnedPost.uuid,keyword:c.keyword,onPostEditClicked:s.postEditClicked,onPostDeleted:s.removeLocalPost,onShowPreviewImageDialog:s.handlePictureCardPreview,onTagClick:s.postTagClick,onCommentClick:s.commentClick,onContentClick:s.contentClick,onPostEdited:s.postEdited,onPinEdited:s.pinEdited},null,8,["post","paper","is_folder_props","is_hide","keyword","onPostEditClicked","onPostDeleted","onShowPreviewImageDialog","onTagClick","onCommentClick","onContentClick","onPostEdited","onPinEdited"]))),128)),c.loading?(Object(o.openBlock)(),Object(o.createElementBlock)("div",In,$n)):Object(o.createCommentVNode)("",!0)],512),[[o.vShow,"description"!==c.tab&&(c.posts.length||c.loading)]]),"description"==c.tab&&c.paperDescription?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:3,class:"description post-content","element-loading-background":"transparent",innerHTML:c.paperDescription.content},null,8,Zn)):Object(o.createCommentVNode)("",!0),!c.posts.length&&!c.loading&&c.paper&&c.paper.writable&&"description"!==c.tab?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Rn,Un)):Object(o.createCommentVNode)("",!0),c.keyword||c.posts.length||c.loading||!c.paper||c.paper.writable||"description"===c.tab?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Fn,zn)),!c.keyword||c.posts.length||c.loading||!c.paper||c.paper.writable||"description"===c.tab?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",qn,Wn)),c.keyword&&c.posts.length&&!c.loading&&c.paper&&!c.paper.writable&&"description"!==c.tab?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Gn,[Object(o.createElementVNode)("p",null,"å
± "+Object(o.toDisplayString)(c.posts.length)+" æ¡ç»æ",1)])):Object(o.createCommentVNode)("",!0),c.loading||!c.paper||c.paper.writable||c.paperDescription||"description"!=c.tab?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Yn," ä»ç»è¿å¨é
é
¿ä¸... ")),!c.loading&&c.paper&&c.paper.writable&&!c.paperDescription&&"description"==c.tab?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Qn," 请å¨åä½è
ä¸å¿è®¾ç½® ")):Object(o.createCommentVNode)("",!0),c.paper&&c.paper.writable?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Kn,[Object(o.createElementVNode)("div",Jn,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[12]||(t[12]=(...e)=>s.redirectToCreatePost&&s.redirectToCreatePost(...e))},"åå¸"),c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"share_button",onClick:t[13]||(t[13]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},Xn)):Object(o.createCommentVNode)("",!0)])])):Object(o.createCommentVNode)("",!0),c.paper&&!c.paper.writable&&c.paper.isNotAllowBuy&&!c.paper.subscription?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ei,["BOOKLET"===c.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("a",ti,"æä¸æä¾è´ä¹°")):(Object(o.openBlock)(),Object(o.createElementBlock)("a",ai,"æä¸æä¾è®¢é
"))])):Object(o.createCommentVNode)("",!0),!c.paper||c.paper.writable||c.paper.subscription||c.paper.isNotAllowBuy?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:12,id:"bottom_fixed",style:Object(o.normalizeStyle)({paddingTop:r.isInWechatMP?"10px":"20px"})},[r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("div",di,[pi,Object(o.createElementVNode)("div",ui,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[17]||(t[17]=(...e)=>s.handleCantBuy&&s.handleCantBuy(...e))},"ç¹æ¤è§£å³"),c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"share_button",onClick:t[18]||(t[18]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",mi,hi)):Object(o.createCommentVNode)("",!0),bi])):Object(o.createCommentVNode)("",!0)])])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",oi,["BOOKLET"!==c.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("span",ri," é¢è§æ¨¡å¼ï¼è®¢é
å坿¥çå
¨é¨å
容")):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",ci,["BOOKLET"===c.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:0,class:"btn btn-primary btn-large",onClick:t[14]||(t[14]=(...e)=>s.openSubscribeDrawer&&s.openSubscribeDrawer(...e))},si)):(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:1,class:"btn btn-primary btn-large",onClick:t[15]||(t[15]=(...e)=>s.openSubscribeDrawer&&s.openSubscribeDrawer(...e))},"订é
䏿 ")),Object(o.createElementVNode)("div",{class:"share_button",onClick:t[16]||(t[16]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",ni,ii)):Object(o.createCommentVNode)("",!0),li])])]))],4)),c.paper&&!c.paper.writable&&c.paper.subscription&&s.subscription_expired_days<0&&!c.paper.isNotAllowBuy?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:13,id:"bottom_fixed",style:Object(o.normalizeStyle)({paddingTop:r.isInWechatMP?"10px":"20px"})},[r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("div",gi,"ææ
1¶ä¸æ¯æå¨å°ç¨åºå
è´ä¹°")):Object(o.createCommentVNode)("",!0),r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("div",vi,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[21]||(t[21]=(...e)=>s.handleCantBuy&&s.handleCantBuy(...e))},"ç¹æ¤è§£å³"),Object(o.createElementVNode)("div",{class:"share_button",onClick:t[22]||(t[22]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",wi,Vi)):Object(o.createCommentVNode)("",!0),ki])])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Oi,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[19]||(t[19]=(...e)=>s.openSubscribeDrawer&&s.openSubscribeDrawer(...e))},"ç«å³ç»è´¹"),c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"share_button",onClick:t[20]||(t[20]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",ji,Ci)):Object(o.createCommentVNode)("",!0),fi])):Object(o.createCommentVNode)("",!0)]))],4)):Object(o.createCommentVNode)("",!0),c.paper&&!c.paper.writable&&c.paper.subscription&&s.subscription_expired_days<31&&s.subscription_expired_days>=0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",yi,[Object(o.createElementVNode)("span",_i,[Object(o.createTextVNode)(Object(o.toDisplayString)(s.subscription_expired_days.toFixed(0))+" 天åå°æ · æé"+Object(o.toDisplayString)(s.mute?"å·²å
³é":"å·²å¼å¯")+"ï¼",1),Object(o.createElementVNode)("span",{class:"toggleMute",onClick:t[23]||(t[23]=(...e)=>s.toggleMute&&s.toggleMute(...e))},"忢"),Ei]),r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ni,"ææ¶ä¸æ¯æå¨å°ç¨åºå
è´ä¹°")):Object(o.createCommentVNode)("",!0),r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Li,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[26]||(t[26]=(...e)=>s.handleCantBuy&&s.handleCantBuy(...e))},"ç¹æ¤è§£å³"),Object(o.createElementVNode)("div",{class:"share_button",onClick:t[27]||
1(t[27]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Si,Ti)):Object(o.createCommentVNode)("",!0),Ai])])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Bi,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[24]||(t[24]=(...e)=>s.openSubscribeDrawer&&s.openSubscribeDrawer(...e))},"ç«å³ç»è®¢"),c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"share_button",onClick:t[25]||(t[25]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Hi,xi)):Object(o.createCommentVNode)("",!0),Mi])):Object(o.createCommentVNode)("",!0)]))])):Object(o.createCommentVNode)("",!0),c.paper&&!c.paper.writable&&c.paper.subscription&&s.subscription_expired_days>30&&s.subscription_expired_days<1e4&&e.$store.state.user.user.subscribe_wechat&&c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Pi,[Object(o.createElementVNode)("div",null,[Object(o.createTextVNode)(Object(o.toDisplayString)(s.subscription_expired_days.toFixed(0))+" 天åå°æ · æé"+Object(o.toDisplayString)(s.mute?"å·²å
³é":"å·²å¼å¯")+"ï¼",1),Object(o.createElementVNode)("span",{class:"toggleMute",onClick:t[28]||(t[28]=(...e)=>s.toggleMute&&s.toggleMute(...e))},"忢"),Di]),c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,style:{"flex-shrink":"0"},onClick:t[29]||(t[29]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Ii,$i)):(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Zi,Ri))])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),c.paper&&!c.paper.writable&&c.paper.subscription&&s.subscription_expired_days>1e4&&e.$store.state.user.user.subscribe_wechat&&c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ui,[Object(o.createElementVNode)("div",{onClick:t[30]||(t[30]=(...e)=>s.toggleMute&&s.toggleMute(...e))},"已买æ · æéä¸ï¼"+Object(o.toDisplayString)(s.mute?"å·²å
³é":"å·²å¼å¯")+"ï¼",1),c.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,style:{"flex-shrink":"0"},onClick:t[31]||(t[31]=(...e)=>s.clickSharePaper&&s.clickSharePaper(...e))},[s.showReferRatioIcon?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Fi,zi)):(Object(o.openBlock)(),Object(o.createElementBlock)("svg",qi,Wi))])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0),c.paper&&!c.paper.writable&&c.paper.subscription&&s.subscription_expired_days>31&&!e.$store.state.user.user.subscribe_wechat&&!r.isInWechatMP?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:17,id:"bottom_fixed",onClick:t[32]||(t[32]=(...e)=>s.leadToOfficeAccount&&s.leadToOfficeAccount(...e))},Gi)):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(p,{visible:c.show_subscribe_drawer,title:c.paper&&"BOOKLET"===c.paper.type?"ç«å³è´ä¹°":"ç«å³è®¢é
",closeDrawer:()=>c.show_subscribe_drawer=!1},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",{style:Object(o.normalizeStyle)({fontSize:"15px",color:"var(--text-gray)",padding:"20px 0px 20px",borderBottom:"1px solid var(--border-color)",borderTop:"3px solid var(--border-dark)",marginBottom:"20px"})}," æ¬ä¸æ ç±ç¬¬ä¸æ¹ä½è
èªä¸»å建ï¼è´ä¹°å请确认å
容质éä¸ç¸å
³é£é©ãè´ä¹°å 24 å°æ¶å
å¯ç³è¯·é款ã ",4),c.paper&&c.paper.prices?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Yi,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.paper.prices,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e.type},[0!=e.price?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Qi,[Object(o.createElementVNode)("div",Ki,[Object(o.createElementVNode)("span",Ji,Object(o.toDisplayString)(e.price/100),1),Object(o.createTextVNode)(" æ¥ç«¥å¸/"+Object(o.toDisplayString)(e.name)+Object(o.toDisplayString)("BOOKLET"===c.paper.type?"é
读":""),1)]),Object(o.createElementVNode)("a",{class:"btn btn-primary",onClick:t=>s.showConfirmAnOrderModal(e)},Object(o.toDisplayString)("BOOKLET"===c.paper.type?"è´ä¹°":"订é
"),9,Xi)])):Object(o.createCommentVNode)("",!0)]))),128))])):Object(o.createCommentVNode)("",!0)]),_:1}
1,8,["visible","title","closeDrawer"]),Object(o.createVNode)(m,{modelValue:c.show_post_editor_drawer,"onUpdate:modelValue":t[34]||(t[34]=e=>c.show_post_editor_drawer=e),title:"",direction:"btt","custom-class":"editor_drawer",size:"100%","with-header":!1,"before-close":s.handleEditorDrawerClose,"destroy-on-close":!0},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(u,{ref:"editor",onNewPostCreated:s.newPostCreated,onPostEdited:s.postEdited,onRefreshTags:s.loadTags,onCancelClicked:t[33]||(t[33]=e=>c.show_post_editor_drawer=!1)},null,8,["onNewPostCreated","onPostEdited","onRefreshTags"])]),_:1},8,["modelValue","before-close"]),Object(o.createVNode)(p,{visible:c.show_post_detail_drawer,title:"",closeDrawer:()=>c.show_post_detail_drawer=!1,width:"800px"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(g,{ref:"detail",onCancelClicked:t[35]||(t[35]=e=>c.show_post_detail_drawer=!1),onWriteCommentClick:e.showWriteCommentDrawer,onCreateComment:s.createComment,onDeleteComment:s.deleteComment,onTagClick:s.postTagClick,onEditClick:s.postEditClicked},null,8,["onWriteCommentClick","onCreateComment","onDeleteComment","onTagClick","onEditClick"])]),_:1},8,["visible","closeDrawer"]),Object(o.createVNode)(j,{title:"çæå享å¡ç",modelValue:c.show_paper_share_card,"onUpdate:modelValue":t[36]||(t[36]=e=>c.show_paper_share_card=e),"custom-class":"share-dialog","destroy-on-close":!0,width:s.calcWidth},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(O,{ref:"share_paper_card"},null,512)]),_:1},8,["modelValue","width"]),Object(o.createVNode)(C,{visible:c.showReferRatioModel,paper:c.paper,close:s.hideReferModel,copyPaperUrl:s.copyUrl,sharePaper:s.openShare},null,8,["visible","paper","close","copyPaperUrl","sharePaper"]),Object(o.createVNode)(f,{visible:c.showConfirmAnOrder,paper:c.paper,subscribePrice:c.subscribePrice,close:s.hideConfirmAnOrder,paySuccess:s.paySuccess},null,8,["visible","paper","subscribePrice","close","paySuccess"])],64)}],["__scopeId","data-v-2ed4e354"]]);const xl={class:"bind_mobile_form"},Ml={key:0,class:"header"},Ll={class:"title"},Sl={key:1,class:"divider",style:{margin:"0 auto"}},Tl={class:"form-container"},Al={class:"input-group"},Pl=["disabled"],Dl={key:0,class:"hint"},Il={key:1,class:"hint"},$l={class:"action-section"},Zl={key:0,class:"switch-container"};var Rl={name:"BindMobile",props:{isBindMobile:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!0}},data:()=>({mobile:null,code:null,send_verify_code_hint:"åééªè¯ç ",isMail:!1}),methods:{changeBind(){this.isMail=!this.isMail},bind(){this.isMail?this.bindEmail():this.bindMobile()},getCode(){this.isMail?this.sendVerifyCodeToEmail():this.sendVerifyCode()},sendVerifyCodeToEmail(){this.mobile?this.mobile.includes("@")?(Object(ke.a)({message:"æ£å¨åééªè¯ç ...",type:"info"}),this.countDown(),this.$api.call("POST","/account/send_verify_code_to_email",{email:this.mobile},e=>{200==e.data.code?Object(ke.a)({message:e.data.message,type:"success"}):Object(ke.a)({message:e.data.message,type:"error"})})):ke.a.error("请è¾å
¥æ£ç¡®çé®ç®±"):ke.a.error("请è¾å
¥é®ç®±")},sendVerifyCode(){this.mobile?this.isPoneAvailable(this.mobile)?(Object(ke.a)({message:"æ£å¨åééªè¯ç ...",type:"info"}),this.countDown(),this.$refs.captcha.focus(),this.$api.call("POST","/account/send_verify_code_to_mobile",{mobile:this.mobile},e=>{200==e.data.code?Object(ke.a)({message:e.data.message,type:"success"}):Object(ke.a)({message:e.data.message,type:"error"})})):ke.a.error("请è¾å
¥æ£ç¡®çææºå·"):ke.a.error("请è¾å
¥ææºå·")},bindMobile(){this.mobile?this.isPoneAvailable(this.mobile)?this.code?(Object(ke.a)({message:"æ£å¨ç»å®ææºå·...",type:"info"}),this.$api.call("POST","/account/bind_mobile",{mobile:this.mobile,code:this.code},e=>{if(200==e.data.code){let t=this.$store.state.user.user;t.mobile=e.data.data.mobile,this.$store.commit("user/setUser",t),Object(ke.a)({message:e.data.message,type:"success"}),this.closeDrawer()}else Ua.a.alert(`<p>${e.data.message}ï¼å¦æé®é¢ï¼<a style='color:#5f91b5' href="https://xiaobot.net/feedback/new" target='_blank'>
1ç¹æ¤è系客æ</a></p>`,"æç¤º",{confirmButtonText:"好ç",dangerouslyUseHTMLString:!0})})):ke.a.error("请è¾å
¥éªè¯ç "):ke.a.error("请è¾å
¥æ£ç¡®çææºå·"):ke.a.error("请è¾å
¥ææºå·")},bindEmail(){this.mobile?this.mobile.includes("@")?this.code?(Object(ke.a)({message:"æ£å¨ç»å®é®ç®±...",type:"info"}),this.$api.call("POST","/account/bind_email",{email:this.mobile,code:this.code},e=>{if(200==e.data.code){let t=this.$store.state.user.user;t.email=e.data.data.email,this.$store.commit("user/setUser",t),Object(ke.a)({message:e.data.message,type:"success"}),this.closeDrawer()}else Object(ke.a)({message:e.data.message,type:"error"})})):ke.a.error("请è¾å
¥éªè¯ç "):ke.a.error("请è¾å
¥æ£ç¡®çé®ç®±"):ke.a.error("请è¾å
¥é®ç®±")},isPoneAvailable:e=>!!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(e),closeDrawer(){this.mobile=null,this.code=null,this.send_verify_code_hint="åééªè¯ç ",this.$emit("cancel-clicked")},countDown(){let e=60,t=setInterval(()=>{if(e--,e<=0)return clearInterval(t),void(this.send_verify_code_hint="åééªè¯ç ");this.send_verify_code_hint=e+"s"},1e3)}}};a("568d");var Ul=j()(Rl,[["render",function(e,t,a,r,c,s){const n=ct.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",xl,[a.showTitle?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ml,[Object(o.createElementVNode)("div",Ll,Object(o.toDisplayString)(c.isMail?"ç»å®é®ç®±":"ç»å®ææºå·"),1)])):Object(o.createCommentVNode)("",!0),a.showTitle?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Sl)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",Tl,[Object(o.createElementVNode)("div",Al,[Object(o.createVNode)(n,{autofocus:!1,maxlength:c.isMail?100:20,placeholder:c.isMail?"请è¾å
¥é®ç®±":"请è¾å
¥ææºå·",modelValue:c.mobile,"onUpdate:modelValue":t[0]||(t[0]=e=>c.mobile=e),class:"custom-input"},null,8,["maxlength","placeholder","modelValue"]),Object(o.createElementVNode)("button",{disabled:"åééªè¯ç "!=c.send_verify_code_hint,class:"send_verify_code_btn",onClick:t[1]||(t[1]=(...e)=>s.getCode&&s.getCode(...e))},Object(o.toDisplayString)(c.send_verify_code_hint),9,Pl)]),Object(o.createVNode)(n,{autofocus:!1,ref:"captcha",maxlength:4,placeholder:"请è¾å
¥éªè¯ç ",modelValue:c.code,"onUpdate:modelValue":t[2]||(t[2]=e=>c.code=e),class:"custom-input"},null,8,["modelValue"]),c.isMail?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Dl,"ä¸ºäºæ¨å¨å°æ¥ç«¥ä¸çè´¦å·å®å
¨åç¸å
³è®¢é
æçï¼è¯·ç»å®æ¨å¸¸ç¨çææºå·ç ã")),c.isMail?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Il,"ä¸ºäºæ¨å¨å°æ¥ç«¥ä¸çè´¦å·å®å
¨åç¸å
³è®¢é
æçï¼è¯·ç»å®æ¨å¸¸ç¨çé®ç®±ã")):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",$l,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large confirm-btn",onClick:t[3]||(t[3]=(...e)=>s.bind&&s.bind(...e))},"确认"),a.isBindMobile?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Zl,[c.isMail?(Object(o.openBlock)(),Object(o.createElementBlock)("p",{key:1,class:"switch-link",onClick:t[5]||(t[5]=(...e)=>s.changeBind&&s.changeBind(...e))},"忢è³ç»å®ææºå·")):(Object(o.openBlock)(),Object(o.createElementBlock)("p",{key:0,class:"switch-link",onClick:t[4]||(t[4]=(...e)=>s.changeBind&&s.changeBind(...e))},"忢è³ç»å®é®ç®±"))]))])])])}],["__scopeId","data-v-a6b2ac96"]]),Fl=a("1b44");a("5671"),a("d11b");const zl=e=>(Object(o.pushScopeId)("data-v-52933112"),e=e(),Object(o.popScopeId)(),e),ql={key:0,class:"top"},Wl=[zl(()=>Object(o.createElementVNode)("svg",{width:"74",height:"28",viewBox:"0 0 74 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M13.4167 0H9.7013V21.7982C9.7013 23.6118 9.04766 24.1349 7.7748 24.1349H6.57074V27.9016H7.7748C11.559 27.9016 13.4167 26.1229 13.4167 21.7982V0ZM2.09851 7.70783C2.09851 15.1018 1.82329 17.9617 0 20.996L3.23377 22.8793C5.40108 19.1824 5.8139 16.0086 5.8139 7.70783H2.09851ZM17.2353 7.70783C17.2353 16.0086 17.6481 19.1824 19.8154 22.8793L23.0492 20.996C21.2259 17.9617 20.9507 15.1018 20.9507 7.70783H17.2353Z"}),Object(o.createElementVNode)("path",{d:"M73.3123 4.45746V1.42911H64.3335V0H60.6181V1.42911H51.6392V4.45746H66.1568V6.43099H58.7948V5.13798H55.0794V6.43099H50.9512V9.42531H74.0004V6.43099H69.8721V4.45746H73.3123ZM73.3123 23.7504V20.7561H64.3335V19.6332H73.3
1123V10.4461H51.6392V19.6332H60.6181V20.7561H51.6392V23.7504H60.6181V24.9073H50.9512V27.9016H74.0004V24.9073H64.3335V23.7504H73.3123ZM55.3546 14.155V12.7599H60.6181V14.155H55.3546ZM69.5969 12.7599V14.155H64.3335V12.7599H69.5969ZM55.3546 17.3194V15.9243H60.6181V17.3194H55.3546ZM69.5969 15.9243V17.3194H64.3335V15.9243H69.5969Z"}),Object(o.createElementVNode)("path",{d:"M28.3211 2.51795H24.2617V6.1928H28.3211V8.03023H24.2617V11.7051H25.2938V15.1417H24.2617V18.8166H28.3211V20.5519H24.2617V24.2268H28.3211V27.9016H32.0709V24.2268H36.1303V20.5519H32.0709V18.8166H36.1303V15.1417H35.0983V11.7051H36.1303V8.03023H32.0709V6.1928H36.1303V2.51795H32.0709V0H28.3211V2.51795ZM40.5338 4.35538H43.2515C43.1827 5.75046 42.8731 6.15878 42.013 6.15878V9.83363C45.1092 9.83363 46.9669 8.09828 46.9669 3.87901V0.680526H37.1624V27.9016H40.5338V25.2476L41.841 27.9016C42.5291 27.2892 43.1483 26.6767 43.6643 26.0302C44.2491 26.7107 44.9028 27.3232 45.694 27.9016L47.3109 24.6011C46.6229 24.1247 46.0724 23.5803 45.5564 23.0018C47.0357 19.8034 47.3109 15.9244 47.3109 10.6162H40.5338V4.35538ZM29.0092 15.1417V11.7051H31.3829V15.1417H29.0092ZM43.5267 19.1909C43.2515 18.2381 43.0795 17.2514 42.9763 16.2986L40.5338 16.9792V14.2911H44.2147C44.1115 16.2646 43.9051 17.8298 43.5267 19.1909ZM40.5338 17.6597C40.7402 19.2589 41.0842 21.0623 41.7722 22.7977C41.4282 23.3081 41.0154 23.7844 40.5338 24.2608V17.6597Z"})],-1))],Gl=[zl(()=>Object(o.createElementVNode)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("rect",{opacity:"0.01",width:"36",height:"36",fill:"#413E3B"}),Object(o.createElementVNode)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25.967 23.85L31.067 28.935C31.3509 29.2166 31.5107 29.6 31.5107 30C31.5107 30.4 31.3509 30.7833 31.067 31.065C30.7853 31.349 30.4019 31.5087 30.002 31.5087C29.602 31.5087 29.2186 31.349 28.937 31.065L23.852 25.965C21.7556 27.6105 19.1669 28.5033 16.502 28.5C9.87454 28.5 4.50195 23.1274 4.50195 16.5C4.50195 9.87258 9.87454 4.5 16.502 4.5C23.1294 4.5 28.502 9.87258 28.502 16.5C28.5053 19.165 27.6124 21.7537 25.967 23.85ZM16.502 7.49959C11.5314 7.49959 7.50195 11.529 7.50195 16.4996C7.50195 21.4702 11.5314 25.4996 16.502 25.4996C21.4725 25.4996 25.502 21.4702 25.502 16.4996C25.502 11.529 21.4725 7.49959 16.502 7.49959Z",fill:"currentColor"})],-1)),zl(()=>Object(o.createElementVNode)("p",null,"æç´¢",-1))],Yl=zl(()=>Object(o.createElementVNode)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M8.69238 4.5C5.1416 4.5 2.25 7.42676 2.25 10.9951V29.25H18V33.75H20.25V29.25H33.75V10.9951C33.7588 7.42676 30.8584 4.5 27.3076 4.5H8.69238ZM8.69238 6.75H9.30762C11.6367 6.75 13.5 8.63086 13.5 10.9951V27H4.5V10.9863C4.50879 8.63086 6.37207 6.75 8.69238 6.75ZM14.1328 6.75H27.3076C29.6279 6.75 31.5 8.63086 31.5 10.9951V27H15.75V10.9951C15.75 9.36914 15.126 7.89258 14.1328 6.75ZM18 11.25V13.5H27V15.75H29.25V11.25H18ZM6.75 13.5V15.75H11.25V13.5H6.75Z",fill:"currentColor"})],-1)),Ql={key:0,style:{position:"absolute",top:"-4px",right:"-10px"},width:"38",height:"14",viewBox:"0 0 38 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"mail"},Kl=[zl(()=>Object(o.createElementVNode)("rect",{width:"38",height:"14",rx:"2",fill:"#B14B43"},null,-1)),zl(()=>Object(o.createElementVNode)("path",{d:"M5.632 7.016C6.456 8.592 8.2 9.512 10.776 9.8C10.56 10.024 10.296 10.464 10.16 10.736C7.464 10.352 5.768 9.28 4.728 7.328L5.632 7.016ZM3.944 6.144H9.072V7.08H3.944V6.144ZM3.552 4.264H10.408V5.216H3.552V4.264ZM6.472 3.208H7.472V6.568H6.472V3.208ZM8.76 6.144H8.968L9.136 6.112L9.808 6.496C8.848 9.088 6.52 10.256 3.744 10.72C3.656 10.464 3.408 10.008 3.224 9.792C5.912 9.44 8.032 8.496 8.76 6.32V6.144ZM14.224 4.12H18.408V4.984H14.224V4.12ZM13.952 7.192H18.696V8.064H13.952V7.192ZM13.88 5.688H18.76V6.56H13.88V5.688ZM15.864 3.24H16.776V6.136H15.864V3.24ZM16.904 6.408H17.816V9.712C17.816 10.192 17.728 10.432 17.416 10.568C17.12 10.712 16.696 10.72 16.112 10.72C16.08 10.456 15.96 10.072 15.848 9.816C16.208 9.84 16.624 9.84 16.744 9.832C16.872 9.832 16.904 9.8 16.904 9.696V6.408ZM14.392 8.52L15.152 8.096C15.488 8.504 15.888 9.072 16.048 9.456L15.232 9.936C15.096 9.552 14.728 8.952 14.392 8.52ZM11.16 7.264C11.816 7.12 12.784 6.864 13.712 6.608L13.832 7.472C12.992 7.728 12.088 7.984 11.376 8.192L11.16 7.264ZM11.288 4.728H13.76V5.608H11.288V4.728ZM12.192 3.216H13.08V9.656C13.08 10.096 13 10.344 12.752 10.496C12.512 10.64 12.16 10.68 11.648 10.672C11.624 10.432 11.512 10.
104 11.4 9.776C11.688 9.792 11.968 9.792 12.064 9.792C12.16 9.792 12.192 9.76 12.192 9.648V3.216ZM19.56 4.424H23.328V10.112H22.464V5.248H20.376V10.224H19.56V4.424ZM19.952 6.576H22.736V7.384H19.952V6.576ZM19.984 8.84H22.736V9.648H19.984V8.84ZM20.96 3.216H21.896V4.88H21.84V9.416H21.016V4.88H20.96V3.216ZM23.88 3.592H25.96V4.496H24.696V10.712H23.88V3.592ZM25.768 3.592H25.944L26.088 3.56L26.752 3.976C26.472 4.736 26.12 5.648 25.816 6.352C26.48 7.072 26.608 7.712 26.608 8.24C26.608 8.816 26.48 9.216 26.168 9.424C26.024 9.528 25.832 9.584 25.624 9.616C25.44 9.64 25.2 9.64 24.96 9.632C24.944 9.384 24.864 9 24.72 8.744C24.92 8.76 25.08 8.76 25.216 8.76C25.328 8.752 25.44 8.736 25.528 8.688C25.68 8.6 25.728 8.408 25.728 8.136C25.728 7.696 25.544 7.112 24.904 6.472C25.224 5.68 25.592 4.488 25.768 3.904V3.592ZM30.968 5.816H34.4V10.656H33.424V6.664H31.896V10.704H30.968V5.816ZM27.448 6.304H30.768V7.176H27.448V6.304ZM31.416 7.16H33.896V7.864H31.416V7.16ZM31.416 8.376H33.896V9.088H31.416V8.376ZM31.416 9.616H33.896V10.392H31.416V9.616ZM28.752 5.528H29.672V10.728H28.752V5.528ZM29.536 7.224C29.808 7.424 30.712 8.248 30.92 8.456L30.312 9.2C30.024 8.776 29.376 8 29.024 7.632L29.536 7.224ZM28.376 3.904H30.896V4.704H28.376V3.904ZM31.616 3.912H34.648V4.712H31.616V3.912ZM28.408 3.152L29.328 3.384C29.008 4.264 28.496 5.176 27.992 5.744C27.808 5.592 27.408 5.336 27.184 5.216C27.696 4.72 28.152 3.928 28.408 3.152ZM31.648 3.152L32.584 3.384C32.28 4.272 31.76 5.136 31.224 5.672C31.04 5.512 30.64 5.248 30.408 5.128C30.952 4.664 31.408 3.904 31.648 3.152ZM28.672 4.52L29.432 4.192C29.656 4.528 29.92 5 30.024 5.304L29.216 5.68C29.128 5.376 28.888 4.888 28.672 4.52ZM32.128 4.544L32.896 4.248C33.176 4.576 33.504 5.048 33.656 5.36L32.832 5.696C32.712 5.392 32.4 4.896 32.128 4.544ZM28.736 6.808L29.432 7.208C29.072 8.136 28.376 9.24 27.736 9.88C27.608 9.648 27.36 9.312 27.152 9.128C27.76 8.624 28.416 7.64 28.736 6.808Z",fill:"white"},null,-1))],Jl=zl(()=>Object(o.createElementVNode)("p",null,"æé设置",-1)),Xl=[zl(()=>Object(o.createElementVNode)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M19.625 3C18.0781 3 16.7773 4.07227 16.3818 5.49609C15.9951 5.33789 15.5645 5.25 15.125 5.25C13.2705 5.25 11.75 6.77051 11.75 8.625V19.875L9.37695 18.9082L9.32422 18.8906C7.54004 18.3721 5.65039 19.4004 5.14062 21.1758C5.04394 21.4922 5 21.8086 5 22.125C5 23.54 5.90527 24.7178 7.12695 25.5088L7.03906 25.4473L11.8906 29.3232C13.7363 30.9053 15.8721 32.25 18.5 32.25H23C27.9219 32.25 32 28.2334 32 23.2939V10.875C32 9.02051 30.4795 7.5 28.625 7.5C28.2295 7.5 27.8516 7.58789 27.5 7.71094V7.5C27.5 5.64551 25.9795 4.125 24.125 4.125C23.4834 4.125 22.8857 4.31836 22.376 4.63477C21.9014 4.01074 21.207 3.53613 20.3984 3.31641C20.1875 3.12305 19.915 3.00879 19.625 3ZM19.625 5.25C20.2578 5.25 20.75 5.74219 20.75 6.375V16.5H23V7.5C23 6.86719 23.4922 6.375 24.125 6.375C24.7578 6.375 25.25 6.86719 25.25 7.5V16.5H27.5V10.875C27.5 10.2422 27.9922 9.75 28.625 9.75C29.2578 9.75 29.75 10.2422 29.75 10.875V23.2939C29.75 26.9941 26.709 30 23 30H18.5C16.6367 30 15.0371 29.0508 13.3672 27.6094L13.3496 27.6006L8.41016 23.6543L8.35742 23.6279C7.47852 23.0566 7.25 22.6611 7.25 22.125C7.25 22.0283 7.26758 21.9141 7.29394 21.8086C7.46973 21.2021 8.07617 20.877 8.68262 21.0527L14 23.25V8.625C14 7.99219 14.4922 7.5 15.125 7.5C15.7578 7.5 16.25 7.99219 16.25 8.625V16.5H18.5V6.375C18.5 5.74219 18.9922 5.25 19.625 5.25ZM19.9062 18.75C18.8955 18.75 18.5 19.5674 18.5 20.5781C18.5 22.6348 21.875 25.5 21.875 25.5C21.875 25.5 25.25 22.6875 25.25 20.5781C25.25 19.5674 24.8545 18.75 23.8438 18.75C22.499 18.75 21.875 20.2881 21.875 21C21.875 20.2881 21.2246 18.75 19.9062 18.75Z",fill:"#413E3B"})],-1)),zl(()=>Object(o.createElementVNode)("p",null,"ç³è¯·",-1))],ed=[zl(()=>Object(o.createElementVNode)("svg",{width:"36",height:"32",viewBox:"0 0 36 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M16.875 2.25C8.81543 2.25 2.25 8.81543 2.25 16.875C2.25 24.9346 8.81543 31.5 16.875 31.5C24.9346 31.5 31.5 24.9346 31.5 16.875C31.5 8.81543 24.9346 2.25 16.875 2.25ZM16.875 4.5C23.7217 4.5 29.25 10.0283 29.25 16.875C29.25 19.8896 28.1777 22.6406 26.4023 24.7852C25.4355 22.043 23.3438 19.8369 20.6719
118.7471C21.7881 17.7188 22.5 16.251 22.5 14.625C22.5 11.5312 19.9688 9 16.875 9C13.7812 9 11.25 11.5312 11.25 14.625C11.25 16.251 11.9619 17.7188 13.0781 18.7471C10.4062 19.8369 8.32324 22.043 7.35644 24.7852C5.57227 22.6406 4.5 19.8896 4.5 16.875C4.5 10.0283 10.0283 4.5 16.875 4.5ZM16.875 11.25C18.7559 11.25 20.25 12.7441 20.25 14.625C20.25 16.5059 18.7559 18 16.875 18C14.9941 18 13.5 16.5059 13.5 14.625C13.5 12.7441 14.9941 11.25 16.875 11.25ZM16.875 20.25C20.6982 20.25 23.8359 22.9658 24.5654 26.5693C22.4473 28.248 19.7842 29.25 16.875 29.25C13.9658 29.25 11.3027 28.248 9.19336 26.5693C9.91406 22.9658 13.0518 20.25 16.875 20.25Z"})],-1)),zl(()=>Object(o.createElementVNode)("p",null,"æç",-1))],td={class:"me"},ad=["src"],od=zl(()=>Object(o.createElementVNode)("p",null,"æç",-1)),rd={class:"tab"},cd={style:{display:"flex","align-items":"center","justify-items":"space-between","margin-top":"16px"}},sd={style:{padding:"14px",width:"80%"}},nd={class:"posts","element-loading-background":"transparent",id:"posts"},id={key:0,class:"footer"},ld=[zl(()=>Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large"},"å
³æ³¨å
¬ä¼å·ï¼ç¬¬ä¸æ¶é´è·å¾æé",-1))];var dd=a("5292"),pd=a.n(dd);const ud=e=>(Object(o.pushScopeId)("data-v-f32f82d2"),e=e(),Object(o.popScopeId)(),e),md={key:0,class:"addToMyWxApp"},hd=ud(()=>Object(o.createElementVNode)("span",null,"ç¹æ¤æ·»å å°ãæçå°ç¨åºãï¼ä¸æ¬¡é
è¯»æ´æ¹ä¾¿",-1)),bd=[ud(()=>Object(o.createElementVNode)("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.425781 8.27832C0.344401 8.19694 0.29069 8.10254 0.264648 7.99512C0.238607 7.8877 0.238607 7.78027 0.264648 7.67285C0.29069 7.56543 0.342773 7.47266 0.420898 7.39453L3.33105 4.47949L0.420898 1.56934C0.342773 1.49447 0.29069 1.40332 0.264648 1.2959C0.241862 1.18522 0.241862 1.07617 0.264648 0.96875C0.29069 0.861328 0.344401 0.766927 0.425781 0.685547C0.503906 0.604167 0.59668 0.550456 0.704102 0.524414C0.814779 0.498372 0.923828 0.498372 1.03125 0.524414C1.14193 0.550456 1.23633 0.602539 1.31445 0.680664L4.22461 3.59082L7.13477 0.680664C7.21289 0.602539 7.30566 0.550456 7.41309 0.524414C7.52051 0.498372 7.62793 0.498372 7.73535 0.524414C7.84277 0.550456 7.93717 0.605794 8.01855 0.69043C8.09993 0.768555 8.15365 0.861328 8.17969 0.96875C8.20898 1.07617 8.20898 1.18359 8.17969 1.29102C8.15365 1.39844 8.10156 1.49121 8.02344 1.56934L5.11816 4.47949L8.02344 7.39453C8.10156 7.47266 8.15365 7.56543 8.17969 7.67285C8.20573 7.78027 8.20573 7.8877 8.17969 7.99512C8.15365 8.10254 8.09993 8.19694 8.01855 8.27832C7.93717 8.3597 7.84277 8.41341 7.73535 8.43945C7.62793 8.46549 7.52051 8.46549 7.41309 8.43945C7.30566 8.41341 7.21289 8.36133 7.13477 8.2832L4.22461 5.37305L1.31445 8.2832C1.23633 8.36133 1.14355 8.41341 1.03613 8.43945C0.928711 8.46549 0.819661 8.46549 0.708984 8.43945C0.601562 8.41341 0.507161 8.3597 0.425781 8.27832Z",fill:"#ACABAE"})],-1))];var gd={setup(e){const{isInWechatMP:t}=Object(K.a)(),a=Object(o.ref)(!1);Object(o.onMounted)(()=>{t.value&&!localStorage.getItem("showTip")&&setTimeout(()=>{a.value=!0},2e3)});const r=()=>{a.value=!1,localStorage.setItem("showTip","true")};return(e,t)=>a.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",md,[Object(o.createElementVNode)("div",{class:"tip-container"},[Object(o.createElementVNode)("div",{class:"tip-content"},[hd,Object(o.createElementVNode)("button",{class:"close-button",onClick:r},bd)])])])):Object(o.createCommentVNode)("",!0)}};a("743d");var Od=j()(gd,[["__scopeId","data-v-f32f82d2"]]);const jd=e=>(Object(o.pushScopeId)("data-v-622e0710"),e=e(),Object(o.popScopeId)(),e),Cd={class:"info"},fd=["src"],vd={class:"flexBox"},wd={class:"title"},Vd={class:"name"},kd={key:0,class:"unread"},yd={key:0,class:"timeAndNotice"},_d=["src"],Ed={class:"creator_name"},Nd=Object(o.createTextVNode)(" · "),Bd=["innerHTML"],Hd={key:0},xd={key:1,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Md=[jd(()=>Object(o.createElementVNode)("path",{d:"M1.62256 1.00293L1.00391 1.62158L12.3789 12.9966L12.9976 12.3779L11.3757 10.7561V10.0623H10.9382C10.6967 10.0623 10.5007 9.86582 10.5007 9.62476V5.81543C10.5007 4.14212 9.371
159 2.70622 7.86377 2.30261C7.86886 2.2644 7.87573 2.22686 7.87573 2.18726C7.87573 1.70382 7.48417 1.31226 7.00073 1.31226C6.51729 1.31226 6.12573 1.70382 6.12573 2.18726C6.12573 2.2248 6.13226 2.26033 6.13684 2.29663C5.55106 2.44492 5.00972 2.74216 4.56372 3.17505C4.4314 3.30346 4.31506 3.44272 4.20654 3.58691L1.62256 1.00293ZM7.08105 3.06311C8.48455 3.10555 9.62573 4.34018 9.62573 5.81543V9.0061L4.83459 4.21497C4.93367 4.0689 5.043 3.92843 5.17297 3.80225C5.68704 3.3035 6.36355 3.04124 7.08105 3.06311ZM3.51697 5.36255C3.50691 5.46974 3.50073 5.57788 3.50073 5.68726V9.62476C3.50073 9.86582 3.30473 10.0623 3.06323 10.0623H2.62573V10.9373H5.75916C5.71243 11.0796 5.68823 11.2275 5.68823 11.3748C5.68823 11.6907 5.7912 12.0126 6.01721 12.2668C6.24323 12.5211 6.59969 12.6873 7.00073 12.6873C7.40177 12.6873 7.75824 12.5211 7.98425 12.2668C8.21027 12.0126 8.31323 11.6907 8.31323 11.3748C8.31323 11.2275 8.28904 11.0796 8.24231 10.9373H9.09167L8.21667 10.0623H7.00073H4.29541C4.34441 9.92488 4.37573 9.77876 4.37573 9.62476V6.22131L3.51697 5.36255ZM7.00073 10.9373C7.18302 10.9373 7.26406 10.9899 7.32971 11.0637C7.39536 11.1376 7.43823 11.2532 7.43823 11.3748C7.43823 11.4963 7.39536 11.6119 7.32971 11.6858C7.26406 11.7596 7.18302 11.8123 7.00073 11.8123C6.81844 11.8123 6.7374 11.7596 6.67175 11.6858C6.6061 11.6119 6.56323 11.4963 6.56323 11.3748C6.56323 11.2532 6.6061 11.1376 6.67175 11.0637C6.7374 10.9899 6.81844 10.9373 7.00073 10.9373Z",fill:"#ABABAE"},null,-1))];var Ld={props:{paper:Object},setup(e){const t=e,r=a("5292"),{isInWechatMP:c}=Object(K.a)(),s=Object(o.ref)(!1),n=Object(o.ref)(null),i=e=>{let t=365;return e.subscription_expired_at&&(t=r(e.subscription_expired_at).diff(r(),"second")/86400),t<0?"<span style='color:#B14B43;'>订é
已尿</span>":t<=8?"<span style='color:#B14B43;'>å³å°äº "+r(e.subscription_expired_at).format("YYYY/MM/DD")+" å°æ</span>":e.latest_post?function(e){const t=pd()(),a=pd()(e),o=t.diff(a,"day");return o<1?t.diff(a,"hour")<1?t.diff(a,"minute")+" åéå":t.diff(a,"hour")+" å°æ¶å":o<7?o+" 天å":a.format("YYYY-MM-DD")}(e.latest_post.created_at):""},l=e=>{let t=X.a.state.papers.latest_post_uuid_map[e.slug]?X.a.state.papers.latest_post_uuid_map[e.slug]:0;return!c.value&&e.latest_post_uuid!=t},d=()=>{const{paper:e}=t;if(c.value){const t=e.slug;Br("Paper",{slug:t,refer:X.a.state.user.user.uuid})}else AV.push({name:"Paper",params:{slug:e.slug}})};return(t,a)=>{const r=h.a;return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createElementVNode)("div",{class:"paper-item",onClick:d},[Object(o.createElementVNode)("div",Cd,[Object(o.createElementVNode)("img",{src:e.paper.avatar_url,class:"avatar"},null,8,fd),Object(o.createElementVNode)("div",vd,[Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("div",wd,[Object(o.createElementVNode)("span",Vd,Object(o.toDisplayString)(Object(o.unref)(ye.l)(e.paper.name)),1),e.paper.creator&&l(e.paper)?(Object(o.openBlock)(),Object(o.createElementBlock)("span",kd)):Object(o.createCommentVNode)("",!0)]),e.paper.creator?(Object(o.openBlock)(),Object(o.createElementBlock)("div",yd,[Object(o.createElementVNode)("img",{class:"creator_avatar",src:e.paper.creator.full_avatar_url,alt:""},null,8,_d),Object(o.createElementVNode)("div",Ed,Object(o.toDisplayString)(e.paper.creator.nickname),1),Nd,Object(o.createElementVNode)("div",{class:"time",innerHTML:i(e.paper)},null,8,Bd),e.paper.mute?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Hd,"·")):Object(o.createCommentVNode)("",!0),e.paper.mute?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",xd,Md)):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)])])])]),Object(o.createVNode)(r,{title:"çæå享å¡ç",modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e),"custom-class":"share-dialog","destroy-on-close":!0,width:"390px"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(ot,{ref:(e,t)=>{t.share_paper_card=e,n.value=e}},null,512)]),_:1},8,["modelValue"])],64)}}};a("cb61");var Sd=j()(Ld,[["__scopeId","data-v-622e0710"]]);const Td={class:"paper-list"};var Ad={props:{paperList:Array},setup:e=>(t,a)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",Td,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.paperList,e=>(Object(o.openBlock)(),Object(o.createBlock)(Sd,{key:e.slug,paper:e},null,8,["paper"]))),128))]))};const Pd=["aria-expanded","aria-controls"],Dd=(e=>(Object(o.pushScopeId)("data-v-1c57e921"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("span",{class:"reader-home-section-toggle-icon","aria-hidden":"true"},null,-1));var Id={props:{title:{type:String,required:!0},collapsed:{type:Boolean,default:!1},controls:{type:String,required:!0}},emits:["toggle"],setup:(e,{emit:t})=>(a,r)=>(Object(o.openBlock)(),Object(o.createElementBlock)("button",{type:"button",class:Object(o.normalizeClass)(["reader-home-section-toggle",{"is-collapsed":e.collapsed}]),"aria-expanded":String(!e.collapsed),"aria-controls":e.controls,onClick:r[0]||(r[0]=e=>t("toggle"))},[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.title),
11),Dd],10,Pd))};a("7e60");var $d=j()(Id,[["__scopeId","data-v-1c57e921"]]);const Zd={class:"reader-home-subscription-sections"},Rd={key:0,class:"reader-home-empty"},Ud={key:1,class:"reader-home-section reader-home-section--created"},Fd={class:"reader-home-section-header"},zd={class:"reader-home-section reader-home-section--subscribed"},qd={class:"reader-home-section-header"},Wd=(e=>(Object(o.pushScopeId)("data-v-10bc34e8"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("span",{class:"reader-home-archive-icon","aria-hidden":"true"},null,-1));var Gd={props:{papers:{type:Array,default:()=>[]},userPapers:{type:Array,default:()=>[]},subscribePapers:{type:Array,default:()=>[]},archivePapers:{type:Array,default:()=>[]},showArchivePaper:{type:Boolean,default:!1}},emits:["toggle-archive"],setup(e,{emit:t}){const a=e,r={created:"xiaobot.reader.home.section.created.collapsed",subscribed:"xiaobot.reader.home.section.subscribed.collapsed"},c=e=>{try{return"1"===window.localStorage.getItem(r[e])}catch{return!1}},s=(e,t)=>{try{window.localStorage.setItem(r[e],t?"1":"0")}catch{}},n=Object(o.ref)(c("created")),i=Object(o.ref)(c("subscribed")),l=Object(o.computed)(()=>0===a.papers.length),d=e=>{if("created"===e)return n.value=!n.value,void s(e,n.value);i.value=!i.value,s(e,i.value)};return(a,r)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",Zd,[Object(o.unref)(l)?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Rd,"ææ è®¢é
")):Object(o.createCommentVNode)("",!0),e.userPapers.length?(Object(o.openBlock)(),Object(o.createElementBlock)("section",Ud,[Object(o.createElementVNode)("div",Fd,[Object(o.createVNode)($d,{title:"å·²åå»ºä¸æ ",collapsed:n.value,controls:"reader-home-created-papers",onToggle:r[0]||(r[0]=e=>d("created"))},null,8,["collapsed"])]),Object(o.withDirectives)(Object(o.createVNode)(Ad,{id:"reader-home-created-papers","paper-list":e.userPapers},null,8,["paper-list"]),[[o.vShow,!n.value]])])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("section",zd,[Object(o.createElementVNode)("div",qd,[Object(o.createVNode)($d,{title:"å·²è´ä¹°ä¸æ ",collapsed:i.value,controls:"reader-home-subscribed-papers",onToggle:r[1]||(r[1]=e=>d("subscribed"))},null,8,["collapsed"])]),Object(o.withDirectives)(Object(o.createVNode)(Ad,{id:"reader-home-subscribed-papers","paper-list":e.subscribePapers},null,8,["paper-list"]),[[o.vShow,!i.value]])]),e.archivePapers.length&&!e.showArchivePaper?(Object(o.openBlock)(),Object(o.createElementBlock)("button",{key:2,type:"button",class:"reader-home-archive-trigger",onClick:r[2]||(r[2]=e=>t("toggle-archive"))},[Object(o.createTextVNode)(Object(o.toDisplayString)(e.archivePapers.length)+" ä¸ªä¸æ æåæé ",1),Wd])):Object(o.createCommentVNode)("",!0)]))}};a("8f20");var Yd=j()(Gd,[["__scopeId","data-v-10bc34e8"]]);const Qd=e=>(Object(o.pushScopeId)("data-v-3aca6116"),e=e(),Object(o.popScopeId)(),e),Kd=[Qd(()=>Object(o.createElementVNode)("svg",{width:"38",height:"39",viewBox:"0 0 38 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("rect",{y:"0.5",width:"38",height:"38",rx:"19",fill:"#B14B43"}),Object(o.createElementVNode)("path",{d:"M13.2666 10.2996H10V13.2568H13.2666V14.7354H10V17.6926H10.8305V20.458H10V23.4152H13.2666V24.8116H10V27.7688H13.2666V30.726H16.2841V27.7688H19.5507V24.8116H16.2841V23.4152H19.5507V20.458H18.7202V17.6926H19.5507V14.7354H16.2841V13.2568H19.5507V10.2996H16.2841V8.27344H13.2666V10.2996ZM23.0942 11.7782H25.2811C25.2258 12.9009 24.9766 13.2294 24.2845 13.2294V16.1866C26.776 16.1866 28.2709 14.7901 28.2709 11.3949V8.82106H20.3812V30.726H23.0942V28.5903L24.1461 30.726C24.6998 30.2331 25.1981 29.7403 25.6133 29.22C26.0839 29.7676 26.6099 30.2605 27.2466 30.726L28.5478 28.07C27.9941 27.6867 27.5512 27.2486 27.1359 26.7831C28.3263 24.2093 28.5478 21.0878 28.5478 16.8164H23.0942V11.7782ZM13.8203 20.458V17.6926H15.7304V20.458H13.8203ZM25.5026 23.7164C25.2811 22.9497 25.1427 22.1557 25.0597 21.389L23.0942 21.9366V19.7735H26.0563C25.9732 21.3616 25.8071 22.6212 25.5026 23.7164ZM23.0942 22.4843C23.2603 23.7712 23.5371 25.2224 24.0908 26.6188C23.8
1139 27.0295 23.4817 27.4129 23.0942 27.7962V22.4843Z",fill:"#F8F6F4"})],-1)),Qd(()=>Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("div",{class:"subscribe-wx_title"},"å°æ¥ç«¥æé"),Object(o.createElementVNode)("div",{class:"subscribe-wx_desc"},"å
³æ³¨å
¬ä¼å·ï¼è·å䏿 æ´æ°éç¥")],-1))];var Jd={setup(e){const t=Object(o.ref)(!1),{isInWechatMP:a}=Object(K.a)(),{trackEvent:r}=Hr(),c=()=>{t.value=!1,X.a.dispatch("home/setShowNoticeSubscribeWx",!0)},s=Object(o.computed)(()=>X.a.state.user.user.subscribe_wechat),n=Object(o.computed)(()=>X.a.getters["user/is_login"]),i=()=>{t.value=!1,location.href="https://mp.weixin.qq.com/s/rrIxbrHIEfFf8X6Yad0cVA?token=812632383&lang=zh_CN",r("click_subscribe_wx_popup")};return Object(o.onMounted)(()=>{a.value&&!s.value&&n.value&&(t.value=!0)}),(e,a)=>(Object(o.openBlock)(),Object(o.createBlock)(C,{title:"å
³æ³¨å
¬ä¼å·",visible:t.value,closeDrawer:c,size:"35%"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",{style:{padding:"10px"}},[Object(o.createElementVNode)("div",{class:"subscribe-wx",onClick:i},Kd),Object(o.createElementVNode)("div",{class:"subscribe-wx_button",onClick:i},"ç«å³å
³æ³¨")])]),_:1},8,["visible"]))}};a("7a3f");var Xd=j()(Jd,[["__scopeId","data-v-3aca6116"]]);const ep=[(e=>(Object(o.pushScopeId)("data-v-346fe3dc"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("svg",{width:"350",height:"44",viewBox:"0 0 350 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("rect",{width:"350",height:"44",rx:"6",fill:"#F8F6F4"}),Object(o.createElementVNode)("path",{d:"M23.6191 22.9258C23.4277 22.9258 23.2402 22.8457 23.0566 22.6855L17.2031 17.5293C17.5156 17.3262 17.9121 17.2246 18.3926 17.2246H27.5859C27.5312 17.377 27.4883 17.5371 27.457 17.7051C27.4258 17.8691 27.4102 18.0371 27.4102 18.209C27.4102 18.6816 27.5215 19.127 27.7441 19.5449L24.1816 22.6855C24.002 22.8457 23.8145 22.9258 23.6191 22.9258ZM16.7051 26.377C16.6582 26.2676 16.6211 26.1426 16.5938 26.002C16.5664 25.8613 16.5527 25.6973 16.5527 25.5098V19.041C16.5527 18.8379 16.5664 18.6641 16.5938 18.5195C16.625 18.375 16.6582 18.2734 16.6934 18.2148L21.041 22.0469L16.7051 26.377ZM28.2715 20.2246C28.5254 20.4746 28.8203 20.6738 29.1562 20.8223C29.4961 20.9668 29.8574 21.0391 30.2402 21.0391C30.3184 21.0391 30.3945 21.0371 30.4688 21.0332C30.543 21.0254 30.6172 21.0156 30.6914 21.0039V25.5098C30.6914 25.6973 30.6758 25.8613 30.6445 26.002C30.6172 26.1426 30.582 26.2676 30.5391 26.377L26.2031 22.0469L28.2715 20.2246ZM18.2168 27.3262C18.002 27.3262 17.8105 27.3027 17.6426 27.2559C17.4785 27.209 17.3418 27.1465 17.2324 27.0684L21.6914 22.6094L22.5469 23.3711C22.7188 23.5195 22.8945 23.6328 23.0742 23.7109C23.2539 23.7852 23.4355 23.8223 23.6191 23.8223C23.8027 23.8223 23.9844 23.7852 24.1641 23.7109C24.3477 23.6328 24.5254 23.5195 24.6973 23.3711L25.5527 22.6094L30.0117 27.0684C29.9023 27.1465 29.7637 27.209 29.5957 27.2559C29.4316 27.3027 29.2422 27.3262 29.0273 27.3262H18.2168ZM30.2461 20.248C29.8711 20.248 29.5293 20.1562 29.2207 19.9727C28.9121 19.7852 28.666 19.5391 28.4824 19.2344C28.2988 18.9258 28.207 18.584 28.207 18.209C28.207 17.834 28.2988 17.4922 28.4824 17.1836C28.666 16.875 28.9121 16.6289 29.2207 16.4453C29.5293 16.2617 29.8711 16.1699 30.2461 16.1699C30.6172 16.1699 30.957 16.2637 31.2656 16.4512C31.5742 16.6348 31.8203 16.8809 32.0039 17.1895C32.1875 17.498 32.2793 17.8379 32.2793 18.209C32.2793 18.5801 32.1875 18.9199 32.0039 19.2285C31.8203 19.5371 31.5742 19.7852 31.2656 19.9727C30.957 20.1562 30.6172 20.248 30.2461 20.248ZM30.2461 19.3223C30.4453 19.3223 30.6289 19.2715 30.7969 19.1699C30.9688 19.0684 31.1035 18.9336 31.2012 18.7656C31.3027 18.5977 31.3535 18.4121 31.3535 18.209C31.3535 18.0059 31.3027 17.8203 31.2012 17.6523C31.1035 17.4844 30.9688 17.3496 30.7969 17.248C30.6289 17.1465 30.4453 17.0957 30.2461 17.0957C30.0391 17.0957 29.8516 17.1465 29.6836 17.248C29.5156 17.3496 29.3809 17.4844 29.2793 17.6523C29.1816 17.8203 29.1328 18.0059 29.1328 18.209C29.1328 18.4121 29.1816 18.5977 29.2793 18.7656C29.3809 18.9336 29.5156 19.0684 29.6836 19.1699C29.8516 19.2715 30.0391 19.3223 30.2461 19.3223ZM44.3174 16.72H45.1694V17.884H49.8254V18.7H45.1694V20.224H48.9974V24.076H41.0534V20.224H44.3174V16.72ZM48.1334 23.272V21.04H41.9174V23.272H48.1334ZM41.0294 24.604L41.7614 24.952C41.3054 25.996 40.7894 26.896 40.1894 27.664L39.4814 27.148
1C40.0814 26.44 40.5974 25.588 41.0294 24.604ZM43.6454 24.952C43.8854 25.744 44.1014 26.608 44.2934 27.532L43.4294 27.724C43.2614 26.74 43.0694 25.876 42.8414 25.12L43.6454 24.952ZM46.1534 24.832C46.5134 25.648 46.8254 26.548 47.0894 27.508L46.2374 27.7C45.9974 26.68 45.6974 25.78 45.3374 25L46.1534 24.832ZM48.6134 24.592C49.3814 25.6 49.9574 26.476 50.3654 27.22L49.6454 27.724C49.2254 26.908 48.6494 26.02 47.9174 25.036L48.6134 24.592ZM52.5734 18.472H56.4974V16.78H57.3854V18.472H61.2614V19.3H57.3854V21.292H62.2454V22.132H57.3854V26.368H60.2174V23.176H61.0454V27.724H60.2174V27.172H52.8494V23.176H53.6774V26.368H56.4974V22.132H51.6494V21.292H56.4974V19.3H52.5734V18.472ZM66.6614 16.744C67.1414 17.368 67.5974 18.04 68.0294 18.784L67.2494 19.18C66.8174 18.412 66.3614 17.728 65.8694 17.128L66.6614 16.744ZM71.1734 16.636L72.0014 16.864C71.7134 17.728 71.3534 18.508 70.9214 19.192H73.3934V20.032H69.3854V20.596C69.3614 21.196 69.3134 21.76 69.2174 22.264H74.0894V23.104H69.7214C70.3094 24.724 71.8574 25.984 74.3774 26.884L73.8734 27.688C71.2334 26.62 69.6014 25.168 68.9534 23.344C68.7254 24.028 68.4254 24.628 68.0414 25.144C67.2254 26.2 65.8934 27.028 64.0454 27.616L63.5774 26.86C65.4134 26.272 66.6974 25.492 67.4174 24.532C67.7054 24.1 67.9334 23.632 68.1014 23.104H63.7934V22.264H68.3174C68.4254 21.736 68.4854 21.184 68.4974 20.596V20.032H64.4774V19.192H69.9614C70.4174 18.496 70.8134 17.644 71.1734 16.636ZM76.5134 16.876C77.3414 17.476 78.0374 18.064 78.6014 18.652L77.9894 19.264C77.4854 18.7 76.7774 18.1 75.8894 17.476L76.5134 16.876ZM76.2134 19.708C77.0054 20.296 77.6654 20.884 78.1934 21.484L77.5814 22.096C77.1014 21.544 76.4414 20.944 75.6014 20.296L76.2134 19.708ZM77.7254 23.02L78.4934 23.332C77.9534 24.844 77.3534 26.272 76.6934 27.604L75.8294 27.232C76.5494 25.864 77.1854 24.46 77.7254 23.02ZM79.0694 18.724H82.2974C82.0574 18.076 81.7934 17.464 81.4814 16.864L82.2974 16.636C82.6334 17.332 82.8974 17.956 83.0774 18.532L82.5854 18.724H86.1614V19.576H83.0654V22.456H85.8374V23.284H83.0654V26.44H86.3894V27.292H78.7694V26.44H82.1894V23.284H79.4054V22.456H82.1894V19.576H79.0694V18.724ZM90.8894 16.816L91.6814 17.128C90.7934 19.648 89.6294 21.568 88.1654 22.888L87.4934 22.3C88.9934 20.932 90.1214 19.108 90.8894 16.816ZM94.9814 23.176C95.9174 24.472 96.7094 25.864 97.3814 27.34L96.5774 27.7C96.3974 27.292 96.2174 26.908 96.0374 26.548C93.9254 26.884 91.5614 27.124 88.9454 27.292L88.7894 26.452C89.7494 25.948 90.9494 24.052 92.4014 20.764L93.2414 21.052C92.2094 23.332 91.1774 25.12 90.1454 26.416C92.1014 26.296 93.9374 26.092 95.6534 25.816C95.1854 24.952 94.7054 24.16 94.2014 23.44L94.9814 23.176ZM94.8014 16.732C95.4974 18.964 96.6974 20.788 98.4134 22.204L97.8014 22.912C96.0134 21.424 94.7654 19.492 94.0694 17.14L94.8014 16.732ZM104.617 16.732H105.265C106.729 18.58 108.409 20.032 110.317 21.088L109.861 21.892C107.941 20.776 106.297 19.312 104.941 17.512C103.669 19.216 102.001 20.68 99.9374 21.916L99.4934 21.112C101.545 19.936 103.249 18.484 104.617 16.732ZM102.325 20.944H103.153C103.153 21.784 103.093 22.54 102.985 23.212C103.729 23.908 104.365 24.604 104.893 25.3L104.281 25.912C103.897 25.312 103.405 24.7 102.817 24.052L102.709 24.424C102.325 25.66 101.461 26.68 100.093 27.472L99.5534 26.812C100.729 26.128 101.497 25.276 101.881 24.244C102.169 23.38 102.325 22.288 102.325 20.944ZM106.537 20.836H107.365C107.365 21.556 107.329 22.228 107.257 22.84C107.857 24.52 108.901 25.852 110.401 26.836L109.837 27.496C108.589 26.608 107.653 25.516 107.017 24.22L106.969 24.412C106.633 25.684 105.841 26.728 104.605 27.544L104.077 26.896C105.109 26.188 105.805 25.3 106.141 24.244C106.393 23.356 106.525 22.216 106.537 20.836ZM113.425 17.128H120.457V20.368H113.425V17.128ZM119.569 19.588V17.908H114.313V19.588H119.569ZM114.289 22.228H111.541V21.4H122.329V22.228H115.165L114.757 23.632H120.625C120.553 25.552 120.361 26.704 120.073 27.076C119.785 27.436 119.233 27.616 118.417 27.616C117.817 27.616 117.289 27.592 116.821 27.544L116.533 26.752C117.169 26.8 117.733 26.824 118.225 26.824C118.873 26.824 119.269 26.692 119.425 26.428C119.569 26.164 119.677 25.492 119.749 24.412H113.725L114.289 22.228ZM125.173 25.072C125.437 25.072 125.665 25.18 125.833 25.408C125.989 25.624 126.073 25.9 126.073 26.248C126.073 26.776 125.917 27.244
1125.605 27.652C125.293 28.036 124.873 28.3 124.369 28.432V27.844C124.681 27.736 124.933 27.556 125.125 27.316C125.293 27.064 125.389 26.8 125.389 26.512C125.341 26.536 125.245 26.56 125.125 26.56C124.921 26.56 124.753 26.488 124.609 26.344C124.465 26.2 124.393 26.02 124.393 25.816C124.393 25.588 124.465 25.408 124.609 25.276C124.753 25.132 124.933 25.072 125.173 25.072ZM135.661 17.62H138.469V16.636H139.357V17.62H142.525V16.636H143.413V17.62H146.221V18.4H143.413V19.276H142.525V18.4H139.357V19.276H138.469V18.4H135.661V17.62ZM139.033 19.564L139.753 20.008C139.321 20.56 138.901 21.028 138.469 21.412C139.057 22.408 139.357 23.632 139.357 25.084C139.357 26.14 139.201 26.872 138.889 27.28C138.661 27.52 138.325 27.64 137.881 27.64C137.401 27.64 137.029 27.628 136.741 27.616L136.501 26.824C136.873 26.86 137.269 26.884 137.677 26.884C137.977 26.884 138.193 26.776 138.313 26.584C138.457 26.332 138.529 25.816 138.541 25.024C138.541 24.64 138.517 24.28 138.469 23.944C137.821 24.604 137.041 25.156 136.153 25.612L135.685 24.904C136.789 24.4 137.665 23.776 138.301 23.056C138.181 22.636 138.037 22.264 137.845 21.928C137.329 22.3 136.705 22.672 135.973 23.032L135.517 22.312C136.213 22.024 136.837 21.676 137.389 21.244C137.029 20.812 136.585 20.44 136.081 20.152L136.717 19.612C137.221 19.924 137.653 20.296 138.001 20.728C138.361 20.38 138.709 19.996 139.033 19.564ZM139.945 21.664H142.417C142.441 20.8 142.453 20.128 142.453 19.66H143.317C143.317 20.224 143.305 20.896 143.293 21.664H146.053V22.48H143.365C143.845 24.424 144.829 25.936 146.341 26.992L145.765 27.64C144.385 26.596 143.461 25.264 143.005 23.632C142.525 25.252 141.613 26.608 140.281 27.688L139.705 27.064C141.265 25.756 142.153 24.232 142.369 22.48H139.945V21.664ZM144.517 19.408C145.117 19.984 145.573 20.488 145.897 20.92L145.249 21.376C144.913 20.896 144.457 20.368 143.869 19.804L144.517 19.408ZM149.077 22.66C148.657 23.056 148.201 23.44 147.697 23.8L147.445 22.972C148.717 22.024 149.653 20.944 150.229 19.744L150.973 20.08C150.685 20.668 150.337 21.22 149.917 21.748V27.7H149.077V22.66ZM150.181 16.684L150.901 17.02C150.241 18.316 149.161 19.468 147.661 20.476L147.409 19.636C148.681 18.772 149.605 17.788 150.181 16.684ZM151.753 17.116H157.429V20.944H151.753V17.116ZM156.601 20.248V19.36H152.581V20.248H156.601ZM152.581 18.7H156.601V17.812H152.581V18.7ZM151.225 21.796H158.149V22.552H156.697V23.572H158.425V24.328H156.697V26.632C156.697 27.292 156.349 27.628 155.653 27.628H154.321L154.141 26.812C154.573 26.848 154.969 26.872 155.353 26.872C155.677 26.872 155.845 26.716 155.845 26.428V24.328H150.793V23.572H155.845V22.552H151.225V21.796ZM152.485 24.688C153.169 25.348 153.697 25.936 154.057 26.452L153.397 26.908C153.001 26.356 152.485 25.756 151.861 25.132L152.485 24.688ZM159.805 17.176H170.089V17.98H165.373V19.024H169.093V23.776H165.229C165.085 24.568 164.857 25.204 164.521 25.684C166.201 26.392 168.193 26.788 170.497 26.86L170.281 27.688C167.869 27.592 165.769 27.124 163.981 26.308C163.141 27.028 161.761 27.484 159.853 27.7L159.481 26.908C161.149 26.776 162.373 26.44 163.141 25.888C162.445 25.504 161.797 25.06 161.209 24.556L161.869 24.1C162.433 24.568 163.057 24.976 163.729 25.324C164.017 24.916 164.233 24.4 164.353 23.776H160.837V19.024H164.509V17.98H159.805V17.176ZM168.241 23.02V21.748H165.373V22.168L165.337 23.02H168.241ZM164.473 23.02C164.497 22.744 164.509 22.456 164.509 22.168V21.748H161.689V23.02H164.473ZM161.689 21.028H164.509V19.768H161.689V21.028ZM165.373 19.768V21.028H168.241V19.768H165.373ZM181.669 16.816L182.101 17.584C181.045 17.992 179.881 18.244 178.585 18.316V20.5H182.461V21.328H181.213V27.736H180.361V21.328H178.585V22.756C178.525 24.82 178.069 26.464 177.205 27.688L176.593 27.04C177.301 26.008 177.685 24.58 177.745 22.756V17.62C179.197 17.596 180.505 17.32 181.669 16.816ZM171.673 17.74H173.965C173.797 17.356 173.617 17.008 173.413 16.696L174.301 16.552C174.481 16.912 174.649 17.308 174.817 17.74H177.085V18.532H171.673V17.74ZM171.553 20.464H172.933C172.753 19.984 172.537 19.528 172.297 19.108L173.065 18.832C173.293 19.276 173.509 19.816 173.701 20.464H175.021C175.261 19.936 175.465 19.384 175.645 18.808L176.425 19.072C176.233 19.588 176.029 20.056 175.801 20.464H177.157V21.244H174.841V22.588H176.953V23.38H174.841V26.776C174.841 27.424 174.493 27.748 173.797 27.748H173.149L172.969 26.944C173.161 26.98 173.341 27.004 173.509 27.004C173.821 27.004 173.977 26.86 173.977 26.572V23.38H171.745V22.588H173.977V21.244H171.553V20.464ZM172.585 24.028L173.377 24.196C173.065 25.408 172.621 26.464 172.069 27.364L171.349 26.908C171.913 26.044 172.321 25.084 172.585 24.028ZM176.029 23.944C176.389 24.724 176.677 25.432 176.869 26.08L176.149 26.356C175.921 25.6 175.645 24.856 175.309 24.136L176.029 23.944ZM184.453 16.888C185.281 17.512 185.977 18.136 186.541 18.76L185.929 19.36C185.425 18.76 184.741 18.124 183.865 17.452L184.453 16.888ZM191.473 27.484C190.813 27.484 190.093 27.472 189.325 27.46C188.545 27.448 187.909 27.376 187.429 27.244C186.949 27.1 186.517 26.8 186.145 26.368C185.977 26.164 185.821 26.068 185.677 26.068C185.389 26.068 184.909 26.62 184.249 27.724L183.601 27.136C184.237 26.128 184.801 25.516 185.293 25.3V21.652H183.589V20.86H186.097V25.348C186.193 25.42 186.289 25.504 186.397 25.624C186.685 25.972 186.997 26.224 187.333 26.38C187.717 26.548 188.257 26.644 188.977 26.668C189.613 26.68 190.405 26.692 191.353 26.692C191.905 26.692 192.481 26.68 193.069 26.668C193.645 26.656 194.089 26.644 194.401 26.62L194.197 27.484H191.473ZM189.325 18.04C189.829 18.34 190.297 18.64 190.705 18.94C191.329 18.616 191.905 18.256 192.433 17.848H187.105V17.116H193.597V17.74C192.877 18.364 192.097 18.904 191.257 19.36L191.449 19.516H193.825V24.88C193.825 25.492 193.489 25.804 192.817 25.804H191.821L191.629 25.072L192.577 25.108C192.865 25.108 193.009 24.964 193.009 24.7V23.8H190.993V25.864H190.189V23.8H188.185V25.9H187.369V19.516H190.369C189.913 19.192 189.385 18.868 188.797 18.556L189.325 18.04ZM188.185 22.036V23.092H190.189V22.036H188.185ZM190.993 22.036V23.092H193.009V22.036H190.993ZM193.009 21.316V20.236H190.993V21.316H193.009ZM190.189 21.316V20.236H188.185V21.316H190.189ZM205.861 17.968V27.148H205.021V26.38H202.669V27.172H201.841V17.968H205.861ZM202.669 25.576H205.021V18.772H202.669V25.576ZM197.305 19.132C197.005 19.78 196.669 20.38 196.297 20.932L195.541 20.452C196.333 19.3 196.897 18.04 197.257 16.66L198.109 16.84C197.965 17.356 197.809 17.848 197.641 18.304H201.109V19.132H199.357C199.345 19.996 199.297 20.8 199.213 21.52H201.217V22.348H199.093C199.033 22.66 198.973 22.972 198.901 23.26C199.669 24.04 200.461 24.928 201.253 25.912L200.737 26.704C199.921 25.552 199.237 24.676 198.673 24.052C198.181 25.396 197.305 26.524 196.033 27.436L195.469 26.74C196.741 25.816 197.581 24.652 197.989 23.248C198.061 22.96 198.133 22.66 198.193 22.348H195.685V21.52H198.313C198.409 20.8 198.457 19.996 198.469 19.132H197.305Z",fill:"#B14B43"}),Object(o.createElementVNode)("path",{d:"M334.213 22.4746C334.213 22.5723 334.193 22.665 334.154 22.7529C334.118 22.8376 334.06 22.9189 333.979 22.9971L330.224 26.6738C330.097 26.7975 329.942 26.8594 329.76 26.8594C329.643 26.8594 329.534 26.8301 329.433 26.7715C329.332 26.7129 329.25 26.6348 329.188 26.5371C329.13 26.4395 329.101 26.3288 329.101 26.2051C329.101 26.026 329.169 25.8665 329.306 25.7266L332.65 22.4746L329.306 19.2227C329.169 19.0859 329.101 18.9264 329.101 18.7441C329.101 18.6237 329.13 18.5146 329.188 18.417C329.25 18.3
1161 329.332 18.2363 329.433 18.1777C329.534 18.1191 329.643 18.0898 329.76 18.0898C329.942 18.0898 330.097 18.1517 330.224 18.2754L333.979 21.9521C334.057 22.0303 334.115 22.1117 334.154 22.1963C334.193 22.2809 334.213 22.3737 334.213 22.4746Z",fill:"#ABABAE"})],-1))];var tp={setup(e){const t=Object(o.ref)(!1),{isInWechatMP:a}=Object(K.a)(),{trackEvent:r}=Hr(),c=Object(o.computed)(()=>X.a.state.user.user.subscribe_wechat),s=Object(o.computed)(()=>X.a.getters["home/showNoticeSubscribeWx"]),n=()=>{location.href="https://mp.weixin.qq.com/s/rrIxbrHIEfFf8X6Yad0cVA?token=812632383&lang=zh_CN",r("click_subscribe_wx_header")};return Object(o.onMounted)(()=>{a.value&&!c.value&&s.value&&(t.value=!0)}),Object(o.watch)(s,e=>{a.value&&!c.value&&e&&(t.value=!0)}),(e,a)=>t.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"subscribe-wx",onClick:n},ep)):Object(o.createCommentVNode)("",!0)}};a("9d39");var ap=j()(tp,[["__scopeId","data-v-346fe3dc"]]);const op=/^[1][3-9][0-9]{9}$/,rp=/MicroMessenger/i,cp=["paper","post"],sp=e=>cp.includes(e)?e:"paper";var np={name:"Home",components:{BindMobileView:Ul,PostEditor:Oc,AppModalVue:C,ElSkeleton:Fl.a,ElSkeletonItem:Fl.b,Post:_s,AddToMyWxApp:Od,HomeSubscriptionSections:Yd,SubscribeWx:Xd,NoticeSubscribeWx:ap},data(){return{loading:!1,papers:[],show_bind_mobile_drawer:!1,show_post_editor_drawer:!1,current_paper:null,posts:[],subscribeType:sp(this.$route.params.subscribe_type),loadMorePostEnded:!1,loadingMore:!1,manualTabSwitch:!1,showArchivePaper:!1,userPapers:[],subscribePapers:[],archivePapers:[],paperDataReady:!1}},setup(){const e=m(),{isInWechatMP:t}=Object(K.a)(),{trackPageView:a}=Hr();return Object(o.onMounted)(()=>{a("home_page_show","home")}),{isMobile:e,isInWechatMP:t}},computed:{isClickDeliverySettings(){return this.$store.state.isClickDeliverySettings},subscribe_type(){return this.$store.getters["home/subscribe_type"]},isLogin(){return this.$store.getters["user/is_login"]},papersStyle(){return{borderRadius:!this.isWeixin()&&this.isMobile?"8px 8px 0 0":"unset",padding:this.isMobile?"0 20px":"0"}}},methods:{doLogin(){this.$router.push({name:"WechatAuth",query:{redirect:this.$route.path}})},toggleArchivePaper(){this.showArchivePaper=!this.showArchivePaper,this.subscribePapers=this.papers.filter(e=>!e.writable)},contentClick(e){const t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;this.$store.commit("position/setScrollTop",t),this.showDetail(e)},paper_subscription_expired_days:e=>e.subscription?pd()(e.subscription.expired_at).diff(pd()(),"seconds")/86400:-1,compareDate(e,t){if(!e||!t.subscription)return!1;const a=new Date(e),o=new Date(t.subscription.expired_at).getTime()-a.getTime();return Math.floor(o/864e5)<0},showDetail(e,t,a){!e.paper.writable&&this.paper_subscription_expired_days(e.paper)<0&&this.compareDate(e.created_at,e.paper)&&!e.free?Object(ke.a)({message:"è´ä¹°ä¸æ 忹坿¥ç",type:"info"}):this.isInWechatMP?Br("PostDetail",{uuid:e.uuid,refer:this.$store.state.user.user.uuid}):this.$router.push({name:"PostPage",params:{uuid:e.uuid},query:{scrollToComment:a}})},viewArticle(){this.$store.dispatch("home/setSubscribeType","post"),this.$router.push({name:"Home",params:{subscribe_type:"post"}})},viewColumn(){this.manualTabSwitch=!0,this.$store.dispatch("home/setSubscribeType","paper"),this.$router.push({name:"Home",params:{subscribe_type:"paper"}})},transformPost:e=>({...e,paper:{...e.paper,renderType:"list",creator:e.creator,subscribeType:"post"}}),loadPostSubscribed(e){this.$api.call("GET","/post/subscribed",{limit:20,offset:0},t=>{setTimeout(()=>{this.loading=!1,this.loadingMore=!1},300),200===t.data.code&&(t.data.data.length<20&&(this.loadMorePostEnded=!0),e&&e(),this.posts=t.data.data.filter(e=>!e.paper||1!==e.paper.mute).map(e=>this.transformPost(e)))})},loadMorePostSubscribed(){this.$api.call("GET","/post/subscribed",{limit:20,offset:this.posts.length},e=>{setTimeout(()=>{this.loading=!1,this.loadingMore=!1},300),200===e.data.code&&(e.data.data.length<20&&(this.loadMorePostEnded=!0),this.posts=[...this.posts,...e.data.data.filter(e=>!e.paper||1!==e.paper.mute).map(e=>this.transformPost(e))])})},loadUserCreatedPapers(){this.$api.call("GET","/paper/created",{},e=>{200===e.data.code&&(this.userPapers=e.data.data)})},loadSubscribedPapers(e){this.loading=!0,this.$store.state.user.user.is_creator&&this.loadUserCreatedPapers(),this.$api.call("GET","/paper/subscribed",{},t=>{if(200===t.data.code){this.papers=t.data.data;const a=e=>pd()(e.subscription_expired_at).diff(pd()(),"second")/86400;this.subscribePapers=this.papers.filter(e=>!e.writable&&!e.mute&&a(e)>0);const o=this.papers.filter(e=>e.mute),r=this.papers.filter(e=>a(e)<0);this.archivePapers=[...o,...r],this.paperDataReady=!0,"post"===this.subscribe_type&&this.papers.length>
1=3&&!this.manualTabSwitch&&!this.$route.params.subscribe_type&&(this.subscribeType="post",this.loadPostSubscribed()),e&&e()}else Object(ke.a)({message:t.data.message,type:"error"});setTimeout(()=>{this.loading=!1},300),this.papers.length>0&&!this.isMobileAvailable(this.$store.state.user.user.mobile)&&!this.isEmailAvailable(this.$store.state.user.user.email)&&(this.show_bind_mobile_drawer=!0)})},redirectToPaper(e){const t=e||this.current_paper;t&&(this.isInWechatMP?Br("Paper",{slug:t.slug,refer:this.$store.state.user.user.uuid}):this.$router.push({name:"Paper",params:{slug:t.slug}}))},redirectToCreatePost(){this.show_paper_drawer=!1,this.show_post_editor_drawer=!0,this.$refs.editor?(this.$refs.editor.content=this.$store.state.new_post_creator_draft,this.$refs.editor.title=this.$store.state.new_post_creator_title,this.$refs.editor.fileList=[],this.$refs.editor.tags=[],this.$refs.editor.recommend_tags=null,this.$refs.editor.paper_slug=this.current_paper.slug,this.$refs.editor.refreshFilesAndTags()):setTimeout(()=>{this.redirectToCreatePost()},500)},leadToOfficeAccount(){Ua.a.alert('<img src="/img/qrcode_for_gh_a14c27ae9ee8_258.jpg" />',"å
³æ³¨å
¬ä¼å·",{dangerouslyUseHTMLString:!0})},isMobileAvailable:e=>!!e&&op.test(e),isEmailAvailable:e=>!!e&&e.includes("@"),openPage(e){this.isInWechatMP?Br(e):e.includes("http")?window.open(e):this.$router.push({name:e})},isWeixin:()=>rp.test(navigator.userAgent),handleScroll(){if(this.loadingMore||"post"!==this.subscribeType||this.loadMorePostEnded)return;const{clientHeight:e,scrollTop:t,scrollHeight:a}=document.documentElement,o=document.body.scrollTop||0;e+(t||o)>=a-300&&(this.loadingMore=!0,this.loadMorePostSubscribed())},loadData(){this.isLogin&&("post"===this.subscribeType?this.loadPostSubscribed():(this.loadSubscribedPapers(),this.posts=[],this.loadingMore=!1,this.loadMorePostEnded=!1))}},created(){document.title="å°æ¥ç«¥",window.addEventListener("scroll",this.handleScroll,{passive:!0}),this.$store.dispatch("home/setShowNoticeSubscribeWx",!1)},activated(){this.isLogin&&("post"===this.subscribeType?(this.loadingMore=!1,this.loadMorePostEnded=!1,this.loadPostSubscribed()):this.loadSubscribedPapers(()=>{this.posts=[],this.loadingMore=!1,this.loadMorePostEnded=!1,this.showArchivePaper=!1}),this.$store.dispatch("home/setShowNoticeSubscribeWx",!1))},beforeRouteUpdate(e){this.subscribeType=sp(e.params.subscribe_type),this.loadData()},unmounted(){this.manualTabSwitch=!1,window.removeEventListener("scroll",this.handleScroll)}};a("fb1f");var ip=j()(np,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("AddToMyWxApp"),i=Object(o.resolveComponent)("NoticeSubscribeWx"),l=Fl.b,d=Object(o.resolveComponent)("HomeSubscriptionSections"),p=_s,u=Ne.a,m=Fl.a,h=Ul,b=Object(o.resolveComponent)("AppModalVue"),g=Oc,O=Object(o.resolveComponent)("SubscribeWx");return Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[!s.isWeixin()&&r.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ql,Wl)):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(n),r.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:Object(o.normalizeClass)(["header",{wxMiniProgram:r.isInWechatMP}])},[s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"icon",onClick:t[0]||(t[0]=e=>s.openPage("SearchPage"))},Gl)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",{class:"icon deliverySetting",onClick:t[1]||(t[1]=e=>s.openPage("Setting.Delivery")),style:{position:"relative","text-align":"center"}},[Yl,s.isClickDeliverySettings?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Ql,Kl)),Jl]),s.isLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"icon",onClick:t[2]||(t[2]=e=>s.openPage("Apply"))},Xl)):Object(o.createCommentVNode)("",!0),e.$store.state.user.user.access_token?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:3,class:"icon",onClick:t[4]||(t[4]=e=>s.openPage("Setting"))},[Object(o.createElementVNode)("div",td,[Object(o.createElementVNode)("img",{src:e.$store.state.user.user.full_avatar_url,alt:""},null,8,ad),od])])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:2,class:"icon",onClick:t[3]||(t[3]=e=>s.openPage("Setting"))},ed))],2)):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(i),Object(o.createElementVNode)("div",{class:"papers",style:Object(o.normalizeStyle)(s.papersStyle)},[Object(o.createElementVNode)("div",rd,[Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["tabItem",{active:"paper"===c.subscribeType}]),onClick:t[5]||(t[5]=(...e)=>s.viewColumn&&s.viewColumn(...e))}," 䏿 ",2),Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["tabItem",{active:"post"===c.subscribeType}]),onClick:t[6]||(t[6]=(...e)=>s.viewArticle&&s.viewArticle(...e))}," æ´æ° ",2)]),Object(o.createVNode)(m,{style:{width:"100%"},loading:c.loading&&!c.paperDataReady,animated:"",count:6},Object(o.createSlots)({template:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",cd,[Object(o.createVNode)(l,{variant:"rect",style:{width:"50px",height:"50px","border-radius":"6px"}}),Object(o.createElementVNode)("div",sd,[Object(o.createVNode)(l,{variant:"text",style:{"margin-right":"16px",width:"30%"}}),Object(o.createVNode)(l,{variant:"text",style:{width:"100%"}})])])]),_:2},[s.isLogin?{name:"default",fn:Object(o.withCtx)(()=>[c.paperDataReady?Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createBlock)(d,{key:0,papers:c.papers,"user-papers":c.userPapers,"subscribe-papers":c.subscribePapers,"archive-papers":c.archivePapers,"show-archive-paper":c.showArchivePaper,onToggleArchive:s.toggleArchivePaper},null,8,["papers","user-papers","subscribe-papers","archive-papers","show-archive-paper","onToggleArchive"])),[[o.vShow,"paper"===c.subscribeType]]):Object(o.createCommentVNode)("",!0),Object(o.withDirectives)(Object(o.createElementVNode)("div",nd,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.posts,e=>(Object(o.openBlock)(),Object(o.createBlock)(p,{key:e.uuid,post:e,paper:e.paper,onContentClick:s.contentClick}
1,null,8,["post","paper","onContentClick"]))),128))],512),[[o.vShow,"post"===c.subscribeType]])])}:{name:"default",fn:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("div",{class:"login-tip"},[Object(o.createElementVNode)("p",null,"ç»å½åå¯ä»¥è®¢é
䏿 ï¼ç¬¬ä¸æ¶é´è·å¾æé"),Object(o.createVNode)(u,{class:"login-button",type:"primary",onClick:s.doLogin},{default:Object(o.withCtx)(()=>[Object(o.createTextVNode)("ç»å½")]),_:1},8,["onClick"])])])])}]),1032,["loading"]),e.$store.state.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("p",id,"Since 2021 · © xiaobot.net")):Object(o.createCommentVNode)("",!0),!s.isLogin||e.$store.state.user.user.subscribe_wechat||r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,id:"bottom_fixed",onClick:t[7]||(t[7]=(...e)=>s.leadToOfficeAccount&&s.leadToOfficeAccount(...e))},ld))],4),Object(o.createVNode)(b,{visible:c.show_bind_mobile_drawer,title:"ç»å®ææºå·",closeDrawer:()=>c.show_bind_mobile_drawer=!1},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(h,{ref:"bind_mobile_view",onCancelClicked:t[8]||(t[8]=e=>c.show_bind_mobile_drawer=!1),showTitle:!1},null,512)]),_:1},8,["visible","closeDrawer"]),Object(o.createVNode)(b,{visible:c.show_post_editor_drawer,title:"",closeDrawer:()=>c.show_post_editor_drawer=!1,width:"800px"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(g,{ref:"editor",onNewPostCreated:t[9]||(t[9]=e=>c.show_post_editor_drawer=!1),onPostEdited:t[10]||(t[10]=e=>c.show_post_editor_drawer=!1),onCancelClicked:t[11]||(t[11]=e=>c.show_post_editor_drawer=!1)},null,512)]),_:1},8,["visible","closeDrawer"]),Object(o.createVNode)(O)])}],["__scopeId","data-v-52933112"]]);const lp=e=>(Object(o.pushScopeId)("data-v-6f4f6892"),e=e(),Object(o.popScopeId)(),e),dp={class:"settings"},pp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"åä½è
æå",-1))],up=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"æ¶å
¥",-1))],mp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"伿 å¸",-1))],hp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"æ¶è",-1))],bp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"个人信æ¯",-1))],gp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"æé设置",-1))],Op=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"æ¥ç«¥å¸è´¦æ·",-1))],jp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"é订",-1))],Cp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"å
æ¢ç ",-1))],fp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"帮å©",-1))],vp=[lp(()=>Object(o.createElementVNode)("span",{class:"name"},"åé¦é®é¢",-1))],wp=[lp(()=>Object(o.createElementVNode)("span",{class:"name danger"},"éåº",-1))],Vp={class:"setting",style:{"border-bottom":"none"}};var kp={name:"Setting",setup(){const{isInWechatMP:e}=Object(K.a)();return{isInWechatMP:e}},methods:{redirectToSettingDelivery(){this.$router.push({name:"Setting.Delivery"})},logout(){this.$store.commit("user/setUser",{}),this.isInWechatMP?this.$router.replace("/wechat_auth"):this.$router.replace("/setting")},redirectToCreatePaper(){window.location.replace("https://help.xiaobot.net/")},redirectToWallet(){this.$router.push({name:"Wallet"})},showRefund(){this.$router.push({name:"MyLatest"})},redirectToHelp(){this.isInWechatMP?Wa.a.miniProgram.navigateTo({url:"/pages/help/help"}):window.open("https://help.xiaobot.net/")},helpClick(){this.isInWechatMP?Wa.a.miniProgram.navigateTo({url:"/pages/help/help"}):window.open("https://help.xiaobot.net/reader.html")},redirectToUser(){this.$router.push({name:"Setting.User"})},redirectToFav(){this.$router.push({name:"Setting.Fav"})},toKf(){this.$router.push({name:"Feedback.New"})},redeem(){this.$router.push({name:"Redeem"})},redirectToAccount(){this.$router.push({name:"Setting.Account.Balance"})},redirectToCoupon(){this.$router.push({name:"Setting.Coupon"})}},created(){document.title="设置 | å°æ¥ç«¥"}};a("f9cf");var yp=j()(kp,[["render",function(e,t,a,r,c,s){return Object(o.openBlock)(),Object(o.createElementBlock)("div",dp,[e.$store.state.user.user.is_creator?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"setting",onClick:t[0]||(t[0]=(...e)=>s.redirectToHelp&&s.redirectToHelp(...e))},pp)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",{class:"setting",onClick:t[1]||(t[1]=(...e)=>s.redirectToWallet&&s.redirectToWallet(...e))},up),Object(o.createElementVNode)("div",{class:"setting",onClick:t[2]||(t[2]=(...e)=>s.redirectToCoupon&&s.redirectToCoupon(...e))},mp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[3]||(t[3]=(...e)=>s.redirectToFav&&s.redirectToFav(...e))},hp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[4]||(t[4]=(...e)=>s.redirectToUser&&s.redirectToUser(...e))},bp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[5]||(t[5]=(...e)=>s.redirectToSettingDelivery&&s.redirectToSettingDelivery(...e))},gp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[6]||(t[6]=(...e)=>s.redirectToAccount&&s.redirectToAccount(...e))},Op),Object(o.createElementVNode)("div",{class:"setting",onClick:t[7]||(t[7]=(...e)=>s.showRefund&&s.showRefund(...e))},jp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[8]||(t[8]=(...e)=>s.redeem&&s.redeem(...e))},Cp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[9]||(t[9]=(...e)=>s.helpClick&&s.helpClick(...e))},fp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[10
1]||(t[10]=(...e)=>s.toKf&&s.toKf(...e))},vp),Object(o.createElementVNode)("div",{class:"setting",onClick:t[11]||(t[11]=(...e)=>s.logout&&s.logout(...e))},wp),Object(o.createElementVNode)("div",Vp,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",style:{margin:"0 auto"},onClick:t[12]||(t[12]=(...e)=>s.redirectToCreatePaper&&s.redirectToCreatePaper(...e))},"ç³è¯·ä¸æ ")])])}],["__scopeId","data-v-6f4f6892"]]),_p=a("2e46");a("253d"),a("604e");const Ep=e=>(Object(o.pushScopeId)("data-v-1cba8cf4"),e=e(),Object(o.popScopeId)(),e),Np={class:"settings"},Bp={class:"setting"},Hp={key:1,class:"value"},xp={class:"setting"},Mp=Ep(()=>Object(o.createElementVNode)("span",{class:"name"},"微信æé",-1)),Lp=Ep(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),Sp={class:"setting"},Tp=Ep(()=>Object(o.createElementVNode)("span",{class:"name"},"é®ç®±",-1)),Ap={class:"setting"},Pp=Ep(()=>Object(o.createElementVNode)("span",{class:"name"},"é®ç®±æé",-1)),Dp=Ep(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),Ip={class:"setting"},$p=Ep(()=>Object(o.createElementVNode)("span",{class:"name"},"æé颿¬¡",-1)),Zp={class:"setting"},Rp=Ep(()=>Object(o.createElementVNode)("span",{class:"name"},"æéæ¶é´",-1)),Up=Ep(()=>Object(o.createElementVNode)("div",{class:"tips"},"妿çä¸åæéï¼ä¹å¯ä¸»å¨è®¿é®å°æ¥ç«¥ï¼æ¥ç䏿 æ´æ°ã",-1)),Fp={style:{padding:"0 10px 20px"}},zp={style:{display:"flex",margin:"20px 0"}};var qp={name:"Setting.Delivery",components:{AppModalVue:C},data(){return{wechat_delivery_options:["å
³é","å¼å¯"],email_delivery_options:["å
³é","å¼å¯"],frequency_options:{101:"æ¯å¤©æ±æ»",201:"æ¯å¨æ±æ»ï¼å¨ä¸",202:"æ¯å¨æ±æ»ï¼å¨äº",203:"æ¯å¨æ±æ»ï¼å¨ä¸",204:"æ¯å¨æ±æ»ï¼å¨å",205:"æ¯å¨æ±æ»ï¼å¨äº",206:"æ¯å¨æ±æ»ï¼å¨å
",207:"æ¯å¨æ±æ»ï¼å¨æ¥"},time_options:["00:00","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00","04:30","05:00","05:30","06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30"],bind_email_drawer:!1,email:"",code:"",config:{wechat_delivery:1,email_delivery:0,frequency:"",time:""},temp_id:Math.floor(9*Math.random())+""+this.$store.state.user.user.id+Math.floor(9*Math.random()),isSendVerifyCode:!1,count:60}},computed:{has_bind_email(){return this.$store.state.user.user.email.includes("@")}},methods:{leadToOfficeAccount(){Ua.a.alert('<img src="/img/qrcode_for_gh_a14c27ae9ee8_258.jpg" />',"å
³æ³¨å
¬ä¼å·",{dangerouslyUseHTMLString:!0})},sendVerifyCodeToEmail(){this.email?this.email.includes("@")?(Object(ke.a)({message:"æ£å¨åééªè¯ç ...",type:"info"}),this.$api.call("POST","/account/send_verify_code_to_email",{email:this.email},e=>{200==e.data.code?(Object(ke.a)({message:e.data.message,type:"success"}),this.isSendVerifyCode=!0,this.countDown()):Object(ke.a)({message:e.data.message,type:"error"})})):ke.a.error("请è¾å
¥æ£ç¡®çé®ç®±"):ke.a.error("请è¾å
¥é®ç®±")}
1,bindEmail(){this.email?this.email.includes("@")?this.code?(Object(ke.a)({message:"æ£å¨ç»å®é®ç®±...",type:"info"}),this.$api.call("POST","/account/bind_email",{email:this.email,code:this.code},e=>{if(200==e.data.code){let t=this.$store.state.user.user;t.email=e.data.data.email,this.$store.commit("user/setUser",t),Object(ke.a)({message:e.data.message,type:"success"}),this.config.email_delivery=1,this.bind_email_drawer=!1,this.email="",this.count=60,this.isSendVerifyCode=!1,this.code=""}else Object(ke.a)({message:e.data.message,type:"error"})})):ke.a.error("请è¾å
¥éªè¯ç "):ke.a.error("请è¾å
¥æ£ç¡®çé®ç®±"):ke.a.error("请è¾å
¥é®ç®±")},unbindEmail(){Ua.a.confirm("确认è¦è§£ç»é®ç®±åï¼","",{confirmButtonText:"è§£ç»é®ç®±",cancelButtonText:"åæ¶",type:"warning"}).then(()=>{this.$api.call("POST","/account/unbind_email",{},e=>{if(200==e.data.code){let t=this.$store.state.user.user;t.email=e.data.data.email,this.$store.commit("user/setUser",t),Object(ke.a)({message:e.data.message,type:"success"})}else Object(ke.a)({message:e.data.message,type:"error"})})}).catch(()=>{})},loadDeliveryConfig(){this.$api.call("GET","/user_delivery_config/",{},e=>{200==e.data.code?this.config=e.data.data:Object(ke.a)({message:e.data.message,type:"error"})})},updateDeliveryConfig(){return 1==this.config.wechat_delivery&&0==this.$store.state.user.user.subscribe_wechat?(Object(ke.a)({message:"请å
å
³æ³¨å¾®ä¿¡å
¬ä¼å·",type:"error"}),void(this.config.wechat_delivery=0)):1!=this.config.email_delivery||this.has_bind_email?void this.$api.call("POST","/user_delivery_config/",{wechat_delivery:this.config.wechat_delivery,email_delivery:this.config.email_delivery,frequency:this.config.frequency,time:this.config.time},e=>{200==e.data.code?(this.config=e.data.data,Object(ke.a)({message:"å·²æ´æ°",type:"success"})):Object(ke.a)({message:e.data.message,type:"error"})}):(Object(ke.a)({message:"请å
ç»å®é®ç®±",type:"error"}),void(this.config.email_delivery=0))},getUserId(){Object(ke.a)({message:this.temp_id,type:"info"})},countDown(){let e=setInterval(()=>{0==this.count?(clearInterval(e),this.count=30,this.isSendVerifyCode=!1):this.count--},1e3)},intoView(e){setTimeout(()=>{e.target.scrollIntoView()},400)}},setup(){const{isInWechatMP:e}=Object(K.a)();return{isInWechatMP:e}},created(){document.title="设置 | å°æ¥ç«¥",this.loadDeliveryConfig(),this.$store.commit("setIsClickDeliverySettings",!0)}};a("eabd");var Wp=j()(qp,[["render",function(e,t,a,r,c,s){const n=_p.a,i=_p.c,l=ct.a,d=Object(o.resolveComponent)("AppModalVue");return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createElementVNode)("div",Np,[Object(o.createElementVNode)("div",Bp,[Object(o.createElementVNode)("span",{class:"name",onDblclick:t[0]||(t[0]=(...e)=>s.getUserId&&s.getUserId(...e))},"微信",32),e.$store.state.user.user.subscribe_wechat||r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,class:"value",onClick:t[1]||(t[1]=(...e)=>s.leadToOfficeAccount&&s.leadToOfficeAccount(...e))},"å
³æ³¨å
¬ä¼å· â")),e.$store.state.user.user.subscribe_wechat?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Hp,"å·²å
³æ³¨")):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",xp,[Mp,Object(o.createVNode)(i,{modelValue:c.config.wechat_delivery,"onUpdate:modelValue":t[2]||(t[2]=e=>c.config.wechat_delivery=e),size:"small",style:{width:"100px"},placeholder:"è¯·éæ©...",onChange:s.updateDeliveryConfig},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.wechat_delivery_options,(e,t)=>(Object(o.openBlock)(),Object(o.createBlock)(n,{key:t,label:e,value:t},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),Lp,Object(o.createElementVNode)("div",Sp,[Tp,s.has_bind_email?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,class:"value",onClick:t[3]||(t[3]=e=>c.bind_email_drawer=!0)},"ç»å®é®ç®± â")),s.has_bind_email?(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:1,class:"value",onClick:t[4]||(t[4]=(...e)=>s.unbindEmail&&s.unbindEmail(...e))},Object(o.toDisplayString)(e.$store.state.user.user.email),1)):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Ap,[Pp,Object(o.createVNode)(i,{modelValue:c.config.email_delivery,"onUpdate:modelValue":t[5]||(t[5]=e=>c.config.email_delivery=e),size:"small",style:{width:"100px"},placeholder:"è¯·éæ©...",onChange:s.updateDeliveryConfig},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.email_delivery_options,
1(e,t)=>(Object(o.openBlock)(),Object(o.createBlock)(n,{key:t,label:e,value:t},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),Dp,Object(o.createElementVNode)("div",Ip,[$p,Object(o.createVNode)(i,{modelValue:c.config.frequency,"onUpdate:modelValue":t[6]||(t[6]=e=>c.config.frequency=e),size:"small",style:{width:"140px"},placeholder:"è¯·éæ©...",onChange:s.updateDeliveryConfig},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.frequency_options,(e,t)=>(Object(o.openBlock)(),Object(o.createBlock)(n,{key:t,label:e,value:t},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),Object(o.createElementVNode)("div",Zp,[Rp,Object(o.createVNode)(i,{modelValue:c.config.time,"onUpdate:modelValue":t[7]||(t[7]=e=>c.config.time=e),size:"small",style:{width:"100px"},placeholder:"è¯·éæ©...",onChange:s.updateDeliveryConfig},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.time_options,e=>(Object(o.openBlock)(),Object(o.createBlock)(n,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),Up,Object(o.createVNode)(d,{visible:c.bind_email_drawer,title:"ç»å®é®ç®±",closeDrawer:()=>c.bind_email_drawer=!1,width:"480px"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Fp,[Object(o.createElementVNode)("div",zp,[Object(o.createVNode)(l,{modelValue:c.email,"onUpdate:modelValue":t[8]||(t[8]=e=>c.email=e),placeholder:"请è¾å
¥é®ç®±",size:"medium",style:{width:"100%"},onFocus:s.intoView},null,8,["modelValue","onFocus"]),Object(o.createElementVNode)("a",{class:"btn btn-plain",style:{"flex-shrink":"0",padding:"0",height:"36px","line-height":"36px","text-align":"center","min-width":"100px","margin-left":"10px"},onClick:t[9]||(t[9]=(...e)=>s.sendVerifyCodeToEmail&&s.sendVerifyCodeToEmail(...e))},Object(o.toDisplayString)(c.isSendVerifyCode?c.count+"s":"åééªè¯ç "),1)]),Object(o.createVNode)(l,{modelValue:c.code,"onUpdate:modelValue":t[10]||(t[10]=e=>c.code=e),placeholder:"请è¾å
¥éªè¯ç ",size:"medium",style:{width:"100%","margin-bottom":"20px"},onFocus:s.intoView},null,8,["modelValue","onFocus"]),Object(o.createElementVNode)("a",{class:"btn btn-primary",onClick:t[11]||(t[11]=(...e)=>s.bindEmail&&s.bindEmail(...e))},"确认")])]),_:1},8,["visible","closeDrawer"])],64)}],["__scopeId","data-v-1cba8cf4"]]);const Gp=e=>(Object(o.pushScopeId)("data-v-f4a8f960"),e=e(),Object(o.popScopeId)(),e),Yp={class:"settings"},Qp=Gp(()=>Object(o.createElementVNode)("span",{class:"name"},"头å",-1)),Kp={class:"content"},Jp=["src"],Xp=["src"],eu=Gp(()=>Object(o.createElementVNode)("span",{class:"name"},"æµç§°",-1)),tu={class:"content"},au={class:"text"},ou=["src"],ru={class:"setting"},cu=Gp(()=>Object(o.createElementVNode)("span",{class:"name"},"ææºå·ç ",-1)),su={class:"content"},nu=["src"],iu={class:"desc"},lu={class:"content"},du=["src"],pu=Gp(()=>Object(o.createElementVNode)("span",{class:"avatar_desc"},"ç¼è¾",-1)),uu={key:1},mu={key:2,class:"divider_thin"},hu={class:"bottom_btn"};const bu=a("4f14");let gu=a("63bb");var Ou={name:"Setting.User",components:{BindMobileView:Ul,AppModalVue:C},data:()=>({show_drawer:!1,show_avatar_drawer:!1,show_name_drawer:!1,drawer_title:"",user_avatar_url:null,user_name:null,show_bind_mobile_drawer:!1,user:null}),methods:{toBindPage(){this.$router.push({name:"Setting.bind"})},showAvatarDrawer(){this.closeDrawer(),this.drawer_title="ç¼è¾å¤´å",this.show_drawer=!0,this.show_avatar_drawer=!0},showNameDrawer(){this.closeDrawer(),this.drawer_title="ç¼è¾æµç§°",this.show_drawer=!0,this.show_name_drawer=!0},closeDrawer(){this.show_drawer=!1,this.show_avatar_drawer=!1,this.show_name_drawer=!1,this.user_avatar_url=this.user.full_avatar_url,this.user_name=this.user.nickname},handleBeforeFileUpload(e){if(!e.type.includes("image"))return Object(ke.a)({message:"åªè½ä¸ä¼ å¾ç",type:"error"}),!1;const t=this;return new Promise(a=>{const o=new FileReader,r=new Image;r.onload=()=>{let o=null;if(r.src.startsWith("data:image/gif"))Object(ke.a)({message:"䏿¯ægifå¾ç",type:"error"});else{{const a=document.createElement("canvas"),c=a.getContext("2d");a.width=200,a.height=200;let s=0,n=0,i=0,l=0;r.width>r.height?(s=(r.width-r.height)/2,n=0,i=r.height,l=r.height):(s=0,n=(r.height-r.
1width)/2,i=r.width,l=r.width),c.clearRect(0,0,200,200),c.drawImage(r,s,n,i,l,0,0,200,200);const d=a.toDataURL(e.type);o=t.dataURItoBlob(d,e.type)}a(o)}},o.onload=e=>{r.src=e.target.result},o.readAsDataURL(e)})},handleFileUpload(e){e.onProgress({percent:0}),new Promise(e=>{var t=JSON.parse(localStorage.getItem("oss_sign")),a=Date.parse(new Date)/1e3;t&&t.expire-10>a?e(t):this.$api.call("GET","/file/oss_sign",{},t=>{t.data&&-1===t.data.code?Object(ke.a)({message:t.data.message,type:"error"}):t.data&&200===t.data.code&&(localStorage.setItem("oss_sign",JSON.stringify(t.data.data)),e(t.data.data))})}).then(t=>{e.onProgress({percent:50});var a=t,o=new FormData;o.append("name",e.file.name);let r=e.file.type.split("/")[1],c=e.file.name+e.file.size+Math.random(),s=a.dir+"/"+gu(c)+"."+r;o.append("key",s),o.append("policy",a.policy),o.append("OSSAccessKeyId",a.accessid),o.append("success_action_status",201),o.append("signature",a.signature),o.append("file",e.file,e.file.name),bu.post(a.host,o,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{if(e.onProgress({percent:80}),201==t.status){let t=this;this.$api.call("PUT","/file/",{name:e.file.name,size:e.file.size,path:s},a=>{a.data&&-1===a.data.code?Object(ke.a)({message:a.data.message,type:"error"}):a.data&&200===a.data.code&&(e.id=a.data.data.id,t.user_avatar_url=a.data.data.url,e.onSuccess(a.data))})}}).catch(e=>{console.log(e)})})},handleFileUploadSuccess(){},dataURItoBlob(e,t){for(var a=atob(e.split(",")[1]),o=[],r=0;r<a.length;r++)o.push(a.charCodeAt(r));return new Blob([new Uint8Array(o)],{type:t})},submitUser(){if(0==this.user_name.length)return void Object(ke.a)({message:"æµç§°ä¸è½ä¸ºç©º",type:"success"});let e=this.getUrlRelativePath(this.user_avatar_url);this.$api.call("PUT","/user/",{nickname:this.user_name,avatar_url:e},e=>{if(200==e.data.code){Object(ke.a)({message:"ä¿®æ¹æå",type:"success"});let t=e.data.data;this.user_avatar_url=t.full_avatar_url,this.user_name=t.nickname,this.user.nickname=t.nickname,this.user.full_avatar_url=t.full_avatar_url,this.$store.commit("user/setUser",this.user),this.closeDrawer()}else Object(ke.a)({message:e.data.message,type:"error"})})},getUrlRelativePath(e){if(Object(ye.a)(e)){var t=e.split("//"),a=t[1].indexOf("/");return t[1].substring(a+1)}return e},isPoneAvailable:e=>!!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(e)},created(){document.title="个人信æ¯",this.user=this.$store.state.user.user,this.user_avatar_url=this.user.full_avatar_url,this.user_name=this.user.nickname}};a("ffad");var ju=j()(Ou,[["render",function(e,t,a,r,c,s){const n=Tr.a,i=ct.a,l=Object(o.resolveComponent)("AppModalVue"),d=Ul;return Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[Object(o.createElementVNode)("div",Yp,[Object(o.createElementVNode)("div",{class:"setting",onClick:t[0]||(t[0]=(...e)=>s.showAvatarDrawer&&s.showAvatarDrawer(...e))},[Qp,Object(o.createElementVNode)("div",Kp,[Object(o.createElementVNode)("img",{src:c.user.full_avatar_url,class:"user_icon"},null,8,Jp),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,Xp)])]),Object(o.createElementVNode)("div",{class:"setting",onClick:t[1]||(t[1]=(...e)=>s.showNameDrawer&&s.showNameDrawer(...e))},[eu,Object(o.createElementVNode)("div",tu,[Object(o.createElementVNode)("span",au,Object(o.toDisplayString)(c.user_name),1),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,ou)])]),Object(o.createElementVNode)("div",ru,[cu,Object(o.createElementVNode)("div",su,[s.isPoneAvailable(e.$store.state.user.user.mobile)?(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:0,onClick:t[2]||(t[2]=(...e)=>s.toBindPage&&s.toBindPage(...e)),class:"value"},Object(o.toDisplayString)(e.$store.state.user.user.mobile),1)):(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:1,class:"value",onClick:t[3]||(t[3]=e=>c.show_bind_mobile_drawer=!0)},"ç»å®ææº")),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,nu)])])]),Object(o.createVNode)(l,{visible:c.show_drawer,title:c.drawer_title,closeDrawer:s.closeDrawer},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",iu,[c.show_avatar_drawer?(Object(o.openBlock)(),Object(o.createBlock)(n,{key:0,class:"content",ref:"upload",action:"/api/file/upload","show-file-list":!1,"before-upload":s.handleBeforeFileUpload,"http-request":s.handleFileUpload,"on-success":s.handleFileUploadSuccess,multiple:!1},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",lu,[Object(o.createElementVNode)("img",{src:c.user_avatar_url,class:"user_icon_big"},null,8,du),pu])]),_:1},8,["before-upload","http-request","on-success"])):Object(o.createCommentVNode)("",!0),c.show_name_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",uu,[Object(o.createVNode)(i,{autofocus:!1,maxlength:20,placeholder:"请è¾å
¥æµç§°",modelValue:c.user_name,"onUpdate:modelValue":t[4]||(t[4]=e=>c.user_name=e)},null,8,["modelValue"])])):Object(o.createCommentVNode)("",!0),c.show_name_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",mu)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",hu,[Object(o.createElementVNode)("a",{class:"btn btn-primary",onClick:t[5]||(t[5]=(...e)=>s.submitUser&&s.submitUser(...e))},"确认")])])]),_:1}
1,8,["visible","title","closeDrawer"]),Object(o.createVNode)(l,{visible:c.show_bind_mobile_drawer,title:"ç»å®ææºå·",closeDrawer:()=>c.show_bind_mobile_drawer=!1},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(d,{isBindMobile:!0,ref:"bind_mobile_view",onCancelClicked:t[6]||(t[6]=e=>c.show_bind_mobile_drawer=!1),showTitle:!1},null,512)]),_:1},8,["visible","closeDrawer"])])}],["__scopeId","data-v-f4a8f960"]]);const Cu={"element-loading-background":"transparent"},fu={class:"subscriber"},vu={class:"user_infos"},wu=["src"],Vu={class:"status"},ku={class:"nickname"},yu={key:0,class:"expired_at"},_u={key:1,class:"expired_at expired"},Eu={class:"channls"},Nu=["src"],Bu=["src"],Hu={key:0,class:"footer"};const xu=a("5292");var Mu={name:"SubscriberList",components:{},data:()=>({loading:!1,isFinished:!1,subscribers:[],paper:null}),computed:{subscription_expired_days:()=>function(e){return xu(e.expired_at).diff(xu(),"days")}},methods:{loadSubscribers(){this.$route.params.slug&&(this.loading=!0,this.isFinished=!1,this.$api.call("GET","/paper/"+this.$route.params.slug+"/subscriber",{limit:50,offset:0},e=>{200==e.data.code?(this.subscribers=e.data.data,e.data.data.length<50&&(this.isFinished=!0)):Object(ke.a)({message:e.data.message,type:"error"}),this.loading=!1}))},loadMore(){this.loading||null!=this.subscribers&&0!=this.subscribers.length&&(this.loading=!0,this.$api.call("GET","/paper/"+this.$route.params.slug+"/subscriber",{limit:50,offset:this.subscribers.length},e=>{if(200==e.data.code){for(let t in e.data.data){let a=e.data.data[t];this.subscribers.push(a)}e.data.data.length<50&&(this.isFinished=!0)}else Object(ke.a)({message:e.data.message,type:"error"}),this.isFinished=!0;this.loading=!1}))},emailClick(){Object(ke.a)({message:"å½åç¨æ·å·²å¼å¯é®ä»¶æé",type:"info"})},wechatClick(){Object(ke.a)({message:"å½åç¨æ·å·²å¼å¯å¾®ä¿¡æé",type:"info"})},scrollBottom(){let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;window.screen.height+e-document.body.clientHeight>-100&&!this.isFinished&&this.loadMore()},onlyLoadPaper(){this.$api.call("GET","/paper/"+this.$route.params.slug,{},e=>{200==e.data.code?this.paper=e.data.data:Object(ke.a)({message:e.data.message,type:"error"})})}},created(){document.title="读è
",this.loadSubscribers()},mounted(){window.addEventListener("scroll",this.scrollBottom)},beforeUnmount(){window.removeEventListener("scroll",this.scrollBottom,!1)}};a("172e");var Lu=j()(Mu,[["render",function(e,t,a,r,c,s){const n=Wo.b;return Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",Cu,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.subscribers,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e.user.nickname},[Object(o.createElementVNode)("div",fu,[Object(o.createElementVNode)("div",vu,[Object(o.createElementVNode)("img",{src:e.user.full_avatar_url,class:"avatar"},null,8,wu),Object(o.createElementVNode)("div",Vu,[Object(o.createElementVNode)("div",ku,Object(o.toDisplayString)(e.user.nickname),1),s.subscription_expired_days(e)>=0&&s.subscription_expired_days(e)<1e4?(Object(o.openBlock)(),Object(o.createElementBlock)("div",yu," å©ä½ "+Object(o.toDisplayString)(s.subscription_expired_days(e))+" 天 ",1)):Object(o.createCommentVNode)("",!0),s.subscription_expired_days(e)<0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",_u,"已尿")):Object(o.createCommentVNode)("",!0)])]),Object(o.createElementVNode)("div",Eu,[e.user.subscribe_email?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,src:"/img/icon_email.svg",class:"icon",onClick:t[0]||(t[0]=(...e)=>s.emailClick&&s.emailClick(...e))},null,8,Nu)):Object(o.createCommentVNode)("",!0),e.user.subscribe_wechat?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:1,src:"/img/icon_wechat.svg",class:"icon",onClick:t[1]||(t[1]=(...e)=>s.wechatClick&&s.wechatClick(...e))},null,8,Bu)):Object(o.createCommentVNode)("",!0)])])]))),128)),c.loading?Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",Hu,null,512)),[[n,c.loading]]):Object(o.createCommentVNode)("",!0)],512)),[[n,c.loading]])}
1],["__scopeId","data-v-4eac5cfa"]]),Su=a("8190");a("38cb"),a("5688");const Tu=e=>(Object(o.pushScopeId)("data-v-7012a949"),e=e(),Object(o.popScopeId)(),e),Au={class:"wallet","element-loading-background":"transparent"},Pu={class:"total"},Du={key:0,class:"num"},Iu=Tu(()=>Object(o.createElementVNode)("div",{class:"desc"},[Object(o.createElementVNode)("span",null,"坿ç°ä½é¢"),Object(o.createElementVNode)("span",{style:{"margin-left":"8px"}},[Object(o.createElementVNode)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M6.41602 10.4993H7.58268V9.33268H6.41602V10.4993ZM6.99935 1.16602C3.77935 1.16602 1.16602 3.77935 1.16602 6.99935C1.16602 10.2193 3.77935 12.8327 6.99935 12.8327C10.2193 12.8327 12.8327 10.2193 12.8327 6.99935C12.8327 3.77935 10.2193 1.16602 6.99935 1.16602ZM6.99935 11.666C4.42685 11.666 2.33268 9.57185 2.33268 6.99935C2.33268 4.42685 4.42685 2.33268 6.99935 2.33268C9.57185 2.33268 11.666 4.42685 11.666 6.99935C11.666 9.57185 9.57185 11.666 6.99935 11.666ZM6.99935 3.49935C5.71018 3.49935 4.66602 4.54352 4.66602 5.83268H5.83268C5.83268 5.19102 6.35768 4.66602 6.99935 4.66602C7.64102 4.66602 8.16602 5.19102 8.16602 5.83268C8.16602 6.99935 6.41602 6.85352 6.41602 8.74935H7.58268C7.58268 7.43685 9.33268 7.29102 9.33268 5.83268C9.33268 4.54352 8.28852 3.49935 6.99935 3.49935Z",fill:"#ACACAC"})])])],-1)),$u=Tu(()=>Object(o.createElementVNode)("div",{class:"wallet_divider"},null,-1)),Zu={key:0,class:"detail"},Ru=Object(o.createTextVNode)(" å»ç»ä¸ï¼å
ï¼ "),Uu=["src"],Fu={class:"freeze_num"},zu=Tu(()=>Object(o.createElementVNode)("span",{class:"name"},"æç»",-1)),qu=["src"],Wu={class:"withdraw_tips"},Gu=Object(o.createTextVNode)(" 满 10 å
å¯ä»¥ç³è¯·æç°ï¼æç°ææ¬¾æ¥ä¸ºæ¯å¨åï¼éå°æ³å®åæé¡ºå»¶ã "),Yu={id:"bottom_fixed"},Qu={class:"form",style:{padding:"0 10px 20px"}},Ku=["fill"],Ju=Object(o.createTextVNode)(" éµå®å¹¶åæ "),Xu=["href"],em=Tu(()=>Object(o.createElementVNode)("div",{class:"divider_thin"},null,-1)),tm=Object(o.createTextVNode)("ä¿å"),am={class:"form",style:{padding:"0 10px 20px"}},om={class:"confirm_info"},rm={class:"info_item"},cm={class:"info_item"},sm={class:"info_item"},nm={class:"info_item"},im=Tu(()=>Object(o.createElementVNode)("div",{class:"divider_thin confirm_divider"},null,-1)),lm={class:"confirm_tips"},dm=Object(o.createTextVNode)(" 请确认ä¸è¿°æç°ä¿¡æ¯ï¼"),pm=Tu(()=>Object(o.createElementVNode)("br",null,null,-1)),um=Tu(()=>Object(o.createElementVNode)("div",{class:"divider_thin"},null,-1)),mm=["disable"];const hm=e=>(Object(o.pushScopeId)("data-v-c59f52c2"),e=e(),Object(o.popScopeId)(),e),bm={class:"header"},gm=hm(()=>Object(o.createElementVNode)("div",{class:"title"},"æç°æå",-1)),Om=["src"],jm=hm(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),Cm={class:"with_draw_success"},fm=["src"],vm=hm(()=>Object(o.createElementVNode)("div",{class:"success_tip"},"æç°ç³è¯·æå",-1)),wm=hm(()=>Object(o.createElementVNode)("div",{class:"extra"},[Object(o.createTextVNode)("    æä»¬å°ä¼äºæ¯å¨åï¼å¦éæ³å®èåæ¥é¡ºå»¶ï¼ "),Object(o.createElementVNode)("br"),Object(o.createTextVNode)("ç»ä¸å¤çæç°è¯·æ±ï¼è¯·çææ¨çææºçä¿¡æé "),Object(o.createElementVNode)("br"),Object(o.createTextVNode)(" 妿å
¶ä»é®é¢ï¼ç¹æ¤ "),Object(o.createElementVNode)("a",{class:"help_link",target:"_blank",href:"https://xiaobot.net/feedback/new"},"è系客æ")],-1)),Vm={id:"bottom_fixed"};var km={name:"WithDrawSuccess",props:{visible:{type:Boolean,default:!1},closeDrawer:{type:Function,default:()=>{}}},data:()=>({wallet:null,account:null,loading:!1,submitting:!1,show_account_info_drawer:!1,show_confirm_drawer:!1,real_name:null,id_card_number:null,bank_card_number:null,mobile_number:null})};a("2be1");var ym={name:"Wallet",components:{WithDrawSuccessPageVue:j()(km,[["render",function(e,t,a,r,c,s){const n=b.a;return Object(o.openBlock)(),Object(o.createBlock)(n,{"model-value":a.visible,direction:"btt","with-header":!1,"custom-class":"custom_drawer",size:"auto"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",bm,[gm,Object(o.createElementVNode)("img",{src:"/img/icon_close.svg",class:"close",onClick:t[0]||(t[0]=(...e)=>a.closeDrawer&&a.closeDrawer(...e))},null,8,Om)]),jm,Object(o.createElementVNode)("div",Cm,[Object(o.createElementVNode)("img",{class:"success_img",src:"/img/icon_check.svg"},null,8,fm),vm,wm,Object(o.createElementVNode)("div",Vm,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large back",onClick:t[1]||(t[1]=(...e)=>a.closeDrawer&&a.closeDrawer(...e))}
1,"好ç")])])]),_:1},8,["model-value"])}],["__scopeId","data-v-c59f52c2"]]),AppModalVue:C},data:()=>({wallet:null,account:null,loading:!1,submitting:!1,show_account_info_drawer:!1,show_confirm_drawer:!1,real_name:null,id_card_number:null,bank_card_number:null,mobile_number:null,processing:null,show_success_drawer:!1,ruleForm:{real_name:null,id_card_number:null,bank_card_number:null,mobile_number:null},rules:{real_name:[{required:!0,message:"请è¾å
¥å§å",trigger:"blur"},{min:2,message:"æå°2个å符",trigger:"blur"},{pattern:/^[\u4e00-\u9fa5·]+$/,message:" 请è¾å
¥çå®å§åï¼å¿ä½¿ç¨æµç§°æè±å",trigger:"blur"}],id_card_number:[{required:!0,message:"请è¾å
¥èº«ä»½è¯å·",trigger:"blur"},{pattern:/^[0-9a-zA-Z]+$/,message:"身份账å·è¾å
¥é误ï¼è¯·éæ°è¾å
¥",trigger:"blur"},{min:18,max:18,message:"é¿åº¦ä¸º 18 个å符",trigger:"blur"}],bank_card_number:[{required:!0,message:"请è¾å
¥é¶è¡å¡å·",trigger:"blur"},{pattern:/^[0-9a-zA-Z]+$/,message:"åªè½è¾å
¥æ°åï¼è¯·éæ°è¾å
¥",trigger:"blur"},{min:16,max:19,message:"é¿åº¦å¨ 16 å° 19 个æ°å",trigger:"blur"}],mobile_number:[{required:!0,message:"请è¾å
¥ææºå·",trigger:"blur"},{min:11,max:11,message:"ææºå·ç è¾å
¥é误ï¼è¯·éæ°è¾å
¥",trigger:"blur"}]},yzh_sign_url:"",checkYzh:!1}),computed:{withdrawable_balance(){const e=this.wallet.balance-this.wallet.freeze_balance;return e>0?(e/100).toFixed(2):0},appConfig(){return this.$store.getters["app/config"]}},methods:{closeDrawerCallback(){this.$store.dispatch("wallet/setWallet",{...this.ruleForm,checkYzh:this.checkYzh})},get_yzh_sign_url(){this.$api.call("GET","/withdraw_account/yzh_sign_url",{},e=>{200==e.data.code?this.yzh_sign_url=e.data.data.url:Object(ke.a)({message:e.data.message,type:"error"})})},submitForm(){this.$refs.ruleFormRef.validate(e=>{if(!e)return!1;this.checkYzh?this.submitAccount():Object(ke.a)({message:"请åæç¸å
³åè®®åç»§ç»",type:"error"})})},redirectToDetail(){this.$router.push({name:"WalletHistory"})},withdrawals(){this.wallet.balance-this.wallet.freeze_balance<1e3?Object(ke.a)({message:"满 10 å
æè½æç°",type:"info"}):this.processing?Object(ke.a)({dangerouslyUseHTMLString:!0,message:'æ£å¨æç°ä¸ï¼è¯·èå¿çå¾
, <a href="http://help.xiaobot.net/withdraw.html" style="color: var(--link-color);text-decoration: none;" target="_blank">ç¹æ¤æ¥çæç°è¯´æ</a> ',type:"info",duration:"1000"}):this.account?this.show_confirm_drawer=!0:(this.get_yzh_sign_url(),this.show_account_info_drawer=!0)},loadWallet(){this.loading=!0,this.$api.call("GET","/wallet/balance",{},e=>{200==e.data.code?(this.wallet=e.data.data,this.wallet.freeze_balance||(this.wallet.freeze_balance=0)):Object(ke.a)({message:e.data.message,type:"error"}),this.loading=!1})},loadAccount(){this.$api.call("GET","/withdraw_account",{},e=>{if(200==e.data.code){if(e.data.data&&e.data.data.id){this.account=e.data.data,this.mobile_number=this.account.mobile_number,this.real_name=this.account.real_name,this.bank_card_number=this.account.bank_card_number,this.id_card_number=this.account.id_card_number,this.ruleForm={real_name:this.real_name,id_card_number:this.id_card_number,bank_card_number:this.bank_card_number,mobile_number:this.mobile_number};const{real_name:t,id_card_number:a,bank_card_number:o,mobile_number:r}=this.$store.state.wallet.data;t&&(this.ruleForm.real_name=t),a&&(this.ruleForm.id_card_number=a),o&&(this.ruleForm.bank_card_number=o),r&&(this.ruleForm.mobile_number=r)}}else Object(ke.a)({message:e.data.message,type:"error"})})},submitAccount(){const{real_name:e,id_card_number:t,bank_card_number:a,mobile_number:o}=this.ruleForm;this.submitting=!0,this.$api.call("POST","/withdraw_account",{real_name:e,mobile_number:o,bank_card_number:a,id_card_number:t},e=>{200==e.data.code?(e.data.data&&e.data.data.id&&(this.account=e.data.data,this.mobile_number=this.account.mobile_number,this.real_name=this.account.real_name,this.bank_card_number=this.account.bank_card_number,this.id_card_number=this.account.id_card_number,this.ruleForm={real_name:this.real_name,id_card_number:this.id_card_number,bank_card_number:this.bank_card_number,mobile_number:this.mobile_number},Object(ke.a)({message:"æç°ä¿¡æ¯å·²æ´æ°",type:"info"})),setTimeout(()=>{this.show_account_info_drawer=!1},500)):Object(ke.a)({message:e.data.message,type:"error"}),setTimeout(()=>{this.submitting=!1},500)})},editAccount(){this.get_yzh_sign_url(),this.show_confirm_drawer=!1,this.show_account_info_drawer=!0,this.checkYzh=!1},closeDrawer(){this.show_confirm_drawer=!1,this.show_account_info_drawer=!1,this.show_success_drawer=!1},doWithdrawals(){this.submitting=!0,this.$api.call("PUT","/withdraw_order",{account_id:this.account.id,value:this.wallet.balance-this.wallet.freeze_balance},e=>{200==e.data.code?(this.show_confirm_drawer=!1,this.processing=e.data.data,this.show_success_drawer=!0):Object(ke.a)({message:e.data.message,type:"error"}),this.submitting=!1})},loadProcessing(){this.$api.call("GET","/withdraw_order/processing",{},e=>{200==e.data.code?e.data.data&&e.data.data.length>0&&(this.processing=e.data.data[0]):Object(ke.a)({message:e.data.message,type:"error"}),this.loading=!1})},freezeClick(){Object(ke.a)({message:"ç¨æ·æ¯ä» 48 å°æ¶ä¸æ 鿬¾è¡ä¸ºåï¼å¯¹åºé颿¹å¯è§£å»æç°ã",type:"info"})},isChinese:e=>/^[\u4e00-\u9fa5]+$/.test(e)},created(){document.title="æ¶å
¥",this.loadWallet(),this.loadAccount(),this.loadProcessing()}};a("9d74"),a("2c6e");var _m=j()(ym,[["render",function(e,t,a,r,c,s){const n=el.a,i=Ne.a,l=ct.a,d=Su.b,p=Su.a,u=Object(o.resolveComponent)("AppModalVue"),m=Object(o.resolveComponent)("WithDrawSuccessPageVue"),h=Wo.b;return Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[Object(o.withDirectives)(Object(o.createElementVNode)("div",Au,[Object(o.createElementVNode)("div",Pu,[c.wallet?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Du,Object(o.toDisplayString)(s.withdrawable_balance),1)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",null,[Object(o.createVNode)(n,{placement:"bottom",width:143,content:"å·²æ£é¤æå¡è´¹ãæ¨èè´¹\nåå®é
坿ç°çä½é¢","show-arrow":"false","popper-class":"wallet-popover"},{reference:Object(o.withCtx)(()=>[Iu]),_:1})])]),$u,c.wallet?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Zu,[Object(o.createVNode)(n,{ref:"popover",placement:"bottom",title:"",width:200,trigger:"click",content:"ç¨æ·æ¯ä» 48 å°æ¶ä¸æ 鿬¾è¡ä¸ºåï¼å¯¹åºé颿¹å¯è§£å»æç°ã"},{reference:Object(o.withCtx)(()=>[Object(o.createVNode)(i,{class:"name"},{default:Object(o.withCtx)(()=>[Ru,Object(o.createElementVNode)("img",{src:"/img/icon_help.svg",class:"help"},null,8,Uu)]),_:1})]),_:1},512),Object(o.createElementVNode)("div",Fu,Object(o.toDisplayString)((c.wallet.freeze_balance/100).toFixed(2)),1)])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",{class:"detail",onClick:t[0]||(t[0]=(...e)=>s.redirectToDetail&&s.redirectToDetail(...e))},[zu,Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg"},null,8,qu)]),Object(o.createElementVNode)("div",Wu,[Gu,Object(o.createElementVNode)("span",null,[Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/withdraw.html",style:Object(o.normalizeStyle)({color:"var(--link-color)"}),target:"_blank"},"è´¹ç¨è¯¦ç»è¯´æ... ",4)])])],512),[[h,c.loading]]),Object(o.createElementVNode)("div",Yu,[Object(o.createElementVNode)("a",{class:Object(o.normalizeClass)(["btn btn-primary btn-large",{disable_submit:null!=c.processing}]),onClick:t[1]||(t[1]=(...e)=>s.withdrawals&&s.withdrawals(...e))},Object(o.toDisplayString)(c.processing?(c.processing.value/100).toFixed(2)+" å
æç°ä¸..":"æç°"),3)]),Object(o.createVNode)(u,{visible:c.show_account_info_drawer,title:"å®å个人信æ¯",closeDrawer:s.closeDrawer,onClose:s.closeDrawerCallback,width:"480px"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Qu,[Object(o.createVNode)(p,{ref:"ruleFormRef",model:c.ruleForm,rules:c.rules,"label-width":"100px",class:"embody"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(d,{label:"å§å",prop:"real_name"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{modelValue:c.ruleForm.real_name,"onUpdate:modelValue":t[2]||(t[2]=e=>c.ruleForm.real_name=e),disabled:null!=c.account||c.submitting,placeholder:"请è¾å
¥"},null,8,["modelValue","disabled"])]),_:1}),Object(o.createVNode)(d,{label:"身份è¯å·",prop:"id_card_number"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{modelValue:c.ruleForm.id_card_number,"onUpdate:modelValue":t[3]||(t[3]=e=>c.ruleForm.id_card_number=e),disabled:null!=c.account||c.submitting,placeholder:"请è¾å
¥"},null,8,["modelValue","disabled"])]),_:1}),Object(o.createVNode)(d,{label:"é¶è¡å¡",prop:"bank_card_number"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{modelValue:c.ruleForm.bank_card_number,"onUpdate:modelValue":t[4]||(t[4]=e=>c.ruleForm.bank_card_number=e),disabled:c.submitting,placeholder:"请è¾å
¥"},null,8,["modelValue","disabled"])]),_:1}),Object(o.createVNode)(d,{label:"ææºå·",prop:"mobile_number"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{modelValue:c.ruleForm.mobile_number,"onUpdate:modelValue":t[5]||(t[5]=e=>c.ruleForm.mobile_number=e),disabled:c.submitting,placeholder:"请è¾å
¥"},null,8,["modelValue","disabled"])]),_:1})]),_:1},8,["model","rules"]),Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["tips yzh",{disabled:c.submitting}])},[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",onClick:t[6]||(t[6]=e=>c.checkYzh=!c.checkYzh),xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12C22.5 14.7848 21.3938 17.4555 19.4246 19.4246C17.4555 21.3938 14.7848 22.5 12 22.5C9.21523 22.5 6.54451 21.3938 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5ZM10.692 14.0715L8.3595 11.7375C8.27588 11.6539 8.17661 11.5876 8.06736 11.5423C7.9581 11.497 7.84101 11.4737 7.72275 11.4737C7.60449 11.4737 7.4874 11.497 7.37814 11.5423C7.26889 11.5876 7.16962 11.6539 7.086 11.7375C6.91712 11.9064 6.82225 12.1354 6.82225 12.3743C6.82225 12.6131 6.91712 12.8421 7.086 13.011L10.056 15.981C10.1394 16.065 10.2386 16.1317 10.3479 16.1773C10.4571 16.2228 10.5744 16.2462 10.6927 16.2462C10.8111 16.2462 10.9284 16.2228 11.0376 16.1773C11.1469 16.1317 11.2461 16.065 11.3295 15.981L17.4795 9.8295C17.5642 9.74623 17.6316 9.647 17.6778 9.53755C17.724 9.428
109 17.7481 9.31057 17.7487 9.19177C17.7492 9.07297 17.7262 8.95523 17.6811 8.84535C17.6359 8.73547 17.5694 8.63562 17.4854 8.55156C17.4015 8.46751 17.3017 8.4009 17.1919 8.3556C17.0821 8.31029 16.9644 8.28718 16.8455 8.28759C16.7267 8.288 16.6092 8.31193 16.4997 8.358C16.3902 8.40407 16.2909 8.47136 16.2075 8.556L10.692 14.0715Z",fill:c.checkYzh?"#B14B43":"#ABABAE"},null,8,Ku)])),Ju,Object(o.createElementVNode)("a",{class:"help_link",target:"_blank",href:c.yzh_sign_url},"ãçµæ´»å°±ä¸åä½ä¼ä¼´åè®®ã",8,Xu)],2),em,Object(o.createVNode)(i,{class:"submitBtn block",loading:c.submitting,onClick:t[7]||(t[7]=e=>s.submitForm())},{default:Object(o.withCtx)(()=>[tm]),_:1},8,["loading"])])]),_:1},8,["visible","closeDrawer","onClose"]),Object(o.createVNode)(u,{visible:c.show_confirm_drawer,title:"æç°ä¿¡æ¯ç¡®è®¤",closeDrawer:s.closeDrawer,width:"480px"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",am,[Object(o.createElementVNode)("div",om," æ¨åèµ·çæç°éé¢ï¼"+Object(o.toDisplayString)(((c.wallet.balance-c.wallet.freeze_balance)/100).toFixed(2))+" å
",1),Object(o.createElementVNode)("div",rm,"å§åï¼"+Object(o.toDisplayString)(c.real_name),1),Object(o.createElementVNode)("div",cm,"身份è¯å·ï¼"+Object(o.toDisplayString)(c.id_card_number),1),Object(o.createElementVNode)("div",sm,"é¶è¡å¡ï¼"+Object(o.toDisplayString)(c.bank_card_number),1),Object(o.createElementVNode)("div",nm,"ææºå·ï¼"+Object(o.toDisplayString)(c.mobile_number),1),im,Object(o.createElementVNode)("div",lm,[dm,Object(o.createElementVNode)("a",{class:"help_link",onClick:t[8]||(t[8]=(...e)=>s.editAccount&&s.editAccount(...e))},"å¦éä¿®æ¹è¯·ç¹æ¤"),pm,Object(o.createElementVNode)("span",null,[Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/withdraw.html",style:Object(o.normalizeStyle)({color:"var(--link-color)",textDecoration:"none"}),target:"_blank"}," å
³äºç¨å¡ç³æ¥è¯´æ ",4)])]),um,Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large block",onClickOnce:t[9]||(t[9]=(...e)=>s.doWithdrawals&&s.doWithdrawals(...e)),disable:c.submitting},"确认æç°",40,mm)])]),_:1},8,["visible","closeDrawer"]),Object(o.createVNode)(m,{visible:c.show_success_drawer,closeDrawer:s.closeDrawer},null,8,["visible","closeDrawer"])])}],["__scopeId","data-v-7012a949"]]);const Em={"element-loading-background":"transparent"},Nm={class:"history"},Bm={class:"info"},Hm={class:"status"},xm={class:"comment"},Mm={key:0,class:"source-label"},Lm={class:"created_at"},Sm={class:"balance"},Tm={key:0},Am={ref:"sentinelRef",class:"infinite-sentinel"};var Pm=a("b743");const Dm=e=>(Object(o.pushScopeId)("data-v-3bdb0d72"),e=e(),Object(o.popScopeId)(),e),Im={class:"body"},$m={class:"content p-10"},Zm={class:"info-item"},Rm=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-amount"},"äºè´¦æ·æå¡è´¹ï¼å
ï¼ï¼",-1)),Um={class:"value"},Fm={class:"info-item"},zm=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-fee"},"ç¨æ·å®æ¶éé¢ï¼å
ï¼ï¼",-1)),qm={class:"value"},Wm={class:"info-item"},Gm=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-status"},"åºçº³ä¸ªç¨ï¼å
ï¼ï¼",-1)),Ym={class:"value"},Qm={class:"info-item"},Km=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-status"},"åºçº³å¢å¼ç¨ï¼å
ï¼ï¼",-1)),Jm={class:"value"},Xm={class:"info-item"},eh=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-status"},"åºçº³éå ç¨è´¹ï¼å
ï¼ï¼",-1)),th={class:"value"},ah={class:"info-item"},oh=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-status"},"å®çº³ä¸ªç¨ï¼å
ï¼ï¼",-1)),rh={class:"value"},ch={class:"info-item"},sh=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-status"},"å®çº³å¢å¼ç¨ï¼å
ï¼ï¼",-1)),nh={class:"value"},ih={class:"info-item"},lh=Dm(()=>Object(o.createElementVNode)("label",{for:"withdrawal-status"},"å®çº³éå ç¨è´¹ï¼å
ï¼ï¼",-1)),dh={class:"value"},ph=Dm(()=>Object(o.createElementVNode)("div",{class:"p-10 desc"},"ä¸è¿°ä¿¡æ¯ç±äºè´¦æ·æä¾ï¼å¦æçé®ï¼å¯è´çµ 400-6565-739",-1));var uh={props:{withdrawOrderTaxDetail:{type:Object,default:null},visible:{type:Boolean,default:!1},closeDrawer:{type:Function,default:null}},setup(e){const t=e,a=()=>{t.closeDrawer&&t.closeDrawer()};return(t,r)=>e.visible?(Object(o.openBlock)(),Object(o.createBlock)(C,{key:0,title:"æç°è¯¦æ
",closeDrawer:a,visible:e.visible},{default:Object(o.withCtx)(()=>{var t,r,c,s,n,i,l,d;return[Object(o.createElementVNode)("div",Im,[Object(o.createElementVNode)("div",$m,[Object(o.createElementVNode)("div",Zm,[Rm,Object(o.createElementVNode)("div",Um,Object(o.toDisplayString)((null===(t=e.withdrawOrderTaxDetail)||void 0===t?void 0:t.service_fee)||0),1)]),Object(o.createElementVNode)("div",Fm,[zm,Object(o.createElementVNode)("div",qm,Object(o.toDisplayString)((null===(r=e.withdrawOrderTaxDetail)||void 0===r?void 0:r.user_real_amount)||0),1)]),Object(o.createElementVNode)("div",Wm,[Gm,Object(o.createElementVNode)("div",Ym,Object(o.toDisplayString)((null===(c=e.withdrawOrderTaxDetail)||void 0===c?void 0:c.personal_tax)||0),1)]),Object(o.createElementVNode)("div",Qm,[Km,Object(o.createElementVNode)("div",Jm,Object(o.toDisplayString)((null===(s=e.withdrawOrderTaxDetail)||void 0===s?void 0:s.value_added_tax)||0),1)]),Object(o.createElementVNode)("div",Xm,[eh,Object(o.createElementVNode)("div",th,Object(o.toDisplayString)((null===(n=e.withdrawOrderTaxDetail)||void 0===n?void 0:n.additional_tax)||0),1)]),Object(o.createElementVNode)("div",ah,[oh,Object(o.createElementVNode)("div",rh,Object(o.toDisplayString)((null===(i=e.withdrawOrderTaxDetail)||void 0===i?void 0:i.received_personal_tax)||0),1)]),Object(o.createElementVNode)("div",ch,[sh,Object(o.createElementVNode)("div",nh,Object(o.toDisplayString)((null===(l=e.withdrawOrderTaxDetail)||void 0===l?void 0:l.received_value_added_tax)||0),1)]),Object(o.createElementVNode)("div",ih,[lh,Object(o.createElementVNode)("div",dh,Object(o.toDisplayString)((null===(d=e.withdrawOrderTaxDetail)||void 0===d?void 0:d.received_additional_tax)||0),1)])]),ph,Object(o.createElementVNode)("div",{class:"p-10"},[Object(o.createElementVNode)("div",{class:"button",onClick:a},"确认")])])]}),_:1},8,["visible"])):Object(o.createCommentVNode)("",!0)}};a("8ce2");var mh=j()(uh,[["__scopeId","data-v-3bdb0d72"]]);const hh=a("5292");var bh={name:"WalletHistory",components:{QuestionFilled:Pm.a,WithdrawalDetail
1:mh},data:()=>({loading:!1,isFinished:!1,histories:[],showWithdrawalDetail:!1,withdrawOrderTaxDetail:null,scrollObserver:null}),computed:{dayFormat:()=>function(e){return hh(e).format("YYYY/MM/DD HH:mm")}},methods:{loadHistories(){this.loading=!0,this.isFinished=!1,this.$api.call("GET","/wallet/history",{limit:50,offset:0},e=>{200==e.data.code?(this.histories=e.data.data,e.data.data.length<50&&(this.isFinished=!0)):Object(ke.a)({message:e.data.message,type:"error"}),this.loading=!1})},loadMore(){this.loading||null!=this.histories&&0!=this.histories.length&&(this.loading=!0,this.$api.call("GET","/wallet/history",{limit:50,offset:this.histories.length},e=>{200==e.data.code?(this.histories=[...this.histories,...e.data.data],e.data.data.length<50&&(this.isFinished=!0)):(Object(ke.a)({message:e.data.message,type:"error"}),this.isFinished=!0),this.loading=!1}))},closeDrawer(){this.showWithdrawalDetail=!1,this.withdrawOrderTaxDetail=null},handleDrawInfo(e){this.withdrawOrderTaxDetail=e,this.showWithdrawalDetail=!0},setupInfiniteScroll(){const e=this.$refs.sentinelRef;e&&!this.scrollObserver&&(this.scrollObserver=new IntersectionObserver(e=>{if(this.isFinished||this.loading)return;const[t]=e;t&&t.isIntersecting&&this.loadMore()},{root:null,rootMargin:"200px 0px",threshold:0}),this.scrollObserver.observe(e))}},created(){document.title="æç»",this.loadHistories()},mounted(){this.$nextTick(()=>this.setupInfiniteScroll())},beforeUnmount(){this.scrollObserver&&this.$refs.sentinelRef&&(this.scrollObserver.disconnect(),this.scrollObserver=null)},watch:{isFinished(e){e&&this.scrollObserver&&this.$refs.sentinelRef&&(this.scrollObserver.disconnect(),this.scrollObserver=null)}}};a("8829");var gh=j()(bh,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("QuestionFilled"),i=A.a,l=Object(o.resolveComponent)("WithdrawalDetail"),d=Wo.b;return Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",Em,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.histories,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e},[Object(o.createElementVNode)("div",Nm,[Object(o.createElementVNode)("div",Bm,[Object(o.createElementVNode)("div",Hm,[Object(o.createElementVNode)("div",xm,[e.source_label?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Mm,Object(o.toDisplayString)(e.source_label),1)):Object(o.createCommentVNode)("",!0),Object(o.createTextVNode)(Object(o.toDisplayString)(e.comment),1),e.withdraw_order_tax_detail?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:1,onClick:t=>s.handleDrawInfo(e.withdraw_order_tax_detail)},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n)]),_:2},1032,["onClick"])):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Lm,Object(o.toDisplayString)(s.dayFormat(e.created_at)),1)])]),Object(o.createElementVNode)("div",Sm,[e.balance_change>0?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Tm,"+")):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)((e.balance_change/100).toFixed(2)),1)])])]))),128)),Object(o.withDirectives)(Object(o.createElementVNode)("div",Am,null,512),[[o.vShow,!c.isFinished&&c.histories.length>0]]),Object(o.createVNode)(l,{visible:c.showWithdrawalDetail,withdrawOrderTaxDetail:c.withdrawOrderTaxDetail,closeDrawer:s.closeDrawer},null,8,["visible","withdrawOrderTaxDetail","closeDrawer"])],512)),[[d,c.loading]])}],["__scopeId","data-v-578c4c09"]]);const Oh=e=>(Object(o.pushScopeId)("data-v-4aa0f7a3"),e=e(),Object(o.popScopeId)(),e),jh={class:"settings"},Ch=Oh(()=>Object(o.createElementVNode)("span",{class:"name"},"LOGO",-1)),fh={class:"content"},vh=["src"],wh=["src"],Vh=Oh(()=>Object(o.createElementVNode)("span",{class:"name"},"åç§°",-1)),kh={class:"content"},yh={class:"text"},_h=["src"],Eh=Oh(()=>Object(o.createElementVNode)("span",{class:"name"},"ç®ä»",-1)),Nh={class:"content"},Bh=["src"],Hh=Oh(()=>Object(o.createElementVNode)("span",{class:"name"},"å®ä»·",-1)),xh={class:"content"},Mh=["src"],Lh={class:"setting"},Sh=Oh(()=>Object(o.createElementVNode)("span",{class:"name"},"çè¨",-1)),Th={class:"content"},Ah={class:"el-dropdown-link"},Ph=Object(o.createTextVNode)("å¼å¯"),Dh=Object(o.createTextVNode)("å
³é"),Ih=Oh(()=>Object(o.createElementVNode)("div",{class:"help"}," æ´å¤ç®¡çåè½ï¼è¯·éè¿ xiaobot.net 访é®åä½è
ä¸å¿ ",-1)),$h=Oh(()=>Object(o.createElementVNode)("div",{class:"footer"},null,-1)),Zh={class:"desc"},Rh={class:"content"},Uh=["src"],Fh=Oh(()=>Object(o.createElementVNode)("span",{class:"avatar_desc"},"ç¼è¾",-1)),zh={key:1},qh={key:2},Wh={key:3,class:"divider_thin"};var Gh=a("a143");const Yh=a("4f14");let Qh=a("63bb");
1var Kh={name:"PaperSetting",components:{ArrowDown:Gh.a,AppModalVue:C},data:()=>({paper:null,show_drawer:!1,show_avatar_drawer:!1,show_name_drawer:!1,show_desc_drawer:!1,drawer_title:"",paper_avatar_url:null,paper_name:null,paper_intro:null}),methods:{showAvatarDrawer(){this.closeDrawer(),this.drawer_title="ç¼è¾ä¸æ LOGO",this.show_drawer=!0,this.show_avatar_drawer=!0},showNameDrawer(){this.closeDrawer(),this.drawer_title="ç¼è¾ä¸æ åç§°",this.show_drawer=!0,this.show_name_drawer=!0},showDescDrawer(){this.closeDrawer(),this.drawer_title="ç¼è¾ä¸æ ç®ä»",this.show_drawer=!0,this.show_desc_drawer=!0},closeDrawer(){this.show_drawer=!1,this.show_avatar_drawer=!1,this.show_name_drawer=!1,this.show_desc_drawer=!1,this.paper_avatar_url=this.paper.avatar_url,this.paper_name=this.paper.name,this.paper_intro=Object(ye.l)(this.paper.intro)},loadPaper(){this.$api.call("GET","/paper/"+this.$route.params.slug,{},e=>{200==e.data.code?(this.paper=e.data.data,this.paper_avatar_url=this.paper.avatar_url,this.paper_name=this.paper.name,this.paper_intro=Object(ye.l)(this.paper.intro)):Object(ke.a)({message:e.data.message,type:"error"})})},handleBeforeFileUpload(e){if(!e.type.includes("image"))return Object(ke.a)({message:"åªè½ä¸ä¼ å¾ç",type:"error"}),!1;const t=this;return new Promise(a=>{const o=new FileReader,r=new Image;r.onload=()=>{let o=null;if(r.src.startsWith("data:image/gif"))Object(ke.a)({message:"䏿¯ægifå¾ç",type:"error"});else{{const a=document.createElement("canvas"),c=a.getContext("2d");a.width=200,a.height=200;let s=0,n=0,i=0,l=0;r.width>r.height?(s=(r.width-r.height)/2,n=0,i=r.height,l=r.height):(s=0,n=(r.height-r.width)/2,i=r.width,l=r.width),c.clearRect(0,0,200,200),c.drawImage(r,s,n,i,l,0,0,200,200);const d=a.toDataURL(e.type);o=t.dataURItoBlob(d,e.type)}a(o)}},o.onload=e=>{r.src=e.target.result},o.readAsDataURL(e)})},handleFileUpload(e){e.onProgress({percent:0}),new Promise(e=>{var t=JSON.parse(localStorage.getItem("oss_sign")),a=Date.parse(new Date)/1e3;t&&t.expire-10>a?e(t):this.$api.call("GET","/file/oss_sign",{},t=>{t.data&&-1===t.data.code?Object(ke.a)({message:t.data.message,type:"error"}):t.data&&200===t.data.code&&(localStorage.setItem("oss_sign",JSON.stringify(t.data.data)),e(t.data.data))})}).then(t=>{e.onProgress({percent:50});var a=t,o=new FormData;o.append("name",e.file.name);let r=e.file.type.split("/")[1],c=e.file.name+e.file.size+Math.random(),s=a.dir+"/"+Qh(c)+"."+r;o.append("key",s),o.append("policy",a.policy),o.append("OSSAccessKeyId",a.accessid),o.append("success_action_status",201),o.append("signature",a.signature),o.append("file",e.file,e.file.name),Yh.post(a.host,o,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{if(e.onProgress({percent:80}),201==t.status){let t=this;this.$api.call("PUT","/file/",{name:e.file.name,size:e.file.size,path:s},a=>{a.data&&-1===a.data.code?Object(ke.a)({message:a.data.message,type:"error"}):a.data&&200===a.data.code&&(e.id=a.data.data.id,t.paper_avatar_url=a.data.data.url,e.onSuccess(a.data))})}}).catch(e=>{console.log(e)})})},handleFileUploadSuccess(){},dataURItoBlob(e,t){for(var a=atob(e.split(",")[1]),o=[],r=0;r<a.length;r++)o.push(a.charCodeAt(r));return new Blob([new Uint8Array(o)],{type:t})},submitPaper(){if(0==this.paper_name.length)return void Object(ke.a)({message:"䏿 åç§°ä¸è½ä¸ºç©º",type:"success"});null==this.paper_intro&&(this.paper_intro="");let e=this.getUrlRelativePath(this.paper_avatar_url);this.$api.call("PUT","/paper/"+this.paper.slug,{name:this.paper_name,intro:this.paper_intro,avatar_path:e},e=>{200==e.data.code?(Object(ke.a)({message:"ä¿®æ¹æå",type:"success"}),this.paper=e.data.data,this.paper_avatar_url=this.paper.avatar_url,this.paper_name=this.paper.name,this.paper_intro=Object(ye.l)(this.paper.intro),this.$store.dispatch("papers/setCurrent",{...this.paper,writable:!0}),this.closeDrawer()):Object(ke.a)({message:e.data.message,type:"error"})})},getUrlRelativePath(e){var t=e.split("//"),a=t[1].indexOf("/");return t[1].substring(a+1)},showTagList(){this.$router.push({name:"TagManagement",params:{slug:this.paper.slug}})}
1,modifyPrice(){this.$router.push({name:"PriceSetting",params:{slug:this.paper.slug}})},openHelp(){window.open("https://help.xiaobot.net/feature.html")},composeValue:(e,t)=>({target:t,command:e}),handleCommand(e){"open"===e.command?this.editCommentable(1):"close"===e.command&&this.editCommentable(0)},editCommentable(e){this.$api.call("PUT","/paper/"+this.paper.slug,{commentable:e},e=>{200==e.data.code?(Object(ke.a)({message:"ä¿®æ¹æå",type:"success"}),this.paper=e.data.data):Object(ke.a)({message:e.data.message,type:"error"})})}},created(){document.title="䏿 管ç",this.paper=this.$store.state.papers.current,this.paper&&this.paper.slug===this.$route.params.slug&&"creator"!=this.$route.query.f?(this.paper_avatar_url=this.paper.avatar_url,this.paper_name=this.paper.name,this.paper_intro=Object(ye.l)(this.paper.intro)):this.loadPaper()}};a("ab0a");var Jh=j()(Kh,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("arrow-down"),i=A.a,l=bt.b,d=bt.c,p=bt.a,u=Tr.a,m=ct.a,h=Object(o.resolveComponent)("AppModalVue");return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createElementVNode)("div",jh,[Object(o.createElementVNode)("div",{class:"setting",onClick:t[0]||(t[0]=(...e)=>s.showAvatarDrawer&&s.showAvatarDrawer(...e))},[Ch,Object(o.createElementVNode)("div",fh,[Object(o.createElementVNode)("img",{src:c.paper_avatar_url,class:"paper_icon"},null,8,vh),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,wh)])]),Object(o.createElementVNode)("div",{class:"setting",onClick:t[1]||(t[1]=(...e)=>s.showNameDrawer&&s.showNameDrawer(...e))},[Vh,Object(o.createElementVNode)("div",kh,[Object(o.createElementVNode)("span",yh,Object(o.toDisplayString)(c.paper_name),1),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,_h)])]),Object(o.createElementVNode)("div",{class:"setting",onClick:t[2]||(t[2]=(...e)=>s.showDescDrawer&&s.showDescDrawer(...e))},[Eh,Object(o.createElementVNode)("div",Nh,[Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,Bh)])]),Object(o.createElementVNode)("div",{class:"setting",onClick:t[3]||(t[3]=(...e)=>s.modifyPrice&&s.modifyPrice(...e))},[Hh,Object(o.createElementVNode)("div",xh,[Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,Mh)])]),Object(o.createElementVNode)("div",Lh,[Sh,Object(o.createElementVNode)("div",Th,[Object(o.createVNode)(p,{trigger:"click",onCommand:s.handleCommand},{dropdown:Object(o.withCtx)(()=>[Object(o.createVNode)(d,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{command:s.composeValue("open")},{default:Object(o.withCtx)(()=>[Ph]),_:1},8,["command"]),Object(o.createVNode)(l,{command:s.composeValue("close")},{default:Object(o.withCtx)(()=>[Dh]),_:1},8,["command"])]),_:1})]),default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("span",Ah,[Object(o.createTextVNode)(Object(o.toDisplayString)(c.paper&&c.paper.commentable?"å¼å¯":"å
³é")+" ",1),Object(o.createVNode)(i,{class:"el-icon--right"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n)]),_:1})])]),_:1},8,["onCommand"])])]),Ih,$h]),Object(o.createVNode)(h,{visible:c.show_drawer,title:c.drawer_title,closeDrawer:s.closeDrawer},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Zh,[c.show_avatar_drawer?(Object(o.openBlock)(),Object(o.createBlock)(u,{key:0,class:"content",ref:"upload",action:"/api/file/upload","show-file-list":!1,"before-upload":s.handleBeforeFileUpload,"http-request":s.handleFileUpload,"on-success":s.handleFileUploadSuccess,multiple:!1},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Rh,[Object(o.createElementVNode)("img",{src:c.paper_avatar_url,class:"paper_icon_big"},null,8,Uh),Fh])]),_:1},8,["before-upload","http-request","on-success"])):Object(o.createCommentVNode)("",!0),c.show_name_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",zh,[Object(o.createVNode)(m,{autofocus:!1,maxlength:20,placeholder:"请è¾å
¥å
容",modelValue:c.paper_name,"onUpdate:modelValue":t[4]||(t[4]=e=>c.paper_name=e)},null,8,["modelValue"])])):Object(o.createCommentVNode)("",!0),c.show_desc_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",qh,[Object(o.createVNode)(m,{type:"textarea",autofocus:!1,rows:10,placeholder:"请è¾å
¥å
容",modelValue:c.paper_intro,"onUpdate:modelValue":t[5]||(t[5]=e=>c.paper_intro=e)},null,8,["modelValue"])])):Object(o.createCommentVNode)("",!0),c.show_name_drawer||c.show_desc_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Wh)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("a",{class:"btn btn-primary",onClick:t[6]||(t[6]=(...e)=>s.submitPaper&&s.submitPaper(...e))},"确认")])]),_:1}
1,8,["visible","title","closeDrawer"])],64)}],["__scopeId","data-v-4aa0f7a3"]]);const Xh={class:"infos"},eb={class:"name"},tb={class:"count"},ab={class:"actions"},ob=["onClick"],rb=["onClick"],cb=["onClick"],sb=["onClick"],nb=(e=>(Object(o.pushScopeId)("data-v-07da6c9c"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("div",{class:"divider_thin"},null,-1)),ib={key:0,class:"footer"};var lb={props:{variant:{type:String,default:"reader"}},setup(e){const t=e,a=Object(J.c)(),r=Object(o.inject)("$api"),c=Object(o.ref)(!1),s=Object(o.ref)([]),n=Object(o.ref)(""),i=Object(o.ref)(""),l=Object(o.computed)(()=>"creator"===t.variant);function d(){const e=[...s.value];e.sort((e,t)=>t.recommended_index===e.recommended_index?t.count-e.count:t.recommended_index-e.recommended_index),s.value=e}function p(e){return l.value&&n.value===e.name}function u(){n.value="",i.value=""}function m(e){const t=n.value,o=(i.value||"").trim();if(!o||"#"===o)return void Object(ke.a)({message:"请è¾å
¥æææ ç¾å",type:"warning"});if(o===t)return void u();const c=encodeURIComponent(t);r.call("POST","/paper/"+a.params.slug+"/tag/"+c,{name:o},t=>{200==t.data.code?(e.name=o.replace(/^#/,""),d(),u(),Object(ke.a)({message:"已修æ¹",type:"success"})):Object(ke.a)({message:t.data.message||"ä¿®æ¹å¤±è´¥",type:"error"})})}function h(e){if(l.value)return void function(e){n.value=e.name,i.value=e.name}(e);const t=e.name;Ua.a.prompt("è¾å
¥æ°æ ç¾å","éå½å",{confirmButtonText:"ç¡®å®",cancelButtonText:"åæ¶",inputValue:t,inputPlaceholder:"æ ç¾å",beforeClose:(o,c,s)=>{if("confirm"===o){const o=(c.inputValue||"").trim();if(!o||"#"===o)return void Object(ke.a)({message:"请è¾å
¥æææ ç¾å",type:"warning"});if(o===t)return void s();const n=encodeURIComponent(t);r.call("POST","/paper/"+a.params.slug+"/tag/"+n,{name:o},t=>{200==t.data.code?(e.name=o.replace(/^#/,""),d(),Object(ke.a)({message:"已修æ¹",type:"success"})):Object(ke.a)({message:t.data.message||"ä¿®æ¹å¤±è´¥",type:"error"}),s()})}else s()}}).catch(()=>{})}return Object(o.onMounted)(()=>{document.title="æ ç¾",c.value=!0,r.call("GET","/paper/"+a.params.slug+"/tag",{},e=>{c.value=!1,200==e.data.code?(s.value=e.data.data,d()):Object(ke.a)({message:e.data.message,type:"error"})})}),(e,t)=>{const n=ct.a,b=Wo.b;return Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["tagManagement",{"tagManagement--creator":Object(o.unref)(l)}]),"element-loading-background":"transparent"},[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(s.value,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["tag",{"is-editing":p(e)}]),key:e.name},[Object(o.createElementVNode)("div",Xh,[p(e)?(Object(o.openBlock)(),Object(o.createBlock)(n,{key:0,class:"tag-edit-input",modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),maxlength:"30",placeholder:"æ ç¾å",onKeyup:[Object(o.withKeys)(t=>m(e),["enter"]),Object(o.withKeys)(u,["esc"])]},null,8,["modelValue","onKeyup"])):(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Object(o.createElementVNode)("span",eb,"#"+Object(o.toDisplayString)(e.name),1),Object(o.createElementVNode)("span",tb,Object(o.toDisplayString)(e.count),1)],64))]),Object(o.createElementVNode)("div",ab,[p(e)?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[Object(o.createElementVNode)("button",{class:"action action-primary",type:"button",onClick:t=>m(e)},"ä¿å",8,ob),Object(o.createElementVNode)("button",{class:"action",type:"button",onClick:u},"åæ¶")],64)):(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Object(o.createElementVNode)("button",{class:"action",type:"button",onClick:t=>h(e)},"éå½å",8,rb),e.recommended_index>=0?(Object(o.openBlock)(),Object(o.createElementBlock)("button",{key:0,class:"action",type:"button",onClick:t=>function(e){const t=encodeURIComponent(e.name.startsWith("#")?e.name:"#"+e.name);r.call("POST","/paper/"+a.params.slug+"/tag/"+t,{recommended_index:-1},t=>{200==t.data.code?(e.recommended_index=-1,d()):Object(ke.a)({message:t.data.message,type:"error"})})}(e)},"éè",8,cb)):(Object(o.openBlock)(),Object(o.createElementBlock)("button",{key:1,class:"action",type:"button",onClick:t=>function(e){if(s.value.filter(e=>e.recommended_index>0).length>=7)return void Object(ke.a)({message:"æå¤ç½®é¡¶ä¸ä¸ªæ ç¾",type:"info"});const t=encodeURIComponent(e.name.startsWith("#")?e.name:"#"+e.name);r.call("POST","/paper/"+a.params.slug+"/tag/"+t,{recommended_index:0},t=>{200==t.data.code?(e.recommended_index=0,d()):Object(ke.a)({message:t.data.message,type:"error"})})}(e)},"åæ¶éè",8,sb))],64))]),nb],2))),128)),c.value?Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",ib,null,512)),[[b,c.value]]):Object(o.createCommentVNode)("",!0)],2)),[[b,c.value]])}}};a("d390");var db=j()(lb,[["__scopeId","data-v-07da6c9c"]]);const pb=a("5292");var ub={name:"PostPage",components:{PostDetail:Sr,PostEditor:Oc},computed:{subscription_expired_days(){return this.paper.subscription?pb(this.paper.subscription.expired_at).diff(pb(),"days"):-1}},data:()=>({post:null,paper:null,show_post_editor_drawer:!1,tags:[],timer:null}),setup(){const{isInWechatMP:e}=Object(K.a)(),{trackPageView:t}=Hr();return Object(o.onMounted)(()=>{t("post_page_show","paper")}),{isInWechatMP:e}},methods:{loadPost(){this.$api.call("GET","/post/"+this.$route.params.uuid,{},e=>{if(200==e.data.code){const t=e.data.data.likers.reverse();this.post={...e.data.data,likers:t},this.paper={...this.post.paper,isNotAllowBuy:0==this.post.paper.prices.length||this.post.paper.prices.length&&!this.post.paper.prices.filter(e=>e.price>0).length,creator:this.post.creator},this.saveRefer(),this.$refs.detail.post=this.post,this.$refs.detail.paper=this.paper,this.$refs.detail.creator=this.post.creator,this.$store.commit("papers/setPaperInfo",this.paper),this.$store.commit("posts/setCurrentPost",this.post),(this.paper.writable||this.subscription_expired_days>0)&&this.$refs.detail.loadComments(),this.paper.writable&&this.loadTags();let a=window.location.href;const o=this.$store.state.user.user.uuid;if(o){const e=a.includes("?")?"&":"?";a=-1==a.indexOf("refer")?a+e+"refer="+o:a.replace(/refer=[^&]*/,"refer="+o)}this.$refs.detail.highlightCode(),document.title=this.post.title?Object(ye.l)(this.post.title):"详æ
",Ga({title:this.post.title?this.post.title:"",desc:this.post.content,img:this.paper.avatar_url,path:a})}else Object(ke.a)({message:e.data.message,type:"error"})})},editPost(e){this.show_post_editor_drawer=!0,this.$nextTick(()=>{this.$refs.editor.post_uuid=e.uuid,this.$refs.editor.content=Object(ye.l)(e.content),this.$refs.editor.title=e.title?Object(ye.l)(e.title):"",this.$refs.editor.fileList=e.files&&e.files.length?e.files:[],this.$refs.editor.tags=e.tag_names,this.$refs.editor.origin_tags=this.tags,this.$refs.editor.paper_slug=this.paper.slug,this.$refs.editor.refreshFilesAndTags(),this.$refs.editor.showCraftMessageBox()})},postEditClicked(e){Object(ye.k)(()=>{const t=Object(ye.c)()+"/creator/"+this.paper.slug+"/edit/"+e.uuid;return window.open(t)},()=>{this.editPost(e)})},postEdited(e){this.show_post_editor_drawer=!1,this.$refs.detail.post={...this.$refs.detail.post,...e},this.$store.commit("posts/setCurrentPost",this.$refs.detail.post)},loadTags(){this.$api.call("GET","/paper/"+this.paper.slug+"/tag",{},e=>{if(200==e.data.code){let t=e.data.data;t.sort((function(e,t){return t.count-e.count})),this.tags=t}else Object(ke.a)({message:e.data.message,type:"error"})})},handleEditorDrawerClose(){this.show_post_editor_drawer=!1,this.$refs.editor.reset()},postTagClick(e){this.$router.push({name:"Paper",params:{slug:this.paper.slug},query:{tag:e}})},savePosY(){this.timer||(this.timer=setTimeout(()=>{const e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;this.$store.commit("posts/updatePostsScrollTop",{id:this.$route.params.uuid,scrollTop:e}),this.timer=null,clearTimeout(this.timer)},100))},saveRefer(){const{query:{refer:e,refer_channel:t}}=this.$route;if(e||t){if(this.$store.getters["user/is_login"]&&this.$store.state.user.user.uuid===e)return;this.$store.commit("papers/addRefer",{slug:this.paper.slug,refer:e||"",time:(new Date).getTime(),refer_channel:t||""})}}},created(){this.loadPost()},mounted(){},unmounted(){},activated(){this.$nextTick(()=>{setTimeout(()=>{window.scrollTo(0,this.$store.getters["position/getPostY"](this.$route.params.uuid)||0)},100)})}};var mb=j()(ub,[["render",function(e,t,a,r,c,s){const n=Sr,i=Oc,l=b.a;return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createVNode)(n,{ref:"detail",onEditClick:s.postEditClicked,onTagClick:s.postTagClick}
1,null,8,["onEditClick","onTagClick"]),Object(o.createVNode)(l,{modelValue:c.show_post_editor_drawer,"onUpdate:modelValue":t[1]||(t[1]=e=>c.show_post_editor_drawer=e),title:"",direction:"btt","custom-class":"editor_drawer",size:"100%","with-header":!1,"before-close":s.handleEditorDrawerClose,"destroy-on-close":!0},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(i,{ref:"editor",onPostEdited:s.postEdited,onCancelClicked:t[0]||(t[0]=e=>c.show_post_editor_drawer=!1)},null,8,["onPostEdited"])]),_:1},8,["modelValue","before-close"])],64)}]]),hb=a("9403");a("2536");const bb=e=>(Object(o.pushScopeId)("data-v-39bd4aa4"),e=e(),Object(o.popScopeId)(),e),gb={key:0},Ob={class:"settings","element-loading-background":"transparent"},jb={key:0},Cb=bb(()=>Object(o.createElementVNode)("span",{class:"name"},"ä¸ä¸ªæï¼å
ï¼",-1)),fb={class:"content"},vb={class:"text"},wb=["src"],Vb=bb(()=>Object(o.createElementVNode)("span",{class:"name"},"ä¸å¹´ï¼å
ï¼",-1)),kb={class:"content"},yb=["src"],_b={key:1},Eb=bb(()=>Object(o.createElementVNode)("span",{class:"name"},"å®ä»·ï¼å
ï¼",-1)),Nb={class:"content"},Bb={class:"text"},Hb=["src"],xb={key:0,class:"price_tip"},Mb={key:1,class:"price_tip"},Lb=[Object(o.createTextVNode)(" ç¨æ·å¨è´ä¹°åï¼å¯ä»¥ç»èº«é
读ãæä½å®ä»· 10 å
ï¼æé« 1000 å
ï¼è®¾ç½®ä¸º 0 å
å³å¯å
³éè´ä¹°å
¥å£ï¼ "),bb(()=>Object(o.createElementVNode)("br",null,null,-1)),Object(o.createTextVNode)("æ´å¤"),bb(()=>Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/operation.html",target:"_blank"},"å®ä»·çç¥ç¹æ¤..",-1))],Sb={class:"desc"},Tb={key:0},Ab=bb(()=>Object(o.createElementVNode)("div",{class:"divider_thin"},null,-1)),Pb={class:"drawer_tip"},Db={style:{"margin-top":"20px"}},Ib=["disabled"];const $b=a("5292");var Zb={name:"PriceSetting",components:{AppModalVue:C},data:()=>({drawer_title:"",drawer_tips:"",price_3_month:null,price_12_month:null,show_drawer:!1,loading:!1,plans:null,paper:null,price:0,submitting:!1,targetType:null}),computed:{price_301(){return this.paper.prices.length?this.paper.prices[0].price/100:0}},methods:{servered_days(){return this.paper?$b().diff(this.paper.created_at,"days"):"N/A"},showDrawer101(){this.drawer_title="ä¸ä¸ªæå®ä»·",this.show_drawer=!0,this.targetType=101,this.drawer_tips="ä¸ä¸ªææä½å®ä»· 10 å
ï¼æé« 300 å
ã\n0å
åä¸å¯¹å¤å±ç¤ºæ¤è®¢é
æ¶é¿ã",this.price_3_month?this.price=this.price_3_month/100:this.price=""},showDrawer201(){this.servered_days()<30?Object(ke.a)({message:"䏿 å¼é 30 天忹å¯å¼å¯å¹´åº¦è®¢é
",type:"warning"}):(this.drawer_title="ä¸å¹´å®ä»·",this.show_drawer=!0,this.targetType=201,this.drawer_tips="ä¸å¹´æä½å®ä»· 40 å
ï¼æé« 1000 å
ã\n 0å
åä¸å¯¹å¤å±ç¤ºæ¤è®¢é
æ¶é¿ã",this.price_12_month?this.price=this.price_12_month/100:this.price="")},showDrawer301(){this.drawer_title="å®ä»·",this.show_drawer=!0,this.targetType=901,this.drawer_tips="å®ä»·æä½ 10 å
ï¼æé« 1000 å
",this.paper.prices.length&&this.paper.prices[0].price?this.price=this.paper.prices[0].price/100:this.price=""},loadDatas(){this.loading=!0,this.$api.call("GET","/paper/"+this.$route.params.slug,{},e=>{if(200==e.data.code){this.plans=e.data.data.prices,this.paper=e.data.data;let t=this;"BOOKLET"!==this.paper.type&&this.plans.forEach((function(e){e.type&&101==e.type?t.price_3_month=e.price:e.type&&201==e.type&&(t.price_12_month=e.price)}))}else Object(ke.a)({message:e.data.message,type:"error"});this.loading=!1})},submitPrice(){if(!this.submitting){if(101==this.targetType){if(0==!this.price&&(this.price<10||this.price>300))return void Object(ke.a)({message:"å®ä»·è¶
åºèå´ï¼è¯·éæ°è®¾å®ã",type:"warning"})}else if(201==this.targetType){if(0==!this.price&&(this.price<40||this.price>1e3))return void Object(ke.a)({message:"å®ä»·è¶
åºèå´ï¼è¯·éæ°è®¾å®ã",type:"warning"})}else if(0==!this.price&&(this.price<10||this.price>1e3))return void Object(ke.a)({message:"å®ä»·è¶
åºèå´ï¼è¯·éæ°è®¾å®ã",type:"warning"});Ua.a.confirm("æ¯ 24 å°æ¶ä»
è½ä¿®æ¹ä¸æ¬¡ä»·æ ¼ï¼ç¡®è®¤ä¿®æ¹åï¼","",{confirmButtonText:"确认",cancelButtonText:"åæ¶",type:"warning"}).then(()=>{this.doSubmit()}).catch(()=>{})}},doSubmit(){this.submitting=!0,this.$api.call("POST","/paper/"+this.$route.params.slug+"/modify_price",{type:this.targetType,price:(100*this.price).toFixed(0)},e=>{200==e.data.code?(this.show_drawer=!1,101==this.targetType?this.price_3_month=100*this.price:201==this.targetType?this.price_12_month=100*this.price:this.paper.prices.length?this.paper.prices[0].price=100*this.price:this.paper.prices.push({price:100*this.price,type:901}),(this.paper.prices&&!this.paper.prices.length||this.paper.prices.length&&0==this.paper.prices.filter(e=>e.price>0).length)&&this.saveReferRatio()):Object(ke.a)({message:e.data.message,type:"warning"}),this.submitting=!1,this.show_drawer=!1})},saveReferRatio(){const{slug:e}=this.$route.params;this.$api.call("PUT","/paper/"+e,{refer_ratio:"0"},()=>{})}},created(){document.title="䏿 管ç",this.loadDatas()}};a("9314");var Rb=j()(Zb,[["render",function(e,t,a,r,c,s){const n=hb.a,i=Object(o.resolveComponent)("AppModalVue"),l=Wo.b;return c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",gb,[Object(o.withDirectives)(Object(o.createElementVNode)("div",Ob,["BOOKLET"!==c.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("div",jb,[Object(o.createElementVNode)("div",{class:"setting",onClick:t[0]||(t[0]=(...e)=>s.showDrawer101&&s.showDrawer101(...e))},[Cb,Object(o.createElementVNode)("div",fb,[Object(o.createElementVNode)("span",vb,Object(o.toDisplayString)(c.price_3_month/100),1),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,wb)])]),Object(o.createElementVNode)("div",{class:"setting",onClick:t[1]||(t[1]=(...e)=>s.showDrawer201&&s.showDrawer201(...e))},[Vb,Object(o.createElementVNode)("div",kb,[Object(o.createElementVNode)("span",{class:Object(o.normalizeClass)(["text",{unset:null==c.price_12_month}])}
1,Object(o.toDisplayString)(c.price_12_month?c.price_12_month/100:"æªè®¾ç½®ä»·æ ¼"),3),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,yb)])])])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",_b,[Object(o.createElementVNode)("div",{class:"setting",onClick:t[2]||(t[2]=(...e)=>s.showDrawer301&&s.showDrawer301(...e))},[Eb,Object(o.createElementVNode)("div",Nb,[Object(o.createElementVNode)("span",Bb,Object(o.toDisplayString)(s.price_301),1),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,Hb)])])]))],512),[[l,c.loading]]),"BOOKLET"!=c.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("div",xb,"䏿 å®ä»·æ¯ 24 å°æ¶åªè½ä¿®æ¹ä¸æ¬¡ï¼å»ºè®®ä»ç»èèååä¿®æ¹ã")):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Mb,Lb)),Object(o.createVNode)(i,{visible:c.show_drawer,title:c.drawer_title,closeDrawer:()=>c.show_drawer=!1,width:"480px"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Sb,[c.show_drawer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Tb,[Object(o.createVNode)(n,{autofocus:!1,maxlength:20,placeholder:"请è¾å
¥ä»·æ ¼",controls:!1,modelValue:c.price,"onUpdate:modelValue":t[3]||(t[3]=e=>c.price=e),style:{width:"100%"}},null,8,["modelValue"])])):Object(o.createCommentVNode)("",!0),Ab,Object(o.createElementVNode)("div",Pb,Object(o.toDisplayString)(c.drawer_tips),1),Object(o.createElementVNode)("div",Db,[Object(o.createElementVNode)("a",{class:"btn btn-primary",onClick:t[4]||(t[4]=(...e)=>s.submitPrice&&s.submitPrice(...e)),disabled:c.submitting},"确认",8,Ib)])])]),_:1}
1,8,["visible","title","closeDrawer"])])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-39bd4aa4"]]);const Ub=a("5292");var Fb={name:"PostPage",components:{PostDetail:Sr},computed:{subscription_expired_days(){return this.paper.subscription?Ub(this.paper.subscription.expired_at).diff(Ub(),"days"):-1}},data:()=>({post:null,paper:null,show_post_editor_drawer:!1,tags:[]}),methods:{loadPost(){this.$api.call("GET","/post/"+this.$route.params.uuid,{},e=>{if(200==e.data.code){const t=e.data.data.likers.reverse();this.post={...e.data.data,likers:t},this.paper=this.post.paper,this.saveRefer(),this.$refs.detail.post=this.post,this.$refs.detail.paper=this.post.paper,this.$refs.detail.creator=this.post.creator,this.$route.query.scrollToComment&&(this.$refs.detail.scroll_to_comment=this.$route.query.scrollToComment),(this.paper.writable||this.subscription_expired_days>0)&&this.$refs.detail.loadComments(),this.paper.writable&&this.loadTags()}else Object(ke.a)({message:e.data.message,type:"error"})})},postEditClicked(e){this.show_post_editor_drawer=!0,this.$refs.editor?(this.$refs.editor.post_uuid=e.uuid,this.$refs.editor.content=Object(ye.l)(e.content),this.$refs.editor.title=e.title?Object(ye.l)(e.title):"",this.$refs.editor.fileList=e.files,this.$refs.editor.tags=e.tag_names,this.$refs.editor.origin_tags=this.tags,this.$refs.editor.paper_slug=this.paper.slug,this.$refs.editor.refreshFilesAndTags()):setTimeout(()=>{this.postEditClicked(e)},500)},postEdited(e){this.show_post_editor_drawer=!1,this.$refs.detail.post=e},loadTags(){this.$api.call("GET","/paper/"+this.paper.slug+"/tag",{},e=>{if(200==e.data.code){let t=e.data.data;t.sort((function(e,t){return t.count-e.count})),this.tags=t}else Object(ke.a)({message:e.data.message,type:"error"})})},saveRefer(){const{query:{refer:e,refer_channel:t}}=this.$route;if(e||t){if(this.$store.getters["user/is_login"]&&this.$store.state.user.user.uuid===e)return;this.$store.commit("papers/addRefer",{slug:this.paper.slug,refer:e||"",time:(new Date).getTime(),refer_channel:t||""})}}},created(){this.loadPost()}};var zb=j()(Fb,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("PostDetail",!0),i=Oc,l=b.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[Object(o.createVNode)(n,{ref:"detail",onEditClick:s.postEditClicked},null,8,["onEditClick"]),Object(o.createVNode)(l,{modelValue:c.show_post_editor_drawer,"onUpdate:modelValue":t[1]||(t[1]=e=>c.show_post_editor_drawer=e),title:"",direction:"btt","custom-class":"editor_drawer",size:"100%","with-header":!1,"before-close":e.handleEditorDrawerClose},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(i,{ref:"editor",onPostEdited:s.postEdited,onCancelClicked:t[0]||(t[0]=e=>c.show_post_editor_drawer=!1)},null,8,["onPostEdited"])]),_:1},8,["modelValue","before-close"])])}]]);const qb=e=>(Object(o.pushScopeId)("data-v-5d7c053d"),e=e(),Object(o.popScopeId)(),e),Wb={key:0},Gb={key:0,class:"header"},Yb=qb(()=>Object(o.createElementVNode)("div",{style:{color:"var(--border-color)"}},"|",-1)),Qb=qb(()=>Object(o.createElementVNode)("div",null,"æç´¢",-1)),Kb={key:1,id:"nav_sep"},Jb={width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xb=["fill"],eg=["fill"],tg=Object(o.createTextVNode)(" æç´¢ä¸æ åãä½è
å "),ag={key:2,class:"content"},og=[qb(()=>Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("img",{src:"/img/xbtjx.jpg",alt:""})],-1)),qb(()=>Object(o.createElementVNode)("svg",{width:"165",height:"42",viewBox:"0 0 165 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M0.915 6.565V7.615H3.96V12.865C3.96 13.105 3.84 13.27 3.615 13.39L3.96 14.38C5.64 13.99 7.215 13.555 8.685 13.045L8.4 12.01C7.29 12.43 6.165 12.775 5.04 13.045V7.615H8.16C8.82 10.435 10.65 12.64 13.68 14.245L14.31 13.24C11.535 11.89 9.825 10.015 9.195 7.615H14.13V6.565H5.04V0.819999H3.96V6.565H0.915ZM11.85 0.94C10.68 2.245 8.91 3.415 6.525 4.465L7.17 5.32C9.57 4.24 11.385 3.025 12.585 1.675L11.85 0.94ZM28.875 2.455H25.365C25.155 1.765 24.945 1.165 24.72 0.624999L23.625 0.805C23.865 1.315 24.09 1.855 24.285 2.455H20.835V5.47H21.855V3.43H27.84V5.41H28.875V2.455ZM23.625 4.375C23.415 5.215 23.19 6.01 22.935 6.79H20.475V7.825H22.575C22.245 8.665 21.885 9.46 21.48 10.21C22.47 10.735 23.4 11.245 24.27 11.74C23.25 12.49 21.765 13.09 19.785 13.54L20.22 14.56C22.56 14.005 24.24 13.27 25.29 12.34C26.64 13.135 27.765 13.855 28.665 14.515L29.4 13.66C28.53 13.06 27.405 12.355 25.995 11.575C26.79 10.585 27.315 9.325 27.555 7.825H29.355V6.79H24.03C24.24 6.1 24.465 5.32 24.675 4.465L23.625 4.375ZM26.52 7.825C26.265 9.145 25.77 10.21 25.035 11.05C24.33 10.675 23.565 10.285 22.755 9.865C23.07 9.295 23.37 8.605 23.67 7.825H26.52ZM17.385 14.365C18.24 14.365 18.675 13.93 18.675 13.06V8.725C19.14 8.515 19.605 8.305 20.07 8.08V6.985C19.605 7.225 19.14 7.45 18.675 7.66V4.66H20.085V3.625H18.675V0.79H17.565V3.625H15.81V4.66H17.565V8.095C16.905 8.335 16.215 8.545 15.51 8.71L15.78 9.79C16.365 9.61 16.965 9.4 17.565 9.175V12.79C17.565 13.18 17.37 13.375 17.01 13.375C16.65 13.375 16.275 13.345 15.885 13.315L16.11 14.3
165H17.385ZM36.21 1.915V2.965H42.555V6.955H36.585V7.99H42.555V12.19H35.88V13.255H42.555V14.17H43.65V1.915H36.21ZM35.745 6.85C35.16 7.135 34.56 7.39 33.96 7.63V4.54H35.595V3.505H33.96V0.759999H32.865V3.505H30.825V4.54H32.865V8.005C32.145 8.245 31.395 8.44 30.645 8.605L30.9 9.625C31.56 9.445 32.205 9.25 32.865 9.04V12.775C32.865 13.15 32.67 13.345 32.31 13.345C31.95 13.345 31.575 13.315 31.185 13.285L31.425 14.335H32.685C33.525 14.335 33.96 13.9 33.96 13.045V8.65C34.56 8.425 35.145 8.185 35.745 7.915V6.85ZM50.67 6.01H47.91C48.3 4.96 48.585 3.835 48.795 2.635H51.06V1.585H45.945V2.635H47.775C47.415 4.87 46.665 6.865 45.525 8.605L46.065 9.475C46.425 8.965 46.755 8.44 47.055 7.9V14.005H48.06V12.865H49.68V13.72H50.67V6.01ZM48.06 11.89V7H49.68V11.89H48.06ZM52.695 3.445L51.885 8.305H57.945C57.945 10.705 57.825 12.16 57.585 12.67C57.36 13.15 56.67 13.405 55.515 13.405C55.245 13.405 54.78 13.375 54.12 13.315L54.42 14.365C54.9 14.395 55.35 14.41 55.77 14.41C57.09 14.41 57.945 14.125 58.365 13.585C58.755 13.015 58.965 10.93 58.965 7.3H57.375L58.2 1.375H51.75V2.395H57.03L56.28 7.3H53.1L53.76 3.52L52.695 3.445ZM51.42 10.21V11.23H56.91V10.21H51.42ZM64.65 0.805L63.66 1.285C64.275 2.035 64.845 2.89 65.385 3.85L66.36 3.355C65.82 2.425 65.25 1.585 64.65 0.805ZM70.29 0.67C69.84 1.93 69.345 2.995 68.775 3.865H61.92V4.915H66.945V5.62C66.93 6.355 66.855 7.045 66.72 7.705H61.065V8.755H66.45C66.24 9.415 65.955 10 65.595 10.54C64.695 11.74 63.09 12.715 60.795 13.45L61.38 14.395C63.69 13.66 65.355 12.625 66.375 11.305C66.855 10.66 67.23 9.91 67.515 9.055C68.325 11.335 70.365 13.15 73.665 14.485L74.295 13.48C71.145 12.355 69.21 10.78 68.475 8.755H73.935V7.705H67.845C67.965 7.075 68.025 6.37 68.055 5.62V4.915H73.065V3.865H69.975C70.515 3.01 70.965 2.035 71.325 0.955L70.29 0.67ZM76.965 0.969999L76.185 1.72C77.295 2.5 78.18 3.25 78.81 3.955L79.575 3.19C78.87 2.455 78 1.72 76.965 0.969999ZM76.59 4.51L75.825 5.245C76.875 6.055 77.7 6.805 78.3 7.495L79.065 6.73C78.405 5.98 77.58 5.245 76.59 4.51ZM78.48 8.65C77.805 10.45 77.01 12.205 76.11 13.915L77.19 14.38C78.015 12.715 78.765 10.93 79.44 9.04L78.48 8.65ZM80.16 3.28V4.345H84.06V7.945H80.58V8.98H84.06V12.925H79.785V13.99H89.31V12.925H85.155V8.98H88.62V7.945H85.155V4.345H89.025V3.28H84.555L85.17 3.04C84.945 2.32 84.615 1.54 84.195 0.67L83.175 0.955C83.565 1.705 83.895 2.47 84.195 3.28H80.16ZM96.78 14.335C97.8 14.335 98.325 13.795 98.325 12.745V0.969999H97.215V12.46C97.215 13.015 96.93 13.3 96.375 13.3C95.7 13.3 94.98 13.27 94.23 13.21L94.485 14.335H96.78ZM93.195 4.45C92.595 7.15 91.71 9.295 90.51 10.885L91.44 11.71C92.61 10.15 93.555 7.87 94.275 4.87L93.195 4.45ZM101.715 4.09L100.74 4.705C101.895 7.3 102.81 9.655 103.485 11.785L104.445 11.11C103.815 9.115 102.9 6.775 101.715 4.09ZM110.805 6.775C110.235 7.075 109.665 7.345 109.08 7.6V4.54H110.76V3.505H109.08V0.79H108.015V3.505H105.84V4.54H108.015V8.02C107.235 8.29 106.44 8.53 105.615 8.725L105.885 9.79C106.605 9.565 107.325 9.325 108.015 9.07V12.85C108.015 13.27 107.805 13.495 107.4 13.495C106.995 13.495 106.575 13.465 106.14 13.42L106.38 14.455H107.775C108.645 14.455 109.08 14.005 109.08 13.105V8.635C109.665 8.395 110.235 8.125 110.805 7.84V6.775ZM112.65 7.72H113.52C113.76 9.16 114.39 10.495 115.425 11.725C114.765 12.475 113.955 13.09 112.995 13.57L113.52 14.515C114.54 14.005 115.425 13.33 116.145 12.505C116.835 13.195 117.69 13.84 118.68 14.47L119.4 13.645C118.35 13.06 117.465 12.43 116.745 11.74C117.525 10.615 118.05 9.25 118.35 7.66V6.73H112.65V2.35H117.18C117.15 3.28 117.09 3.895 116.985 4.18C116.88 4.36 116.745 4.465 116.58 4.525C116.4 4.555 116.115 4.585 115.755 4.585C115.395 4.585 115.11 4.57 114.87 4.57L115.17 5.515H116.25C117.21 5.515 117.78 5.23 117.96 4.69C118.125 4.135 118.215 3.025 118.215 1.36H111.63V14.5H112.65V7.72ZM114.495 7.72H117.315C117.045 8.95 116.61 10.03 116.01 10.945C115.2 9.97 114.705 8.89 114.495 7.72ZM126.975 6.685V7.72H123.855V6.685H126.975ZM126.975 8.5V9.535H123.855V8.5H126.975ZM126.975 10.345V11.215H121.89V12.085H126.975V13.015H120.99V13.945H134.01V13.015H128.025V12.085H133.125V11.215H128.025V10.345H132.18V5.86H122.82V10.345H126.975ZM128.025 9.535V8.5H131.145V9.535H128.025ZM128.025 7.72V6.685H131.145V7.72H128.025ZM124.11 2.68L124.635 4.075H121.065V5.005H133.935V4.075H130.305L130.875 2.68H133.215V1.795H128.04C127.89 1.345 127.74 0.955 127.59 0.595L126.435 0.774999C126.585 1.09 126.735 1.435 126.87 1.795H121.785V2.68H124.11ZM125.73 4.075L125.205 2.68H129.765L129.21 4.075H125.73ZM135.81 6.07V7.045H137.895C137.415 8.575 136.605 9.955 135.495 11.17L135.96 12.34C136.8 11.26 137.46 10.045 137.955 8.725V14.5H138.99V8.455C139.44 9.115 139.98 9.97 140.61 11.035L141.225 10.12C140.475 9.175 139.74 8.305 138.99 7.525V7.045H140.79V6.07H138.99V0.774999H137.955V6.07H135.81ZM140.22 1.75C140.13 2.98 139.92 4.06 139.605 4.99L140.34 5.23C140.7 4.24 140.94 3.115 141.03 1.855L140.22 1.75ZM136.65 2.005L135.855 2.26C136.125 3.25 136.35 4.27 136.53 5.335L137.28 5.155C137.085 3.97 136.875 2.92 136.65 2.005ZM144.825 0.73V1.72H141.615V2.605H144.825V3.61H142.035V4.48H144.825V5.5H14
11.27V6.4H149.37V5.5H145.86V4.48H148.56V3.61H145.86V2.605H148.98V1.72H145.86V0.73H144.825ZM143.115 10.18H147.48V11.245H143.115V10.18ZM147.48 9.34H143.115V8.23H147.48V9.34ZM143.115 12.07H147.48V12.97C147.48 13.315 147.315 13.495 147 13.495L145.98 13.435L146.25 14.395H147.3C148.11 14.395 148.53 13.99 148.53 13.195V7.345H142.095V14.47H143.115V12.07ZM151.89 0.984999L151.155 1.69C152.22 2.53 153.06 3.325 153.675 4.075L154.425 3.325C153.735 2.545 152.895 1.765 151.89 0.984999ZM160.605 14.23H164.085L164.355 13.15C163.95 13.18 163.38 13.195 162.66 13.21C161.91 13.225 161.175 13.24 160.455 13.24C159.285 13.24 158.295 13.225 157.515 13.21C156.615 13.18 155.94 13.06 155.475 12.85C155.055 12.655 154.665 12.34 154.305 11.905C154.185 11.77 154.065 11.65 153.945 11.56V5.95H150.81V6.94H152.94V11.5C152.31 11.77 151.605 12.55 150.795 13.825L151.605 14.56C152.445 13.15 153.045 12.46 153.42 12.46C153.6 12.46 153.795 12.58 154.005 12.835C154.47 13.375 154.995 13.75 155.58 13.93C156.18 14.095 156.975 14.185 157.935 14.2C158.895 14.215 159.795 14.23 160.605 14.23ZM159.315 0.699999V2.62H157.335C157.515 2.14 157.68 1.645 157.83 1.12L156.795 0.909999C156.435 2.26 155.85 3.505 155.04 4.63L155.985 5.215C156.315 4.735 156.615 4.225 156.885 3.655H159.315V5.8H155.415V6.85H157.83C157.785 7.78 157.635 8.59 157.38 9.25C156.99 10.15 156.195 10.9 154.98 11.5L155.685 12.355C157.095 11.62 158.01 10.675 158.4 9.535C158.655 8.785 158.805 7.885 158.85 6.85H160.365V11.11C160.365 11.44 160.455 11.71 160.665 11.92C160.86 12.13 161.145 12.235 161.535 12.235H162.615C163.125 12.22 163.485 12.1 163.695 11.89C163.92 11.65 164.085 10.915 164.175 9.67L163.23 9.355C163.17 10.42 163.05 11.02 162.87 11.155C162.75 11.245 162.6 11.29 162.39 11.29H161.85C161.52 11.29 161.37 11.14 161.37 10.87V6.85H163.89V5.8H160.365V3.655H163.365V2.62H160.365V0.699999H159.315ZM39.24 32.35H42.96C41.91 35.695 40.305 38.32 38.115 40.24L38.67 41.23C40.38 39.835 41.79 37.96 42.885 35.59C43.38 36.64 44.205 37.615 45.375 38.515C44.25 39.25 42.855 39.925 41.175 40.54L41.745 41.545C43.56 40.84 45.09 40.06 46.32 39.19C47.58 40.015 49.17 40.78 51.09 41.485L51.645 40.48C49.905 39.88 48.42 39.22 47.205 38.5C48.435 37.45 49.245 36.28 49.65 34.99V34.06H43.515C43.725 33.52 43.905 32.95 44.085 32.35H51.39V31.315H44.37C44.64 30.205 44.88 29.035 45.075 27.775L43.98 27.64C43.8 28.93 43.56 30.145 43.26 31.315H40.635L41.49 28.36L40.425 28.18L39.24 32.35ZM43.695 35.05H48.555C48.135 3
16.07 47.37 37.015 46.26 37.885C45.06 37.015 44.205 36.07 43.695 35.05ZM47.595 27.76L46.875 28.465C48 29.365 48.885 30.205 49.515 31L50.28 30.235C49.56 29.41 48.675 28.585 47.595 27.76ZM65.67 28.345H59.01V36.64H60.075V29.38H64.575V36.64H65.67V28.345ZM65.34 41.26C65.82 41.26 66.18 41.14 66.42 40.915C66.675 40.645 66.855 39.88 66.945 38.65L65.94 38.335C65.88 39.265 65.79 39.835 65.67 40.03C65.565 40.18 65.385 40.27 65.145 40.27H64.095C63.78 40.27 63.63 40.105 63.63 39.79V36.58H62.55V40.015C62.55 40.84 62.955 41.26 63.78 41.26H65.34ZM61.755 30.445V34.105C61.725 35.785 61.395 37.15 60.795 38.2C60.15 39.19 59.01 40 57.39 40.63L57.975 41.545C59.655 40.915 60.855 40.03 61.575 38.92C62.325 37.72 62.73 36.115 62.79 34.105V30.445H61.755ZM53.445 33.295V34.345H55.17V38.08C54.51 38.26 53.85 38.41 53.175 38.53L53.43 39.565C55.125 39.16 56.715 38.665 58.2 38.065V37.03C57.57 37.285 56.94 37.525 56.28 37.75V34.345H57.96V33.295H56.28V29.785H58.17V28.75H53.25V29.785H55.17V33.295H53.445ZM68.58 28.345V29.35H74.46V30.655H69.87V36.595H74.265C74.115 37.375 73.845 38.02 73.485 38.53C72.645 38.095 71.865 37.585 71.16 37L70.335 37.57C71.07 38.2 71.88 38.755 72.75 39.235C71.79 39.925 70.26 40.345 68.175 40.51L68.64 41.5C71.025 41.23 72.75 40.66 73.8 39.76C76.035 40.78 78.66 41.365 81.675 41.485L81.945 40.45C79.065 40.36 76.575 39.865 74.475 38.98C74.895 38.38 75.18 37.585 75.36 36.595H80.19V30.655H75.54V29.35H81.435V28.345H68.58ZM79.125 35.65H75.495L75.54 34.585V34.06H79.125V35.65ZM74.415 35.65H70.935V34.06H74.46V34.585C74.46 34.945 74.445 35.305 74.415 35.65ZM70.935 33.16V31.585H74.46V33.16H70.935ZM75.54 31.585H79.125V33.16H75.54V31.585ZM89.94 27.7C88.62 29.14 86.625 30.1 83.955 30.61L84.585 31.6C86.19 31.24 87.57 30.715 88.74 30.025H93.12C92.28 31.255 91.065 32.2 89.505 32.83C89.025 32.23 88.515 31.69 87.975 31.18L87.03 31.63C87.54 32.095 88.035 32.62 88.5 33.19C87.42 33.505 86.22 33.7 84.87 33.79L85.335 34.765C89.715 34.42 92.73 32.8 94.35 29.92V29.065H90.045C90.345 28.795 90.63 28.51 90.9 28.21L89.94 27.7ZM89.37 37.075L88.41 37.525C88.965 38.065 89.49 38.68 90 39.355C88.305 39.925 86.28 40.21 83.94 40.225L84.375 41.26C90.195 41.125 94.155 39.295 96.285 35.755V34.9H92.175C92.595 34.585 92.97 34.24 93.33 33.88L92.4 33.37C90.84 35.02 88.425 36.025 85.155 36.355L85.8 37.315C87.615 37 89.175 36.52 90.495 35.89H94.935C93.975 37.21 92.67 38.245 91.005 38.965C90.495 38.29 89.94 37.66 89.37 37.075ZM98.265 32.32V33.37H102.255C101.94 34.405 101.595 35.395 101.235 36.355H108.645C107.85 37.345 106.755 38.305 105.375 39.205C104.34 38.845 103.26 38.5 102.135 38.2L101.565 39.04C103.95 39.685 106.275 40.555 108.525 41.665L109.125 40.72C108.3 40.33 107.43 39.955 106.53 39.625C108.075 38.515 109.2 37.39 109.92 36.28V35.35H102.78C102.99 34.735 103.215 34.075 103.425 33.37H111.735V32.32H103.71C103.86 31.735 104.01 31.12 104.16 30.46H110.85V29.455H104.385C104.505 28.915 104.61 28.33 104.73 27.73L103.62 27.64C103.5 28.24 103.38 28.84 103.245 29.455H99.285V30.46H103.02C102.87 31.09 102.72 31.705 102.555 32.32H98.265ZM120.315 27.94L119.37 28.405C119.88 29.185 120.375 30.055 120.84 31.045L121.8 30.565C121.335 29.605 120.84 28.735 120.315 27.94ZM124.68 27.76C124.26 29.14 123.765 30.415 123.195 31.585H118.935V32.635H126.36V31.585H124.32C124.86 30.595 125.325 29.44 125.745 28.135L124.68 27.76ZM116.625 33.76C117.075 34.36 117.6 35.11 118.2 36.04L118.845 35.095C118.095 34.15 117.36 33.31 116.625 32.56V31.72H118.425V30.685H116.625V27.76H115.53V30.685H113.34V31.72H115.47C114.99 33.565 114.165 35.215 112.995 36.655L113.46 37.825C114.315 36.595 115.005 35.215 115.53 33.7V41.44H116.625V33.76ZM118.305 39.64V40.69H126.81V39.64H118.305ZM119.415 35.485V36.535H125.895V35.485H119.415Z",fill:"#ACABAE"})],-1))];var rg=a("8766");a("076a");const cg=e=>(Object(o.pushScopeId)("data-v-404db894"),e=e(),Object(o.popScopeId)(),e),sg=["infinite-scroll-disabled"],ng={class:"search-input"},ig={width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lg=["fill"],dg=["fill"],pg={key:0},ug=["onClick"],mg={class:"logo"},hg=["src"],bg={class:"info"},gg={class:"title"},Og=["innerHTML"],jg={class:"data"},Cg=["innerHTML"],fg=Object(o.createTextVNode)(),vg=cg(()=>Object(o.createElementVNode)("span",null,"·",-1)),wg={class:"subscriber"},Vg=Object(o.createTextVNode)(),kg=cg(()=>Object(o.createElementVNode)("span",null,"· ",-1)),yg={class:"postCount"},_g={key:1,class:"empty"},Eg=[cg(()=>Object(o.createElementVNode)("p",null,"ð¤",-1)),cg(()=>Object(o.createElementVNode)("p",null,"ææ ç»æ",-1))];var Ng=a("8715"),Bg={name:"Search",props:{onCancel:{type:Function,default:()=>{}}},setup(){const{theme:e}=Object(Ng.b)(),t=Object(o.computed)(()=>getComputedStyle(document.documentElement).getPropertyValue("--text-gray").trim()||"#9D9D9D"),a=Object(o.inject)("$api"),r=Object(o.inject)("$router"),c=Object(o.inject)("$store"),s=Object(o.ref)(""),n=Object(o.reactive)({list:[],currentPage:1,loading:!1,hasMore:!0,isEnd:!1,query:"",loadMore:!1}),i=()=>{a.call("GET","/paper/search/",{limit:20,offset:20*(n.currentPage-1),keyword:n.query.trim()},e=>{200==e.data.code&&((0==e.data.data.length||e.data.data.length<20)&&(n.isEnd=!0),n.loadMore?n.list=[...n.list,...e.data.data.map(e=>({...e,creator:{...e.creator,nickname:e.creator.nickname.indexOf(n.query)>-1?e.creator.nickname.replace(n.query,`<span style='color: var(--link-color)'>${n.query}</span>`):e.creator.nickname}
1,newName:e.name.indexOf(n.query)>-1?e.name.replace(n.query,`<span style='color: var(--link-color)'>${n.query}</span>`):e.name}))]:n.list=[...e.data.data.map(e=>({...e,creator:{...e.creator,nickname:e.creator.nickname.indexOf(n.query)>-1?e.creator.nickname.replace(n.query,`<span style='color: var(--link-color)'>${n.query}</span>`):e.creator.nickname},newName:e.name.indexOf(n.query)>-1?e.name.replace(n.query,`<span style='color: var(--link-color)'>${n.query}</span>`):e.name}))],n.loading=!1)})},l=()=>{let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;"Search"==r.currentRoute.value.name&&c.commit("position/setSeachScrollTop",e)};Object(o.onMounted)(()=>{n.loading=!0,window.addEventListener("scroll",l)}),Object(o.onUnmounted)(()=>{window.removeEventListener("scroll",l),c.commit("position/setSeachScrollTop",0)}),Object(o.onActivated)(()=>{});return{state:n,search:i,back:()=>{n.query="",n.list=[],n.isEnd=!1,r.back()},searchRef:s,toColumn:e=>{r.push({name:"Paper",params:{slug:e.slug}})},load:()=>{n.currentPage+=1,n.loadMore=!0,i()},iconColor:t,focused:()=>{s.value.focus()}}}};a("5051");var Hg={name:"SearchPage",components:{SearchVue:j()(Bg,[["render",function(e,t,a,r,c,s){const n=ct.a,i=rg.a;return Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"search","infinite-scroll-immediate":!1,"infinite-scroll-delay":200,"infinite-scroll-distance":200,"infinite-scroll-disabled":r.state.isEnd},[Object(o.createElementVNode)("div",ng,[Object(o.createVNode)(n,{modelValue:r.state.query,"onUpdate:modelValue":t[0]||(t[0]=e=>r.state.query=e),autofocus:"",ref:"searchRef",placeholder:"æç´¢ä¸æ åãä½è
å",clearable:"",onChange:r.search},{prepend:Object(o.withCtx)(()=>[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",ig,[Object(o.createElementVNode)("rect",{opacity:"0.01",width:"21.8406",height:"22",fill:r.iconColor},null,8,lg),Object(o.createElementVNode)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7529 14.575L18.847 17.6825C19.0193 17.8546 19.1162 18.0889 19.1162 18.3333C19.1162 18.5777 19.0193 18.812 18.847 18.9842C18.6761 19.1577 18.4435 19.2553 18.2009 19.2553C17.9582 19.2553 17.7256 19.1577 17.5548 18.9842L14.4698 15.8675C13.198 16.8731 11.6275 17.4187 10.0107 17.4167C5.98992 17.4167 2.73047 14.1334 2.73047 10.0833C2.73047 6.03324 5.98992 2.75 10.0107 2.75C14.0314 2.75 17.2909 6.03324 17.2909 10.0833C17.2929 11.7119 16.7512 13.2939 15.7529 14.575ZM10.0107 4.58335C6.99516 4.58335 4.55057 7.04579 4.55057 10.0834C4.55057 13.1209 6.99516 15.5834 10.0107 15.5834C13.0263 15.5834 15.4709 13.1209 15.4709 10.0834C15.4709 7.04579 13.0263 4.58335 10.0107 4.58335Z",fill:r.iconColor},null,8,dg)]))]),_:1},8,["modelValue","onChange"]),Object(o.createElementVNode)("span",{class:"cancel",onClick:t[1]||(t[1]=(...e)=>a.onCancel&&a.onCancel(...e))},"åæ¶")]),r.state.list.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",pg,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(r.state.list,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"paper",key:e.slug,onClick:t=>r.toColumn(e)},[Object(o.createElementVNode)("div",mg,[Object(o.createElementVNode)("img",{src:e.avatar_url,alt:""},null,8,hg)]),Object(o.createElementVNode)("div",bg,[Object(o.createElementVNode)("div",gg,[Object(o.createElementVNode)("div",{innerHTML:e.newName},null,8,Og)]),Object(o.createElementVNode)("div",jg,[Object(o.createElementVNode)("span",{innerHTML:e.creator.nickname},null,8,Cg),fg,vg,Object(o.createElementVNode)("span",wg,Object(o.toDisplayString)(e.subscriber_count)+" 读è
",1),Vg,kg,Object(o.createElementVNode)("span",yg,Object(o.toDisplayString)(e.post_count)+" å
容",1)])])],8,ug))),128))])):Object(o.createCommentVNode)("",!0),!r.state.list.length&&r.state.isEnd?(Object(o.openBlock)(),Object(o.createElementBlock)("div",_g,Eg)):Object(o.createCommentVNode)("",!0)],8,sg)),[[i,r.load]])}],["__scopeId","data-v-404db894"]]),Back:Q.a},setup(){const e=Object(o.computed)(()=>getComputedStyle(document.documentElement).getPropertyValue("--text-gray").trim()||"#9D9D9D"),t=Object(o.inject)("$router"),a=Object(o.ref)(""),{isInWechatMP:r}=Object(K.a)(),c=Object(o.reactive)({showSearch:!1,title:"æç´¢",visible:!0});return{toSearch:()=>{c.showSearch=!0,Object(o.nextTick)(()=>{a.value.focused()})},state:c,close:()=>{c.showSearch=!1},goBack:()=>{t.push("/subscribed")},searchRef:a,isInWechatMP:r,iconColor:e}}};a("fd40");var xg=j()(Hg,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("back"),i=A.a,l=Object(o.resolveComponent)("SearchVue");return Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[r.state.showSearch?(Object(o.openBlock)(),Object(o.createBlock)(l,{key:1,onCancel:r.close,ref:"searchRef"},null,8,["onCancel"])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Wb,[r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Gb,[Object(o.createVNode)(i,{size:16,onClick:r.goBack}
1,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n)]),_:1},8,["onClick"]),Yb,Qb])),r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Kb)),Object(o.createElementVNode)("div",{class:"searchDom",onClick:t[0]||(t[0]=(...e)=>r.toSearch&&r.toSearch(...e))},[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Jb,[Object(o.createElementVNode)("rect",{opacity:"0.01",width:"21.8406",height:"22",fill:r.iconColor},null,8,Xb),Object(o.createElementVNode)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7529 14.575L18.847 17.6825C19.0193 17.8546 19.1162 18.0889 19.1162 18.3333C19.1162 18.5777 19.0193 18.812 18.847 18.9842C18.6761 19.1577 18.4435 19.2553 18.2009 19.2553C17.9582 19.2553 17.7256 19.1577 17.5548 18.9842L14.4698 15.8675C13.198 16.8731 11.6275 17.4187 10.0107 17.4167C5.98992 17.4167 2.73047 14.1334 2.73047 10.0833C2.73047 6.03324 5.98992 2.75 10.0107 2.75C14.0314 2.75 17.2909 6.03324 17.2909 10.0833C17.2929 11.7119 16.7512 13.2939 15.7529 14.575ZM10.0107 4.58335C6.99516 4.58335 4.55057 7.04579 4.55057 10.0834C4.55057 13.1209 6.99516 15.5834 10.0107 15.5834C13.0263 15.5834 15.4709 13.1209 15.4709 10.0834C15.4709 7.04579 13.0263 4.58335 10.0107 4.58335Z",fill:r.iconColor},null,8,eg)])),tg]),r.isInWechatMP?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",ag,og))]))])}],["__scopeId","data-v-5d7c053d"]]);const Mg=e=>(Object(o.pushScopeId)("data-v-d4a2951e"),e=e(),Object(o.popScopeId)(),e),Lg={class:"create_paper"},Sg={key:0,class:"success"},Tg={class:"form"},Ag={class:"item"},Pg=Mg(()=>Object(o.createElementVNode)("div",{class:"name"},"åç§°",-1)),Dg={class:"item"},Ig=Mg(()=>Object(o.createElementVNode)("div",{class:"name"},"ID",-1)),$g={class:"item"},Zg=Mg(()=>Object(o.createElementVNode)("div",{class:"name"},"ç±»å",-1)),Rg={class:"item"},Ug={class:"name"},Fg=Mg(()=>Object(o.createElementVNode)("div",{class:"tips"},[Object(o.createTextVNode)(" 注æäºé¡¹ "),Object(o.createElementVNode)("ul",null,[Object(o.createElementVNode)("li",null,"ID ä»
æ¯æè±æåæ¯åæ°åï¼"),Object(o.createElementVNode)("li",null,"䏿 ç±»åãID 䏿¦æäº¤åï¼ä¸æ¯æä¿®æ¹ï¼"),Object(o.createElementVNode)("li",null,"å®ä»·èå´ä¸º 10ï½300 å
ï¼æ¯å¤©å¯ä¿®æ¹ä¸æ¬¡ï¼"),Object(o.createElementVNode)("li",null,"订é
å¶ä¸æ å¼é 30 天åï¼å¯ä»¥è®¾ç½®å¹´åº¦è®¢é
ï¼")])],-1)),zg={class:"submit_protocol",id:"bottom_fixed"},qg={class:"protocol"},Wg=Mg(()=>Object(o.createElementVNode)("p",null,[Object(o.createTextVNode)(" æå·²é
读并åæã"),Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/creator-legal.html",target:"_blank"},"åä½è
åä½åè®®"),Object(o.createTextVNode)("ã ")],-1)),Gg={key:1,class:"success_page"},Yg=["src"],Qg={class:"success_tip"},Kg=Object(o.createStaticVNode)('<div class="success_desc" data-v-d4a2951e><h2 data-v-d4a2951e>å°æ¥ç«¥ä½¿ç¨æå</h2><ul data-v-d4a2951e><ol data-v-d4a2951e> 1. ææçéç¥å¨ãå°æ¥ç«¥æéãè¿ä¸ªæå¡å·éé¢ ï¼æ«ç å
³æ³¨ãå¦å¤å¯ä»¥éè¿ç¹æå¡å·èåä¸ãå¼å§é
读ãï¼å°±è½çå°èªå·±ç䏿 <br data-v-d4a2951e></ol><ol data-v-d4a2951e> 2. å°æ¥ç«¥æ PC çï¼å¯ä»¥æµè§ï¼ä¹æ¯æåä½è
åå°ï¼æ¯æå¯ææ¬ç¼è¾ãæ°æ®ç»è®¡ãå¼å¯åä¼äººè®¡åçåè½ï¼ãç¨çµèè®¿é® <a href="https://xiaobot.net" class="help-link" data-v-d4a2951e>https://xiaobot.net</a> å³å¯ï¼æ¨èåä½è
使ç¨ã </ol><ol data-v-d4a2951e> 3. æç°ææ¬¾æ¥ææ¯æ¯å¨åä¸å 5 ç¹å·¦å³ï¼å¦éè忥å顺延å°ä¸å¨ï¼å
·ä½å¯ä»¥åèï¼<a href="https://help.xiaobot.net/withdraw.html" class="help-link" data-v-d4a2951e>https://help.xiaobot.net/withdraw.html</a></ol><ol data-v-d4a2951e> 4. æ´å¤æä½é®é¢å¯ä»¥çè¿éï¼<a href="https://help.xiaobot.net/feature.html" class="help-link" data-v-d4a2951e>https://help.xiaobot.net/feature.html</a></ol><ol data-v-d4a2951e> 5. å°æ¥ç«¥çè´¹ç¨è¯´æè¯¦è§ï¼<a href="https://help.xiaobot.net/withdraw.html" class="help-link" data-v-d4a2951e>https://help.xiaobot.net/withdraw.html</a></ol><ol data-v-d4a2951e> 6. 䏿 è¾¾å° 50 个订é
ç¨æ·åï¼å¯ä»¥ç³è¯·å¼éæ°ä¸æ ï¼å¦æéè¦è¯·è系客æå¤çã æ´å¤ç»è¥æå <a href="https://help.xiaobot.net/start.html" class="help-link" data-v-d4a2951e>https://help.xiaobot.net/start.html</a></ol></ul></div><div class="extra" data-v-d4a2951e> è¿ä¸æ¥å®åä¿¡æ¯ <br data-v-d4a2951e> æé«å¸å¼å </div>',2),Jg={id:"bottom_fixed"};var Xg={name:"CreatePaper",computed:{},data:()=>({paper_name:null,paper_slug:null,paper_price:null,submitting:!1,loading:!1,show_success:!1,paper:null,title:"åå»ºä¸æ ",agreement_accepted:!1,paper_type:"BOOKLET"}),methods:{checkCode(){this.$route.params.code?this.$api.call("GET","/paper_creation_refer/"+this.$route.params.code,{},e=>{200==e.data.code||Ua.a.alert("该éè¯·é¾æ¥å·²ç»å¤±æ","",{confirmButtonText:"ç¥éäº",type:"warning"}).then(()=>{this.$router.push({name:"Home"})}).catch(()=>{}),this.loading=!1}):Object(ke.a)({message:"æ æçéè¯·é¾æ¥",type:"error"})},submit(){if(null==this.paper_name||0==this.paper_name.length||null==this.paper_slug||0==this.paper_slug.length||null==this.paper_price||0==this.paper_price)return void Object(ke.a)({message:"è¿æä¿¡æ¯æªå¡«å",type:"info"});if(!this.agreement_accepted)return void Object(ke.a)({message:"请å
é
读并åæãåä½è
åä½åè®®ã",type:"info"});if("COLUMN"==this.paper_type){if(this.paper_price<10||this.paper_price>300)return void Object(ke.a)({message:"å£åº¦è®¢é
ä»·æä½ 10 å
ï¼æé« 300 å
",type:"info"})}else if(this.paper_price<10||this.paper_price>1e3)return void Object(ke.a)({message:"ä¹°æå¶å®ä»·æä½ 10 å
ï¼æé« 1000 å
",type:"info"});this.submitting=!0;let e={refer_code:this.$route.params.code,name:this.paper_name,slug:this.paper_slug,type:this.paper_type};"BOOKLET"==this.paper_type?e.infinity_price=(100*this.paper_price).toFixed(0):e.quarter_price=(100*this.paper_price).toFixed(0),this.$api.call("PUT","/paper",e,e=>{200==e.data.code?(this.show_success=!0,this.paper=e.data.data):Object(ke.a)({message:e.data.message,type:"error"}),this.submitting=!1})},redirectToPaper(){this.$router.push({name:"Paper",params:{slug:this.paper.slug}})},goBack(){const{back:e,forward:t}=window.history.state;if(e){if(e===this.$router.currentRoute.value.path)return this.$router.push("/subscribed");t&&this.$router.replace(e),this.$router.back()}else this.$router.push("/subscribed")}},created(){document.title="åå»ºä¸æ ",this.checkCode()}};a("c4f7");var eO=j()(Xg,[["render",function(e,t,a,r,c,s){const n=ct.a,i=_p.a,l=_p.c,d=ee.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",Lg,[c.show_success?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Sg,[Object(o.createElementVNode)("div",Tg,[Object(o.createElementVNode)("div",Ag,[Pg,Object(o.createVNode)(n,{class:"input",maxlength:"20",modelValue:c.paper_name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.paper_name=e),placeholder:"请è¾å
¥"},null,8,["modelValue"])]),Object(o.createElementVNode)("div",Dg,[Ig,Object(o.createVNode)(n,{class:"input",maxlength:"15",modelValue:c.paper_slug,"onUpdate:modelValue":t[1]||(t[1]=e=>c.paper_slug=e),placeholder:"ä»
æ¯æè±æåæ°å"},null,8,["modelValue"])]),Object(o.createElementVNode)("div",$g,[Zg,Object(o.createVNode)(l,{modelValue:c.paper_type,"onUpdate:modelValue":t[2]||(t[2]=e=>c.paper_type=e),placeholder:"è¯·éæ©"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(i,{label:"订é
å¶",value:"COLUMN"}),Object(o.createVNode)(i,{label:"ä¹°æå¶",value:"BOOKLET"})]),_:1},8,["modelValue"])]),Object(o.createElementVNode)("div",Rg,[Object(o.createElementVNode)("div",Ug,Object(o.toDisplayString)("COLUMN"==c.paper_type?"å£åº¦":"")+"å®ä»·ï¼å
ï¼",1),Object(o.createVNode)(n,{class:"input",modelValue:c.paper_price,"onUpdate:modelValue":t[3]||(t[3]=e=>c.paper_price=e),placeholder:"10 ~ 300"},null,8,["modelValue"])]),Fg,Object(o.createElementVNode)("div",zg,[Object(o.createElementVNode)("a",{class:Object(o.normalizeClass)(["btn btn-primary btn-large submit",{disable:null==this.paper_name||0==this.paper_name.length||null==this.paper_slug||0==this.paper_slug.length||null==this.paper_price||0==this.paper_price||!c.agreement_accepted}]),onClick:t[4]||(t[4]=(...e)=>s.submit&&s.submit(...e))},"æäº¤",2),Object(o.createElementVNode)("div",qg,[Object(o.createVNode)(d,{modelValue:c.agreement_accepted,"onUpdate:modelValue":t[5]||(t[5]=e=>c.agreement_accepted=e)},{default:Object(o.withCtx)(()=>[Wg]),_:1},8,["modelValue"])])])])])),c.show_success?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Gg,[Object(o.createElementVNode)("img",{class:"success_img",src:"/img/icon_check.svg"},null,8,Yg),Object(o.createElementVNode)("div",Qg,Object(o.toDisplayString)(e.type)+"å建æå",1),Kg,Object(o.createElementVNode)("div",Jg,[Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large",onClick:t[6]||(t[6]=(...e)=>s.redirectToPaper&&s.redirectToPaper(...e))},"宿")])])):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-d4a2951e"]]);const tO=e=>(Object(o.pushScopeId)("data-v-5966d479"),e=e(),Object(o.popScopeId)(),e),aO={key:0,class:"invitation"},oO=["src"],rO={class:"desc"},cO=tO(()=>Object(o.createElementVNode)("br",null,null,-1)),sO={key:0,class:"price"},nO={class:"number"},iO={class:"text"},lO={key:2,class:"used"},dO=tO(()=>Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 8.5C16 12.9183 12.4183 16.5 8 16.5C3.58172 16.5 0 12.9183 0 8.5C0 4.08172 3.58172 0.5 8 0.5C12.4183 0.5 16 4.08172 16 8.5ZM8.98672 5.3C8.98672 5.74183 8.62855 6.1 8.18672 6.1C7.74489 6.1 7.38672 5.74183 7.38672 5.3C7.38672 4.85817 7.74489 4.5 8.18672 4.5C8.62855 4.5 8.98672 4.85817 8.98672 5.3ZM8.18672 6.89974C7.74489 6.89974 7.38672 7.25791 7.38672 7.69974V11.6997C7.38672 12.1416 7.74489 12.4997 8.18672 12.4997C8.62855 12.4997 8.98672 12.1416 8.98672 11.6997V7.69974C8.98672 7.25791 8.62855 6.89974 8.18672 6.89974Z"})]),Object(o.createTextVNode)(" éè¯·é¾æ¥å·²è¢«ä½¿ç¨ ")],-1)),pO={key:1,class:"invalid"},uO=[tO(()=>Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 8.5C16 12.9183 12.4183 16.5 8 16.5C3.58172 16.5 0 12.9183 0 8.5C0 4.08172 3.58172 0.5 8 0.5C12.4183 0.5 16 4.08172 16 8.5ZM8.98672 5.3C8.98672 5.74183 8.62855 6.1 8.18672 6.1C7.74489 6.1 7.38672 5.74183 7.38672 5.3C7.38672 4.85817 7.74489 4.5 8.18672 4.5C8.62855 4.5 8.98672 4.85817 8.98672 5.3ZM8.18672 6.89974C7.74489 6.89974 7.38672 7.25791 7.38672 7.69974V11.6997C7.38672 12.1416 7.74489 12.4997 8.18672 12.4997C8.62855 12.4997 8.98672 12.1416 8.98672 11.6997V7.69974C8.98672 7.25791 8.62855 6.89974 8.18672 6.89974Z"})]),Object(o.createTextVNode)(" æ æçéè¯·é¾æ¥ ")],-1))];var mO={name:"Invitation",data:()=>
1({invitationInfo:null,invalid:!1,used:!1}),methods:{getInvitationInfo(){const{code:e}=this.$route.params;this.$api.call("GET","/invitation/"+e,{},e=>{if(200==e.data.code){this.invitationInfo=e.data.data;const{used_by:t}=this.invitationInfo;t&&(this.used=!0),console.log(this.invitationInfo)}else this.invalid=!0})},freeToReceive(){this.$api.call("POST","/invitation/"+this.invitationInfo.code+"/redeem",{},e=>{200==e.data.code?(ke.a.success("é¢åæå"),setTimeout(()=>{this.$router.push({name:"Paper",params:{slug:e.data.data.paper.slug}})},500)):Object(ke.a)({message:e.data.message,type:"error"})})},toPaper(){this.$router.push({name:"Paper",params:{slug:this.invitationInfo.paper.slug}})}},mounted(){this.getInvitationInfo()}};a("8052");var hO=j()(mO,[["render",function(e,t,a,r,c,s){return c.invitationInfo?(Object(o.openBlock)(),Object(o.createElementBlock)("div",aO,[Object(o.createElementVNode)("img",{src:c.invitationInfo.paper.avatar_url,alt:"",class:"logo"},null,8,oO),Object(o.createElementVNode)("p",rO,[Object(o.createTextVNode)(Object(o.toDisplayString)(c.invitationInfo.paper.creator.nickname)+" èµ ä½ ä¸ä»½ ",1),cO,Object(o.createTextVNode)("ã"+Object(o.toDisplayString)(c.invitationInfo.paper.name)+"ã",1)]),c.invitationInfo.price?(Object(o.openBlock)(),Object(o.createElementBlock)("p",sO,[Object(o.createElementVNode)("span",nO,Object(o.toDisplayString)(c.invitationInfo.price.price/100),1),Object(o.createElementVNode)("span",iO,"å
/"+Object(o.toDisplayString)(c.invitationInfo.price.name),1)])):Object(o.createCommentVNode)("",!0),c.used?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:1,class:"btn btn-primary btn-large block",onClick:t[0]||(t[0]=(...e)=>s.freeToReceive&&s.freeToReceive(...e))},"å
è´¹é¢å")),c.used?(Object(o.openBlock)(),Object(o.createElementBlock)("div",lO,[dO,Object(o.createElementVNode)("a",{class:"btn btn-primary btn-large block",onClick:t[1]||(t[1]=(...e)=>s.toPaper&&s.toPaper(...e))},"ç´æ¥å»ä¸æ 页é¢")])):Object(o.createCommentVNode)("",!0)])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",pO,uO))}],["__scopeId","data-v-5966d479"]]);const bO=e=>(Object(o.pushScopeId)("data-v-40626ba5"),e=e(),Object(o.popScopeId)(),e),gO={class:"redeem"},OO={class:"form"},jO={class:"item"},CO=bO(()=>Object(o.createElementVNode)("div",{class:"name"},"å
æ¢ç ",-1)),fO={class:"header"},vO=bO(()=>Object(o.createElementVNode)("div",{class:"title"},"确认å
æ¢",-1)),wO=["src"],VO=bO(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),kO={class:"desc"},yO={class:"paper"},_O={class:"title"},EO={class:"desc"},NO={key:0},BO={key:1};var HO={name:"Redeem",data:()=>({code:"",show_comfirm_drawer:!1,paper:null}),methods:{closeDrawer(){this.show_comfirm_drawer=!1}
1,submit(){this.code&&this.getRedeem()},getRedeem(){this.$api.call("GET","/redeem_code/"+this.code,{},e=>{200==e.data.code?(this.paper={...e.data.data.paper,...e.data.data},this.show_comfirm_drawer=!0):Object(ke.a)({message:e.data.message,type:"error"})})},redeemCode(){this.$api.call("POST",`/redeem_code/${this.code}/redeem`,{},e=>{200==e.data.code?(Object(ke.a)({message:e.data.message,type:"success"}),setTimeout(()=>{this.$router.push({name:"Paper",params:{slug:this.paper.slug}})},600)):Object(ke.a)({message:e.data.message,type:"error"})})}}};a("8c15");var xO=j()(HO,[["render",function(e,t,a,r,c,s){const n=ct.a,i=b.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",gO,[Object(o.createElementVNode)("div",OO,[Object(o.createElementVNode)("div",jO,[CO,Object(o.createVNode)(n,{class:"input",modelValue:c.code,"onUpdate:modelValue":t[0]||(t[0]=e=>c.code=e),placeholder:"请è¾å
¥"},null,8,["modelValue"])]),Object(o.createElementVNode)("a",{class:Object(o.normalizeClass)(["btn btn-primary btn-large submit",{disable:!c.code}]),onClick:t[1]||(t[1]=(...e)=>s.submit&&s.submit(...e))},"ç¡®å®",2)]),Object(o.createVNode)(i,{modelValue:c.show_comfirm_drawer,"onUpdate:modelValue":t[4]||(t[4]=e=>c.show_comfirm_drawer=e),direction:"btt","with-header":!1,"custom-class":"custom_drawer",size:"auto"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",fO,[vO,Object(o.createElementVNode)("img",{src:"/img/icon_close.svg",class:"close",onClick:t[2]||(t[2]=(...e)=>s.closeDrawer&&s.closeDrawer(...e))},null,8,wO)]),VO,Object(o.createElementVNode)("div",kO,[Object(o.createElementVNode)("div",yO,[Object(o.createElementVNode)("div",_O,Object(o.toDisplayString)(c.paper.name),1),Object(o.createElementVNode)("div",EO,[201==c.paper.price_type?(Object(o.openBlock)(),Object(o.createElementBlock)("span",NO,"ä¸å¹´")):Object(o.createCommentVNode)("",!0),101==c.paper.price_type?(Object(o.openBlock)(),Object(o.createElementBlock)("span",BO,"ä¸ä¸ªæ")):Object(o.createCommentVNode)("",!0)])]),Object(o.createElementVNode)("a",{class:Object(o.normalizeClass)(["btn btn-primary btn-large submit",{disable:!c.code}]),onClick:t[3]||(t[3]=(...e)=>s.redeemCode&&s.redeemCode(...e))},"å
æ¢å¹¶è¿å
¥ä¸æ ",2)])]),_:1},8,["modelValue"])])}],["__scopeId","data-v-40626ba5"]]);const MO=e=>(Object(o.pushScopeId)("data-v-50899746"),e=e(),Object(o.popScopeId)(),e),LO={class:"account"},SO={class:"balance"},TO={class:"num"},AO=MO(()=>Object(o.createElementVNode)("span",null," æ¥ç«¥å¸",-1)),PO=MO(()=>Object(o.createElementVNode)("div",{class:"desc"},[Object(o.createElementVNode)("div",{class:"title"},"说æï¼"),Object(o.createElementVNode)("p",null,"1. æ¥ç«¥å¸å¯ç¨äºç´æ¥è´ä¹°å°æ¥ç«¥å
ç䏿 å
容ï¼"),Object(o.createElementVNode)("p",null,"2. æ¥ç«¥å¸ä¸ºèæå¸ï¼å
å¼åçæ¥ç«¥å¸ä¸ä¼è¿æï¼ä½ä¸å¯éæ¢ã转让ï¼"),Object(o.createElementVNode)("p",null,[Object(o.createTextVNode)("3. å
å¼å¦éå°é®é¢ï¼è¯·"),Object(o.createElementVNode)("a",{class:"link-text",href:"https://xiaobot.net/feedback/new"},"èç³»æä»¬"),Object(o.createTextVNode)("ã")])],-1));var DO={name:"Setting.Account.balance",setup(){const{balance:e,loading:t,error:a,getBalance:o}=qo(),r=Object(J.d)();o(),document.title="è´¦æ·ä½é¢";return{balance:e,loading:t,error:a,viewBalanceHistory:()=>{r.push({name:"Setting.Account.History"})}}}};a("5075");var IO=j()(DO,[["render",function(e,t,a,r,c,s){return Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[Object(o.createElementVNode)("div",LO,[Object(o.createElementVNode)("div",SO,[Object(o.createElementVNode)("span",TO,Object(o.toDisplayString)(r.balance),1),AO,Object(o.createElementVNode)("div",{class:"tip-text",onClick:t[0]||(t[0]=(...e)=>r.viewBalanceHistory&&r.viewBalanceHistory(...e))},"æ¥çæç»")])]),PO])}],["__scopeId","data-v-50899746"]]);const $O=e=>(Object(o.pushScopeId)("data-v-fdd25ff2"),e=e(),Object(o.popScopeId)(),e),ZO={class:"history-container"},RO={key:0,class:"loading-container"},UO=[$O(()=>Object(o.createElementVNode)("div",{class:"loading-spinner"},null,-1)),$O(()=>Object(o.createElementVNode)("p",null,"å è½½ä¸...",-1))],FO={key:1,class:"empty-state"},zO=[$O(()=>Object(o.createElementVNode)("p",null,"ææ æ°æ®",-1))],qO={class:"item-info"},WO={class:"item-title"},GO={class:"item-date"},YO={class:"item-amount"},QO={key:0,class:"loading-more"},KO=[$O(()=>Object(o.createElementVNode)("div",{class:"loading-spinner small"},null,-1)),$O(()=>Object(o.createElementVNode)("span",null,"å è½½æ´å¤...",-1))],JO={key:1,class:"no-more"};var XO={name:"Setting.Account.History",data:()=>({list:[],offset:0,limit:20,loading:!1,hasMore:!0,scrollThreshold:100}),methods:{formatDate(e){if(!e)return"";return pd()(e).format("YYYY-MM-DD HH:mm")},handleScroll(){const e=this.$refs.historyList;if(!e)return;const{scrollTop:t,scrollHeight:a,clientHeight:o}=e;a-t-o<this.scrollThreshold&&this.hasMore&&!this.loading&&this.loadMoreHistory()},async loadMoreHistory(){if(!this.loading&&this.hasMore){this.loading=!0;try{const e=await Fo({offset:this.offset,limit:this.limit});if(200===e.data.code){const t=e.data.data||[];this.list=[...this.list,...t],this.offset+=t.length,this.hasMore=t.length===this.limit}else console.error("è·åè´¦æ·æç»å¤±è´¥:",e.data.message),this.hasMore=!1}catch(e){console.error("è·åè´¦æ·æç»å¼å¸¸:",e),this.hasMore=!1}finally{this.loading=!1}}},async getHistoryList(){this.list=[],this.offset=0,this.hasMore=!0,this.loading=!0;try{const e=await Fo({offset:this.offset,limit:this.limit});if(200===e.data.code){const t=e.data.data||[];this.list=t,this.offset=t.length,this.hasMore=t.length===this.limit}else console.error("è·åè´¦æ·æç»å¤±è´¥:",e.data.message)}catch(e){console.error("è·åè´¦æ·æç»å¼å¸¸:",e)}finally{this.loading=!1}}},created(){document.title="è´¦æ·æç»",this.getHistoryList()},mounted(){window.addEventListener("resize",this.handleScroll)},beforeUnmount(){window.removeEventListener("resize",this.handleScroll)}};a("b3ea");var ej=j()(XO,[["render",function(e,t,a,r,c,s){return Object(o.openBlock)(),Object(o.createElementBlock)("div",ZO,[Object(o.createElementVNode)("div",{class:"history",ref:"historyList",onScroll:t[0]||(t[0]=(...e)=>s.handleScroll&&s.handleScroll(...e))},[c.loading&&0===c.list.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",RO,UO)):0===c.list.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",FO,zO)):(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:2},[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.list,(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:t,class:"item"},[Object(o.createElementVNode)("div",qO,[Object(o.createElementVNode)("div",WO,Object(o.toDisplayString)(e.comment),1),Object(o.createElementVNode)("div",GO,Object(o.toDisplayString)(s.formatDate(e.date)),1)]),Object(o.createElementVNode)("div",YO,Object(o.toDisplayString)(e.desc),1)]))),128)),c.loading&&c.list.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",QO,KO)):Object(o.createCommentVNode)("",!0),!c.hasMore&&c.list.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",JO,"å·²ç»å°åºäº")):Object(o.createCommentVNode)("",!0)],64))],544)])}],["__scopeId","data-v-fdd25ff2"]]);const tj=e=>(Object(o.pushScopeId)("data-v-cb3cabba"),e=e(),Object(o.popScopeId)(),e),aj={"element-loading-background":"transparent",id:"posts"},oj={key:0,class:"no-data"},rj=[tj(()=>Object(o.createElementVNode)("div",{class:"no-data-text"}
1,"ææ æ¶è",-1))],cj={key:1},sj=[tj(()=>Object(o.createElementVNode)("div",{class:"no-data-text"},"å è½½ä¸",-1))],nj={key:2},ij=[tj(()=>Object(o.createElementVNode)("div",{class:"no-data-text"},"æ²¡ææ´å¤äº",-1))];var lj={setup(e){const t=Object(o.inject)("$api"),a=Object(o.inject)("$store"),r=Object(o.inject)("$router");let c=Object(o.ref)(!1),s=Object(o.ref)([]),n=Object(o.ref)(!1);Object(o.onMounted)(()=>{i(),document.addEventListener("scroll",d),document.title="æ¶è"});const i=()=>{c.value=!0,t.call("GET","/post/faved",{limit:20,offset:s.value.length},e=>{c.value=!1,200==e.data.code&&(e.data.data.length<20&&(n.value=!0),s.value=[...s.value,...e.data.data])})},l=e=>{s.value=s.value.filter(t=>t.uuid!=e.uuid)},d=()=>{const e=document.getElementById("posts");if(!e)return;const t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;n.value||c.value||t+o>=a-50&&i()},p=e=>{let t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;a.commit("position/setScrollTop",t),u(e)},u=(e,t,a)=>{r.push({name:"PostPage",params:{uuid:e.uuid},query:{scrollToComment:a}})};return(e,t)=>{const a=Wo.b;return Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",aj,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(Object(o.unref)(s),t=>(Object(o.openBlock)(),Object(o.createBlock)(_s,{key:t.uuid,post:t,paper:{...t.paper,creator:t.creator,renderType:"list"},onShowPreviewImageDialog:e.handlePictureCardPreview,onPostUnFav:l,onContentClick:p,isFav:!0},null,8,["post","paper","onShowPreviewImageDialog"]))),128)),0!=Object(o.unref)(s).length||Object(o.unref)(c)?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",oj,rj)),Object(o.unref)(c)?(Object(o.openBlock)(),Object(o.createElementBlock)("div",cj,sj)):Object(o.createCommentVNode)("",!0),Object(o.unref)(n)&&Object(o.unref)(s).length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",nj,ij)):Object(o.createCommentVNode)("",!0)],512)),[[a,Object(o.unref)(c)]])}}};a("bb36");var dj=j()(lj,[["__scopeId","data-v-cb3cabba"]]),pj=a("1b45f"),uj=(a("9455"),a("a0f7"));a("2fc6");const mj=e=>(Object(o.pushScopeId)("data-v-d007bde2"),e=e(),Object(o.popScopeId)(),e),hj={class:"collection"},bj={key:0},gj=["src"],Oj={class:"info"},jj=["innerHTML"],Cj=mj(()=>Object(o.createElementVNode)("p",{class:"desc"},"éè¯·ä½ å¡«åæ¶ä»¶å°å",-1)),fj={class:"item"},vj=mj(()=>Object(o.createElementVNode)("span",{class:"name"},"è系人",-1)),wj={class:"item"},Vj=mj(()=>Object(o.createElementVNode)("span",{class:"name"},"ææºå·",-1)),kj={key:0,class:"value"},yj={class:"item"},_j=mj(()=>Object(o.createElementVNode)("span",{class:"name"},"éæ©å°åº",-1)),Ej={class:"item",style:{"align-items":"baseline"}},Nj=mj(()=>Object(o.createElementVNode)("span",{class:"name"},"详ç»ä¿¡æ¯",-1)),Bj=mj(()=>Object(o.createElementVNode)("section",{class:"tips"},[Object(o.createElementVNode)("p",null," 注æï¼ä¸æ¦æ¨åå¨äºæ¶ä»¶å°åï¼è¯¥ä¿¡æ¯å°è¢«æä¾ç»è¯¥ä¸æ çä½è
ã该å°åçå
·ä½ä½¿ç¨æ¹å¼æ¯åºäºæ¬ä¸æ ä½è
ä¸è¯»è
ä¹é´çæç¡®çº¦å®ï¼ä¸å°æ¥ç«¥å¹³å°æ å
³ã "),Object(o.createElementVNode)("p",null,"妿æ¨å¨æ¤è¿ç¨ä¸éå°ä»»ä½é®é¢ï¼è¯·ä¸ä¸æ ä½è
è¿è¡ååãå°æ¥ç«¥å¹³å°ä¸æ¿æ
ä»»ä½å
³äºæ¤ç±»äº¤äºç责任æä¹å¡ã")],-1));var Hj=a("26fd"),xj={name:"Collection",data:()=>({paper:null,pcaData:null,address:"",options:Object(Hj.a)(),show:!1,fieldValue:"",user_pca:"",username:"",user_street_address:"",cascaderValue:"",show_bind_mobile_drawer:!1,show_bind_address_drawer:!1}),components:{BindMobileView:Ul,AppModalVue:C},computed:{canSubmit(){return this.user_pca&&this.user_street_address&&this.username&&this.isPoneAvailable(this.$store.state.user.user.mobile)}},methods:{toBindPage(){this.$router.push({name:"Setting.bind"})},closeDrawer(){this.show_bind_address_drawer=!1},isPoneAvailable:e=>!!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(e),getPaper(){const{slug:e}=this.$route.params;this.$api.call("GET","/paper/"+e,{},e=>{200==e.data.code?this.paper=e.data.data:ke.a.error(e.data.message)})},getInfo(){const{slug:e}=this.$route.params;this.$api.call("GET",`/paper/${e}/subscription/mine`,{},e=>{if(200==e.data.code){const{address:t}=e.data.data;if(t){const e=t.split("||"),a=[e[0],e[1],e[2]],o=e[3],r=e[4];this.cascaderValue=this.getCityCode(e[0],e[1],e[2]),this.user_pca=a.join("/"),this.user_street_address=o,this.username=r}}else ke.a.error(e.data.message)})},save(){const{user_pca:e,user_street_address:t,username:a}=this,o=`${e.split("/").join("||")}||${t}||${a}`,{slug:r}=this.$route.params;this.$api.call("POST",`/paper/${r}/subscription`,{address:o},e=>{200==e.data.code?ke.a.success("æ¶ä»¶å°åå·²æ´æ°"):ke.a.error(e.data.message)})},onFinish({selectedOptions:e}){this.show_bind_address_drawer=!1,this.user_pca=e.map(e=>e.text).join("/")},getCityCode:(e,t,a)=>Object(Hj.a)().filter(t=>t.text===e)[0].children.filter(e=>e.text===t)[0].children.filter(e=>e.text===a)[0].value},mounted(){this.getPaper(),this.getInfo(),document.title="å¡«åæ¶ä»¶å°å"}};a("ffe2"),a("c917");var Mj=j()(xj,[["render",function(e,t,a,r,c,s){const n=ct.a,i=uj.a,l=pj.a,d=Object(o.resolveComponent)("AppModalVue"),p=Ul;return Object(o.openBlock)(),Object(o.createElementBlock)("div",hj,[c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("header",bj,[Object(o.createElementVNode)("img",{src:c.paper.avatar_url,alt:""},null,8,gj),Object(o.createElementVNode)("div",Oj,[Object(o.createElementVNode)("p",{innerHTML:c.paper.n
1ame},null,8,jj),Cj])])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("section",null,[Object(o.createElementVNode)("div",fj,[vj,Object(o.createVNode)(n,{class:"input value",maxlength:"20",modelValue:c.username,"onUpdate:modelValue":t[0]||(t[0]=e=>c.username=e),placeholder:"åå"},null,8,["modelValue"])]),Object(o.createElementVNode)("div",wj,[Vj,s.isPoneAvailable(e.$store.state.user.user.mobile)?(Object(o.openBlock)(),Object(o.createElementBlock)("span",kj,[Object(o.createTextVNode)(Object(o.toDisplayString)(e.$store.state.user.user.mobile)+" ",1),Object(o.createElementVNode)("span",{style:{color:"#5f91b5"},onClick:t[1]||(t[1]=(...e)=>s.toBindPage&&s.toBindPage(...e))},"ï¼ä¿®æ¹ï¼")])):(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:1,class:"value bindMobile",onClick:t[2]||(t[2]=e=>c.show_bind_mobile_drawer=!0)},"ç»å®å¹¶éªè¯"))]),Object(o.createElementVNode)("div",yj,[_j,Object(o.createElementVNode)("div",{onClick:t[3]||(t[3]=e=>c.show_bind_address_drawer=!0),class:Object(o.normalizeClass)(["pca value",{active:c.user_pca}]),style:Object(o.normalizeStyle)({fontWeight:c.user_pca?"bold":"normal"})},Object(o.toDisplayString)(c.user_pca?c.user_pca:"å°åºä¿¡æ¯"),7)]),Object(o.createElementVNode)("div",Ej,[Nj,Object(o.createVNode)(i,{style:{width:"calc(100vw - 74px)","font-size":"18px","background-color":"unset","padding-left":"0"},rows:"1",type:"textarea",autosize:"",modelValue:c.user_street_address,"onUpdate:modelValue":t[4]||(t[4]=e=>c.user_street_address=e),label:"",placeholder:"è¡éé¨çä¿¡æ¯","input-align":"left"},null,8,["modelValue"])]),Object(o.createElementVNode)("a",{class:Object(o.normalizeClass)(["btn btn-primary btn-large submit",{disable:!s.canSubmit}]),onClick:t[5]||(t[5]=(...e)=>s.save&&s.save(...e))},"ä¿å",2)]),Bj,Object(o.createVNode)(d,{title:"è¯·éæ©æå¨å°åº",closeDrawer:s.closeDrawer,visible:c.show_bind_address_drawer,height:"90vh"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{"show-header":!1,modelValue:c.cascaderValue,"onUpdate:modelValue":t[6]||(t[6]=e=>c.cascaderValue=e),options:c.options,onClose:t[7]||(t[7]=e=>c.show_bind_address_drawer=!1),onFinish:s.onFinish},null,8,["modelValue","options","onFinish"])]),_:1},8,["closeDrawer","visible"]),Object(o.createVNode)(d,{visible:c.show_bind_mobile_drawer,title:"ç»å®ææºå·",closeDrawer:()=>c.show_bind_mobile_drawer=!1},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(p,{isBindMobile:!0,ref:"bind_mobile_view",onCancelClicked:t[8]||(t[8]=e=>c.show_bind_mobile_drawer=!1),showTitle:!1},null,512)]),_:1},8,["visible","closeDrawer"])])}],["__scopeId","data-v-d007bde2"]]),Lj=a("f320"),Sj=a.n(Lj),Tj=(a("b260"),a("5a4b"));const Aj={key:0,class:"my-10"},Pj={class:"jsonView"},Dj=Object(o.createTextVNode)("æäº¤");var Ij={setup(e){const t=Object(o.inject)("$api"),{hasPermission:a}=function(){const e=Object(Tj.b)(),t=Object(o.ref)(!1),a=Object(o.ref)(["1","170","10770"]),r=()=>{const o=e.state.user.user.id||"";t.value=a.value.includes(o)};return Object(o.onMounted)(async()=>{r(),Object(o.watch)(()=>e.state.user,r)}),{hasPermission:t,refreshPermission:r,checkPaperPermission:t=>(e.state.papers.list||[]).some(e=>e.slug===t)}}(),r=Object(o.reactive)({url:"",method:"get",param:""});let c=Object(o.reactive)({});const s=()=>{const{url:e,method:a,param:o}=r;try{let r={};if(o){const e=o.replace(/'/g,'"');r=JSON.parse(e),console.log(r)}t.call(a,e,r,e=>{c.value=e.data})}catch(e){console.log(e),c.value=e}};return(e,t)=>{const n=ct.a,i=Su.b,l=_p.a,d=_p.c,p=Ne.a,u=Su.a;return Object(o.unref)(a)?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Aj,[Object(o.createVNode)(u,{model:Object(o.unref)(r),"label-width":"120px"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(i,{label:"API å°å"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n,{modelValue:Object(o.unref)(r).url,"onUpdate:modelValue":t[0]||(t[0]=e=>Object(o.unref)(r).url=e),placeholder:"è¾å
¥è¯·æ±å°å"},null,8,["modelValue"])]),_:1}),Object(o.createVNode)(i,{label:"è¯·æ±æ¹å¼"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(d,{modelValue:Object(o.unref)(r).method,"onUpdate:modelValue":t[1]||(t[1]=e=>Object(o.unref)(r).method=e),placeholder:"éæ©è¯·æ±æ¹å¼"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{label:"POST",value:"post"}),Object(o.createVNode)(l,{label:"GET",value:"get"}),Object(o.createVNode)(l,{label:"PUT",value:"put"}),Object(o.createVNode)(l,{label:"DELETE",value:"delete"})]),_:1},8,["modelValue"])]),_:1}),Object(o.createVNode)(i,{label:"åæ°"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n,{rows:4,modelValue:Object(o.unref)(r).param,"onUpdate:modelValue":t[2]||(t[2]=e=>Object(o.unref)(r).param=e),placeholder:"è¾å
¥è¯·æ±åæ°",type:"textarea"},null,8,["modelValue"])]),_:1}),Object(o.unref)(c).value?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:0,label:"ååºä½"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",Pj,[Object(o.createVNode)(Object(o.unref)(Sj.a),{data:Object(o.unref)(c).value},null,8,["data"])])]),_:1})):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(i,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(p,{type:"primary",onClick:s,disabled:!Object(o.unref)(r).url},{default:Object(o.withCtx)(()=>[Dj]),_:1},8,["disabled"])]),_:1})]),_:1}
1,8,["model"])])):Object(o.createCommentVNode)("",!0)}}};a("ebab"),a("cbbe");var $j=j()(Ij,[["__scopeId","data-v-275cdb9e"]]);const Zj={class:"couponList"},Rj={key:1,class:"empty"};const Uj=a("5292");var Fj={name:"CouponList",components:{BigCoupon:Uo},data:()=>({couponList:[]}),methods:{async getCouponList(){const{data:{code:e,data:t}}=await Bo();200==e&&(this.couponList=t.map(e=>({...e,expired_at:Uj(e.expired_at).format("YYYY-MM-DD")})))}},created(){this.getCouponList(),document.title="伿 å¸"}};a("dc22");var zj=j()(Fj,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("BigCoupon");return Object(o.openBlock)(),Object(o.createElementBlock)("div",Zj,[c.couponList.length?(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,{key:0},Object(o.renderList)(c.couponList,e=>(Object(o.openBlock)(),Object(o.createBlock)(n,{coupon:e,key:e.coupon_plan_uuid},null,8,["coupon"]))),128)):(Object(o.openBlock)(),Object(o.createElementBlock)("p",Rj,"ææ ä¼æ å¸"))])}],["__scopeId","data-v-0c5c931e"]]);const qj=e=>(Object(o.pushScopeId)("data-v-aaadbfce"),e=e(),Object(o.popScopeId)(),e),Wj={class:"couponContainer"},Gj={key:0,class:"coupon"},Yj=qj(()=>Object(o.createElementVNode)("div",{class:"dividerLine"},[Object(o.createElementVNode)("div",{class:"bold"}),Object(o.createElementVNode)("div",{class:"thin"})],-1)),Qj={class:"coupon-header"},Kj=["src"],Jj=qj(()=>Object(o.createElementVNode)("div",{class:"coupon-header-info"},[Object(o.createElementVNode)("div",{class:"coupon-header-title"},"鿍ä¸å¼ 伿 å¸"),Object(o.createElementVNode)("div",{class:"coupon-header-desc"},"å¯ç¨äºè®¢é
æç䏿 ")],-1)),Xj={class:"coupon-content"},eC={class:"paper-info"},tC={class:"paper-header"},aC=["src"],oC={class:"paper-data"},rC={class:"paper-subscriber_count"},cC={class:"count"},sC=qj(()=>Object(o.createElementVNode)("div",{class:"text"},"读è
",-1)),nC={class:"paper-post_count"},iC={class:"count"},lC=qj(()=>Object(o.createElementVNode)("div",{class:"text"},"å
容",-1)),dC={class:"paper-name"},pC=["innerHTML"],uC={class:"coupon-info-data"},mC={class:"coupon-info-title"},hC=qj(()=>Object(o.createElementVNode)("div",{class:"coupon-info-desc"},[Object(o.createElementVNode)("div",null,"æ"),Object(o.createElementVNode)("div",null,"伿 å¸")],-1)),bC={class:"coupon-action"},gC=qj(()=>Object(o.createElementVNode)("svg",{width:"6",height:"40",viewBox:"0 0 6 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M1 1L1 14.1667L5 20L1 25.8333L1 39",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),OC={class:"couponFooter"},jC=["href"];var CC={data:()=>({couponList:[],coupon:null,couponId:"",paper:null,showReferRatioModel:!1}),components:{ReferModelVue:El},computed:{paperUrl(){return Object(ye.c)()+"/p/"+this.paper.slug},parsed_intro(){let e=this.paper.intro.replace(/\n/g,"<br/>");return e=e.replace(/(https?:\/\/([^\s</#)ï¼]+)[^\s<)ï¼]*)/g,(function(e,t,a){return'<a href="'+t.replace('"',"%22")+'" target="_blank">'+a+"</a>"})),e||(e="ææ ä»ç»"),e}},methods:{hideReferModel(){this.showReferRatioModel=!1},copyUrl(){if(this.$store.getters["user/is_login"]){let{toClipboard:e}=za()(),t=Object(ye.g)(this.paper.slug);if(this.coupon){const e=this.$store.state.user.user.uuid;t=Object(ye.c)()+"/coupon/"+this.coupon.uuid+"/"+e}e(t),Object(ke.a)({message:"å¤å¶æå",type:"success"})}else this.$router.replace("/wechat_auth/?redirect="+this.$route.fullPath)},showReferModel(){this.showReferRatioModel=!0},redirectToPaperPage(){setTimeout(()=>{this.$router.push({name:"Paper",params:{slug:this.coupon.paper_slug}})},300)},async claim(){if(2==this.coupon.claim_status)return Object(ke.a)("伿 å¸å·²è¿æ"),void this.redirectToPaperPage();const{data:{code:e,message:t}}=await(a=this.coupon.uuid,new Promise(e=>{Ve.a.call("POST",`/coupon_plan/${a}/claim`,{},t=>{e(t)})}));var a;200==e&&this.redirectToPaperPage(),Object(ke.a)({message:t,type:200==e?"success":"error"})},async getCouponDetail(){const e=await(t=this.couponId,new Promise(e=>{Ve.a.call("GET","/coupon_plan/"+t,{},t=>{e(t)})}));var t;const{refer:a}=this.$route.params,{data:{code:o,data:r}}=e;if(200===o){const{claimed_count:e,max_count:t,paper:o}=r;if(this.coupon=r,this.paper={...o,name:Object(ye.l)(o.name)},a){if(this.$store.getters["user/is_login"]&&this.$store.state.user.user.uuid===a)return;this.$store.commit("papers/addRefer",{slug:this.paper.slug,refer:a,time:(new Date).getTime(),refer_channel:""})}e<t&&this.$store.commit("coupon/setCoupon",r)}}},created(){const{couponId:e}=this.$route.params;e&&(this.couponId=e,this.getCouponDetail()),document.title="å
è´¹é¢å"}};a("39b1"),a("ed28");var fC=j()(CC,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("ReferModelVue");return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createElementVNode)("div",Wj,[c.coupon&&c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Gj,[Yj,Object(o.createElementVNode)("div",Qj,[Object(o.createElementVNode)("img",{src:c.paper.creator.full_avatar_url,alt:""},null,8,Kj),Jj]),Object(o.createElementVNode)("div",Xj,[Object(o.createElementVNode)("div",eC,[Object(o.createElementVNode)("div",tC,[Object(o.createElementVNode)("img",{src:c.paper.avatar_url,alt:""},null,8,aC),Object(o.createElementVNode)("div",oC,[Object(o.createElementVNode)("div",rC,[Object(o.createElementVNode)("div",cC,Object(o.toDisplayString)(c.paper.subscriber_count),1),sC]),Object(o.createElementVNode)("div",nC,[Object(o.createElementVNode)("div",iC,Object(o.toDisplayString)(c.paper.post_count),1),lC])])]),Object(o.createElementVNode)("div",dC,Object(o.toDisplayString)(c.paper.n
1ame),1),Object(o.createElementVNode)("div",{class:"paper-description",innerHTML:s.parsed_intro},null,8,pC)]),Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["coupon-info",{expired:2==c.coupon.claim_status}]),onClick:t[0]||(t[0]=(...e)=>s.claim&&s.claim(...e))},[Object(o.createElementVNode)("div",uC,[Object(o.createElementVNode)("div",mC,Object(o.toDisplayString)(10*c.coupon.pay_ratio),1),hC]),Object(o.createElementVNode)("div",bC,[gC,Object(o.createTextVNode)(" "+Object(o.toDisplayString)(2==c.coupon.claim_status?"å·²è¿æ":"ç«å³é¢"),1)])],2)])])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",OC,[c.coupon&&c.paper?(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:0,href:s.paperUrl,class:"paperLink"}," å»ä¸æ 页 ",8,jC)):Object(o.createCommentVNode)("",!0),c.paper&&c.paper.refer_ratio&&2!==c.coupon.claim_status&&c.paper.can_refer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,onClick:t[1]||(t[1]=(...e)=>s.showReferModel&&s.showReferModel(...e))}," å享æç¤¼ ")):Object(o.createCommentVNode)("",!0)])]),Object(o.createVNode)(n,{visible:c.showReferRatioModel,paper:c.paper,close:s.hideReferModel,copyPaperUrl:s.copyUrl,shareCoupon:"true"},null,8,["visible","paper","close","copyPaperUrl"])],64)}],["__scopeId","data-v-aaadbfce"]]);const vC={class:"latest-item"},wC={class:"latest-item-content"},VC=["src","alt"],kC={class:"latest-item-info"},yC={class:"latest-item-name"},_C={class:"latest-item-price"},EC={class:"latest-item-time"};var NC={props:{item:{type:Object,required:!0},onApplyRefund:{type:Function,required:!0},onCancelUnsubscribe:{type:Function,required:!0}},setup:e=>(t,a)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",vC,[Object(o.createElementVNode)("div",wC,[e.item.cover?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,src:e.item.cover,alt:e.item.name,class:"latest-item-image"},null,8,VC)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",kC,[Object(o.createElementVNode)("div",yC,Object(o.toDisplayString)(e.item.name),1),Object(o.createElementVNode)("div",_C,Object(o.toDisplayString)(e.item.price)+" æ¥ç«¥å¸",1),Object(o.createElementVNode)("div",EC,Object(o.toDisplayString)(e.item.createTime)+" 订é
",1)])]),e.item.stateDesc&&!e.item.canCancelUnsubscribe?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:Object(o.normalizeClass)(["latest-item-button",{red:e.item.canApplyToUnsubscribe,text:!e.item.canApplyToUnsubscribe&&"已鿬¾"===e.item.stateDesc}]),onClick:a[0]||(a[0]=t=>e.onApplyRefund(e.item))},Object(o.toDisplayString)(e.item.stateDesc),3)):Object(o.createCommentVNode)("",!0),e.item.canCancelUnsubscribe?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:Object(o.normalizeClass)(["latest-item-button",{red:e.item.canCancelUnsubscribe}]),onClick:a[1]||(a[1]=t=>e.onCancelUnsubscribe(e.item))}," åæ¶é订 ",2)):Object(o.createCommentVNode)("",!0)]))};a("c9fc");var BC=j()(NC,[["__scopeId","data-v-3add0944"]]);const HC={class:"p-10"},xC={key:0},MC={key:1};var LC={props:{visible:{type:Boolean,default:!1},item:{type:Object,default:null},onClose:{type:Function,default:()=>{}},onConfirm:{type:Function,default:()=>{}}},setup(e){const t=e,a=Object(o.ref)(!1),r=()=>{a.value=!1,t.onClose()},c=()=>{a.value=!1,t.onConfirm()};return Object(o.watch)(()=>t.visible,e=>{a.value=e},{immediate:!0}),(t,s)=>(Object(o.openBlock)(),Object(o.createBlock)(C,{visible:a.value,title:"ç³è¯·é订",closeDrawer:r},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",HC,[e.item&&!e.item.useCoupon?(Object(o.openBlock)(),Object(o.createElementBlock)("p",xC," ç³è¯·é订åï¼ä¼æäººå·¥å¨ 24 å°æ¶å
å®¡æ ¸ï¼èåæ¥é¡ºå»¶ï¼ãå®¡æ ¸éè¿åï¼æ¥ç«¥å¸å°è¿åæ¨çè´¦æ·ã ")):(Object(o.openBlock)(),Object(o.createElementBlock)("p",MC," ç³è¯·é订åï¼ä¼æäººå·¥å¨ 24 å°æ¶å
å®¡æ ¸ï¼èåæ¥é¡ºå»¶ï¼ãå®¡æ ¸éè¿åï¼æ¥ç«¥å¸å°è¿åæ¨çè´¦æ·ï¼ä¼æ å¸ä½¿ç¨åå°æ æ³éè¿ã ")),Object(o.createElementVNode)("div",{onClick:c,class:"comfirm-btn"},"确认ç³è¯·é款")])]),_:1},8,["visible"]))}};a("5056");var SC=j()(LC,[["__scopeId","data-v-3af8be22"]]);const TC=e=>(Object(o.pushScopeId)("data-v-ef5693c0"),e=e(),Object(o.popScopeId)(),e),AC=TC(()=>Object(o.createElementVNode)("div",{class:"latest-tip"},[Object(o.createTextVNode)(" æç¤ºï¼ "),Object(o.createElementVNode)("p",null,"å表åªå±ç¤ºæè¿ 24 å°æ¶å
æ¯ææ çç±é款订å"),Object(o.createElementVNode)("p",null,"鿬¾ç³è¯·å°å¨ 24 å°æ¶å
å®¡æ ¸å®æ¯ãå®¡æ ¸éè¿åï¼æ¬¾é¡¹å°åè·¯éåã"),Object(o.createElementVNode)("p",null,[Object(o.createTextVNode)("妿åè¡¨æ²¡ææ¾å°ä½ ç订åï¼
1ç¹æ¤"),Object(o.createElementVNode)("a",{href:"https://xiaobot.net/feedback/new"},"èç³»æä»¬")])],-1)),PC={key:0,class:"latest-tip"},DC=[TC(()=>Object(o.createElementVNode)("p",null,"ææ è´ä¹°è®°å½",-1))];var IC={setup(e){const t=Object(o.ref)([]),a=Object(o.ref)(!1),r=Object(o.ref)(null),c=async()=>{const e=await new Promise(e=>{Ve.a.call("GET","/user/paper_subscription_order/myLatest",{},t=>{e(t)})});t.value=e.data.data},s=async e=>{e.canApplyToUnsubscribe&&(r.value=e,a.value=!0)},n=async()=>{if(r.value){200===(await(e=r.value.id,new Promise(t=>{Ve.a.call("POST",`/paper_subscription_order/${e}/unsubscribe`,{},e=>{t(e)})}))).data.code&&(await c(),l())}var e},i=async e=>{if(e.canCancelUnsubscribe){200===(await(t=e.id,new Promise(e=>{Ve.a.call("POST",`/paper_subscription_order/${t}/cancel_unsubscribe`,{},t=>{e(t)})}))).data.code&&await c()}var t},l=()=>{a.value=!1,r.value=null};return Object(o.onMounted)(()=>{c()}),(e,c)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",null,[AC,Object(o.createElementVNode)("div",null,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(t.value,(e,a)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e.id||a},[Object(o.createVNode)(BC,{item:e,class:Object(o.normalizeClass)({no_border:a===t.value.length-1}),onApplyRefund:s,onCancelUnsubscribe:i},null,8,["item","class"])]))),128)),0==t.value.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",PC,DC)):Object(o.createCommentVNode)("",!0)]),Object(o.createVNode)(SC,{visible:a.value,onClose:l,onConfirm:n,item:r.value},null,8,["visible","item"])]))}};a("2e34");var $C=j()(IC,[["__scopeId","data-v-ef5693c0"]]);var ZC={name:"pay"};var RC=j()(ZC,[["render",function(e,t,a,r,c,s){return Object(o.openBlock)(),Object(o.createElementBlock)("div")}]]);const UC=e=>(Object(o.pushScopeId)("data-v-62685094"),e=e(),Object(o.popScopeId)(),e),FC={class:"share-paper"},zC={key:0,class:"loading"},qC=[UC(()=>Object(o.createElementVNode)("div",{class:"spinner"},null,-1)),UC(()=>Object(o.createElementVNode)("div",{class:"text"},"çæä¸...",-1))],WC={key:1,class:"share-paper-card-created"},GC={class:"share-paper-card"},YC={key:2,class:"refer-text"},QC=Object(o.createTextVNode)(" å½æäººéè¿ä½ çå享è´ä¹°æ¬ä¸æ æ¶ï¼"),KC=UC(()=>Object(o.createElementVNode)("br",null,null,-1)),JC=Object(o.createTextVNode)(" å
¶å®é
æ¯ä»éé¢ç "),XC={class:"refer-ratio"},ef=Object(o.createTextVNode)(" ï¼ä¼è½¬å
¥å°ä½ çå°æ¥ç«¥é±å
ã ");var tf={setup(e){const t=Object(J.c)(),a=Object(o.ref)(!0),{uuid:r,refer_channel:c}=t.params,s=Object(o.ref)(null),n=Object(o.ref)(null);Object(o.onMounted)(()=>{Ve.a.call("GET","/paper/"+r,{refer_channel:c||""},async e=>{200===e.data.code&&(s.value=e.data.data,n.value&&n.value.setPaper(s.value))})});const i=()=>{a.value=!1};return(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",FC,[a.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",zC,qC)):(Object(o.openBlock)(),Object(o.createElementBlock)("div",WC,"å¶ä½å®æï¼å¯é¿æä¿åå¾çå享")),Object(o.createElementVNode)("div",GC,[Object(o.createVNode)(ot,{type:"sharePage",created:i,ref:(e,t)=>{t.share_paper_card=e,n.value=e}},null,512)]),s.value&&s.value.refer_ratio>0&&!s.value.isNotAllowBuy&&s.value.can_refer?(Object(o.openBlock)(),Object(o.createElementBlock)("div",YC,[QC,KC,JC,Object(o.createElementVNode)("span",XC,Object(o.toDisplayString)(100*s.value.refer_ratio)+"%",1),ef])):Object(o.createCommentVNode)("",!0)]))}};a("28da");var af=j()(tf,[["__scopeId","data-v-62685094"]]);const of=e=>(Object(o.pushScopeId)("data-v-7c33608d"),e=e(),Object(o.popScopeId)(),e),rf={class:"share-post"},cf={key:0,class:"loading"},sf=[of(()=>Object(o.createElementVNode)("div",{class:"spinner"},null,-1)),of(()=>Object(o.createElementVNode)("div",{class:"text"},"çæä¸...",-1))],nf={key:1,class:"share-post-card-created"},lf={class:"share-post-card"};var df={setup(e){const t=Object(J.c)(),a=Object(o.ref)(!0),{uuid:r,refer_channel:c}=t.params,s=Object(o.ref)(null),n=Object(o.ref)(null);Object(o.onMounted)(()=>{Ve.a.call("GET","/post/"+r,{refer_channel:c||""},async e=>{200===e.data.code&&(s.value=e.data.data,n.value&&n.value.setPost(s.value))})});const i=()=>{a.value=!1};return(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",rf,[a.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",cf,sf)):(Object(o.openBlock)(),Object(o.createElementBlock)("div",nf," å¶ä½å
1®æï¼å¯é¿æä¿åå¾çå享 ")),Object(o.createElementVNode)("div",lf,[Object(o.createVNode)(rt.a,{type:"sharePage",created:i,ref:(e,t)=>{t.share_post_card=e,n.value=e}},null,512)])]))}};a("d062");var pf=j()(df,[["__scopeId","data-v-7c33608d"]]);var uf={setup(e){const t=Object(J.c)(),{type:a,uuid:r}=t.params;return document.title="å享",(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",null,["paper"===Object(o.unref)(a)?(Object(o.openBlock)(),Object(o.createBlock)(af,{key:0,uuid:Object(o.unref)(r)},null,8,["uuid"])):Object(o.createCommentVNode)("",!0),"post"===Object(o.unref)(a)?(Object(o.openBlock)(),Object(o.createBlock)(pf,{key:1,uuid:Object(o.unref)(r)},null,8,["uuid"])):Object(o.createCommentVNode)("",!0)]))}};const mf=e=>(Object(o.pushScopeId)("data-v-07876ee7"),e=e(),Object(o.popScopeId)(),e),hf={class:"settings"},bf={class:"setting"},gf=mf(()=>Object(o.createElementVNode)("span",{class:"name"},"å·²ç»å®ææºå·",-1)),Of={key:0,class:"value"},jf={key:1,class:"value"},Cf=["src"],ff={class:"setting"},vf=mf(()=>Object(o.createElementVNode)("span",{class:"name"},"å·²ç»å®é®ç®±",-1)),wf={key:0,class:"value"},Vf={key:1,class:"value"},kf=["src"],yf={key:0,class:"p-10"},_f={key:1,class:"p-10"};var Ef={setup(e){const{proxy:t}=Object(o.getCurrentInstance)(),a=Object(o.ref)(null),r=Object(o.ref)(X.a.state.user.user),c=Object(o.ref)(!1),s=Object(o.computed)(()=>""!==r.value.mobile&&r.value.mobile!==r.value.wechat_open_id),n=Object(o.computed)(()=>""!==r.value.email&&r.value.email!==r.value.wechat_open_id),i=Object(o.ref)(!1),l=Object(o.ref)(!1),d=Object(o.ref)(""),p=()=>{s.value?(d.value="phone",c.value=!0):(l.value=!1,i.value=!0,a.value&&(a.value.isMail=!1))},u=()=>{n.value?(d.value="mail",c.value=!0):(l.value=!0,i.value=!0,setTimeout(()=>{var e,t;null!==(e=a.value)&&void 0!==e&&e.isMail||(null===(t=a.value)||void 0===t||t.changeBind())},100))},m=()=>{t.$api.call("POST","/account/unbind_email",{},e=>{200==e.data.code?(r.value.email=e.data.data.email,X.a.commit("user/setUser",r),c.value=!1,Object(ke.a)({message:e.data.message,type:"success"})):Object(ke.a)({message:e.data.message,type:"error"})})},h=()=>{c.value=!1,d.value=""},b=async()=>{const e=await Object(fr.d)();200==e.data.code?(ke.a.success(e.data.message),c.value=!1,r.value.mobile=""):ke.a.error(e.data.messsage||"è§£ç»å¤±è´¥")};return Object(o.onMounted)(()=>{document.title="è´¦æ·å®å
¨"}),(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",hf,[Object(o.createElementVNode)("div",bf,[gf,Object(o.createElementVNode)("div",{class:"content",onClick:p},[Object(o.unref)(s)?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Of,Object(o.toDisplayString)(r.value.mobile),1)):(Object(o.openBlock)(),Object(o.createElementBlock)("span",jf,"æªç»å®")),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,Cf)])]),Object(o.createElementVNode)("div",ff,[vf,Object(o.createElementVNode)("div",{class:"content",onClick:u},[Object(o.unref)(n)?(Object(o.openBlock)(),Object(o.createElementBlock)("span",wf,Object(o.toDisplayString)(r.value.email),1)):(Object(o.openBlock)(),Object(o.createElementBlock)("span",Vf,"æªç»å®")),Object(o.createElementVNode)("img",{src:"/img/icon_arrow_right.svg",class:"icon_arrow"},null,8,kf)])]),Object(o.createVNode)(C,{key:"unbind",visible:c.value,title:"phone"==d.value?"ç¡®è®¤è§£ç»ææºå·":"确认解ç»é®ç®±",closeDrawer:h},{default:Object(o.withCtx)(()=>["phone"==d.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",yf,[Object(o.createElementVNode)("p",null,"è§£é¤ "+Object(o.toDisplayString)(r.value.mobile)+" ç»å®åï¼å½åè´¦å·ä¸¢å¤±å°æ æ³æ¾åï¼æ¯å¦ç»§ç»è§£ç»ï¼",1),Object(o.createElementVNode)("div",{onClick:b,class:"comfirm-btn"},"确认")])):Object(o.createCommentVNode)("",!0),"mail"==d.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",_f,[Object(o.createElementVNode)("p",null,"è§£é¤ "+Object(o.toDisplayString)(r.value.email)+" ç»å®åï¼å½åè´¦å·ä¸¢å¤±å°æ æ³æ¾åï¼æ¯å¦ç»§ç»è§£ç»ï¼",1),Object(o.createElementVNode)("div",{onClick:m,class:"comfirm-btn"},"确认")])):Object(o.createCommentVNode)("",!0)]),_:1}
1,8,["visible","title"]),Object(o.createVNode)(C,{visible:i.value,title:l.value?"ç»å®é®ç®±":"ç»å®ææºå·",closeDrawer:()=>i.value=!1},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Ul,{isBindMobile:!0,ref:(e,t)=>{t.bind_mobile_view=e,a.value=e},onCancelClicked:t[0]||(t[0]=e=>i.value=!1),showTitle:!1},null,512)]),_:1},8,["visible","title","closeDrawer"])]))}};a("a01b");var Nf=j()(Ef,[["__scopeId","data-v-07876ee7"]]),Bf=a("4f14"),Hf=a.n(Bf),xf=a("91a4"),Mf=a.n(xf);var Lf=new class{constructor(e={}){this.defaultConfig={baseURL:"",timeout:3e4,retryCount:3,retryDelay:1e3,headers:{"Content-Type":"application/json"},signConfig:{enabled:!1,secret:"",appId:null},getUserId:()=>null,errorHandlers:{onBusinessError:null,onHttpError:null,onNetworkError:null,onAuthError:null},logging:{enabled:!1,requestLog:!0,responseLog:!0}},this.config=this.mergeConfig(this.defaultConfig,e),this.service=Hf.a.create({baseURL:this.config.baseURL,timeout:this.config.timeout,headers:this.config.headers}),this.setupInterceptors()}mergeConfig(e,t){const a={...e};for(const e in t)null===t[e]||"object"!=typeof t[e]||Array.isArray(t[e])?a[e]=t[e]:a[e]=this.mergeConfig(a[e]||{},t[e]);return a}createSign(e){if(!this.config.signConfig.enabled||!this.config.signConfig.secret)return"";try{e&&"object"==typeof e||(e={});const t=JSON.stringify(e),a=Mf.a.enc.Base64.stringify(Mf.a.enc.Utf8.parse(t));return Mf.a.HmacSHA256(a,this.config.signConfig.secret).toString()}catch(e){return console.error("Failed to create signature:",e),""}}setupInterceptors(){this.service.interceptors.request.use(e=>{try{const a="get"===e.method?e.params:e.data;if(this.config.getUserId&&"function"==typeof this.config.getUserId){const t=this.config.getUserId();t&&("get"===e.method?e.params={...e.params,uid:t}:e.data={...e.data,uid:t})}if(this.config.signConfig.enabled){const t="get"===e.method?e.params:e.data,a=this.createSign(t||{});a&&(e.headers.Authorization="Bearer "+a),this.config.signConfig.appId&&(e.headers.AppID=this.config.signConfig.appId)}var t;if(e.metadata={startTime:Date.now()},this.config.logging.enabled&&this.config.logging.requestLog)console.group(`ð API Request: ${null===(t=e.method)||void 0===t?void 0:t.toUpperCase()} ${e.url}`),console.log("ð Data:",a),console.groupEnd();return e}catch(e){return console.error("Request interceptor error:",e),Promise.reject(e)}},e=>(console.error("Request Error:",e),Promise.reject(e))),this.service.interceptors.response.use(e=>{const{data:t,config:a}=e;if(this.config.logging.enabled&&this.config.logging.responseLog){var o,r;const e=Date.now()-((null===(o=a.metadata)||void 0===o?void 0:o.startTime)||Date.now());console.group(`â
API Response: ${null===(r=a.method)||void 0===r?void 0:r.toUpperCase()} ${a.url}`),console.log("ð¥ Response:",t),console.log("â±ï¸ Duration:",e+"ms"),console.groupEnd()}return t&&"object"==typeof t&&void 0!==t.code?0===t.code?t:(this.handleBusinessError(t,a),Promise.reject(new Error(t.message||"请æ±å¤±è´¥"))):t},e=>(console.error("Response Error:",e),this.handleHttpError(e),Promise.reject(e)))}handleBusinessError(e,t={}){this.config.errorHandlers.onBusinessError&&this.config.errorHandlers.onBusinessError(e,t)}handleHttpError(e){if(!e.response)return void(this.config.errorHandlers.onNetworkError&&this.config.errorHandlers.onNetworkError(e));const{status:t}=e.response;401===t&&this.config.errorHandlers.onAuthError?this.config.errorHandlers.onAuthError(e):this.config.errorHandlers.onHttpError&&this.config.errorHandlers.onHttpError(e)}createApiMethod(e,t="post"){return async(a={})=>{try{const o={method:t,url:e,["get"===t?"params":"data"]:a};return await this.service(o)}catch(t){throw console.error(`API request failed for ${e}:`,t),t}}}createApiMethods(e){const t={};for(const[a,o]of Object.entries(e))"string"==typeof o?t[a]=this.createApiMethod(o):"object"==typeof o&&(t[a]=this.createApiMethod(o.url,o.method||"post"));return t}async request(e){return await this.service(e)}async get(e,t={}){return await this.service.get(e,{params:t})}async post(e,t={}){return await this.service.post(e,t)}async put(e,t={}){return await this.service.put(e,t)}async delete(e,t={}){return await this.service.delete(e,{params:t})}updateConfig(e){this.config=this.mergeConfig(this.config,e),this.service.defaults.baseURL=this.config.baseURL,this.service.defaults.timeout=this.config.timeout,Object.assign(this.service.defaults.headers,this.config.headers)}}({baseURL:"https://support.flomoapp.com",timeout:3e4,signConfig:{enabled:!0,secret:"QX5qj5ZxjX7ZY5j5",appId:1002},getUserId:()=>{var e;return(null===(e=X.a.state.user.user)||void 0===e?void 0:e.id)||null},errorHandlers:{onBusinessError:(e,t)=>
1{const{code:a,message:o}=e,r={1001:"ç»å½å·²è¿æï¼è¯·éæ°ç»å½",1002:"ç»å½å·²è¿æï¼è¯·éæ°ç»å½",1003:"æéä¸è¶³",1004:"åæ°é误",1005:"æå¡å¨ç¹å¿ï¼è¯·ç¨åéè¯"}[a]||o||"æä½å¤±è´¥";console.log("Business Error Message:",r)},onHttpError:e=>{const{status:t,data:a}=e.response,o=(null==a?void 0:a.message)||{400:"请æ±åæ°é误",401:"æªææï¼è¯·éæ°ç»å½",403:"æéä¸è¶³ï¼æ æ³è®¿é®",404:"请æ±çèµæºä¸åå¨",408:"请æ±è¶
æ¶ï¼è¯·éè¯",429:"请æ±è¿äºé¢ç¹ï¼è¯·ç¨åéè¯",500:"æå¡å¨å
é¨é误",502:"ç½å
³é误",503:"æå¡ææ¶ä¸å¯ç¨",504:"ç½å
³è¶
æ¶"}[t]||`请æ±å¤±è´¥ (${t})`;console.log("HTTP Error Message:",o)},onNetworkError:e=>{console.log("Network Error:",e)},onAuthError:e=>{console.log("Auth Error:",e)}}}).createApiMethods({createFeedback:"/api/v1/sdk/feedback/create",feedbackConversation:"/api/v1/sdk/feedback/chat",getFeedbackDetail:"/api/v1/sdk/feedback/detail",getUserFeedbackList:"/api/v1/sdk/feedback/list",markFeedbackAsResolved:"/api/v1/sdk/feedback/solved",getOssSts:"/api/v1/sdk/aliyun/getoss"});const Sf={class:"feedback-header"},Tf={key:0},Af={key:0,class:"feedback-content"},Pf={key:1},Df={class:"feedback-role"},If={class:"feedback-content"},$f={key:0},Zf=(e=>(Object(o.pushScopeId)("data-v-31f7f8a2"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("h4",null,"éä»¶ï¼",-1)),Rf=["src"],Uf=["href"];var Ff={props:{feed:{type:Object,required:!0},isChat:{type:Boolean,default:!1}},setup(e){const t=e,a=Object(o.computed)(()=>X.a.state.user.user||{}),r=Object(o.computed)(()=>{const{status:e,status_by_role:a}=t.feed;return"solved"===e?"已解å³":"closed"===e?"å·²å
³é":"å¾
åå¤"}),c=()=>{AV.push({name:"Feedback.Detail",params:{id:t.feed.order_no}})};return(t,s)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"feedback-item",onClick:c},[Object(o.createElementVNode)("div",Sf,[Object(o.createElementVNode)("div",null,Object(o.toDisplayString)(Object(o.unref)(pd.a)(e.feed.last_chat_at).format("YYYY-MM-DD HH:mm")),1),e.isChat?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Tf,Object(o.toDisplayString)(Object(o.unref)(r)),1))]),e.isChat?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Pf,[Object(o.createElementVNode)("p",Df,Object(o.toDisplayString)("user"===e.feed.role?Object(o.unref)(a).nickname:"å°æ¥ç«¥"),1),Object(o.createElementVNode)("p",If,Object(o.toDisplayString)(e.feed.content),1),e.feed.files&&e.feed.files.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",$f,[Zf,(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.feed.files,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e.id,class:"feedback-file"},["image"==e.file_type?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,src:e.file_url,alt:"",style:{"max-width":"200px"}},null,8,Rf)):(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:1,href:e.file_url,target:"_blank"},"ç¹å»ä¸è½½",8,Uf))]))),128))])):Object(o.createCommentVNode)("",!0)])):(Object(o.openBlock)(),Object(o.createElementBlock)("p",Af,Object(o.toDisplayString)(e.feed.title),1))]))}};a("773c");var zf=j()(Ff,[["__scopeId","data-v-31f7f8a2"]]);const qf={class:"feedback-list"},Wf={key:0},Gf={key:1,class:"no-feedback"};var Yf={setup(e){const t=Object(o.ref)([]);return Object(o.onMounted)(()=>{(async()=>{try{const e=await Lf.getUserFeedbackList();t.value=e.data.list||[]}catch(e){console.error("Failed to fetch feedback list:",e)}})()}),(e,a)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",qf,[t.value.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Wf,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(t.value,e=>(Object(o.openBlock)(),Object(o.createBlock)(zf,{feed:e,key:e.order_no},null,8,["feed"]))),128))])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Gf,"ææ åé¦è®°å½"))]))}};a("99fa");var Qf=j()(Yf,[["__scopeId","data-v-58933f36"]]),Kf=(a("20e3"),a("38ab"),a("a9fc")),Jf=a("fbe4"),Xf=a("30d9"),ev=a("dde0"),tv=a("872f"),av=a("1605"),ov=a("9251"),rv=a("2ffc");const cv=e=>(Object(o.pushScopeId)("data-v-3659da9a"),e=e(),Object(o.popScopeId)(),e),sv={class:"feedback-form"},nv=["onSubmit"],iv={key:0,class:"form-group"},lv=cv(()=>Object(o.createElementVNode)("label",{for:"feedbackType"},"åé¦ç±»å",-1)),dv=[cv(()=>Object(o.createElementVNode)("option",{value:"account"},"䏿 é订åè´¦å·",-1)),cv(()=>Object(o.createElementVNode)("option",{value:"doc"},"åä½è
æå¡",-1)),cv(()=>Object(o.createElementVNode)("option",{value:"bug"},"bugåé¦",-1)),cv(()=>Object(o.createElementVNode)("option",{value:"invoice"},"å票ç¸å
³",-1))],pv={class:"form-group"},uv=cv(()=>Object(o.createElementVNode)("label",{for:"content"},"å
容",-1)),mv={class:"form-group"},hv=cv(()=>Object(o.createElementVNode)("label",null,"éä»¶ï¼å¯éï¼",-1)),bv=cv(()=>Object(o.createElementVNode)("div",{class:"upload-text"},[Object(o.createElementVNode)("p",null,"ç¹å»ä¸ä¼ "),Object(o.createElementVNode)("p",{class:"upload-hint"},"æ¯æå¾çãè§é¢æ ¼å¼ï¼å个æä»¶ä¸è¶
è¿50MBï¼æå¤10个æä»¶")],-1)),gv={class:"upload-button"},Ov=Object(o.createTextVNode)(" éæ©æä»¶ "),jv={key:0,class:"upload-progress"},Cv={class:"progress-text"},fv={key:1,class:"file-list"},vv={class:"file-list-header"},wv={class:"file-icon"},Vv={class:"file-info"},kv={class:"file-name"},yv={class:"file-details"},_v={class:"file-size"},Ev=Object(o.createTextVNode)("çå¾
ä¸ä¼ "),Nv=Object(o.createTextVNode)("ä¸ä¼ æå"),Bv=Object(o.createTextVNode)("ä¸ä¼ 失败"),Hv={key:0,class:"file-progress"},xv={class:"file-actions"},Mv={key:0,class:"file-loading"},Lv=["onClick"],Sv=["disabled"],Tv=Object(o.createTextVNode)(" æäº¤ä¸... "),Av=Object(o.createTextVNode)(" ä¸ä¼ ä¸ï¼è¯·ç¨å... "),Pv=Object(o.createTextVNode)(" æäº¤åé¦ ");var Dv={props:{orderNo:{type:String,default:""},refreshList:{type:Function,default:null},type:{type:String,default:"doc"}},setup(e){const t=e,a=Object(o.ref)(t.type),r=Object(o.ref)(""),c=Object(o.ref)([]),s=Object(o.ref)(null),n=Object(o.ref)(new Set),i=Object(o.ref)(null),l=Object(o.ref)(!1),d=Object(o.ref)(!1),p=Object(o.computed)(()=>{const e=c.value.filter(e=>"uploading"===e.status);if(0===e.length)return 0;const t=e.reduce((e,t)=>
1e+(t.progress||0),0);return Math.round(t/e.length)}),u=e=>e&&e.type?e.type.startsWith("image/")?ev.a:e.type.startsWith("video/")?tv.a:Xf.a:Xf.a,m=e=>{if(!e||0===e)return"0 Bytes";if("number"!=typeof e||isNaN(e))return"æªç¥å¤§å°";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB"][t]},h=e=>{const t=Array.from(e.target.files);b(t)},b=e=>{const t=e.filter(e=>e&&"object"==typeof e&&e.name?(e=>{if(!e||!e.name||void 0===e.size)return ke.a.error("æä»¶ä¿¡æ¯ä¸å®æ´"),!1;return e.size>52428800?(ke.a.error(`æä»¶ ${e.name} 大å°è¶
è¿50MBéå¶`),!1):!(!e.type||!["image/","video/"].some(t=>e.type.startsWith(t)))||(ke.a.error(`æä»¶ ${e.name} æ ¼å¼ä¸æ¯æï¼è¯·ä¸ä¼ å¾çæè§é¢æä»¶`),!1)})(e):(ke.a.error("æ£æµå°æ ææä»¶ï¼è¯·éæ°éæ©"),!1));t.length===e.length&&(c.value.length+t.length>10?ke.a.warning("æå¤åªè½ä¸ä¼ 10个æä»¶"):(t.forEach(e=>{e.type||(e.type="application/octet-stream"),e.id=`${e.name}-${e.lastModified||Date.now()}-${Math.random().toString(36).slice(2)}`,e.status="pending",e.progress=0,c.value.push(e)}),O(t),i.value&&(i.value.value="")))},g=(e,t)=>{const a=c.value.findIndex(t=>t.id===e);if(-1!==a){const e=c.value[a];c.value[a]={...e,...t,id:e.id,name:e.name,size:e.size,type:e.type,lastModified:e.lastModified}}},O=async e=>{for(const t of e)if(!n.value.has(t.id)){console.log("åå¤ä¸ä¼ æä»¶:",{id:t.id,name:t.name,size:t.size,type:t.type});try{g(t.id,{status:"uploading",progress:0});const e=await j(t);if(e&&e.url){g(t.id,{status:"uploaded",url:e.url,progress:100}),n.value.add(t.id);const a=c.value.find(e=>e.id===t.id);console.log("ä¸ä¼ æååçæä»¶ç¶æ:",{id:null==a?void 0:a.id,name:null==a?void 0:a.name,size:null==a?void 0:a.size,status:null==a?void 0:a.status,url:null==a?void 0:a.url})}else g(t.id,{status:"error",progress:0}),ke.a.error((t.name||"æä»¶")+" ä¸ä¼ 失败")}catch(e){g(t.id,{status:"error",progress:0}),console.error("æä»¶ä¸ä¼ 失败:",e),ke.a.error(`${t.name||"æä»¶"} ä¸ä¼ 失败: ${e.message}`)}}},j=async e=>{try{if(C(s.value)){const e=await Lf.getOssSts(),{access_key_id:t,access_key_secret:a,expiration:o,security_token:r}=e.data;s.value={access_key_id:t,access_key_secret:a,expiration:o,security_token:r}}const t=pd()().format("YYYYMMDD"),a=new Jf({bucket:"union-resource",region:"oss-cn-shanghai",accessKeyId:s.value.access_key_id,accessKeySecret:s.value.access_key_secret,stsToken:s.value.security_token}),r=Date.now(),c=Math.random().toString(36).slice(2),n=e.name||"unknown_file",i=`${r}_${c}.${n.includes(".")?n.split(".").pop():"bin"}`,l=await a.put(`1002/${t}/${i}`,e,{progress:t=>{const a=Math.round(100*t);Object(o.nextTick)(()=>{g(e.id,{progress:a})})}});return console.log("ä¸ä¼ ç»æ:",l),l}catch(e){throw console.error("ä¸ä¼ æä»¶å¤±è´¥:",e),e}},C=e=>{if(!e)return!0;const t=new Date(e.expiration),a=new Date;return t.getTime()-a.getTime()<=6e4},f=e=>{e.preventDefault(),l.value=!0},v=e=>{e.preventDefault(),e.relatedTarget&&e.currentTarget.contains(e.relatedTarget)||(l.value=!1)},w=e=>{e.preventDefault()},V=e=>{e.preventDefault(),l.value=!1;const t=Array.from(e.dataTransfer.files);t.length>0&&b(t)},k=()=>{var e;null===(e=i.value)||void 0===e||e.click()},y=()=>{const e=window.navigator.userAgent.toLowerCase();return e.includes("edg")?"Edge":e.includes("chrome")?"Chrome":e.includes("firefox")?"Firefox":e.includes("safari")&&!e.includes("chrome")?"Safari":e.includes("trident")||e.includes("msie")?"Internet Explorer":e.includes("micromessenger")&&e.includes("miniprogram")?"Miniprogram":e.includes("micromessenger")?"WeChat":"Unknown"},_=async()=>{if(d.value)return;if(!a.value||!r.value)return void ke.a.warning("请填ååé¦ç±»ååå
容");if(c.value.filter(e=>"uploading"===e.status).length>0)return void ke.a.warning("请çå¾
æä»¶ä¸ä¼ 宿");const e=c.value.filter(e=>"uploaded"===e.status&&e.url).map(e=>({file_url:e.url,file_type:e.type&&e.type.startsWith("image")?"image":e.type&&e.type.startsWith("video")?"video":"other"}));d.value=!0;try{if(t.orderNo)return await Lf.feedbackConversation({order_no:t.orderNo,content:r.value,files:e}),t.refreshList&&t.refreshList(),r.value="",c.value=[],void n.value.clear();await Lf.createFeedback({content:r.value,files:e,feedback_type:a.value,platform:"web-"+y(),version:"1.0.0"}),ke.a.success("åé¦æäº¤æå"),AV.push({name:"Feedback.List"})}catch(e){var o;console.error("æäº¤åé¦å¤±è´¥:",e),ke.a.error((null==e||null===(o=e.response)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.message)||"æäº¤åé¦å¤±è´¥ï¼è¯·ç¨åéè¯")}finally{d.value=!1}};return(t,s)=>{const b=A.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",sv,[Object(o.createElementVNode)("form",{onSubmit:Object(o.withModifiers)(_,["prevent"])},[e.orderNo?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",iv,[lv,Object(o.withDirectives)(Object(o.createElementVNode)("select",{"onUpdate:modelValue":s[0]||(s[0]=e=>a.value=e),id:"feedbackType",required:""},dv,512),[[o.vModelSelect,a.value]])])),Object(o.createElementVNode)("div",pv,[uv,Object(o.withDirectives)(Object(o.createElementVNode)("textarea",{"onUpdate:modelValue":s[1]||(s[1]=e=>r.value=e),id:"content",rows:"5",required:"",placeholder:"è¯·è¯¦ç»æè¿°æ¨çåé¦å
容..."},null,512),[[o.vModelText,r.value]])]),Object(o.createElementVNode)("div",mv,[hv,Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["upload-area",{"drag-over":l.value}]),onDragenter:f,onDragleave:v,onDragover:w,onDrop:V,onClick:k},[Object(o.createElementVNode)("input",{type:"file",accept:"image/*,video/*",ref:(e,t)=>{t.fileInput=e,i.value=e},id:"files",multiple:"",onChange:h,style:{display:"none"}},null,544),bv,Object(o.createElementVNode)("div",gv,[Object(o.createVNode)(b,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(av.a))]),_:1}),Ov])],34),Object(o.unref)(p)>0&&Object(o.unref)(p)<100?(Object(o.openBlock)(),Object(o.createElementBlock)("div",jv,[Object(o.createVNode)(Object(o.unref)(Kf.a),{percentage:Object(o.unref)(p),"show-text":!0},null,8,["percentage"]),Object(o.createElementVNode)("span",Cv,"æ£å¨ä¸ä¼ ... "+Object(o.toDisplayString)(Object(o.unref)(p))+"%",1)])):Object(o.createCommentVNode)("",!0),c.value.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",fv,[Object(o.createElementVNode)("div",vv,[Object(o.createElementVNode)("h4",null,"已鿩æä»¶ ("+Object(o.toDisplayString)(c.value.length)+"/10)",1)]),(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.value,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e.id,class:"file-item"},[Object(o.createElementVNode)("div",wv,[Object(o.createVNode)(b,{size:24},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(u(e))))]),_:2},1024)]),Object(o.createElementVNode)("div",Vv,[Object(o.createElementVNode)("div",kv,Object(o.toDisplayString)(e.name||"æªç¥æä»¶"),1),Object(o.createElementVNode)("div",yv,[Object(o.createElementVNode)("span",_v,Object(o.toDisplayString)(m(e.size||0)),1),Object(o.createElementVNode)("span",{class:Object(o.normalizeClass)(["file-status",e.status])},["pending"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[Ev],64)):"uploading"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Object(o.createTextVNode)("ä¸ä¼ ä¸ "+Object(o.toDisplayString)(e.progress)+"%",1)],64)):"uploaded"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:2},[Nv],64)):"error"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:3},[Bv],64)):Object(o.createCommentVNode)("",!0)],2)]),"uploading"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Hv,[Object(o.createVNode)(Object(o.unref)(Kf.a),{percentage:e.progress||0,"show-text":!1,"stroke-width":3},null,8,["percentage"])])):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",xv,["uploading"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Mv,[Object(o.createVNode)(b,{class:"rotating"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(ov.a))]),_:1})])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"file-remove",onClick:t=>{return a=e.id,c.value=c.value.filter(e=>e.id!==a),void n.value.delete(a);var a}},[Object(o.createVNode)(b,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(rv.a))]),_:1})],8,Lv))])]))),128))])):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("button",{type:"submit",class:"submit-btn",disabled:d.value||c.value.some(e=>"uploading"===e.status)},[d.value?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[Object(o.createVNode)(b,{class:"rotating"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(ov.a))]),_:1}),Tv],64)):c.value.some(e=>"uploading"===e.status)?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Object(o.createVNode)(b,{class:"rotating"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(ov.a))]),_:1}),Av],64)):(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:2},[Pv],64))],8,Sv)],40,nv)])}}};a("87a8");var Iv=j()(Dv,[["__scopeId","data-v-3659da9a"]]);const $v={class:"feedback-detail"},Zv={key:0,class:"mb-20"},Rv={key:0,class:"next-step"},Uv={class:"next-step-title"}
1,Fv=(e=>(Object(o.pushScopeId)("data-v-1b61ecac"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("div",null,"ä¸ä¸æ¥",-1)),zv={key:0,class:"next-step-options"},qv={key:1,class:"feedback-loading"};var Wv={setup(e){const t=Object(o.ref)(null),a=Object(o.ref)(!1),r=Object(o.ref)(""),c=async()=>{try{const e=await Lf.getFeedbackDetail({order_no:r.value});t.value=e.data.detail||null}catch(e){console.error("Failed to fetch feedback detail:",e)}},s=()=>{a.value=!0},n=async()=>{if(t.value)try{await Lf.markFeedbackAsResolved({order_no:t.value.order_no}),t.value.status="solved"}catch(e){console.error("Failed to update feedback status:",e)}};return Object(o.onMounted)(()=>{const{id:e}=Object(J.c)().params;r.value=e,c()}),(e,r)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",$v,[t.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Zv,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(t.value.chats,e=>(Object(o.openBlock)(),Object(o.createBlock)(zf,{key:e.id,feed:e,isChat:""},null,8,["feed"]))),128)),"closed"!==t.value.status&&"solved"!==t.value.status?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Rv,[Object(o.createElementVNode)("div",Uv,[Fv,a.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"cancel",onClick:r[0]||(r[0]=e=>a.value=!1)},"åæ¶")):Object(o.createCommentVNode)("",!0)]),a.value?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",zv,[Object(o.createElementVNode)("div",{class:"next-step-option",onClick:s},"ç»§ç»åå¤"),Object(o.createElementVNode)("div",{class:"next-step-option",onClick:n},"已解å³")]))])):Object(o.createCommentVNode)("",!0),a.value?(Object(o.openBlock)(),Object(o.createBlock)(Iv,{key:1,"order-no":t.value.order_no,"refresh-list":c},null,8,["order-no"])):Object(o.createCommentVNode)("",!0)])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",qv,"å è½½ä¸..."))]))}};a("b56f");var Gv=j()(Wv,[["__scopeId","data-v-1b61ecac"]]);const Yv={class:"feedback-new"};var Qv={setup(e){const t=Object(J.c)().query.type||"doc",a=()=>{AV.push({name:"Feedback.List"})};return(e,r)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",Yv,[Object(o.createVNode)(Iv,{type:Object(o.unref)(t)},null,8,["type"]),Object(o.createElementVNode)("div",{class:"history-feedback",onClick:a},"åå²åé¦")]))}};a("56f6");var Kv=j()(Qv,[["__scopeId","data-v-06a0cee9"]]),Jv=a("6c49");const Xv=e=>(Object(o.pushScopeId)("data-v-0b618e7e"),e=e(),Object(o.popScopeId)(),e),ew={class:"apply-form"},tw=["onSubmit"],aw={class:"form-group"},ow=Xv(()=>Object(o.createElementVNode)("label",{for:"name"},"䏿 åç§°",-1)),rw={class:"form-group"},cw=Xv(()=>Object(o.createElementVNode)("label",{for:"positioning"},"å
容å®ä½ï¼ä¸å°äº 20 åï¼",-1)),sw={class:"form-group"},nw=Xv(()=>Object(o.createElementVNode)("label",{for:"bio"},"èªæä»ç»ï¼ä¸å°äº 20 åï¼",-1)),iw={class:"form-group"},lw=Xv(()=>Object(o.createElementVNode)("label",{for:"marketing_approach"},"æ¨å¹¿æè·¯ï¼ä¸å°äº 20 åï¼",-1)),dw={class:"form-group"},pw=Xv(()=>Object(o.createElementVNode)("label",{for:"how_do_you_know"},"ä»åªéç¥éçå°æ¥ç«¥",-1)),uw={class:"form-group"},mw=Xv(()=>Object(o.createElementVNode)("label",null,"ç²ä¸éè¯æï¼ç¤¾äº¤åªä½å¹³å°åå°æªå¾ï¼éæ»è®¡è¾¾å° 3000 ç²ä¸ä»¥ä¸ï¼",-1)),hw=Xv(()=>Object(o.createElementVNode)("div",{class:"upload-text"},[Object(o.createElementVNode)("p",null,"ç¹å»ä¸ä¼ "),Object(o.createElementVNode)("p",{class:"upload-hint"},"ä»
æ¯æå¾çï¼æå¤æ¯æ 5 å¼ ")],-1)),bw={class:"upload-button"},gw=Object(o.createTextVNode)(" éæ©æä»¶ "),Ow={key:0,class:"upload-progress"},jw={class:"progress-text"},Cw={key:1,class:"file-list"},fw={class:"file-list-header"},vw={class:"file-icon"},ww={class:"file-info"},Vw={class:"file-name"},kw={class:"file-details"},yw={class:"file-size"},_w=Object(o.createTextVNode)("çå¾
ä¸ä¼ "),Ew=Object(o.createTextVNode)("ä¸ä¼ æå"),Nw=Object(o.createTextVNode)("ä¸ä¼ 失败"),Bw={key:0,class:"file-progress"},Hw={class:"file-actions"},xw={key:0,class:"file-loading"},Mw=["onClick"],Lw=Xv(()=>Object(o.createElementVNode)("div",{class:"form-group apply-intro",style:{"font-size":"12px",color:"var(--text-placeholder)","margin-bottom":"24px"}},[Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("b",null," å¼éå°æ¥ç«¥ä¸æ 伿ä¸äºå®¡æ ¸é¨æ§ã ")]),Object(o.createElementVNode)("ul",null,[Object(o.createElementVNode)("li",null,"å
¨ç½ç²ä¸å¨ 3000 以ä¸çåä½è
ï¼å¯ç´æ¥ç³è¯·å¼é"),Object(o.createElementVNode)("li",null,"å
¨ç½ç²ä¸å¨ 3000 以ä¸çåä½è
ï¼è¯·è¯¦ç»å¡«åå使¹åï¼æä»¬ä¼æ ¹æ®ç³è¯·å
容å主é¢é
æ
å¼é"),Object(o.createElementVNode)("li",null,"ææ¶è¿æªæèªåªä½çæå请ççï¼è®©æä»¬æäº§åæç£¨å¥½ã")])],-1)),Sw=["disabled"],Tw=Object(o.createTextVNode)(" ä¸ä¼ ä¸ï¼è¯·ç¨å... "),Aw=Object(o.createTextVNode)(" æäº¤ç³è¯· ");var Pw={setup(e){const t=Object(o.ref)(),a=Object(o.ref)(""),r=Object(o.ref)(""),c=Object(o.ref)(""),s=Object(o.ref)(""),n=Object(o.ref)([]),i=Object(o.ref)(null),l=Object(o.ref)(new Set),d=Object(o.ref)(null),p=Object(o.ref)(!1),u=Object(o.ref)(!1),m=Object(o.computed)(()=>{const e=n.value.filter(e=>"uploading"===e.status);if(0===e.length)return 0;const t=e.reduce((e,t)=>
1e+(t.progress||0),0);return Math.round(t/e.length)}),h=e=>e&&e.type?e.type.startsWith("image/")?ev.a:e.type.startsWith("video/")?tv.a:Xf.a:Xf.a,b=e=>{if(!e||0===e)return"0 Bytes";if("number"!=typeof e||isNaN(e))return"æªç¥å¤§å°";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB"][t]},g=e=>{const t=Array.from(e.target.files);O(t)},O=e=>{const t=e.filter(e=>e&&"object"==typeof e&&e.name?(e=>{if(!e||!e.name||void 0===e.size)return ke.a.error("æä»¶ä¿¡æ¯ä¸å®æ´"),!1;return e.size>52428800?(ke.a.error(`æä»¶ ${e.name} 大å°è¶
è¿50MBéå¶`),!1):!(!e.type||!["image/","video/"].some(t=>e.type.startsWith(t)))||(ke.a.error(`æä»¶ ${e.name} æ ¼å¼ä¸æ¯æï¼è¯·ä¸ä¼ å¾çæè§é¢æä»¶`),!1)})(e):(ke.a.error("æ£æµå°æ ææä»¶ï¼è¯·éæ°éæ©"),!1));t.length===e.length&&(n.value.length+t.length>5?ke.a.warning("æå¤åªè½ä¸ä¼ 5 个æä»¶"):(t.forEach(e=>{e.type||(e.type="application/octet-stream"),e.id=`${e.name}-${e.lastModified||Date.now()}-${Math.random().toString(36).slice(2)}`,e.status="pending",e.progress=0,n.value.push(e)}),C(t),d.value&&(d.value.value="")))},j=(e,t)=>{const a=n.value.findIndex(t=>t.id===e);if(-1!==a){const e=n.value[a];n.value[a]={...e,...t,id:e.id,name:e.name,size:e.size,type:e.type,lastModified:e.lastModified}}},C=async e=>{for(const t of e)if(!l.value.has(t.id)){console.log("åå¤ä¸ä¼ æä»¶:",{id:t.id,name:t.name,size:t.size,type:t.type});try{j(t.id,{status:"uploading",progress:0});const e=await f(t);if(e&&e.url){j(t.id,{status:"uploaded",url:e.url,progress:100}),l.value.add(t.id);const a=n.value.find(e=>e.id===t.id);console.log("ä¸ä¼ æååçæä»¶ç¶æ:",{id:null==a?void 0:a.id,name:null==a?void 0:a.name,size:null==a?void 0:a.size,status:null==a?void 0:a.status,url:null==a?void 0:a.url})}else j(t.id,{status:"error",progress:0}),ke.a.error((t.name||"æä»¶")+" ä¸ä¼ 失败")}catch(e){j(t.id,{status:"error",progress:0}),console.error("æä»¶ä¸ä¼ 失败:",e),ke.a.error(`${t.name||"æä»¶"} ä¸ä¼ 失败: ${e.message}`)}}},f=async e=>{try{if(v(i.value)){const e=await Lf.getOssSts(),{access_key_id:t,access_key_secret:a,expiration:o,security_token:r}=e.data;i.value={access_key_id:t,access_key_secret:a,expiration:o,security_token:r}}const t=pd()().format("YYYYMMDD"),a=new Jf({bucket:"union-resource",region:"oss-cn-shanghai",accessKeyId:i.value.access_key_id,accessKeySecret:i.value.access_key_secret,stsToken:i.value.security_token}),r=Date.now(),c=Math.random().toString(36).slice(2),s=e.name||"unknown_file",n=`${r}_${c}.${s.includes(".")?s.split(".").pop():"bin"}`,l=await a.put(`application/${t}/${n}`,e,{progress:t=>{const a=Math.round(100*t);Object(o.nextTick)(()=>{j(e.id,{progress:a})})}});return console.log("ä¸ä¼ ç»æ:",l),l}catch(e){throw console.error("ä¸ä¼ æä»¶å¤±è´¥:",e),e}},v=e=>{if(!e)return!0;const t=new Date(e.expiration),a=new Date;return t.getTime()-a.getTime()<=6e4},w=e=>{e.preventDefault(),p.value=!0},V=e=>{e.preventDefault(),e.relatedTarget&&e.currentTarget.contains(e.relatedTarget)||(p.value=!1)},k=e=>{e.preventDefault()},y=e=>{e.preventDefault(),p.value=!1;const t=Array.from(e.dataTransfer.files);t.length>0&&O(t)},_=()=>{var e;null===(e=d.value)||void 0===e||e.click()},E=async()=>{if(u.value)return;if(!a.value||a.value.length<20)return void ke.a.error("å
容å®ä½ä¸å°äº20å");if(!r.value||r.value.length<20)return void ke.a.error("èªæä»ç»ä¸å°äº20å");if(!c.value||c.value.length<20)return void ke.a.error("æ¨å¹¿æè·¯ä¸å°äº20å");if(0===n.value.length)return void ke.a.error("请ä¸ä¼ è³å°ä¸ä¸ªèº«ä»½è¯ææä»¶");if(n.value.filter(e=>"uploading"===e.status).length>0)return void ke.a.warning("请çå¾
æä»¶ä¸ä¼ 宿");const e=n.value.filter(e=>"uploaded"===e.status&&e.url).map(e=>e.url);for(let t=0;t<e.length;t++)e[t]=e[t].replace("http://union-resource.oss-cn-shanghai.aliyuncs.com/application/","");try{u.value=!0;const o=await Object(Jv.a)({name:t.value,positioning:a.value,bio:r.value,marketing_approach:c.value,how_do_you_know:s.value,proof_identity:e});200!==o.data.code?ke.a.error(o.data.message||"æäº¤ç³è¯·å¤±è´¥ï¼è¯·ç¨åéè¯"):(ke.a.success("æäº¤ç³è¯·æå"),setTimeout(()=>{N()},300))}catch(e){console.error("æäº¤ç³è¯·å¤±è´¥:",e),ke.a.error("æäº¤ç³è¯·å¤±è´¥ï¼è¯·ç¨åéè¯")}finally{setTimeout(()=>{u.value=!1},300)}},N=()=>{AV.push({name:"Apply.List"})};return(e,i)=>{const u=A.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",ew,[Object(o.createElementVNode)("form",{onSubmit:Object(o.withModifiers)(E,["prevent"])},[Object(o.createElementVNode)("div",aw,[ow,Object(o.withDirectives)(Object(o.createElementVNode)("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=e=>t.value=e),id:"name",required:"",placeholder:"å®ä½æ¸
æ°ãææä¸å£çåå"},null,512),[[o.vModelText,t.value]])]),Object(o.createElementVNode)("div",rw,[cw,Object(o.withDirectives)(Object(o.createElementVNode)("textarea",{"onUpdate:modelValue":i[1]||(i[1]=e=>a.value=e),id:"positioning",rows:"5",required:"",placeholder:"请详ç»è®²è¿°å
容å®ä½æ¯ä»ä¹ï¼å伿¯è°ï¼ä¸ºå
¶å¸¦æ¥ç价弿¯ä»ä¹ã\n以åä½ä¸ºä½è
ï¼èªå·±å¨è¿æ¹é¢æä½ç»éªï¼æç®æä¹ç»è¥ã",minlength:"20"},null,512),[[o.vModelText,a.value]])]),Object(o.createElementVNode)("div",sw,[nw,Object(o.withDirectives)(Object(o.createElementVNode)("textarea",{"onUpdate:modelValue":i[2]||(i[2]=e=>r.value=e),id:"bio",rows:"5",required:"",placeholder:"详ç»è®²è®²ä½ çèæ¯ç»åï¼ä¸ºä½æ³åè¿ä»¶äºï¼ä¸ºä½æ
é¿åè¿ä»¶äºï¼\n妿æå·²ç»å表çä»è´¹æè
å
è´¹å
容ï¼ä¹å¯ä»¥éä¸é¾æ¥ã\n\nè¶è¯¦ç»å®¡æ ¸è¶å¿«ï¼å¦è¿åç®ç¥åä¸äºå¼é",minlength:"20"},null,512),[[o.vModelText,r.value]])]),Object(o.createElementVNode)("div",iw,[lw,Object(o.withDirectives)(Object(o.createElementVNode)("textarea",{"onUpdate:modelValue":i[3]||(i[3]=e=>c.value=e),id:"marketing_approach",rows:"5",required:"",placeholder:"彿ä¸äºå
容åï¼æç®æä¹æ¨å¹¿ï¼æä»ä¹è®¡åï¼",minlength:"20"},null,512),[[o.vModelText,c.value]])]),Object(o.createElementVNode)("div",dw,[pw,Object(o.withDirectives)(Object(o.createElementVNode)("textarea",{"onUpdate:modelValue":i[4]||(i[4]=e=>s.value=e),id:"how_do_you_know",rows:"5",required:"",placeholder:"好å¥ä¸ï¼ä½ ä»åªéç¥ææä»¬çå¢ï¼~"},null,512),[[o.vModelText,s.value]])]),Object(o.createElementVNode)("div",uw,[mw,Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["upload-area",{"drag-over":p.value}]),onDragenter:w,onDragleave:V,onDragover:k,onDrop:y,onClick:_},[Object(o.createElementVNode)("input",{type:"file",accept:"image/*",ref:(e,t)=>{t.fileInput=e,d.value=e},id:"files",multiple:"",onChange:g,style:{display:"none"}},null,544),hw,Object(o.createElementVNode)("div",bw,[Object(o.createVNode)(u,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(av.a))]),_:1}),gw])],34),Object(o.unref)(m)>0&&Object(o.unref)(m)<100?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ow,[Object(o.createVNode)(Object(o.unref)(Kf.a),{percentage:Object(o.unref)(m),"show-text":!0},null,8,["percentage"]),Object(o.createElementVNode)("span",jw,"æ£å¨ä¸ä¼ ... "+Object(o.toDisplayString)(Object(o.unref)(m))+"
1%",1)])):Object(o.createCommentVNode)("",!0),n.value.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Cw,[Object(o.createElementVNode)("div",fw,[Object(o.createElementVNode)("h4",null,"已鿩æä»¶ ("+Object(o.toDisplayString)(n.value.length)+"/10)",1)]),(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(n.value,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e.id,class:"file-item"},[Object(o.createElementVNode)("div",vw,[Object(o.createVNode)(u,{size:24},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(h(e))))]),_:2},1024)]),Object(o.createElementVNode)("div",ww,[Object(o.createElementVNode)("div",Vw,Object(o.toDisplayString)(e.name||"æªç¥æä»¶"),1),Object(o.createElementVNode)("div",kw,[Object(o.createElementVNode)("span",yw,Object(o.toDisplayString)(b(e.size||0)),1),Object(o.createElementVNode)("span",{class:Object(o.normalizeClass)(["file-status",e.status])},["pending"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[_w],64)):"uploading"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Object(o.createTextVNode)("ä¸ä¼ ä¸ "+Object(o.toDisplayString)(e.progress)+"%",1)],64)):"uploaded"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:2},[Ew],64)):"error"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:3},[Nw],64)):Object(o.createCommentVNode)("",!0)],2)]),"uploading"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Bw,[Object(o.createVNode)(Object(o.unref)(Kf.a),{percentage:e.progress||0,"show-text":!1,"stroke-width":3},null,8,["percentage"])])):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Hw,["uploading"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("div",xw,[Object(o.createVNode)(u,{class:"rotating"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(ov.a))]),_:1})])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"file-remove",onClick:t=>{return a=e.id,n.value=n.value.filter(e=>e.id!==a),void l.value.delete(a);var a}},[Object(o.createVNode)(u,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(rv.a))]),_:1})],8,Mw))])]))),128))])):Object(o.createCommentVNode)("",!0)]),Lw,Object(o.createElementVNode)("button",{type:"submit",class:"submit-btn",disabled:n.value.some(e=>"uploading"===e.status)},[n.value.some(e=>"uploading"===e.status)?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[Object(o.createVNode)(u,{class:"rotating"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(ov.a))]),_:1}),Tw],64)):(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Aw],64))],8,Sw),Object(o.createElementVNode)("div",{class:"form-footer",onClick:N},"ç³è¯·åå²")],40,tw)])}}};a("abd9");var Dw=j()(Pw,[["__scopeId","data-v-0b618e7e"]]),Iw=(a("8168"),a("c70c")),$w=a("dcd0"),Zw=a("349d");const Rw=e=>(Object(o.pushScopeId)("data-v-ee1337ce"),e=e(),Object(o.popScopeId)(),e),Uw={class:"apply-list-container"},Fw={key:0,class:"loading-state"},zw=Rw(()=>Object(o.createElementVNode)("p",null,"æ£å¨å è½½ç³è¯·è®°å½...",-1)),qw={key:1,class:"empty-state"},Ww=Rw(()=>Object(o.createElementVNode)("p",null,"ææ ç³è¯·è®°å½",-1)),Gw={key:2,class:"card-list"},Yw={class:"card-header"},Qw={class:"header"},Kw={class:"card-title"},Jw={key:0,class:"paper-link"},Xw=Rw(()=>Object(o.createElementVNode)("strong",null,"䏿 åå»ºé¾æ¥ï¼",-1)),eV=["href"],tV={class:"card-body"},aV={class:"info-grid"},oV={class:"info-item"},rV=Rw(()=>Object(o.createElementVNode)("strong",{class:"info-label"},"䏿 å®ä½ï¼",-1)),cV={class:"info-content"},sV={class:"info-item"},nV=Rw(()=>Object(o.createElementVNode)("strong",{class:"info-label"},"èªæä»ç»ï¼",-1)),iV={class:"info-content"},lV={class:"info-item full-width"},dV=Rw(()=>Object(o.createElementVNode)("strong",{class:"info-label"},"æ¨å¹¿æè·¯ï¼",-1)),pV={class:"info-content"},uV={class:"info-item full-width"},mV=Rw(()=>Object(o.createElementVNode)("strong",{class:"info-label"},"äºè§£æ¸ éï¼",-1)),hV={class:"info-content"},bV={class:"info-item"},gV=Rw(()=>Object(o.createElementVNode)("strong",{class:"info-label"}
1,"ç³è¯·æ¶é´ï¼",-1)),OV={class:"info-content"},jV={class:"proof-section"},CV=Rw(()=>Object(o.createElementVNode)("strong",{class:"info-label"},"èº«ä»½è¯æï¼",-1)),fV={key:0,class:"proof-files"},vV={class:"image-placeholder"},wV=["href"],VV={class:"file-name"},kV={key:1,class:"no-proof"},yV=[Rw(()=>Object(o.createElementVNode)("p",null,"æªæä¾è¯ææä»¶",-1))],_V={key:0,class:"rejection-reason"},EV=Rw(()=>Object(o.createElementVNode)("strong",null,"æç»åå ï¼",-1));var NV={setup(e){const t=Object(o.ref)([]),a=Object(o.ref)(!0),r={Pending:{text:"å¾
å®¡æ ¸",icon:Iw.a,class:"status-pending"},Approved:{text:"å·²éè¿",icon:Be.a,class:"status-approved"},Rejected:{text:"å·²æç»",icon:$w.a,class:"status-rejected"},Active:{text:"å·²å¼é",icon:Be.a,class:"status-active"}},c=e=>r[e]||{text:"æªç¥ç¶æ",icon:Zw.a,class:"status-unknown"},s=e=>{if(!e)return Xf.a;const t=e.split(".").pop().toLowerCase();return["jpg","jpeg","png","gif","webp","svg"].includes(t)?"image":Xf.a};Object(o.computed)(()=>t.value.flatMap(e=>e.proof_identity.filter(e=>"image"===s(e))));return Object(o.onMounted)(async()=>{try{const e=await Object(Jv.b)();t.value=e.data.data||[]}catch(e){console.error("è·åç³è¯·è®°å½å¤±è´¥:",e),ke.a.error("è·åç³è¯·è®°å½å¤±è´¥ï¼è¯·ç¨åéè¯")}finally{a.value=!1}}),(e,r)=>{const n=A.a;return Object(o.openBlock)(),Object(o.createElementBlock)("div",Uw,[a.value?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Fw,[Object(o.createVNode)(n,{class:"loading-icon is-loading"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(ov.a))]),_:1}),zw])):0===t.value.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",qw,[Object(o.createVNode)(n,{class:"empty-icon"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(Zw.a))]),_:1}),Ww,Object(o.createElementVNode)("button",{class:"apply-button",onClick:r[0]||(r[0]=t=>e.$router.push({name:"Apply"}))},"ç«å³ç³è¯·")])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Gw,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(t.value,(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:t,class:"apply-card"},[Object(o.createElementVNode)("div",Yw,[Object(o.createElementVNode)("div",Qw,[Object(o.createElementVNode)("h2",Kw,Object(o.toDisplayString)(e.name),1),Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["status-badge",c(e.open_status).class])},[Object(o.createVNode)(n,{class:"status-icon"},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(c(e.open_status).icon)))]),_:2},1024),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(c(e.open_status).text),1)],2)]),"Approved"===e.open_status&&e.invitation_link?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Jw,[Xw,Object(o.createElementVNode)("div",null,[Object(o.createElementVNode)("a",{href:"https://xiaobot.net/create_paper/"+e.invitation_link,rel:"noopener noreferrer"}," ç¹å»åå»ºä¸æ ",8,eV)])])):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",tV,[Object(o.createElementVNode)("div",aV,[Object(o.createElementVNode)("div",oV,[rV,Object(o.createElementVNode)("p",cV,Object(o.toDisplayString)(e.positioning),1)]),Object(o.createElementVNode)("div",sV,[nV,Object(o.createElementVNode)("p",iV,Object(o.toDisplayString)(e.bio),1)]),Object(o.createElementVNode)("div",lV,[dV,Object(o.createElementVNode)("p",pV,Object(o.toDisplayString)(e.marketing_approach),1)]),Object(o.createElementVNode)("div",uV,[mV,Object(o.createElementVNode)("p",hV,Object(o.toDisplayString)(e.how_do_you_know),1)]),Object(o.createElementVNode)("div",bV,[gV,Object(o.createElementVNode)("p",OV,Object(o.toDisplayString)(e.create_time),1)])]),Object(o.createElementVNode)("div",jV,[CV,e.proof_identity&&e.proof_identity.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",fV,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.proof_identity,(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:t,class:"file-preview"},["image"===s(e)?(Object(o.openBlock)(),Object(o.createBlock)(Object(o.unref)(jc.a),{key:0,src:e,fit:"cover",class:"proof-image",lazy:""},{placeholder:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",vV,[Object(o.createVNode)(n,null,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(ov.a))]),_:1})])]),_:2}
1,1032,["src"])):(Object(o.openBlock)(),Object(o.createElementBlock)("a",{key:1,href:e,target:"_blank",rel:"noopener noreferrer",class:"proof-file-link"},[Object(o.createVNode)(n,{class:"file-icon"},{default:Object(o.withCtx)(()=>[(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(s(e))))]),_:2},1024),Object(o.createElementVNode)("span",VV,"æ¥çæä»¶ "+Object(o.toDisplayString)(t+1),1)],8,wV))]))),128))])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",kV,yV))])]),"Rejected"===e.open_status&&e.remark?(Object(o.openBlock)(),Object(o.createElementBlock)("div",_V,[Object(o.createVNode)(n,{class:"rejection-icon"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(Object(o.unref)(Zw.a))]),_:1}),Object(o.createElementVNode)("div",null,[EV,Object(o.createElementVNode)("p",null,Object(o.toDisplayString)(e.remark),1)])])):Object(o.createCommentVNode)("",!0)]))),128))]))])}}};a("a19b");var BV=j()(NV,[["__scopeId","data-v-ee1337ce"]]);const HV={class:"refuse-container"},xV=[Object(o.createTextVNode)(" æ¨ç䏿 ç³è¯·ææ¶æ æ³éè¿ï¼å¦å¯¹ç»ææçé®ï¼è¯·èç³»"),Object(o.createElementVNode)("a",{class:"help_link",href:"https://xiaobot.net/feedback/new?type=doc"},"人工客æ",-1),Object(o.createTextVNode)("æ"),Object(o.createElementVNode)("a",{class:"help_link",href:"https://xiaobot.net/apply"},"éæ°ç³è¯·ä¸æ ",-1)];var MV={setup:e=>(document.title="䏿 å¼éç»æåç¥ - å°æ¥ç«¥",(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",HV,xV)))};a("910c");function LV(e,t,a){var o;o=e.params.slug,(X.a.state.papers.list||[]).some(e=>e.slug===o)?a():a("/p/"+e.params.slug)}var SV=[{path:"/wechat_auth",name:"WechatAuth",component:Ee,meta:{showGlobalNav:!1,desc:""}},{path:"/login/success",name:"LoginSuccess",component:De,meta:{showGlobalNav:!1,desc:"ç»å½æå"}},{path:"/p/:slug/intro",name:"PaperIntro",component:()=>a.e("chunk-5100576d").then(a.bind(null,"e4fe")),meta:{desc:"ç®ä»",showGlobalNav:!0}},{path:"/p/:slug/:showPublish?",name:"Paper",component:Hl,meta:{desc:"",title:"",showGlobalNav:!1,keepAlive:!0,scrollTop:0,scrollPosition:{x:0,y:0}}},{path:"/share/:type/:uuid/:refer_channel?",name:"Share",component:uf,meta:{desc:"å享",title:"å享",showGlobalNav:!1}},{path:"/subscribed/:subscribe_type?",name:"Home",component:ip,meta:{showGlobalNav:!1,desc:"",keepAlive:!0,scrollPosition:{x:0,y:0}}},{path:"/setting",name:"Setting",component:yp,meta:{requiresAuth:!0,showGlobalNav:!0,desc:"æç"}},{path:"/setting/delivery",name:"Setting.Delivery",component:Wp,meta:{requiresAuth:!0,desc:"æé设置",showGlobalNav:!0}},{path:"/setting/user",name:"Setting.User",component:ju,meta:{requiresAuth:!0,desc:"个人信æ¯",showGlobalNav:!0}},{path:"/setting/bind",name:"Setting.bind",component:Nf,meta:{requiresAuth:!0,desc:"è´¦å·å®å
¨",showGlobalNav:!0}},{path:"/setting/account/balance",name:"Setting.Account.Balance",component:IO,meta:{requiresAuth:!0,desc:"è´¦æ·",title:"æ¥ç«¥å¸è´¦æ·",showGlobalNav:!0}},{path:"/setting/account/history",name:"Setting.Account.History",component:ej,meta:{requiresAuth:!0,desc:"æ¥ç«¥å¸æç»",title:"",showGlobalNav:!0}},{path:"/p/:slug/subscriber",name:"SubscriberList",component:Lu,meta:{requiresAuth:!0,desc:"读è
",showGlobalNav:!0},beforeEnter:LV},{path:"/wallet",name:"Wallet",component:_m,meta:{requiresAuth:!0,desc:"æ¶å
¥",showGlobalNav:!0}},{path:"/wallet/history",name:"WalletHistory",component:gh,meta:{requiresAuth:!0,desc:"é±å
æç»",showGlobalNav:!0}},{path:"/p/:slug/setting",name:"PaperSetting",component:Jh,meta:{requiresAuth:!0,desc:"管ç |",showGlobalNav:!0},beforeEnter:LV},{path:"/p/:slug/tags",name:"TagManagement",component:db,meta:{requiresAuth:!0,desc:"æ ç¾ |",showGlobalNav:!0},beforeEnter:LV},{path:"/post/:uuid",name:"PostPage",component:mb,meta:{desc:"详æ
",showGlobalNav:!0,keepAlive:!0,scrollPosition:{x:0,y:0}}},{path:"/p/:slug/setting/price",name:"PriceSetting",component:Rb,meta:{requiresAuth:!0,desc:"å®ä»· |",showGlobalNav:!0},beforeEnter:LV},{path:"/post/detail/:uuid",name:"PostDetail",component:zb,meta:{requiresAuth:!0,desc:"详æ
",showGlobalNav:!0}},{path:"/search",name:"SearchPage",component:xg,meta:{requiresAuth:!0,desc:"æç´¢",showGlobalNav:!1,keepAlive:!1,scrollTop:0}},{path:"/create_paper/:code",name:"CreatePaper",component:eO,meta:{requiresAuth:!0,desc:"å建",showGlobalNav:!0}},{path:"/invitation/:code",name:"Invitation",component:hO,meta:{requiresAuth:!0,desc:"å
è´¹é¢å",showGlobalNav:!0}},{path:"/setting/redeem",name:"Redeem",component:xO,meta:{requiresAuth:!0,desc:"å
æ¢ç ",showGlobalNav:!0}},{path:"/setting/fav",name:"Setting.Fav",component:dj,meta:{requiresAuth:!0,desc:"æ¶è",showGlobalNav:!0}},{path:"/p/:slug/address",name:"Collection",component:Mj,meta:{requiresAuth:!0,desc:"å¡«åæ¶ä»¶å°å",showGlobalNav:!0}},{path:"/test_api",name:"TestApi",component:$j,meta:{requiresAuth:!0,desc:"æµè¯æ¥å£",showGlobalNav:!0}},{path:"/setting/coupon",name:"Setting.Coupon",component:zj,meta:{requiresAuth:!0,desc:"伿 å¸",showGlobalNav:!0}},{path:"/coupon/:couponId/:refer?",name:"Coupon",component:fC,meta:{requiresAuth:!0,desc:"å
è´¹é¢å",showGlobalNav:!0}},{path:"/miniprogram/pay",name:"MiniProgramPay",component:RC,meta:{requiresAuth:!0,desc:"æ¯ä»",showGlobalNav:!1}},{path:"/my_latest",name:"MyLatest",component:$C,meta:{requiresAuth:!0,desc:"é订",showGlobalNav:!0}},{path:"/feedback",name:"Feedback.List",component:Qf,meta:{requiresAuth:!0,desc:"åé¦ä¸å¸®å©",showGlobalNav:!0}},{path:"/feedback/detail/:id",name:"Feedback.Detail",component:Gv,meta:{requiresAuth:!0,desc:"åé¦è¯¦æ
",showGlobalNav:!0}},{path:"/feedback/new",name:"Feedback.New",component:Kv,meta:{requiresAuth:!0,desc:"æäº¤åé¦",showGlobalNav:!0}},{path:"/apply",name:"Apply",component:Dw,meta:{requiresAuth:!0,desc:"ç³è¯·ä¸æ ",showGlobalNav:!0}},{path:"/apply/list",name:"Apply.List",component:BV,meta:{requiresAuth:!0,desc:"䏿 ç³è¯·åå²",showGlobalNav:!0}},{path:"/refuse",name:"Refuse",component:MV,meta:{requiresAuth:!0,desc:"ç³è¯·ç»æéç¥",showGlobalNav:!0}},{path:"/fe7367dd4c7a244fdf130539e0244192.txt",name:"VerificationFile",component:()=>a.e("chunk-2d0bac97").then(a.bind(null,"3961")),meta:{desc:"éªè¯æä»¶",showGlobalNav:!1,requiresAuth:!1}},{path:"/:pathMatch(.*)",redirect:"/subscribed"}];const TV=Object(J.a)({history:Object(J.b)(),routes:SV,scrollBehavior:(e,t,a)=>a||{top:0,behavior:"smooth"}});TV.scrollPosition={x:0,y:0},TV.beforeEach((e,t)=>{if(TV.scrollPosition={x:window.pageXOffset,y:window.pageYOffset},window._hmt&&e.path&&window._hmt.push(["_trackPageview",e.fullPath]),e.meta.requiresAuth&&!X.a.getters["user/is_login"])return{path:"/wechat_auth",query:{redirect:e.fullPath}};X.a.dispatch("history/setFrom",{path:t.matched.length?t.matched[0].path:""})});var AV=TV,PV={components:{Back:Q.a,ThemeSwitcher:S.a,FontSizeSwitch:a("8999").default},props:{title:{type:String,required:!0},visible:{type:Boolean,default:!0,required:!0}},setup(){const{isInWechatMP:e}=Object(K.a)(),t=Object(o.ref)(!1);Object(o.onMounted)(()=>{e.value&&!localStorage.getItem("showTip")&&setTimeout(()=>{t.value=!0},2e3)});return{goBack:()=>{const{back:t,forward:a}=window.history.state;if(t){if(t===AV.currentRoute.value.path)return AV.push("/subscribed");a&&AV.replace(t),AV.back()}else AV.push("/subscribed");e.value&&(document.title="å°æ¥ç«¥")},showTip:t,closeTip:()=>{t.value=!1,localStorage.setItem("showTip","true")},isInWechatMP:e}},computed:{fontSize:{get(){return this.$store.state.app.fontSize},set(e){this.$store.commit("app/setFontSize",e)}}}};a("55c0");var DV=j()(PV,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("back"),i=A.a,l=T.default,d=S.a,p=Object(o.resolveComponent)("router-link");return a.visible?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"header",onClick:t[3]||(t[3]=Object(o.withModifiers)(()=>{},["stop","prevent"]))},[Object(o.createElementVNode)("div",D,[Object(o.createVNode)(i,{size:16,onClick:r.goBack}
1,{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n)]),_:1},8,["onClick"]),I,Object(o.createElementVNode)("div",$,Object(o.toDisplayString)(a.title),1)]),Object(o.createElementVNode)("div",Z,[Object(o.renderSlot)(e.$slots,"default",{},void 0,!0),Object(o.createVNode)(l,{modelValue:s.fontSize,"onUpdate:modelValue":t[0]||(t[0]=e=>s.fontSize=e)},null,8,["modelValue"]),Object(o.createVNode)(d),Object(o.createElementVNode)("span",R,[e.$store.state.user.user.access_token?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,width:"20",height:"20",src:e.$store.state.user.user.full_avatar_url,onClick:t[1]||(t[1]=t=>e.$router.push({name:"Setting"}))},null,8,U)):(Object(o.openBlock)(),Object(o.createBlock)(p,{key:1,to:"/wechat_auth?redirect="+e.$route.href},{default:Object(o.withCtx)(()=>[F]),_:1},8,["to"]))])]),r.showTip?(Object(o.openBlock)(),Object(o.createElementBlock)("div",z,[Object(o.createElementVNode)("div",q,[Object(o.createElementVNode)("div",W,[G,Object(o.createElementVNode)("button",{class:"close-button",onClick:t[2]||(t[2]=(...e)=>r.closeTip&&r.closeTip(...e))},Y)])])])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-9d7d861c"]]);const IV=e=>(Object(o.pushScopeId)("data-v-9113477e"),e=e(),Object(o.popScopeId)(),e),$V={class:"search-box"},ZV=IV(()=>Object(o.createElementVNode)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"search-icon"},[Object(o.createElementVNode)("path",{d:"M14.3204 13.2494L17.1336 16.0744C17.2902 16.2309 17.3783 16.4438 17.3783 16.6661C17.3783 16.8883 17.2902 17.1012 17.1336 17.2577C16.9782 17.4154 16.7668 17.5042 16.5461 17.5042C16.3255 17.5042 16.1141 17.4154 15.9587 17.2577L13.1537 14.4244C11.9976 15.3386 10.5698 15.8346 9.10003 15.8327C5.44474 15.8327 2.48163 12.8479 2.48163 9.16605C2.48163 5.48422 5.44474 2.5 9.10003 2.5C12.7553 2.5 15.7184 5.48422 15.7184 9.16605C15.7203 10.6465 15.2277 12.0847 14.3204 13.2494ZM9.10003 4.16664C6.3586 4.16664 4.13627 6.40522 4.13627 9.16664C4.13627 11.9281 6.3586 14.6895 9.10003 14.6895C11.8415 14.6895 14.0638 11.9281 14.0638 9.16664C14.0638 6.40522 11.8415 4.16664 9.10003 4.16664Z",fill:"currentColor"})],-1)),RV={key:0,class:"loading-spinner"},UV={key:0,class:"search-body"},FV=["onClick"],zV={class:"logo"},qV=["src"],WV={class:"info"},GV=["innerHTML"],YV={class:"meta"},QV=["innerHTML"],KV=IV(()=>Object(o.createElementVNode)("span",{class:"dot"},"·",-1)),JV={key:0,class:"loading-more"},XV=[IV(()=>Object(o.createElementVNode)("span",{class:"spinner"},null,-1))],ek={key:1,class:"no-more"},tk=[IV(()=>Object(o.createElementVNode)("p",null,"æ²¡ææ´å¤äº",-1))],ak={key:1,class:"empty-state"},ok=[IV(()=>Object(o.createElementVNode)("p",null,"ææ ç»æ",-1))],rk={key:1,class:"search-history"},ck={class:"history-header"},sk=IV(()=>Object(o.createElementVNode)("span",null,"æç´¢åå²",-1)),nk=[IV(()=>Object(o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-trash2-icon lucide-trash-2"},[Object(o.createElementVNode)("path",{d:"M10 11v6"}),Object(o.createElementVNode)("path",{d:"M14 11v6"}),Object(o.createElementVNode)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),Object(o.createElementVNode)("path",{d:"M3 6h18"}),Object(o.createElementVNode)("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})],-1))],ik={class:"history-tags"},lk=["onClick"];var dk=a("2029"),pk={name:"SearchCommand",props:{visible:{type:Boolean,default:!1}},emits:["update:visible"],setup(e,{emit:t}){const a=Object(Tj.b)(),r=Object(o.ref)(""),c=Object(o.ref)(null),s=Object(o.ref)([]),n=Object(o.ref)(!1),i=Object(o.ref)(!1),l=Object(o.ref)(1),d=Object(o.ref)(!0),p=Object(o.computed)(()=>a.state.search.history),u=Object(o.inject)("$api"),m=Object(o.inject)("$router"),h=async(e,t=!1)=>{e.trim()?(t?i.value=!0:(n.value=!0,l.value=1,d.value=!0,(e=>{a.dispatch("search/addHistory",e)})(e)),u.call("GET","/paper/search/",{limit:10,offset:10*(l.value-1),keyword:e.trim()},a=>{if(200==a.data.code){const o=a.data.data.map(t=>({...t,creator:{...t.creator,nickname:t.creator.nickname.indexOf(e)>-1?t.creator.nickname.replace(e,`<span style='color: var(--theme-color)'>${e}</span>`):t.creator.nickname},newName:t.name.indexOf(e)>-1?t.name.replace(e,`<span style='color: var(--theme-color)'>${e}</span>`):t.name}));o.length<10&&(d.value=!1),t?(s.value=[...s.value,...o],l.value++):(s.value=o,10===o.length&&l.value++)}else t||(s.value=[]);n.value=!1,i.value=!1})):s.value=[]},b=Object(dk.debounce)(e=>h(e,!1),300),g=()=>{b(r.value)};Object(o.watch)(()=>e.visible,e=>{e?(document.body.style.overflow="hidden",Object(o.nextTick)(()=>{c.value&&c.value.focus()})):(document.body.style.overflow="",r.value="",s.value=[])}),Object(o.onUnmounted)(()=>{document.body.style.overflow=""});const O=()=>{t("update:visible",!1)};return{query:r,inputRef:c,results:s,loading:n,loadingMore:i,history:p,handleInput:g,handleClose:O,handleBackdropClick:e=>{e.target===e.currentTarget&&O()},toColumn:e=>{O(),m.push({name:"Paper",params:{slug:e.slug}})},clearHistory:()=>{a.dispatch("search/clearHistory")},useHistory:e=>{r.value=e,g()},handleScroll:e=>{const{scrollTop:t,scrollHeight:a,clientHeight:o}=e.target;a-t-o<50&&!i.value&&d.value&&r.value&&h(r.value,!0)}}}};a("4ac0");var uk=j()(pk,[["render",function(e,t,a,r,c,s){return Object(o.openBlock)(),Object(o.createBlock)(o.Teleport,{to:"body"},[Object(o.createVNode)(o.Transition,{name:"modal-fade"},{default:Object(o.withCtx)(()=>[Object(o.withDirectives)(Object(o.createElementVNode)("div",{class:"custom-modal-backdrop",onClick:t[5]||(t[5]=(...e)=>r.handleBackdropClick&&r.handleBackdropClick(...e))},[Object(o.createElementVNode)("div",{class:"custom-modal-container",onClick:t[4]||(t[4]=Object(o.withModifiers)(()=>{},["stop"]))},[Object(o.createElementVNode)("div",$V,[ZV,Object(o.withDirectives)(Object(o.createElementVNode)("input",{ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=e=>r.query=e),type:"text",class:"custom-search-input",placeholder:"æç´¢ä¸æ åãä½è
å...",onInput:t[1]||(t[1]=(...e)=>r.handleInput&&r.handleInput(...e))},null,544),[[o.vModelText,r.query]]),r.loading?(Object(o.openBlock)(),Object(o.createElementBlock)("div",RV)):Object(o.createCommentVNode)("",!0)]),r.results.length>0||r.query||r.history.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",UV,[r.results.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"search-results",onScroll:t[2]||(t[2]=(...e)=>r.handleScroll&&r.handleScroll(...e))},[r.results.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(r.results,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:e.slug,class:"result-item",onClick:t=>r.toColumn(e)},[Object(o.createElementVNode)("div",zV,[Object(o.createElementVNode)("img",{src:e.avatar_url,alt:""},null,8,qV)]),Object(o.createElementVNode)("div",WV,[Object(o.createElementVNode)("div",{class:"title",innerHTML:e.newName},null,8,GV),Object(o.createElementVNode)("div",YV,[Object(o.createElementVNode)("span",{innerHTML:e.creator.nickname},null,8,QV),KV,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.subscriber_count)+" 读è
",1)])])],8,FV))),128)),r.loadingMore?(Object(o.openBlock)(),Object(o.createElementBlock)("div",JV,XV)):Object(o.createCommentVNode)("",!0),!e.hasMore&&r.results.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ek,tk)):Object(o.createCommentVNode)("",!0)],64)):r.query&&!r.loading?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ak,ok)):Object(o.createCommentVNode)("",!0)],32)):Object(o.createCommentVNode)("",!0),r.history.length>0&&!r.query?(Object(o.openBlock)(),Object(o.createElementBlock)("div",rk,[Object(o.createElementVNode)("div",ck,[sk,Object(o.createElementVNode)("span",{class:"clear-btn",onClick:t[3]||(t[3]=(...e)=>r.clearHistory&&r.clearHistory(...e))},nk)]),Object(o.createElementVNode)("div",ik,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(r.history,(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("span",{key:t,class:"history-tag",onClick:t=>r.useHistory(e)},Object(o.toDisplayString)(e),9,lk))),128))])])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)])],512),[[o.vShow,a.visible]])]),_:1})])}],["__scopeId","data-v-9113477e"]]),mk=a("92f1");const hk=e=>(Object(o.pushScopeId)("data-v-4e459c78"),e=e(),Object(o.popScopeId)(),e),bk={class:"pc-header"},gk={class:"left"},Ok=[hk(()=>Object(o.createElementVNode)("svg",{width:"126",height:"37",viewBox:"0 0 126 37",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"logo-svg"},[Object(o.createElementVNode)("rect",{width:"37",height:"37",rx:"6",fill:"url(#pattern0)"}),Object(o.createElementVNode)("path",{d:"M65.1464 5.66064H61.5058V27.0196C61.5058 28.7967 60.8654 29.3093 59.6182 29.3093H58.4384V33.0001H59.6182C63.3261 33.0001 65.1464 31.2572 65.1464 27.0196V5.66064ZM54.0562 13.2132C54.0562 20.4581 53.7866 23.2604 52 26.2336L55.1686 28.079C57.2923 24.4565 57.6968 21.3467 57.6968 13.2132H54.0562ZM68.888 13.2132C68.888 21.3467 69.2925 24.4565 71.4162 28.079
1L74.5848 26.2336C72.7982 23.2604 72.5286 20.4581 72.5286 13.2132H68.888Z",fill:"currentColor"}),Object(o.createElementVNode)("path",{d:"M124.619 9.47315V6.43414H115.667V5H111.963V6.43414H103.01V9.47315H117.485V11.4536H110.145V10.1561H106.44V11.4536H102.324V14.4585H125.305V11.4536H121.189V9.47315H124.619ZM124.619 28.834V25.8292H115.667V24.7023H124.619V15.4829H103.01V24.7023H111.963V25.8292H103.01V28.834H111.963V29.995H102.324V32.9999H125.305V29.995H115.667V28.834H124.619ZM106.715 19.2048V17.8048H111.963V19.2048H106.715ZM120.915 17.8048V19.2048H115.667V17.8048H120.915ZM106.715 22.3804V20.9804H111.963V22.3804H106.715ZM120.915 20.9804V22.3804H115.667V20.9804H120.915Z",fill:"currentColor"}),Object(o.createElementVNode)("path",{d:"M79.7511 7.52682H75.7734V11.2146H79.7511V13.0585H75.7734V16.7463H76.7847V20.195H75.7734V23.8828H79.7511V25.6243H75.7734V29.3121H79.7511V32.9999H83.4253V29.3121H87.4029V25.6243H83.4253V23.8828H87.4029V20.195H86.3917V16.7463H87.4029V13.0585H83.4253V11.2146H87.4029V7.52682H83.4253V5H79.7511V7.52682ZM91.7176 9.37071H94.3806C94.3132 10.7707 94.0098 11.1805 93.1671 11.1805V14.8682C96.2009 14.8682 98.0211 13.1268 98.0211 8.89266V5.68292H88.4142V32.9999H91.7176V30.3365L92.9986 32.9999C93.6727 32.3852 94.2795 31.7706 94.7851 31.1218C95.3582 31.8047 95.9986 32.4194 96.7739 32.9999L98.3582 29.6877C97.6841 29.2096 97.1447 28.6633 96.6391 28.0828C98.0886 24.8731 98.3582 20.9804 98.3582 15.6536H91.7176V9.37071ZM80.4252 20.195V16.7463H82.7511V20.195H80.4252ZM94.6503 24.2584C94.3806 23.3023 94.2121 22.3121 94.1109 21.356L91.7176 22.0389V19.3414H95.3245C95.2233 21.3219 95.0211 22.8926 94.6503 24.2584ZM91.7176 22.7219C91.9199 24.3267 92.257 26.1365 92.9311 27.8779C92.594 28.3901 92.1895 28.8682 91.7176 29.3462V22.7219Z",fill:"currentColor"}),Object(o.createElementVNode)("defs",null,[Object(o.createElementVNode)("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[Object(o.createElementVNode)("use",{"xlink:href":"#image0_0_1",transform:"scale(0.00390625)"})]),Object(o.createElementVNode)("image",{id:"image0_0_1",width:"256",height:"256","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAp/SURBVHgB7d29b13lHcDxp1U8OCGWsBRXSoaQwpQYqQwunVBIBoao7QSCP6ATUtulDLCkUmFoJ5DCAlLZQMkUUJA6BEKXQjK0UhzEkDcPiRQjJRImLxKRqJ/re3Ec39i+957znHvv7/ORokoZYqvi+T7nOec5z/nZySOHf0xASD9PQFgCAIEJAAQmABCYAEBgAgCBCQAEJgAQmABAYAIAgQkABCYAEJgAQGACAIEJAAQmABCYAEBgAgCBCQAEJgAQmABAYAIAgQkABCYAEJgAQGACAIEJAAQmABCYAEBgAgCBCQAEJgAQmABAYAIAgQkABCYAEJgAQGACAIEJAAQmABCYAEBgAgCBCQAEJgAQmABAYAIAgQkABCYAEJgAQGACAIEJAAS2LVGrF06cTFWaP/ZOunbmdIIquAKAwAQAArMEYEPTB55O42bp6uX0w+3bCQFgA5O7ZtLc0b+lcfPvV/8gAG2WABCYAEBgAgCBCQAEJgAQmABAYAIAgQkABGYjUNueg4fTKHj8wGyqw80L59PdbxcTsQhA2+yrf0yjYM/BQ60/VfOWYUyWABCYAEBgAgCBCQAEJgAQmABAYAIAgQkABGYjEEUsnv0q3b/T3zFcuyve+HR30Y7HDgGgiIVPP043L8ynXuVzCXfXsPORFZYADLVtO3Yk6iMADLWJHY+lKnnhaS0BYKjtfGJfqtI96/81BIChVvXrz74HsJYAMNSmKr4CsARYSwAYWvncg/wUoEoeAa4lAAylPPCffOmVVLWlhcuJVfYBMHTyB0nzCU1Vz/7Z0tUriVUC0Hb9zGepDlVvYsmbae7VsI69++2N1KQ82+cBP71/Nk3OVD/ws6UrV9wEfIgAtJ0/9naqQ9UByKEax7P78sCfrunA046lBbP/w9wDIIwbZ79MrCUAhHHr697fRRh3AkAI+W1E6//1BIAQfPOgOwFg7OXNP4vnvkqsJwCMvUsnPkx0JwCMtTz7X6tpj8c4EADGmtl/YzYCtT31YvX7zuswM/dsLVtkF899mb4bs22yK5umzP4bEYC2J196OY2CmV8/2/pTtfya7DgFIF/6Xzxu9t+MJQBj5/7y8/5zR9/w7v8WCABjJ7/XYfBvjSUAY6Mz84/bvYw6CQBjIb/n/9+/v2Xm75EAMNLyrJ8/OrJw6hN7/fsgAIys/Jgv3+k36/dPABgp+Vz/a1+cNuNXRAAYWvnyPs/ueX2fb+zlzUpO9a2WADAUvvng/TTR/g5gHvg/3LltsBcgAAwFp/U2w0YgCEwAIDBLAIrYc/Bwmt7/dBomF70qLACUUfX3EaogAJYAEJoAQGACAIEJACHdt424xU3AtkvHP1r3dzuf2Ffp8Vt5Z1uvXyEu9TssXb2cIsk7DRGAn3S7I7xn+c51lYMvf9a71zvPw/A7ML4sASAwAYDABAACEwAITAAgMAGAwASAkO45bahFACAwAYDABAACEwBC8k2BFQJASPe9DNTiZSCKyG8gVnnO/94jv03b2t8RoH8CQBHXzpxONy/Mp6rsfv7QQAGwBFhhCcBImtg+2OzvQJAVAsBIcvlfDQFg5ExUMPh9UnyFewBtzx17b93fTVQ8yzx+YLbrz9lIqd8hf5xz8dxXaRRs2272r4oAtE3OzKQSSv2cXn+HiR2PpVExOfOLNKi7395IWAIwgqz/qyMAjJyJ7dvToDwFWCEAjJzJXYMvARwLvkIAGDlVLAHuOg+gRQAYOvnJR/6c+Mxc9+8h5I+lDMLl/ypPAWhcHvA7n/hla8BPLz+m7AzwhVOfd
1H00OegVgNl/lQDQiPwoLw/4/GdqecB3G9STu7o/Mt2+a7BHqd4EXCUAFJE378zM/aY1w+dBv5X9EDv3rb/Uz1cLg14BeBFolQBQxDOvvZ561e2Fn7xUGNTS1SuJFW4CMrTyTP/wlUIVTwBcAawSAIbazr1rlwFTewd7ApDZBrxKABhqD2/6eWzf4AG4503AnwgARfT77H3qoQE/uWvwl6m8CrxKACii30GXX1/uyE8ApirYBOQewCoBoIh+77znGb9zJoInANUTAIoYZNbt7AwcdAvwoL/HOBIAili6ejn1a3r/063/fXA50P/v4QrgQQJAEfkeQL83AjsDf6qCK4DvBgjROLITsO1fL/4+1eGFEydTleaPvdM6Y38U3VmOwNSO3gdxHvjT+2creQLgEeBargAo5vs+L7/z7r/dzx9Og8pXIN9ZAqwhABQzyODbc/BQGpT1/3oCQDFLDa+/zf7rCQDFND0D37xwPrGWAFDMDw2vwd0AXE8AKOr7hgKQjwGzBFhPACiqqctwNwC7EwCKunlhPjVh8dyXifVsBGqbffVPaRTsfv5QJVtiH3b9zOkig7OzI7D0571cAXQnAG1VPGcuIe+IS/tT5W61Bn+Z2Tkf9b274P/f1v+PZglAcaUH462vm1l2jAIBoLjFs2XX4zfOWv8/igBQXL4PUOoqIN9v6PZ1IVYIAI24VehpQFNPHUaFANCIUo/lPP7bmADQiDwz1/2V3vzvXzvzWeLRBIDG1D04rf03JwA0pu7L81E9OakkAaAxeRlQ10c68uYfNwA3JwA06vrn9SwDLp34MLE5AaBRN2pYBuTZ3/p/awSARu098rtUtbz11wdAtkYAaMyTL75Sy0tYM3PPVvINgQgEgEbkAfrUSy+nOuRXjX/12uuVfEdg3AkAxeWBmQdo3T9j7q9visAmBICiSg5MEdicAFBM/sz3M4UvzTsRcE+gOwGgiG3bd6S5o29W8onvXrUisPyz881B1vrZySOHf0zUdiRY1WcNXj/zWS0n63bblZcHznPvvpeq0MQ5gN1cPP6RTUIPcCZgW10vplQdgDxQR/ENt2EY/Fl+8jA5M5MuHf+wtm3Io8QSgHDy1d6onAJdNwEgpOveFGwRAMLJ7wo4KGSFABCOm4CrBIAibg3Ju/lm/7UEgCKunvq49jMAt8Lsv5YAUMT9O7fTwqlPUpPM/usJAMUsfNrsVYDZfz0BoJh8SEe/VwF59h5kAJv9uxMAiurnKiAP3nNH32ht4134tL+AXP/Cc/9uBICier0KyLH43z/e+mnb7jf/fL/n475bs//nZv9uBIDierkKOH/s7XUfEp0/9k5PEcizv33/3QkAxW31KmD+3bcfebrvViNg9t+YANCIza4C8uDfbODmCGx2Y9DsvzEBoBEbXQVsZfB3bPZ+v9l/YwJAY7pdBfQy+DtyBL754P11f58PTzH7b0wAaMyDVwE5BPlRX78zdv53/vOXP7fW/B0Xj9v4sxkBoFH5KqDznH/Qj3nmpwWdf8fsvzXOBKzZ9IHZVKWl5f/IS332Kp/iW9UhniV/7yz/7j4PtjkBgMAsASAwAYDABAACEwAITAAgMAGAwAQAAhMACEwAIDABgMAEAAITAAhMACAwAYDABAACEwAITAAgMAGAwAQAAhMACEwAIDABgMAEAAITAAhMACAwAYDABAACEwAITAAgMAGAwAQAAhMACEwAIDABgMAEAAITAAhMACAwAYDABAACEwAITAAgMAGAwAQAAhMACEwAIDABgMAEAAITAAhMACAwAYDABAAC+z+234YXopDdbAAAAABJRU5ErkJggg=="})])],-1))],jk=hk(()=>Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/selected.html",target:"_blank"},"ç²¾é",-1)),Ck=hk(()=>Object(o.createElementVNode)("a",{href:"https://xiaobot.net/apply",target:"_blank"},"ç³è¯·",-1)),fk={class:"right"},vk={class:"account"};var wk=a("0b59"),Vk={name:"PcHeader",components:{ThemeSwitcher:S.a,SearchCommand:uk,UserAvatarMenu:mk.a,Search:wk.a},data:()=>({showSearchCommand:!1}),computed:{login_url(){return"/wechat_auth?redirect="+this.$route.href}},methods:{backHome(){this.$store.getters["user/is_login"]?this.$router.replace("/subscribed"):window.location.href="/home.html"}}};a("ade9");var kk=j()(Vk,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("Search"),i=S.a,l=mk.a,d=uk;return Object(o.openBlock)(),Object(o.createElementBlock)("header",bk,[Object(o.createElementVNode)("div",gk,[Object(o.createElementVNode)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>s.backHome&&s.backHome(...e))},Ok),Object(o.createElementVNode)("a",{href:"javascript:;",onClick:t[1]||(t[1]=(...e)=>s.backHome&&s.backHome(...e))}," é¦é¡µ "),jk,Ck]),Object(o.createElementVNode)("div",fk,[Object(o.createElementVNode)("div",{class:"search-trigger",onClick:t[2]||(t[2]=e=>c.showSearchCommand=!0)},[Object(o.createVNode)(n,{size:"16","stroke-width":"1"})]),Object(o.createVNode)(i),Object(o.createElementVNode)("div",vk,[Object(o.createVNode)(l,{isReader:!0})])]),Object(o.createVNode)(d,{visible:c.showSearchCommand,"onUpdate:visible":t[3]||(t[3]=e=>c.showSearchCommand=e)},null,8,["visible"])])}],["__scopeId","data-v-4e459c78"]]),yk=a("0978");const _k=e=>(Object(o.pushScopeId)("data-v-2e80ba9a"),e=e(),Object(o.popScopeId)(),e),Ek={key:0,class:"sidebar-sticky"},Nk={key:"info",class:"info-wrapper"},Bk={class:"header"},Hk={class:"avatar-wrap"},xk=["src"],Mk={key:0,class:"editor-pick-badge"},Lk={class:"paper_title_and_user"},Sk={key:0,class:"paper_user"},Tk=["src"],Ak={class:"intro",ref:"introTextRef"},Pk=["innerHTML"],Dk={key:0,class:"intro__more-btn"},Ik=[_k(()=>Object(o.createElementVNode)("span",{class:"intro__more-dots"},"... ",-1)),Object(o.createTextVNode)(" æ´å¤ ")],$k={class:"stats"},Zk={class:"stat-section"},Rk={class:"stat"},Uk=_k(()=>Object(o.createElementVNode)("div",{class:"type"},"读è
",-1)),Fk=_k(()=>Object(o.createElementVNode)("div",{class:"type"},"å·²è´ä¹°",-1)),zk=_k(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),qk={class:"stat"},Wk=_k(()=>Object(o.createElementVNode)("div",{class:"type"},"åæ°",-1)),Gk={class:"num"},Yk={key:0,style:{"font-size":"12px"}},Qk={class:"type"},Kk={class:"stat-section"},Jk={class:"stat"},Xk=_k(()=>Object(o.createElementVNode)("div",{class:"type"},"䏿 ç±»å",-1)),ey={key:0,width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ty=[_k(()=>Object(o.createElementVNode)("path",{d:"M13 3C13.5523 3 14 3.44772 14 4V16.3301L13.9912 16.4678C13.9066 17.0974 13.2494 17.4908 12.6543 17.2686L12.5273 17.2109L8.47266 15.0391C8.17767 14.881 7.82233 14.881 7.52734 15.0391L3.47266 17.2109L3.3457 17.2686C2.75064 17.4908 2.09345 17.0974 2.00879 16.4678L2 16.3301V4C2 3.44772 2.44772 3 3 3H13ZM3.2998 15.8281L6.91406 13.8926L7.04297 13.8291C7.65055 13.5509 8.34945 13.5509 8.95703 13.8291L9.08594 13.8926L12.7002 15.8281V4.2998H3.2998V15.8281ZM10.2402 7.09277C10.4941 6.83897 10.9063 6.83895 11.1602 7.09277C11.4138 7.34661 11.4139 7.7589 11.1602 8.0127L7.82422 11.3486C7.57043 11.6024 7.15815 11.6023 6.9043 11.3486L5.12402 9.56836C4.87052 9.31449 4.87127 8.90314 5.125 8.64941C5.37876 8.39603 5.78922 8.39602 6.04297 8.64941L7.36328 9.96973L10.2402 7.09277Z",fill:"var(--text-color)"},null,-1))],ay={key:1,width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oy=[_k(()=>Object(o.createElementVNode)("path",{d:"M13 3C13.5523 3 14 3.44772 14 4V16.3301L13.9912 16.4678C13.9066 17.0974 13.2494 17.4908 12.6543 17.2686L12.5273 17.2109L8.47266 15.0391C8.17767 14.881 7.82233 14.881 7.52734 15.0391L3.47266 17.2109L3.3457 17.2686C2.75064 17.4908 2.09345 17.0974 2.00879 16.4678L2 16.3301V4C2 3.44772 2.44772 3 3 3H13ZM3.2998 15.8281L6.91406 13.8926L7.04297 13.8291C7.65055 13.5509 8.34945 13.5509 8.95703 13.8291L9.08594 13.8926L12.7002 15.8281V4.2998H3.2998V15.8281ZM8.15039 6C8.5092 6.00021 8.7998 6.29154 8.7998 6.65039V8.2002H10.3496L10.4814 8.21289C10.7773 8.27362 10.9998 8.5358 11 8.84961C11 9.16354 10.7774 9.42552 10.4814 9.48
1633L10.3496 9.5H8.7998V11.3496L8.78711 11.4814C8.72638 11.7773 8.4642 11.9998 8.15039 12C7.83646 12 7.57448 11.7774 7.51367 11.4814L7.5 11.3496V9.5H5.65039C5.29141 9.5 5 9.20859 5 8.84961C5.00021 8.4908 5.29154 8.2002 5.65039 8.2002H7.5V6.65039C7.5 6.29141 7.79141 6 8.15039 6Z",fill:"var(--text-color)"},null,-1))],ry={class:"type"},cy=_k(()=>Object(o.createElementVNode)("div",{class:"divider"},null,-1)),sy=_k(()=>Object(o.createElementVNode)("div",{class:"stat"},[Object(o.createElementVNode)("div",{class:"type"},"履约æ¿è¯º"),Object(o.createElementVNode)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M8.00391 8.70195C8.42272 8.70193 8.83197 8.82714 9.17908 9.06149C9.52619 9.29584 9.7953 9.62863 9.95183 10.0171C10.1084 10.4056 10.1452 10.8319 10.0575 11.2415C9.96984 11.651 9.76173 12.025 9.45991 12.3154L8.12291 13.6013H9.40391C9.79051 13.6013 10.1039 13.9147 10.1039 14.3013C10.1039 14.6879 9.79051 15.0013 9.40391 15.0013H6.75014C6.2827 15.0013 5.90369 14.6225 5.90342 14.155C5.90328 13.9246 5.99702 13.7042 6.163 13.5444L8.48901 11.306C8.57244 11.2258 8.63469 11.1261 8.67018 11.016C8.70567 10.9058 8.71329 10.7886 8.69237 10.6748C8.67145 10.5609 8.62264 10.4541 8.5503 10.3637C8.47796 10.2734 8.38436 10.2024 8.27786 10.1571C8.17136 10.1118 8.05529 10.0937 7.94005 10.1042C7.8248 10.1148 7.71397 10.1537 7.61748 10.2176C7.52098 10.2815 7.44183 10.3683 7.38711 10.4703C7.29693 10.6384 7.1492 10.802 6.95849 10.802H6.60358C6.21716 10.802 5.89301 10.4803 6.01939 10.1151C6.12241 9.8175 6.29204 9.54397 6.51898 9.31703C6.91281 8.9232 7.44695 8.70195 8.00391 8.70195ZM11.5039 8.70195C11.8905 8.70195 12.2039 9.01536 12.2039 9.40195V11.502H13.6039V9.40196C13.6039 9.01536 13.9173 8.70195 14.3039 8.70195C14.6905 8.70195 15.0039 9.01536 15.0039 9.40195V14.302C15.0039 14.6886 14.6905 15.002 14.3039 15.002C13.9173 15.002 13.6039 14.6886 13.6039 14.302V12.902H11.8039C11.2516 12.902 10.8039 12.4542 10.8039 11.902V9.40195C10.8039 9.01536 11.1173 8.70195 11.5039 8.70195ZM1.70341 8.00195C2.09017 8.00195 2.39908 8.3169 2.44703 8.70068C2.52172 9.29849 2.69277 9.88187 2.95495 10.4277C3.26536 11.074 3.69669
111.6535 4.22447 12.1354C4.39605 12.292 4.50391 12.5094 4.50391 12.7418C4.50391 13.3301 3.87189 13.6843 3.42669 13.2997C2.83681 12.79 2.33385 12.1834 1.94105 11.5029C1.44354 10.641 1.13695 9.68529 1.03856 8.70031C1.00015 8.31586 1.31704 8.00195 1.70341 8.00195ZM8.00391 1.00196C11.3642 1.00196 14.1719 3.36964 14.8482 6.52844C14.936 6.93847 14.6053 7.30195 14.186 7.30195C13.8286 7.30195 13.5318 7.03445 13.4479 6.68704C13.2315 5.79082 12.7962 4.95852 12.177 4.26671C11.4183 3.41897 10.4194 2.82239 9.31325 2.55637C8.20709 2.29036 7.04615 2.36753 5.98493 2.77761C4.92372 3.18769 4.01255 3.91124 3.37271 4.85195H4.50391C4.89051 4.85195 5.20391 5.16536 5.20391 5.55195C5.20391 5.93855 4.89051 6.25195 4.50391 6.25195H1.50391C1.22776 6.25195 1.00391 6.0281 1.00391 5.75195V2.75196C1.00391 2.36536 1.31731 2.05195 1.70391 2.05195C2.09051 2.05195 2.40391 2.36536 2.40391 2.75196V3.80125C3.05537 2.93128 3.90074 2.22521 4.87286 1.73915C5.84497 1.2531 6.91705 1.00114 8.00391 1.00196Z",fill:"var(--text-color)"})]),Object(o.createElementVNode)("div",{class:"type"},"24h å¯é")],-1)),ny={class:"share-paper"},iy={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ly=_k(()=>Object(o.createElementVNode)("path",{d:"M20 0H0V20H20V0Z",fill:"white","fill-opacity":"0.01"},null,-1)),dy=["stroke"],py=["fill","stroke"],uy=["stroke"],my=_k(()=>Object(o.createElementVNode)("path",{d:"M10 5V5.83333",stroke:"#9D9D9D","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),hy=["stroke"],by=["stroke"],gy=["stroke"],Oy=_k(()=>Object(o.createElementVNode)("path",{d:"M14.1667 8.08925L14.7559 7.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),jy=Object(o.createTextVNode)(" æ§å¶å° "),Cy={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fy=["fill"],vy=Object(o.createTextVNode)(" 设置 "),wy={class:"flex-start"},Vy={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ky=["fill"],yy=Object(o.createTextVNode)(" å享 "),_y={width:"47",height:"14",viewBox:"0 0 47 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ey=["fill"],Ny=_k(()=>Object(o.createElementVNode)("path",{d:"M7.696 3.408C6.768 4.464 5.608 5.352 4.208 6.064L4.656 6.88C5.088 6.64 5.496 6.384 5.88 6.12V6.68H10.12V6.128C10.488 6.392 10.888 6.64 11.312 6.864L11.768 6.056C10.456 5.416 9.304 4.528 8.304 3.408H7.696ZM6.224 5.872C6.904 5.36 7.496 4.792 8 4.168C8.52 4.8 9.112 5.368 9.768 5.872H6.224ZM10.64 7.464H5.36V10.824H6.168V10.416H9.832V10.824H10.64V7.464ZM6.168 9.624V8.248H9.832V9.624H6.168ZM13.272 6.64V10.816H14.072V5.488C14.392 4.944 14.648 4.368 14.848 3.76L14.072 3.392C13.688 4.592 13.096 5.64 12.304 6.528L12.576 7.424C12.824 7.168 13.056 6.912 13.272 6.64ZM15.184 4.84C15.112 5.728 14.92 6.512 14.616 7.2L15.36 7.44C15.664 6.712 15.864 5.88 15.944 4.936L15.184 4.84ZM17.488 3.488H16.656C16.656 4.152 16.648 4.856 16.64 5.608C16.64 7.528 15.88 9.064 14.368 10.232L14.936 10.872C15.976 10.008 16.696 8.976 17.096 7.776C17.464 8.976 18.16 10.008 19.168 10.864L19.736 10.232C18.576 9.368 17.8 8.072 17.4 6.352C17.432 6.08 17.448 5.808 17.456 5.528C17.472 4.856 17.488 4.176 17.488 3.488ZM18.728 4.696C18.528 5.672 18.288 6.472 18.016 7.096L18.768 7.368C19.056 6.664 19.288 5.84 19.48 4.904L18.728 4.696ZM24.392 3.44H23.544C23.544 3.744 23.536 4.16 23.536 4.696C23.472 6.992 22.376 8.784 20.232 10.064L20.744 10.816C22.408 9.744 23.504 8.392 24.032 6.76C24.648 8.448 25.704 9.792 27.2 10.8L27.76 10.064C25.944 8.952 24.8 7.344 24.336 5.24C24.368 4.744 24.392 4.144 24.392 3.44ZM30.832 5.736V6.568H32.896V10.856H33.76V6.568H35.72V5.736H33.76V3.416H32.896V5.736H30.832ZM29.424 3.48L28.832 4.056C29.4 4.472 29.84 4.864 30.144 5.232L30.72 4.648C30.36 4.264 29.928 3.872 29.424 3.48ZM28.312 5.792V6.592H29.408V9.432C29.408 9.6 29.336 9.744 29.192 9.864L29.512 10.616C30.104 10.232 30.656 9.8 31.176 9.32L30.96 8.464C30.696 8.712 30.448 8.936 30.216 9.136V5.792H28.312ZM41.016 4.128V9.048H41.824V4.128H4
11.016ZM42.576 10.76C43.152 10.76 43.448 10.48 43.448 9.92V3.456H42.616V9.704C42.616 9.912 42.504 10.016 42.288 10.016C41.96 10.016 41.608 10 41.232 9.968L41.424 10.76H42.576ZM40.352 5.128L38.184 5.456C38.136 4.856 38.12 4.184 38.12 3.448H37.272C37.272 4.232 37.304 4.944 37.36 5.584L36.376 5.736L36.496 6.536L37.448 6.392C37.512 6.888 37.592 7.336 37.696 7.728C37.776 8.04 37.872 8.328 37.968 8.6C37.472 9.032 36.912 9.376 36.28 9.624L36.776 10.384C37.336 10.144 37.856 9.832 38.328 9.448C38.432 9.656 38.544 9.84 38.672 10.008C39.048 10.52 39.432 10.784 39.816 10.784C40.048 10.784 40.256 10.616 40.44 10.28C40.584 10 40.712 9.656 40.84 9.248L40.136 8.784C40.008 9.504 39.888 9.872 39.768 9.896C39.552 9.888 39.312 9.656 39.048 9.2C39 9.112 38.952 9.016 38.904 8.904C39.464 8.296 39.944 7.56 40.336 6.688L39.608 6.312C39.32 6.944 38.984 7.496 38.584 7.976C38.512 7.736 38.448 7.464 38.392 7.176C38.336 6.904 38.288 6.6 38.256 6.272L40.488 5.928L40.352 5.128ZM39.184 3.4L38.504 3.736C38.792 4.088 39.056 4.488 39.304 4.92L40.008 4.56C39.744 4.136 39.472 3.752 39.184 3.4Z",fill:"white"},null,-1)),By={key:2,class:"flex-between expire"},Hy={class:"flex-start"},xy={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},My=["fill"],Ly=Object(o.createTextVNode)("ï¼ "),Sy={key:3,class:"flex-between expire"},Ty={class:"flex-start"},Ay={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Py=["fill"],Dy=Object(o.createTextVNode)("ï¼ "),Iy={key:"toc",class:"toc-wrapper"},$y={key:1};const Zy=e=>(Object(o.pushScopeId)("data-v-b3fa7da4"),e=e(),Object(o.popScopeId)(),e),Ry={class:"copyRight"},Uy=Zy(()=>Object(o.createElementVNode)("div",null,"æå·æµ®å¢¨ç½ç»ç§ææéå
¬å¸",-1)),Fy=Zy(()=>Object(o.createElementVNode)("div",null,[Object(o.createTextVNode)(" å°æ¥ç«¥Â© 2021 Xiaobot.net / "),Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/privacy.html",target:"_blank"},"éç§æ¡æ¬¾"),Object(o.createTextVNode)(" / "),Object(o.createElementVNode)("a",{href:"https://help.xiaobot.net/legal.html",target:"_blank"},"ç¨æ·åè®®")],-1)),zy=Zy(()=>Object(o.createElementVNode)("div",null,"å¢å¼çµä¿¡ä¸å¡è®¸å¯è¯ï¼æµ B2-20220425",-1)),qy=Zy(()=>Object(o.createElementVNode)("div",{class:"icp"},[Object(o.createElementVNode)("a",{target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010802011961"},[Object(o.createElementVNode)("img",{src:"/img/emblem.png"}),Object(o.createElementVNode)("span",null,"æµå
¬ç½å®å¤ 33010802011961å·")])],-1));var Wy={name:"CopyRight",methods:{toIcp(){window.open("https://beian.miit.gov.cn/ ")}}};a("1f14");var Gy=j()(Wy,[["render",function(e,t,a,r,c,s){return Object(o.openBlock)(),Object(o.createElementBlock)("section",Ry,[Uy,Fy,zy,Object(o.createElementVNode)("div",{class:"icp",onClick:t[0]||(t[0]=(...e)=>s.toIcp&&s.toIcp(...e))},"æµ ICP å¤ 2021033650å·"),qy])}],["__scopeId","data-v-b3fa7da4"]]);const Yy={key:0,class:"post-toc"},Qy={class:"toc-container",ref:"tocContainer"},Ky={class:"toc-track"},Jy={class:"toc-list"},Xy=["onClick","title"];var e_={name:"PostTOC",data:()=>({headings:[],activeIndex:0,observer:null,isHovered:!1}),computed:{currentPost(){return this.$store.state.posts.currentPost},minLevel(){return 0===this.headings.length?1:Math.min(...this.headings.map(e=>e.level))}},watch:{"currentPost.uuid":{handler(){this.$nextTick(()=>{this.initTOC()})},immediate:!0}},mounted(){window.addEventListener("scroll",this.handleScroll),this.setupObserver()},beforeUnmount(){window.removeEventListener("scroll",this.handleScroll),this.observer&&this.observer.disconnect()},methods:{setupObserver(){const e=document.querySelector(".post-content");e?(this.observer=new MutationObserver(()=>{this.initTOC()}),this.observer.observe(e,{childList:!0,subtree:!0})):setTimeout(this.setupObserver,500)},initTOC(){const e=document.querySelector(".post-content");if(!e)return;const t=e.querySelectorAll("h1, h2, h3"),a=[];t.forEach((e,t)=>{const o=e.textContent.trim();o&&(e.id||(e.id="toc-heading-"+t),a.push({id:e.id,text:o,level:parseInt(e.tagName.substring(1))}))}),this.headings=a,this.$nextTick(()=>{this.handleScroll()})},handleScroll(){if(0===this.headings.length)return;const e=this.headings.map(e=>document.getElementById(e.id)).filter(e=>!!e),t=window.scrollY+120;let a=0;for(let o=0;o<e.length;o++){if(!(e[o].getBoundingClientRect().top+window.scrollY<=t))break;a=o}this.activeIndex=a},scrollToHeading(e){const t=document.getElementById(e);if(t){const e=80,a=document.body.getBoundingClientRect().top,o=t.getBoundingClientRect().top-a-e;window.scrollTo({top:o,behavior:"smooth"})}},scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}}};a("6776");var t_=j()(e_,[["render",function(e,t,a,r,c,s){return c.headings.length>0?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Yy,[Object(o.createElementVNode)("div",{class:"toc-header",onClick:t[0]||(t[0]=(...e)=>s.scrollToTop&&s.scrollToTop(...e)),onMouseenter:t[1]||(t[1]=e=>c.isHovered=!0),onMouseleave:t[2]||(t[2]=e=>c.isHovered=!1)},Object(o.toDisplayString)(c.isHovered?"åå°é¡¶é¨":"ç®å½"),33),Object(o.createElementVNode)("div",Qy,[Object(o.createElementVNode)("div",Ky,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.headings,(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:"tick-"+t,class:Object(o.normalizeClass)(["toc-tick",{active:c.activeIndex===t}]),style:Object(o.normalizeStyle)({top:32*t+15+"px"})},null,6))),128)),Object(o.createElementVNode)("div",{class:"toc-indicator-active",style:Object(o.normalizeStyle)({transform:`translateY(${32*c.activeIndex}px)`})},null,4)]),Object(o.createElementVNode)("ul",Jy,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.headings,(e,t)=>(Object(o.openBlock)(),Object(o.createElementBlock)("li",{key:t,class:Object(o.normalizeClass)(["toc-item","toc-h"+e.level,{active:c.activeIndex===t}]),onClick:t=>s.scrollToHeading(e.id),style:Object(o.normalizeStyle)({paddingLeft:12*(e.level-s.minLevel)+"px"}),title:e.text},Object(o.toDisplayString)(e.text),15,Xy))),128))])],512)])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-c5a0f774"]]);const a_=a("5292");var o_={name:"PaperInfo",data:()=>({paper:null,show_paper_share_card:!1,showReferRatioModel:!1,paperIntroShowMore:!1,show_paper_intro:!1,shouldShowMore:!1,showTOC:!1}),components:{CopyRightVue:Gy,PaperShareCard:ot,ReferModelVue:El,PaperIntro:yk.a,PostTOC:t_},computed:{paper_word_count(){return this.paper?this.paper.word_count<100?this.paper.word_count:(this.paper.word_count/1e3).toFixed(1).toLocaleStr
1ing("zh-CN",{style:"decimal",minimumFractionDigits:0}):0},mute(){return this.paper.mute},servered_days(){return this.paper?a_().diff(this.paper.created_at,"days"):"N/A"},parsed_intro(){let e=this.paper.intro.replace(/\n/g,"<br/>");return e=e.replace(/(https?:\/\/([^\s</#)ï¼]+)[^\s<)ï¼]*)/g,(function(e,t,a){return'<a href="'+t.replace('"',"%22")+'" target="_blank">'+a+"</a>"})),e||(e="ææ ä»ç»"),Object(ye.l)(e)},isHomeView(){return"Home"==this.$route.name},isPostView(){return"PostPage"==this.$route.name},showReferRatioIcon(){return this.paper&&this.paper.refer_ratio>0&&!this.paper.isNotAllowBuy&&this.paper.can_refer},subscription_expired_days(){return this.paper.subscription?a_(this.paper.subscription.expired_at).diff(a_(),"seconds")/86400:-1},subscription_expired_at(){return this.paper.subscription?a_(this.paper.subscription.expired_at).format("YYYY/MM/DD"):""},coupon(){return this.$store.getters["coupon/coupon"]},iconColor(){if("undefined"==typeof window)return"#3F3E3C";const e=document.documentElement;return getComputedStyle(e).getPropertyValue("--text-color").trim()||"#3F3E3C"},iconGrayColor(){if("undefined"==typeof window)return"#9D9D9D";const e=document.documentElement;return getComputedStyle(e).getPropertyValue("--text-gray").trim()||"#9D9D9D"},themeColor(){if("undefined"==typeof window)return"#B14B43";const e=document.documentElement;return getComputedStyle(e).getPropertyValue("--theme-color").trim()||"#B14B43"}},setup(){const{trackEvent:e}=Hr();return{trackEvent:e}},methods:{checkContentHeight(){this.$nextTick(()=>{const e=this.$refs.introTextRef;if(e&&this.paper){e.style.webkitLineClamp="unset",e.style.display="block";const t=e.scrollHeight;e.style.webkitLineClamp="8",e.style.display="-webkit-box";const a=8*(parseInt(window.getComputedStyle(e).lineHeight)||25.2);this.shouldShowMore=t>a}})},clickIntro(){this.show_paper_intro=!0,this.trackEvent("paper_intro","paper",{slug:this.paper.slug})},toggleMute(){this.$api.call("POST",`/paper/${this.$route.params.slug}/subscription`,{mute:0==this.paper.mute?1:0},e=>{if(200==e.data.code){this.paper={...this.paper,...e.data.data};let t=0==this.paper.mute?"å·²å¼å¯":"å·²å
³é";Object(ke.a)({message:"微信/é®ä»¶æé"+t,type:"warning"})}else Object(ke.a)({message:e.data.message,type:"error"})})},getPaper(){this.$api.call("GET","/paper/"+this.$route.params.slug,{},e=>{200==e.data.code?this.paper=e.data.data:Object(ke.a)({message:e.data.message,type:"error"})})},toApply(){this.$router.push({name:"Apply"})},backHome(){this.$router.replace({name:"Paper",params:{slug:this.paper.slug}})},redirectToPaperSetting(){this.paper.writable&&(this.$store.commit("papers/setCurrent",this.paper),window.open(window.location.origin+"/creator/"+this.paper.slug+"/setting"))},redirectToCreator(){this.paper.writable&&window.open(window.location.origin+"/creator")},openShare(){const e=this.$store.getters["user/is_login"]&&this.paper.writable;this.trackEvent("share_paper","paper",{user:e?"creator":"reader"}),this.$store.getters["user/is_login"]?(this.show_paper_share_card=!0,this.$refs.share_paper_card?this.$refs.share_paper_card.setPaper(this.paper):setTimeout(()=>{this.openShare()},500)):this.$router.replace("/wechat_auth/?redirect="+this.$route.fullPath)},hideReferModel(){this.showReferRatioModel=!1},copyUrl(){if(this.$store.getters["user/is_login"]){let{toClipboard:e}=za()(),t=Object(ye.g)(this.paper.slug);this.coupon&&(t=t+"&couponId="+this.coupon.uuid),e(t),Object(ke.a)({message:"å¤å¶æå",type:"success"})}else this.$router.replace("/wechat_auth/?redirect="+this.$route.fullPath)},handleSidebarScroll(){if("PostPage"!==this.$route.name||this.$store.state.isMobile)return void(this.showTOC=!1);const e=window.pageYOffset||document.documentElement.scrollTop;this.showTOC=e>200}},mounted(){this.paper&&this.checkContentHeight(),window.addEventListener("scroll",this.handleSidebarScroll)},beforeUnmount(){window.removeEventListener("scroll",this.handleSidebarScroll)},watch:{"$store.state.papers.paperInfo":{handler(e){e&&(this.paper=e,this.checkContentHeight())},deep:!0}}};a("0e54"),a("dc3b");var r_={name:"App",components:{GlobalNav:DV,GuideToWx:V,PcHeader:kk,PaperInfoVue:j()(o_,[["render",function(e,t,a,r,c,s){var n;const i=Object(o.resolveComponent)("PostTOC"),l=Object(o.resolveComponent)("CopyRightVue"),d=ot,p=h.a,u=Object(o.resolveComponent)("ReferModelVue"),m=yk.a,b=Wo.b;return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[c.paper&&!s.isHomeView?Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("div",Ek,[Object(o.createVNode)(o.Transition,{name:"fade",mode:"out-in"},{default:Object(o.withCtx)(()=>[c.showTOC?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Iy,[Object(o.createVNode)(i)])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",Nk,[Object(o.createElementVNode)("div",{class:"paper-info",onClick:t[3]||(t[3]=(...e)=>s.clickIntro&&s.clickIntro(...e))},[Object(o.createElementVNode)("div",Bk,[Object(o.createElementVNode)("div",Hk,[Object(o.createElementVNode)("img",{src:c.paper.avatar_url,class:"avatar",onClick:t[0]||(t[0]=(...e)=>s.backHome&&s.backHome(...e))},null,8,xk),c.paper.is_editor_pick?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Mk,"ç¼è¾ç²¾é")):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Lk,[Object(o.createElementVNode)("div",{class:"paper_title",onClick:t[1]||(t[1]=(...e)=>s.backHome&&s.backHome(...e))}
1,Object(o.toDisplayString)(c.paper.name),1),c.paper.creator?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Sk,[Object(o.createElementVNode)("img",{src:c.paper.creator.full_avatar_url,alt:""},null,8,Tk),Object(o.createElementVNode)("div",null,Object(o.toDisplayString)(c.paper.creator.nickname),1)])):Object(o.createCommentVNode)("",!0)])]),Object(o.createElementVNode)("div",Ak,[Object(o.createElementVNode)("div",{class:"paper-intro__text",innerHTML:s.parsed_intro},null,8,Pk),c.shouldShowMore?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Dk,Ik)):Object(o.createCommentVNode)("",!0)],512),Object(o.createElementVNode)("div",$k,[Object(o.createElementVNode)("div",Zk,[Object(o.createElementVNode)("div",Rk,[Uk,Object(o.createElementVNode)("div",{class:"num",onClick:t[2]||(t[2]=(...t)=>e.redirectToSubscriberList&&e.redirectToSubscriberList(...t))},Object(o.toDisplayString)(c.paper.subscriber_count),1),Fk]),zk,Object(o.createElementVNode)("div",qk,[Wk,Object(o.createElementVNode)("div",Gk,[Object(o.createTextVNode)(Object(o.toDisplayString)(s.paper_word_count),1),s.paper_word_count&&c.paper.word_count>100?(Object(o.openBlock)(),Object(o.createElementBlock)("span",Yk,"k")):Object(o.createCommentVNode)("",!0)]),Object(o.createElementVNode)("div",Qk,"å·²æ´æ° "+Object(o.toDisplayString)(c.paper.post_count)+" ç¯",1)])]),Object(o.createElementVNode)("div",Kk,[Object(o.createElementVNode)("div",Jk,[Xk,"BOOKLET"===c.paper.type?(Object(o.openBlock)(),Object(o.createElementBlock)("svg",ey,ty)):(Object(o.openBlock)(),Object(o.createElementBlock)("svg",ay,oy)),Object(o.createElementVNode)("div",ry,Object(o.toDisplayString)("BOOKLET"===c.paper.type?"ä¹°æå¶":"订é
å¶"),1)]),cy,sy])])]),Object(o.createElementVNode)("div",ny,[c.paper&&c.paper.writable?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"flex-start",onClick:t[4]||(t[4]=(...e)=>s.redirectToCreator&&s.redirectToCreator(...e))},[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",iy,[ly,Object(o.createElementVNode)("path",{d:"M9.99999 2.91663C5.39761 2.91663 1.66666 6.64758 1.66666 11.25C1.66666 13.4292 2.38059 15.5984 3.74999 17.0833H16.25C17.6194 15.5984 18.3333 13.4292 18.3333 11.25C18.3333 6.64758 14.6024 2.91663 9.99999 2.91663Z",stroke:s.iconGrayColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,dy),Object(o.createElementVNode)("path",{d:"M9.99998 14.1667C10.9205 14.1667 11.6666 13.4205 11.6666 12.5C11.6666 11.5796 10.9205 10.8334 9.99998 10.8334C9.07951 10.8334 8.33331 11.5796 8.33331 12.5C8.33331 13.4205 9.07951 14.1667 9.99998 14.1667Z",fill:s.iconGrayColor,stroke:s.iconGrayColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,py),Object(o.createElementVNode)("path",{d:"M10 8.33337V10.8334",stroke:s.iconGrayColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,uy),my,Object(o.createElementVNode)("path",{d:"M3.75 11.6666H4.58333",stroke:s.iconGrayColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,hy),Object(o.createElementVNode)("path",{d:"M5.41669 7.5L6.00594 8.08925",stroke:s.iconGrayColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,by),Object(o.createElementVNode)("path",{d:"M15.4167 11.6666H16.25",stroke:s.iconGrayColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,gy),Oy])),jy])):Object(o.createCommentVNode)("",!0),c.paper&&c.paper.writable?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"flex-start",onClick:t[5]||(t[5]=(...e)=>s.redirectToPaperSetting&&s.redirectToPaperSetting(...e))},[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Cy,[Object(o.createElementVNode)("path",{d:"M1.5 13.5H6.54081V15H1.5V13.5ZM1.5 8.25H7.98104V9.75H1.5V8.25ZM1.5 3H15.9023V4.5H1.5V3ZM14.9474 9.76875L15.7799 9.4755L16.5 10.7745L15.8404 11.3783C15.9234 11.7882 15.9234 12.2118 15.8404 12.6217L16.5 13.2255L15.7799 14.5245L14.9474 14.2313C14.6522 14.5087 14.3008 14.7225 13.9141 14.8538L13.742 15.75H12.3017L12.1289 14.853C11.7467 14.7229 11.3949 14.5109 11.0963 14.2305L10.2638 14.5245L9.54369 13.2255L10.2033 12.6217C10.1203 12.2118 10.1203 11.7882 10.2033 11.3783L9.54369 10.7745L10.2638 9.4755L11.0963 9.76875C11.3915 9.49125 11.7429 9.2775 12.1296 9.14625L12.3017 8.25H13.742L13.9148 9.147C14.3008 9.2775 14.6522 9.492 14.9474 9.7695V9.76875ZM13.0218 13.5C13.4038 13.5 13.7701 13.342 14.0402 13.0607C14.3103 12.7794 14.4621 12.3978 14.4621 12C14.4621 11.6022 14.3103 11.2206 14.0402 10.9393C13.7701 10.658 13.4038 10.5 13.0218 10.5C12.6399 10.5 12.2735 10.658 12.0034 10.9393C11.7334 11.2206 11.5816 11.6022 11.5816 12C11.5816 12.3978 11.7334 12.7794 12.0034 13.0607C12.2735 13.342 12.6399 13.5 13.0218 13.5Z",fill:s.iconGrayColor}
1,null,8,fy)])),vy])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",{onClick:t[6]||(t[6]=e=>c.showReferRatioModel=!0),class:"flex-between"},[Object(o.createElementVNode)("span",wy,[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Vy,[Object(o.createElementVNode)("path",{d:"M13.1704 2.49641L12.375 3.29122L14.7195 5.62504H9.28125C8.46101 5.62593 7.67462 5.95216 7.09463 6.53216C6.51463 7.11216 6.18839 7.89855 6.1875 8.71879C6.1875 10.4248 7.57575 11.8125 9.28125 11.8125H9.5625V10.6875H9.28125C8.19562 10.6875 7.3125 9.80441 7.3125 8.71879C7.3125 7.63316 8.19562 6.75004 9.28125 6.75004H14.7218L12.3795 9.09229L13.1749 9.88766L16.875 6.18754L13.1704 2.49585V2.49641ZM2.8125 2.81254V15.1875H15.1875V9.56254L14.0625 10.6875V14.0625H3.9375V3.93754H10.0429L11.1679 2.81254H2.8125Z",fill:s.iconGrayColor},null,8,ky)])),yy]),Object(o.withDirectives)((Object(o.openBlock)(),Object(o.createElementBlock)("svg",_y,[Object(o.createElementVNode)("rect",{width:"47",height:"14",rx:"2",fill:s.themeColor},null,8,Ey),Ny],512)),[[o.vShow,s.showReferRatioIcon]])]),s.subscription_expired_days>0&&s.subscription_expired_days<1e4?(Object(o.openBlock)(),Object(o.createElementBlock)("div",By,[Object(o.createElementVNode)("span",Hy,[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",xy,[Object(o.createElementVNode)("path",{d:"M4.5 0.75V2.25H2.25V15.75H15.75V2.25H13.5V0.75H12V2.25H6V0.75H4.5ZM3.75 6H14.25V14.25H3.75V6ZM9.75 9.75V12.75H12.75V9.75H9.75Z",fill:s.iconGrayColor},null,8,My)])),Object(o.createTextVNode)(" "+Object(o.toDisplayString)(s.subscription_expired_days.toFixed(0))+" 天åå°æÂ·æé"+Object(o.toDisplayString)(s.mute?"å·²å
³é":"å·²å¼å¯")+"ï¼",1),Object(o.createElementVNode)("span",{class:"toggleMute",onClick:t[7]||(t[7]=(...e)=>s.toggleMute&&s.toggleMute(...e))},"忢"),Ly])])):Object(o.createCommentVNode)("",!0),s.subscription_expired_days>0&&s.subscription_expired_days>1e4?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Sy,[Object(o.createElementVNode)("span",Ty,[(Object(o.openBlock)(),Object(o.createElementBlock)("svg",Ay,[Object(o.createElementVNode)("path",{d:"M4.5 0.75V2.25H2.25V15.75H15.75V2.25H13.5V0.75H12V2.25H6V0.75H4.5ZM3.75 6H14.25V14.25H3.75V6ZM9.75 9.75V12.75H12.75V9.75H9.75Z",fill:s.iconGrayColor},null,8,Py)])),Object(o.createTextVNode)(" 坿°¸ä¹
访é®Â·æé"+Object(o.toDisplayString)(s.mute?"å·²å
³é":"å·²å¼å¯")+"ï¼",1),Object(o.createElementVNode)("span",{class:"toggleMute",onClick:t[8]||(t[8]=(...e)=>s.toggleMute&&s.toggleMute(...e))},"忢"),Dy])])):Object(o.createCommentVNode)("",!0)])]))]),_:1})],512)),[[b,!c.paper]]):Object(o.createCommentVNode)("",!0),s.isHomeView?(Object(o.openBlock)(),Object(o.createElementBlock)("div",$y,[Object(o.createElementVNode)("img",{src:"http://xiaobot-resource.oss-cn-shanghai.aliyuncs.com/web/sidebar_banner_202206.png",class:"star",alt:"",onClick:t[9]||(t[9]=(...e)=>s.toApply&&s.toApply(...e))}),Object(o.createVNode)(l)])):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(p,{title:"çæå享å¡ç",modelValue:c.show_paper_share_card,"onUpdate:modelValue":t[10]||(t[10]=e=>c.show_paper_share_card=e),"custom-class":"share-dialog","destroy-on-close":!0,width:"390px"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(d,{ref:"share_paper_card"},null,512)]),_:1},8,["modelValue"]),Object(o.createVNode)(u,{visible:c.showReferRatioModel,paper:c.paper,close:s.hideReferModel,copyPaperUrl:s.copyUrl,sharePaper:s.openShare},null,8,["visible","paper","close","copyPaperUrl","sharePaper"]),Object(o.createVNode)(p,{title:null===(n=c.paper)||void 0===n?void 0:n.name,modelValue:c.show_paper_intro,"onUpdate:modelValue":t[11]||(t[11]=e=>c.show_paper_intro=e),"custom-class":"custom_model paper-intro-dialog","destroy-on-close":!0,top:"20vh",width:"600px"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(m,{paper:c.paper,"max-lines":8,"allow-collapse":!1},null,8,["paper"])]),_:1},8,["title","modelValue"])],64)}],["__scopeId","data-v-2e80ba9a"]])},provide(){return{reload:this.reload}},data:()=>({isRouterAlive:!0,screenWidth:document.body.clientWidth,timer:null}),setup(){const e=Object(o.ref)([]),t=m(),{isInWechatMP:a}=Object(K.a)();return Object(Ng.b)(),{virtualTaskStack:e,isMobile:t,isInWechatMP:a}},computed:{getTitleByRoute(){var e;const{desc:t}=this.$route.meta||{};return t?t.includes("|")?`${t} ${(null===(e=this.$store.state.papers.current)||void 0===e?void 0:e.name)||""}`:t:""},mobileContainerStyle(){return{padding:(this.isHome||this.isCoupon||this.isCreatePost)&&this.isMobile?"0":"0 20px",overflow:this.isCreatePost&&this.isMobile?"hidden":"auto"}},shouldShowNav(){return!(this.show_nav||this.isCreatePaper||this.isCoupon||this.isSharePage||this.isCreatePost)},shouldShowNavSep(){return!(this.isCreatePaper||this.isCoupon||this.isSharePage||this.isCreatePost||this.isInWechatMP)},show_nav(){return this.$route.meta.showGlobalNav&&!this.isCoupon},login_url(){return"/wechat_auth?redirect="+this.$route.path},isCreatePaper(){return"CreatePaper2"===this.$route.name||"Search"===this.$route.name||"SearchPage"===this.$route.name||"Home"===this.$route.name&&this.isMobile||"Paper"===this.$route.name||"WechatAuth"===this.$route.name},isHome(){return"Home"===this.$route.name},isWechatAuth(){return"WechatAuth"===this.$route.name},isTest(){return"TestApi"===this.$route.name},showGuide(){return this.$store.state.showWxGuide},currentUrl(){return this.$store.state.currentUrl},paperRefer(){return Object(ye.j)(this.slug)},slug(){var e;return null===(e=this.$store.state.papers.paperInfo)||void 0===e?void 0:e.slug},paperUrl(){const e=this.currentUrl;return e.includes("?")?e.includes("refer")?e:`${e}&refer=${this.paperRefer}`:`${e}?refer=${this.paperRefer}`},isCoupon(){return"Coupon"===this.$route.name},isSharePage(){return"Share"===this.$route.name},isCreatePost(){return"createPost"===this.$route.name}},methods:{reload(){this.isRouterAlive=!1,this.$nextTick(()=>{this.isRouterAlive=!0})},refreshAccount(){this.$api.call("GET","/account/",{},e=>{if(200===e.data.code){const{data:t}=e.data,a={...this.$store.state.user.user,id:t.id,email:t.email,subscribe_wechat:t.subscribe_wechat,is_creator:t.is_creator,full_avatar_url:t.full_avatar_url,mobile:t.mobile,uuid:t.uuid};this.$store.dispatch("user/login",a)}})},checkLogin(){if(!/MicroMessenger/i.test(window.navigator.userAgent)&&this.isMobile&&!this.$store.state.user.user.access_token){const e=window.location.href;(e.includes("/p/")||e.includes("/post/"))&&(this.$store.commit("setCurrentUrl",e),this.$store.commit("setShowWxGuide",!0))}},hideGuide(){this.$store.commit("setShowWxGuide",!1)},savePosY(){this.timer||(this.timer=setTimeout(()=>{const e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,t=this.$route.name;if("Home"===t)this.$store.commit("position/setHomeY",e);else if("PostPage"===t){const{uuid:t}=this.$route.params;this.$store.commit("position/setPostY",{uuid:t,scrollTop:e})}clearTimeout(this.timer),this.timer=null},100))}
1,getWxConfig(){this.$api.call("GET","/wechat/jssdk_sign",{url:window.location.href},e=>{if(200===e.status){const{appId:t,timestamp:a,nonceStr:o,signature:r}=e.data;Wa.a.config({debug:!1,appId:t,timestamp:parseInt(a,10),nonceStr:o,signature:r,jsApiList:["updateAppMessageShareData","updateTimelineShareData"]})}})},handlePopState(){document.title=this.$route.meta.title||"å°æ¥ç«¥","undefined"!=typeof WeixinJSBridge&&(WeixinJSBridge.invoke("setFontSizeCallback",{fontSize:0}),WeixinJSBridge.call("setFontSizeCallback",{fontSize:0}))}},created(){this.$store.state.user.user.access_token&&(this.refreshAccount(),this.$store.dispatch("app/loadConfig")),this.checkLogin(),this.$store.commit("setIsMobile",this.isMobile),this.$store.commit("setEntrancePage",location.href),Object(ye.i)()&&this.getWxConfig()},mounted(){this.handleResize=()=>{window.screenWidth=document.body.clientWidth,this.screenWidth=window.screenWidth},window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.savePosY),window.addEventListener("popstate",this.handlePopState)},beforeUnmount(){this.timer&&(clearTimeout(this.timer),this.timer=null),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.savePosY),window.removeEventListener("popstate",this.handlePopState)},watch:{$route(e){e.meta.keepAlive&&!this.virtualTaskStack.includes(e.name)&&this.virtualTaskStack.push(e.name)}}};a("49df");var c_=j()(r_,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("router-link"),i=Object(o.resolveComponent)("GlobalNav"),l=Object(o.resolveComponent)("router-view"),d=Object(o.resolveComponent)("PcHeader"),p=k.a,u=Object(o.resolveComponent)("PaperInfoVue"),m=V;return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(r.isMobile?"h5":"pc")},[r.isMobile?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,style:Object(o.normalizeStyle)(s.mobileContainerStyle)},[s.shouldShowNav?(Object(o.openBlock)(),Object(o.createElementBlock)("div",y,[Object(o.createVNode)(n,{to:"/subscribed"},{default:Object(o.withCtx)(()=>[_]),_:1}),Object(o.createElementVNode)("div",E,[e.$store.state.user.user.access_token?(Object(o.openBlock)(),Object(o.createBlock)(n,{key:0,to:"/setting"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("img",{class:"avatar",src:e.$store.state.user.user.full_avatar_url},null,8,N)]),_:1})):Object(o.createCommentVNode)("",!0),e.$store.state.user.user.access_token?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(n,{key:1,to:s.login_url},{default:Object(o.withCtx)(()=>[B]),_:1},8,["to"]))])])):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(i,{title:s.getTitleByRoute,visible:s.show_nav&&!r.isInWechatMP},null,8,["title","visible"]),s.shouldShowNavSep?(Object(o.openBlock)(),Object(o.createElementBlock)("div",H)):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(l,null,{default:Object(o.withCtx)(({Component:e})=>[(Object(o.openBlock)(),Object(o.createBlock)(o.KeepAlive,{include:r.virtualTaskStack},[(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(e)))],1032,["include"]))]),_:1})],4)):(Object(o.openBlock)(),Object(o.createElementBlock)("div",x,[Object(o.createVNode)(d),Object(o.createVNode)(p,{style:{"border-color":"var(--border-color)",margin:"0",height:"0px"}}),s.isWechatAuth||s.isTest?(Object(o.openBlock)(),Object(o.createBlock)(l,{key:1},{default:Object(o.withCtx)(({Component:e})=>[(Object(o.openBlock)(),Object(o.createBlock)(o.KeepAlive,{include:r.virtualTaskStack},[(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(e)))],1032,["include"]))]),_:1})):(Object(o.openBlock)(),Object(o.createElementBlock)("div",M,[Object(o.createElementVNode)("div",L,[Object(o.createVNode)(l,null,{default:Object(o.withCtx)(({Component:e})=>[(Object(o.openBlock)(),Object(o.createBlock)(o.KeepAlive,{include:r.virtualTaskStack},[(Object(o.openBlock)(),Object(o.createBlock)(Object(o.resolveDynamicComponent)(e)))],1032,["include"]))]),_:1})]),Object(o.createVNode)(u)]))])),Object(o.createVNode)(m,{visible:s.showGuide,closeDrawer:s.hideGuide,url:s.paperUrl},null,8,["visible","closeDrawer","url"])],2)}]]),s_=(a("5b29"),a("6391"),a("4a6e"),a("42af"),a("290b")),n_=(a("fda2e"),a("ace1"),a("1e20"),a("4131"),a("3394"),a("dfb3")),i_=a("4657"),l_=a("8f2f");const d_=e=>(Object(o.pushScopeId)("data-v-440b9d82"),e=e(),Object(o.popScopeId)(),e),p_={class:"drawer
1-content"},u_=[d_(()=>Object(o.createElementVNode)("svg",{width:"97",height:"97",viewBox:"0 0 97 97",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(o.createElementVNode)("path",{d:"M48.5 6.0625C59.7551 6.0625 70.5493 10.5336 78.5078 18.4922C86.4664 26.4507 90.9375 37.2449 90.9375 48.5C90.9375 59.7551 86.4664 70.5493 78.5078 78.5078C70.5493 86.4664 59.7551 90.9375 48.5 90.9375C37.2449 90.9375 26.4507 86.4664 18.4922 78.5078C10.5336 70.5493 6.0625 59.7551 6.0625 48.5C6.0625 37.2449 10.5336 26.4507 18.4922 18.4922C26.4507 10.5336 37.2449 6.0625 48.5 6.0625ZM43.2135 56.8723L33.7863 47.4391C33.4484 47.1011 33.0471 46.833 32.6056 46.6501C32.164 46.4672 31.6907 46.3731 31.2128 46.3731C30.7348 46.3731 30.2616 46.4672 29.82 46.6501C29.3784 46.833 28.9772 47.1011 28.6392 47.4391C27.9567 48.1216 27.5733 49.0473 27.5733 50.0126C27.5733 50.9779 27.9567 51.9036 28.6392 52.5861L40.643 64.5899C40.98 64.9295 41.3809 65.1991 41.8226 65.3831C42.2643 65.5671 42.7381 65.6618 43.2165 65.6618C43.695 65.6618 44.1688 65.5671 44.6104 65.3831C45.0521 65.1991 45.4531 64.9295 45.7901 64.5899L70.6463 39.7276C70.9888 39.391 71.2612 38.99 71.448 38.5476C71.6347 38.1052 71.7319 37.6302 71.7342 37.1501C71.7364 36.6699 71.6436 36.194 71.461 35.75C71.2784 35.3059 71.0097 34.9023 70.6703 34.5626C70.331 34.2228 69.9278 33.9536 69.4839 33.7705C69.04 33.5874 68.5643 33.494 68.0841 33.4957C67.6039 33.4973 67.1288 33.5941 66.6862 33.7803C66.2436 33.9664 65.8423 34.2384 65.5053 34.5805L43.2135 56.8723Z",fill:"#B14B43"})],-1)),d_(()=>Object(o.createElementVNode)("h4",null,"龿¥å·²å¤å¶",-1))],m_=d_(()=>Object(o.createElementVNode)("div",null,[Object(o.createTextVNode)(" å å°ç¨åºéå¶æ æ³æå¼é¾æ¥ï¼"),Object(o.createElementVNode)("br"),Object(o.createTextVNode)(" è¯·åæ¢è³æµè§å¨ç²è´´é¾æ¥ï¼æµè§å
容ã ")],-1));var h_={components:{AppModalVue:C},props:["url"],emits:["close"],setup(e,{emit:t}){const a=Object(o.ref)(!0),r=Object(o.ref)(!1);return{drawerVisible:a,copyUrl:()=>{let{toClipboard:t}=za()();t(e.url).then(()=>{r.value=!0}).catch(()=>{})},close:()=>{a.value=!1,t("close")},bottomBtn:{text:"å¤å¶é¾æ¥",background:"#B14B43",color:"#fff"},copySuccess:r}}};a("6398");var b_=j()(h_,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("AppModalVue");return Object(o.openBlock)(),Object(o.createBlock)(n,{title:a.url,closeDrawer:r.close,buttonClick:r.copyUrl,visible:r.drawerVisible,bottomBtn:r.bottomBtn},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",p_,[Object(o.withDirectives)(Object(o.createElementVNode)("div",null,u_,512),[[o.vShow,r.copySuccess]]),m_])]),_:1},8,["title","closeDrawer","buttonClick","visible","bottomBtn"])}],["__scopeId","data-v-440b9d82"]]),g_={install(e,t){const{trustedDomains:a,onUntrustedUrl:r}=t;let c=null;const s=()=>navigator.userAgent.match(/micromessenger/i)&&navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment,n=e=>{if(!s())return;const t=e.target.closest("a");if(t){const r=t.getAttribute("href");!r||r.startsWith("#")||r.startsWith("javascript:")||(e=>{try{const t=new URL(e);return a.some(e=>t.hostname.endsWith(e))}catch(e){return console.error("Invalid URL:",e),!1}})(r)||(e.preventDefault(),e.stopPropagation(),(e=>{c&&c.unmount();const t=document.createElement("div");document.body.appendChild(t),c=Object(o.createApp)({render:()=>Object(o.h)(b_,{url:e,onClose:()=>{c.unmount(),document.body.removeChild(t)}})}),c.use(l_.a),c.mount(t)})(r))}};if(s()){document.addEventListener("click",n,!0);(()=>{document.querySelectorAll("a").forEach(e=>{e.getAttribute("href")&&!e.getAttribute("href").startsWith("#")&&e.removeAttribute("target")})})(),e.config.globalProperties.$trustUrlCleanup=()=>{document.removeEventListener("click",n,!0),c&&c.unmount()}}}};const O_=Object(o.createApp)(c_);Object(Ng.a)(X.a),O_.config.globalProperties.$api=Ve.a,O_.config.globalProperties.$store=X.a,O_.config.globalProperties.$router=AV,O_.provide("$api",Ve.a),O_.provide("$router",AV),O_.provide("$store",X.a),O_.provide("$isMobile",()=>{const e=navigator.userAgent,t=!e.match(/(iPad).*OS\s([\d_]+)/)&&e.match(/(iPhone\sOS)\s([\d_]+)/),a=e.match(/(Android)\s+([\d.]+)/);return t||a}
1),O_.component("GlobalNav",DV),Object.keys(i_).forEach(e=>{O_.directive(e,i_[e])}),O_.use(n_.a,{preLoad:1.3}),O_.use(g_,{trustedDomains:["xiaobot.net"],onUntrustedUrl:e=>{alert(`The link to ${e} is not trusted. Please copy the URL manually.`)}}),O_.use(s_.a,{defaultOptions:{zIndex:9999}}),O_.use(X.a).use(AV).mount("#app")},"9b46":function(e,t,a){},"9d39":function(e,t,a){"use strict";a("6977")},"9d74":function(e,t,a){"use strict";a("9ef9")},"9d78":function(e,t,a){},"9e5a":function(e,t,a){"use strict";a("d4c4")},"9ef9":function(e,t,a){},a01b:function(e,t,a){"use strict";a("d13f")},a05a:function(e,t,a){},a07a:function(e,t,a){},a19b:function(e,t,a){"use strict";a("cc82")},a368:function(e,t,a){"use strict";a("a685")},a685:function(e,t,a){},a850:function(e,t,a){"use strict";a("6bc7")},a891:function(e,t,a){},a965:function(e,t,a){"use strict";a("c677")},ab0a:function(e,t,a){"use strict";a("caf1")},abd9:function(e,t,a){"use strict";a("59e0")},ace1:function(e,t,a){},ade9:function(e,t,a){"use strict";a("755a")},b057:function(e,t,a){},b0c7:function(e,t,a){"use strict";a("76d6")},b1b5:function(e,t,a){},b215:function(e,t,a){},b2c0:function(e,t,a){},b331:function(e,t,a){"use strict";a("fe4e")},b3ea:function(e,t,a){"use strict";a("4400")},b418:function(e,t,a){},b56f:function(e,t,a){"use strict";a("3033")},b5e3:function(e,t,a){},b630:function(e,t,a){},b6b8:function(e,t,a){},b8ef:function(e,t,a){},bb33:function(e,t,a){},bb36:function(e,t,a){"use strict";a("eaf6")},bd1c:function(e,t,a){"use strict";a("9d78")},bde3:function(e,t,a){},bf9c:function(e,t,a){},c063:function(e,t,a){},c210:function(e,t,a){},c24f:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"d",(function(){return c})),a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return n}));var o=a("365c");const r=()=>new Promise(e=>{o.a.call("GET","/wallet/balance",{},t=>{e(t)})}),c=()=>new Promise(e=>{o.a.call("POST","/account/unbind_mobile",{},t=>{e(t)})}),s=e=>new Promise(t=>{o.a.call("POST","/wallet/recharge",{amount:e},e=>{t(e)})}),n=e=>new Promise(t=>{o.a.call("GET","/wallet/recharge/order/"+e,{},e=>{t(e)})})},c252:function(e,t,a){},c4f7:function(e,t,a){"use strict";a("4ad5")},c62c:function(e,t,a){"use strict";a("3c0a")},c677:function(e,t,a){},c917:function(e,t,a){"use strict";a("b1b5")},c9da:function(e,t,a){},c9fc:function(e,t,a){"use strict";a("0620")},ca2f:function(e,t,a){},ca82:function(e,t,a){"use strict";a("b215")},caf1:function(e,t,a){},cafa:function(e,t,a){},cb61:function(e,t,a){"use strict";a("7c0a")},cbbe:function(e,t,a){"use strict";a("1437")},cc82:function(e,t,a){},ceb0:function(e,t,a){"use strict";var o=a("90f1");const r=e=>(Object(o.pushScopeId)("data-v-ef2f6442"),e=e(),Object(o.popScopeId)(),e),c={key:0,class:"table-menu"},s=r(()=>Object(o.createElementVNode)("span",null,"å¨å颿·»å å",-1)),n=r(()=>Object(o.createElementVNode)("span",null,"å¨å颿·»å å",-1)),i=r(()=>Object(o.createElementVNode)("span",null,"å é¤å½åå",-1)),l=r(()=>Object(o.createElementVNode)("span",null,"å¨ä¸é¢æ·»å è¡",-1)),d=r(()=>Object(o.createElementVNode)("span",null,"å¨ä¸é¢æ·»å è¡",-1)),p=r(()=>Object(o.createElementVNode)("span",null,"å é¤å½åè¡",-1));var u=a("116d"),m={name:"TableMenu",components:{RiDeleteColumn:u.l,RiDeleteRow:u.m,RiInsertColumnLeft:u.u,RiInsertColumnRight:u.v,RiInsertRowBottom:u.w,RiInsertRowTop:u.x,RiMore2Line:u.H,RiMoreLine:u.I},props:{editor:{type:Object,required:!0},visible:{type:Boolean,default:!1},columnPosition:{type:Object,default:()=>({top:0,left:0,width:0})},rowPosition:{type:Object,default:()=>({top:0,left:0,height:0})}},data:()=>({showColumnMenuDropdown:!1,showRowMenuDropdown:!1}),computed:{showColumnMenu(){return this.visible&&this.columnPosition&&this.columnPosition.width>0&&this.columnPosition.top>=0&&this.columnPosition.left>=0},showRowMenu(){return this.visible&&this.rowPosition&&this.rowPosition.height>0&&this.rowPosition.top>=0&&this.rowPosition.left>=0}},watch:{visible(e){e||(this.showColumnMenuDropdown=!1,this.showRowMenuDropdown=!1,this.$emit("clear-highlight"))}},mounted(){document.addEventListener("click",this.handleClickOutside)},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},methods:{toggleColumnMenu(){this.showColumnMenuDropdown=!this.showColumnMenuDropdown,this.showRowMenuDropdown=!1,this.showColumnMenuDropdown?this.highlightColumn():this.$emit("clear-highlight")},toggleRowMenu(){this.showRowMenuDropdown=!this.showRowMenuDropdown,this.showColumnMenuDropdown=!1,this.showRowMenuDropdown?this.highlightRow():this.$emit("clear-highlight")},highlightColumn(){const{state:e}=this.editor,{selection:t}=e,{$anchor:a}=t;let o=null;for(let e=a.depth;e>0;e--){const t=a.node(e);if("tableCell"===t.type.name||"tableHeader"===t.type.name){o=a.start(e);break}}if(!o)return;const r=this.editor.view.domAtPos(o);let c=3===r.node.nodeType?r.node.parentElement:r.node;for(;c&&1===c.nodeType&&"TD"!==c.tagName&&"TH"!==c.tagName;)c=c.parentElement;!c||"TD"!==c.tagName&&"TH"!==c.tagName||this.$emit("highlight-column",c)},highlightRow(){const{state:e}=this.editor,{selection:t}=e,{$anchor:a}=t;let o=null;for(let e=a.depth;e>0;e--){const t=a.node(e);if("tableCell"===t.type.name||"tableHeader"===t.type.name){o=a.start(e);break}}if(!o)return;const r=this.editor.view.domAtPos(o);let c=3===r.node.nodeType?r.node.parentElement:r.node;for(;c&&1===c.nodeType&&"TD"!==c.tagName&&"TH"!==c.tagName;)c=c.parentElement;!c||"TD"!==c.tagName&&"TH"!==c.tagName||this.$emit("highlight-row",c)},handleClickOutside(e){this.$el.contains(e.target)||(this.showColumnMenuDropdown=!1,this.showRowMenuDropdown=!1,this.$emit("clear-highlight"))},addColumnBefore(){this.editor&&(this.editor.chain().focus().addColumnBefore().run(),this.showColumnMenuDropdown=!1,this.$emit("clear-highlight"))},addColumnAfter(){this.editor&&(this.editor.chain().focus().addColumnAfter().run(),this.showColumnMenuDropdown=!1,this.$emit("clear-highlight"))},deleteColumn(){this.editor&&(this.editor.chain().focus().deleteColumn().run(),this.showColumnMenuDropdown=!1,this.$emit("clear-highlight"))},addRowBefore(){this.editor&&(this.editor.chain().focus().addRowBefore().run(),this.showRowMenuDropdown=!1,this.$emit("clear-highlight"))},addRowAfter(){this.editor&&(this.editor.chain().focus().addRowAfter().run(),this.showRowMenuDropdown=!1,this.$emit("clear-highlight"))},deleteRow(){this.editor&&(this.editor.chain().focus().deleteRow().run(),this.showRowMenuDropdown=!1,this.$emit("clear-highlight"))}}},h=(a("16f3"),a("5e0b")),b=a.n(h);var g=b()(m,[["render",function(e,t,a,r,u,m){const h=Object(o.resolveComponent)("RiMoreLine"),b=Object(o.resolveComponent)("RiInsertColumnLeft"),g=Object(o.resolveComponent)("RiInsertColumnRight"),O=Object(o.resolveComponent)("RiDeleteColumn"),j=Object(o.resolveComponent)("RiMore2Line"),C=Object(o.resolveComponent)("RiInsertRowTop"),f=Object(o.resolveComponent)("RiInsertRowBottom"),v=Object(o.resolveComponent)("RiDeleteRow");return a.visible?(Object(o.openBlock)(),Object(o.createElementBlock)("div",c,[m.showColumnMenu?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"column-menu-wrapper",style:Object(o.normalizeStyle)({position:"absolute",top:a.columnPosition.top+"px",left:a.columnPosition.left+"px"})},[Object(o.createElementVNode)("button",{class:"table-menu-trigger",type:"button",onClick:t[0]||(t[0]=Object(o.withModifiers)((...e)=>m.toggleColumnMenu&&m.toggleColumnMenu(...e),["stop"]))}
1,[Object(o.createVNode)(h,{class:"table-menu-trigger-icon","aria-hidden":"true"})]),u.showColumnMenuDropdown?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"table-menu-dropdown column-dropdown",onClick:t[4]||(t[4]=Object(o.withModifiers)(()=>{},["stop"]))},[Object(o.createElementVNode)("div",{class:"menu-item",onClick:t[1]||(t[1]=(...e)=>m.addColumnBefore&&m.addColumnBefore(...e))},[Object(o.createVNode)(b,{class:"table-menu-icon","aria-hidden":"true"}),s]),Object(o.createElementVNode)("div",{class:"menu-item",onClick:t[2]||(t[2]=(...e)=>m.addColumnAfter&&m.addColumnAfter(...e))},[Object(o.createVNode)(g,{class:"table-menu-icon","aria-hidden":"true"}),n]),Object(o.createElementVNode)("div",{class:"menu-item menu-item-danger",onClick:t[3]||(t[3]=(...e)=>m.deleteColumn&&m.deleteColumn(...e))},[Object(o.createVNode)(O,{class:"table-menu-icon","aria-hidden":"true"}),i])])):Object(o.createCommentVNode)("",!0)],4)):Object(o.createCommentVNode)("",!0),m.showRowMenu?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:1,class:"row-menu-wrapper",style:Object(o.normalizeStyle)({position:"absolute",top:a.rowPosition.top+"px",left:a.rowPosition.left+"px"})},[Object(o.createElementVNode)("button",{class:"table-menu-trigger",type:"button",onClick:t[5]||(t[5]=Object(o.withModifiers)((...e)=>m.toggleRowMenu&&m.toggleRowMenu(...e),["stop"]))},[Object(o.createVNode)(j,{class:"table-menu-trigger-icon","aria-hidden":"true"})]),u.showRowMenuDropdown?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"table-menu-dropdown row-dropdown",onClick:t[9]||(t[9]=Object(o.withModifiers)(()=>{},["stop"]))},[Object(o.createElementVNode)("div",{class:"menu-item",onClick:t[6]||(t[6]=(...e)=>m.addRowBefore&&m.addRowBefore(...e))},[Object(o.createVNode)(C,{class:"table-menu-icon","aria-hidden":"true"}),l]),Object(o.createElementVNode)("div",{class:"menu-item",onClick:t[7]||(t[7]=(...e)=>m.addRowAfter&&m.addRowAfter(...e))},[Object(o.createVNode)(f,{class:"table-menu-icon","aria-hidden":"true"}),d]),Object(o.createElementVNode)("div",{class:"menu-item menu-item-danger",onClick:t[8]||(t[8]=(...e)=>m.deleteRow&&m.deleteRow(...e))},[Object(o.createVNode)(v,{class:"table-menu-icon","aria-hidden":"true"}),p])])):Object(o.createCommentVNode)("",!0)],4)):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-ef2f6442"]]),O=a("82d7"),j=a("0dea");a("194c");const C=e=>(Object(o.pushScopeId)("data-v-65f77b9a"),e=e(),Object(o.popScopeId)(),e),f={class:"heading-selector"},v={class:"heading-selector-content"},w={class:"heading-menu"},V=["onClick"],k={class:"heading-menu-label"},y={class:"heading-menu-name"},_=C(()=>Object(o.createElementVNode)("span",{class:"divider"},null,-1)),E=C(()=>Object(o.createElementVNode)("span",{class:"divider"},null,-1)),N={key:1,class:"divider"};a("6072"),a("55c5");var B=a("da36"),H=a("f0ab");const x=new Set(["image","audio","iframe","uploadImage","progressPlaceholder"]);var M={name:"BubbleMenuToolbar",components:{BubbleMenu:B.a,TooltipComponent:O.a,AddLinkVue:H.a,RiArrowDownSLine:u.b,RiBold:u.e,RiLink:u.y,RiLinkUnlink:u.z,RiListOrdered:u.A,RiListUnordered:u.B,RiMarkPenLine:u.C,RiUnderline:u.P},props:{editor:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},postId:{type:[String,Number],default:null},showLinkModal:{type:Boolean,default:!1},editLink:{type:Object,default:()=>({title:"",url:""})}},data:()=>({showHeadingMenu:!1,headingOptions:[{value:"paragraph",label:"T",name:"æ£æ"},{value:"heading",level:1,label:"H1",name:"ä¸çº§æ é¢"},{value:"heading",level:2,label:"H2",name:"äºçº§æ é¢"},{value:"heading",level:3,label:"H3",name:"ä¸çº§æ é¢"}]}),computed:{isHeadingActive(){return!!this.editor&&(this.editor.isActive("heading")||this.editor.isActive("paragraph"))},currentHeadingText(){return this.editor?this.editor.isActive("heading",{level:1})?"H1":this.editor.isActive("heading",{level:2})?"H2":this.editor.isActive("heading",{level:3})?"H3":"T":"T"}},methods:{shouldShowBubbleMenu({editor:e,state:t,from:a,to:o}){if(!e||!t)return!1;const{selection:r}=t;if(r.empty||a===o)return!1;
1if(r.node&&x.has(r.node.type.name))return!1;let c=!1;return t.doc.nodesBetween(r.from,r.to,e=>{if(x.has(e.type.name))return c=!0,!1}),!c&&t.doc.textBetween(r.from,r.to," ").trim().length>0},handleShowAddLinkModal(){if(!this.editor)return;const{from:e,to:t}=this.editor.state.selection,a={title:this.editor.state.doc.textBetween(e,t," "),url:this.editor.getAttributes("link").href};this.$emit("show-add-link-modal",a)},handleAddLink(e){this.$emit("add-link",e)},handleHideLink(){this.$emit("hide-link")},setAddLinkData(e){this.$nextTick(()=>{this.$refs.addLinkRef&&this.$refs.addLinkRef.setLink(e)})},handleSelectHeading(e){if(this.editor){if("paragraph"===e)this.editor.chain().focus().setParagraph().run();else{const t=this.headingOptions.find(t=>"heading"===t.value&&t.label===e);t&&t.level&&this.editor.chain().focus().toggleHeading({level:t.level}).run()}this.showHeadingMenu=!1}},isHeadingOptionActive(e){if(!this.editor)return!1;if("paragraph"===e)return this.editor.isActive("paragraph");const t=this.headingOptions.find(t=>"heading"===t.value&&t.label===e);return!(!t||!t.level)&&this.editor.isActive("heading",{level:t.level})}},watch:{showLinkModal(e){e&&this.$refs.addLinkRef&&this.editLink&&this.$nextTick(()=>{this.$refs.addLinkRef&&this.$refs.addLinkRef.setLink(this.editLink)})},editLink:{handler(e){this.showLinkModal&&e&&this.$refs.addLinkRef&&this.$nextTick(()=>{this.$refs.addLinkRef&&this.$refs.addLinkRef.setLink(e)})},deep:!0}}};a("032d"),a("273c");var L=b()(M,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("RiArrowDownSLine"),i=j.a,l=Object(o.resolveComponent)("RiBold"),d=O.a,p=Object(o.resolveComponent)("RiUnderline"),u=Object(o.resolveComponent)("RiMarkPenLine"),m=Object(o.resolveComponent)("RiListUnordered"),h=Object(o.resolveComponent)("RiListOrdered"),b=Object(o.resolveComponent)("RiLink"),g=Object(o.resolveComponent)("AddLinkVue"),C=Object(o.resolveComponent)("RiLinkUnlink"),B=Object(o.resolveComponent)("bubble-menu");return a.editor&&!a.isMobile?(Object(o.openBlock)(),Object(o.createBlock)(B,{key:0,editor:a.editor,options:{offset:6,placement:"top"},"should-show":s.shouldShowBubbleMenu,class:"bubble-menu"},{default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",{class:"wrapper",onMousedown:t[9]||(t[9]=Object(o.withModifiers)(()=>{},["prevent","stop"])),onClick:t[10]||(t[10]=Object(o.withModifiers)(()=>{},["stop"]))},[a.isMobile?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(i,{key:0,visible:c.showHeadingMenu,"onUpdate:visible":t[0]||(t[0]=e=>c.showHeadingMenu=e),placement:"bottom-start",width:180,trigger:"click","show-arrow":!1,"popper-class":"bubbleMenu-heading"},{reference:Object(o.withCtx)(()=>[Object(o.createElementVNode)("span",f,[Object(o.createElementVNode)("div",v,[Object(o.createTextVNode)(Object(o.toDisplayString)(s.currentHeadingText)+" ",1),Object(o.createVNode)(n,{class:"heading-arrow","aria-hidden":"true"})])])]),default:Object(o.withCtx)(()=>[Object(o.createElementVNode)("div",w,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(c.headingOptions,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:`${e.value}-${e.level||""}`,class:Object(o.normalizeClass)(["heading-menu-item",{active:s.isHeadingOptionActive("paragraph"===e.value?"paragraph":e.label)}]),onClick:t=>s.handleSelectHeading("paragraph"===e.value?"paragraph":e.label)},[Object(o.createElementVNode)("span",k,Object(o.toDisplayString)(e.label),1),Object(o.createElementVNode)("span",y,Object(o.toDisplayString)(e.name),1)],10,V))),128))])]),_:1},8,["visible"])),_,Object(o.createVNode)(d,{isActive:a.editor.isActive("bold"),onClick:t[1]||(t[1]=e=>a.editor.chain().focus().toggleBold().run()),action:"bold",placement:"top",isMobile:a.isMobile,disabled:""},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(l,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive","isMobile"]),Object(o.createVNode)(d,{isActive:a.editor.isActive("underline"),onClick:t[2]||(t[2]=e=>a.editor.chain().focus().toggleUnderline().run()),action:"underline",placement:"top",
1isMobile:a.isMobile,disabled:""},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(p,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive","isMobile"]),Object(o.createVNode)(d,{isActive:a.editor.isActive("highlight"),onClick:t[3]||(t[3]=e=>a.editor.chain().focus().toggleHighlight().run()),action:"highlight",placement:"top",isMobile:a.isMobile},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(u,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive","isMobile"]),E,Object(o.createVNode)(d,{isActive:a.editor.isActive("bulletList"),onClick:t[4]||(t[4]=e=>a.editor.chain().focus().toggleBulletList().run()),action:"bulletList",placement:"top",isMobile:a.isMobile},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(m,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive","isMobile"]),Object(o.createVNode)(d,{isActive:a.editor.isActive("orderedList"),onClick:t[5]||(t[5]=e=>a.editor.chain().focus().toggleOrderedList().run()),action:"orderedList",placement:"top",isMobile:a.isMobile},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(h,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive","isMobile"]),a.isMobile?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("span",N)),a.editor.isActive("link")||a.postId||a.isMobile?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(i,{key:2,visible:a.showLinkModal,placement:"bottom-start",width:320,trigger:"click","show-arrow":!1,"popper-class":"editor-link-popover bubbleMenu-link"},{reference:Object(o.withCtx)(()=>[Object(o.createElementVNode)("span",{class:"link-reference",onClick:t[6]||(t[6]=(...e)=>s.handleShowAddLinkModal&&s.handleShowAddLinkModal(...e))},[Object(o.createVNode)(d,{isSpan:"",placement:"top",isActive:a.editor.isActive("link"),disabled:a.showLinkModal,action:"link"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(b,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive","disabled"])])]),default:Object(o.withCtx)(()=>[Object(o.createVNode)(g,{handleOk:s.handleAddLink,handleCancel:s.handleHideLink,ref:"addLinkRef"},null,8,["handleOk","handleCancel"])]),_:1},8,["visible"])),!a.editor.isActive("link")||a.postId||a.isMobile?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(d,{key:3,isActive:a.editor.isActive("link"),onClick:t[7]||(t[7]=e=>a.editor.chain().focus().unsetLink().run()),action:"unlink",placement:"top"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(C,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive"])),a.postId?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:4,visible:a.showLinkModal,placement:"bottom-start",width:320,trigger:"click","show-arrow":!1,"popper-class":"editor-link-popover bubbleMenu-link"},{reference:Object(o.withCtx)(()=>[Object(o.createElementVNode)("span",{class:"link-reference",onClick:t[8]||(t[8]=(...e)=>s.handleShowAddLinkModal&&s.handleShowAddLinkModal(...e))},[Object(o.createVNode)(d,{isSpan:"",placement:"top",isActive:a.editor.isActive("link"),disabled:a.showLinkModal,action:"link"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(b,{class:"toolbarIcon","aria-hidden":"true"})]),_:1},8,["isActive","disabled"])])]),default:Object(o.withCtx)(()=>[Object(o.createVNode)(g,{handleOk:s.handleAddLink,handleCancel:s.handleHideLink,ref:"addLinkRef"},null,8,["handleOk","handleCancel"])]),_:1},8,["visible"])):Object(o.createCommentVNode)("",!0)],32)]),_:1},8,["editor","should-show"])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-65f77b9a"]]);const S={class:"toc-header"},T=["aria-label"],A={key:0,class:"toc-content"},P={key:0,class:"toc-empty"},D=(e=>(Object(o.pushScopeId)("data-v-37b0b4a4"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("span",{class:"toc-empty-text"},"ææ æ°æ®",-1)),I={key:1,class:"toc-list"},$=["onClick"],Z={class:"toc-item-text"};var R={name:"TableOfContents",components:{RiFileList2Line:u.o,RiMenuFoldLine:u.D,RiMenuUnfoldLine:u.E},props:{headings:{type:Array,default:()=>[]},activeId:{type:String,default:""}},data:()=>({isCollapsed:!1}),methods:{toggleCollapse(){this.isCollapsed=!this.isCollapsed},scrollToHeading(e){const t=document.getElementById(e);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),this.$emit("heading-click",e))}}};a("376d");var U=b()(R,[["render",function(e,t,a,r,c,s){const n=Object(o.resolveComponent)("RiMenuFoldLine"),i=Object(o.resolveComponent)("RiMenuUnfoldLine"),l=Object(o.resolveComponent)("RiFileList2Line");return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["table-of-contents",{collapsed:c.isCollapsed}])},[Object(o.createElementVNode)("div",S,[Object(o.createElementVNode)("button",{class:"toc-toggle-btn",onClick:t[0]||(t[0]=(...e)=>s.toggleCollapse&&s.toggleCollapse(...e)),"aria-label":c.isCollapsed?"å±å¼ç®å½":"æ¶èµ·ç®å½"},[c.isCollapsed?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:1,class:"toc-toggle-icon","aria-hidden":"true"})):(Object(o.openBlock)(),Object(o.createBlock)(n,{key:0,class:"toc-toggle-icon","aria-hidden":"true"}))],8,T)]),c.isCollapsed?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createBlock)(o.Transition,{key:0,name:"toc-content",mode:"out-in"},{default:Object(o.withCtx)(()=>[c.isCollapsed?Object(o.createCommentVNode)("",!0):(Object(o.openBlock)(),Object(o.createElementBlock)("div",A,[0===a.headings.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",P,[Object(o.createVNode)(l,{class:"toc-empty-icon","aria-hidden":"true"}),D])):(Object(o.openBlock)(),Object(o.createElementBlock)("ul",I,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(a.headings,e=>(Object(o.openBlock)(),Object(o.createElementBlock)("li",{key:e.id,class:Object(o.normalizeClass)(["toc-item","toc-level-"+e.level,{activeItem:e.id===a.activeId}]),onClick:t=>s.scrollToHeading(e.id)},[Object(o.createElementVNode)("span",Z,Object(o.toDisplayString)(e.text),1)],10,$))),128))]))]))]),_:1}))],2)}],["__scopeId","data-v-37b0b4a4"]]);const F={class:"editor-wrapper"},z={key:2,class:"drag-overlay"},q={class:"drag-hint"},W={class:"drag-icon","aria-hidden":"true"},G=(e=>(Object(o.pushScopeId)("data-v-6f0986d2"),e=e(),Object(o.popScopeId)(),e))(()=>Object(o.createElementVNode)("span",{class:"drag-copy"},[Object(o.createElementVNode)("span",{class:"drag-text"},"æ¾å¼é¼ æ ä¸ä¼ å¾ç"),Object(o.createElementVNode)("span",{class:"drag-subtext"},"æ¯æ JPGãPNGãGIF çæ ¼å¼")],-1));a("f764"),a("ed24"),a("b076"),a("b93c");var Y=a("c1a7"),Q=(a("c9da"),a("e0a8")),K=a("9f7d"),J=a("2ad2"),X=a("7fa3"),ee=a("ef16"),te=a("78a3"),ae=a("69ad"),oe=a("226e"),re=a("c8d4"),ce=a("5b70"),se=a("7010"),ne=a("482f"),ie=a("1e83"),le=a("dd48"),de=a("366a"),pe=a("402f"),ue=a("2d5a");const me=[{label:"Plain Text",value:"plaintext"},{label:"HTML",value:"html"},{label:"CSS",value:"css"},{label:"JavaScript",value:"javascript"},{label:"TypeScript",value:"typescript"},{label:"JSON",value:"json"},{label:"Python",value:"python"},{label:"Java",value:"java"},{label:"Go",value:"go"},{label:"PHP",value:"php"},{label:"SQL",value:"sql"},{label:"Bash",value:"bash"},{label:"Swift",value:"swift"},{label:"Kotlin",value:"kotlin"},{label:"Ruby",value:"ruby"},{label:"Markdown",value:"markdown"},{label:"Objective-C",value:"objectivec"},{label:"XML",value:"xml"}],he="M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z",be="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z";function ge(e){return`<svg class="remixicon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true" style="width:var(--creator-setting-control-icon-size, 16px);height:var(--creator-setting-control-icon-size, 16px);display:block;"><path d="${e}"></path></svg>`}const Oe=ue.a.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),language:{default:"plaintext",parseHTML:e=>{var t;return null===(t=e.firstElementChild)||void 0===t||null===(t=t.classList.toString().match(/language-(\S+)/))||void 0===t?void 0:t[1]},renderHTML:e=>({})}}},addNodeView:()=>({node:e,HTMLAttributes:t,getPos:a,editor:o})=>{const r=document.createElement("div");
1r.className="code-block-wrapper",r.style.position="relative",r.style.margin="1.5em 0",r.style.borderRadius="var(--creator-radius, 8px)",r.style.overflow="hidden",r.style.border="1px solid var(--creator-divider)",r.style.backgroundColor="var(--creator-divider)";const c=document.createElement("div");c.className="code-block-head",c.style.cssText="\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 12px;\n background: var(--creator-surface);\n border-bottom: 1px solid var(--creator-divider);\n user-select: none;\n ";const s=document.createElement("div");s.className="code-block-lang-wrapper",s.style.display="flex",s.style.alignItems="center",s.style.gap="4px";const n=document.createElement("select");n.className="code-block-lang-select",n.style.cssText="\n border: none;\n background: transparent;\n color: var(--text-color-secondary);\n font-size: var(--creator-font-size-xs);\n outline: none;\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--creator-radius-sm);\n ";const i=document.createElement("input");i.type="text",i.placeholder="è¯è¨åç§°...",i.style.cssText="\n display: none;\n border: 1px solid var(--creator-control-border);\n background: var(--creator-control-background);\n color: var(--text-color);\n font-size: var(--creator-font-size-xs);\n padding: 2px 6px;\n border-radius: var(--creator-radius-sm);\n outline: none;\n width: 80px;\n ",me.forEach(t=>{const a=document.createElement("option");a.value=t.value,a.innerText=t.label,a.selected=e.attrs.language===t.value,n.appendChild(a)});const l=document.createElement("option");l.value="custom_input_trigger",l.innerText="Custom...",n.appendChild(l);const d=e.attrs.language,p=me.some(e=>e.value===d);d&&!p&&(i.value=d,i.style.display="block",n.value="custom_input_trigger"),n.addEventListener("change",e=>{const t=e.target.value;"custom_input_trigger"===t?(i.style.display="block",i.focus()):(i.style.display="none","function"==typeof a&&o.commands.updateAttributes("codeBlock",{language:t}))}),i.addEventListener("keydown",e=>{"Enter"===e.key&&(e.preventDefault(),i.blur())}),i.addEventListener("blur",()=>{const e=i.value.trim();e&&"function"==typeof a?o.commands.updateAttributes("codeBlock",{language:e}):e||(n.value="plaintext",i.style.display="none","function"==typeof a&&o.commands.updateAttributes("codeBlock",{language:"plaintext"}))}),s.appendChild(n),s.appendChild(i);const u=document.createElement("button");u.className="code-block-copy-btn",u.innerHTML=ge(he),u.title="å¤å¶ä»£ç ",u.style.cssText="\n border: none;\n background: transparent;\n color: var(--text-color-secondary);\n cursor: pointer;\n width: var(--editor-toolbar-control-size, 32px);\n height: var(--editor-toolbar-control-size, 32px);\n padding: 0;\n border-radius: var(--creator-radius-sm);\n display: flex;\n align-items: center;\n justify-content: center;\n transition-property: background-color, color, scale;\n transition-duration: var(--creator-menu-motion-duration);\n transition-timing-function: var(--creator-motion-ease);\n ",u.addEventListener("mouseenter",()=>{u.style.background="var(--popover-control-background-hover)",u.style.color="var(--text-color)"}),u.addEventListener("mouseleave",()=>{u.style.background="transparent",u.style.color="var(--text-color-secondary)",u.style.scale="1"}),u.addEventListener("mousedown",()=>{u.style.scale="0.96"}),u.addEventListener("mouseup",()=>{u.style.scale="1"}),u.addEventListener("click",()=>{const t=e.textContent;navigator.clipboard.writeText(t).then(()=>{u.innerHTML=ge(be),u.style.color="var(--success-color)",setTimeout(()=>{u.innerHTML=ge(he),u.style.color="var(--text-color-secondary)"},2e3)})}),c.appendChild(s),c.appendChild(u);const m=document.createElement("pre"),h=document.createElement("code");return Object.entries(t).forEach(([e,t])=>{h.setAttribute(e,t)}),e.attrs.language&&h.classList.add("language-"+e.attrs.language),m.appendChild(h),m.style.margin="0",m.style.padding="12px",m.style.background="transparent",m.style.overflowX="auto",r.appendChild(c),r.appendChild(m),{dom:r,contentDOM:h,update:t=>{if(t.type!==e.type)return!1;const a=t.attrs.language;return a!==e.attrs.language&&(me.some(e=>e.value===a)?(n.value=a,i.style.display="none"):(n.value="custom_input_trigger",i.style.display="block",i.value=a||""),h.className="",a&&h.classList.add("language-"+a)),!0}}},renderHTML({node:e,HTMLAttributes:t}){return["pre",Object(pe.w)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?"language-"+e.attrs.language:"language-plaintext"},0]]}});var je=a("48ac"),Ce=(a("c5d1"),a("2770")),fe=a("1c23"),ve=a("0186"),we=a("f6a4");function Ve(e){const t=function(e){let t=e;for(;t&&t!==document.body;){if(t instanceof HTMLElement){const e=window.getComputedStyle(t),a=e.overflowY||e.overflow,o=/(auto|scroll|overlay)/.test(a),r=t.scrollHeight>t.clientHeight+1;if(o&&r)return t}t=t.parentElement}return null}(e);return t?{type:"element",element:t}:{type:"window",element:null}}function ke(e,t){if("element"===e.type){const a=Math.max(0,e.element.scrollHeight-e.element.clientHeight),o=Math.max(0,Math.min(t,a));return void(e.element.scrollTop=o)}const a=document.documentElement,o=document.body,r=Math.max(a?a.scrollHeight:0,o?o.scrollHeight:0),c=Math.max(0,r-window.innerHeight),s=Math.max(0,Math.min(t,c));window.scrollTo(window.pageXOffset||0,s)}function ye(e,t){return"element"===t.type?e-t.element.getBoundingClientRect().top:e}
1function _e(e,t,a){const o=e.state.doc.content.size,r=Math.max(0,Math.min(t,o));return ye(e.coordsAtPos(r).top,a)}function Ee(e){e.preventDefault(),e.stopPropagation()}function Ne(e,t){e.addEventListener("mousedown",e=>{Ee(e)}),e.addEventListener("click",e=>{Ee(e),t(e)})}let Be=null,He=null;function xe(e,t){const a="undefined"!=typeof document&&document.body?Be||(Be=document.createElement("div"),Be.className="tooltip__body image-toolbar-tooltip",Be.setAttribute("role","tooltip"),Be.style.cssText="\n position: fixed;\n display: none;\n z-index: 10000;\n pointer-events: none;\n opacity: 0;\n ",document.body.appendChild(Be),Be):null;a&&t&&(He=e,a.textContent=t,a.style.display="block",a.style.opacity="0",requestAnimationFrame(()=>{He===e&&(!function(e,t){const a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=window.innerWidth||document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight;let s=a.left+a.width/2-o.width/2,n=a.bottom+8;n+o.height>c-8&&(n=a.top-o.height-8),s=Math.max(8,Math.min(s,r-o.width-8)),n=Math.max(8,n),t.style.left=s+"px",t.style.top=n+"px"}(e,a),a.style.opacity="1")}))}function Me(){He=null,Be&&(Be.style.opacity="0",Be.style.display="none")}function Le(e,t){e&&t&&(e.setAttribute("aria-label",t),e.addEventListener("mouseenter",()=>xe(e,t)),e.addEventListener("focus",()=>xe(e,t)),e.addEventListener("mouseleave",Me),e.addEventListener("blur",Me),e.addEventListener("click",Me))}const Se="var(--creator-sidebar-footer-control-size, 32px)",Te="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM4.20568 19.0002H19.7941L11.9999 5.50017L4.20568 19.0002ZM10.9999 16.0002H12.9999V18.0002H10.9999V16.0002ZM10.9999 9.00017H12.9999V14.0002H10.9999V9.00017Z",Ae="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z",Pe="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z",De="M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z",Ie="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z",$e="M8.5 7C9.32843 7 10 6.32843 10 5.5C10 4.67157 9.32843 4 8.5 4C7.67157 4 7 4.67157 7 5.5C7 6.32843 7.67157 7 8.5 7ZM8.5 13.5C9.32843 13.5 10 12.8284 10 12C10 11.1716 9.32843 10.5 8.5 10.5C7.67157 10.5 7 11.1716 7 12C7 12.8284 7.67157 13.5 8.5 13.5ZM10 18.5C10 19.3284 9.32843 20 8.5 20C7.67157 20 7 19.3284 7 18.5C7 17.6716 7.67157 17 8.5 17C9.32843 17 10 17.6716 10 18.5ZM15.5 7C16.3284 7 17 6.32843 17 5.5C17 4.67157 16.3284 4 15.5 4C14.6716 4 14 4.67157 14 5.5C14 6.32843 14.6716 7 15.5 7ZM17 12C17 12.8284 16.3284 13.5 15.5 13.5C14.6716 13.5 14 12.8284 14 12C14 11.1716 14.6716 10.5 15.5 10.5C16.3284 10.5 17 11.1716 17 12ZM15.5 20C16.3284 20 17 19.3284 17 18.5C17 17.6716 16.3284 17 15.5 17C14.6716 17 14 17.6716 14 18.5C14 19.3284 14.6716 20 15.5 20Z",Ze="M16.7574 2.99678L14.7574 4.99678H5V18.9968H19V9.23943L21 7.23943V19.9968C21 20.5491 20.5523 20.9968 20 20.9968H4C3.44772 20.9968 3 20.5491 3 19.9968V3.99678C3 3.4445 3.44772 2.99678 4 2.99678H16.7574ZM20.4853 2.09729L21.8995 3.5115L12.7071 12.7039L11.2954 12.7064L11.2929 11.2897L20.4853 2.09729Z",Re="M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z",Ue="M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108
16.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z",Fe="M12 12.5858L16.2426 16.8284L14.8284 18.2426L13 16.415V22H11V16.413L9.17157 18.2426L7.75736 16.8284L12 12.5858ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z";function ze(e,t="image-toolbar-icon"){return`<svg class="remixicon ${t}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" style="width:var(--creator-sidebar-icon-size, 18px);height:var(--creator-sidebar-icon-size, 18px);flex:0 0 auto;"><path d="${e}"></path></svg>`}function qe(e){e.style.cssText=`\n width: ${Se};\n height: ${Se};\n padding: 0;\n border: none;\n background: transparent;\n color: var(--text-color);\n cursor: pointer;\n border-radius: var(--creator-radius-sm, 4px);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;\n `,e.dataset.active="false",e.addEventListener("mouseenter",()=>{"true"!==e.dataset.active&&(e.style.background="var(--hover-bg)")}),e.addEventListener("mouseleave",()=>{"true"!==e.dataset.active&&(e.style.background="transparent",e.style.color="var(--text-color)")})}function We(e,t){e.dataset.active=t?"true":"false",e.style.background=t?"var(--theme-color)":"transparent",e.style.color=t?"var(--creator-primary-button-color, #fff)":"var(--text-color)"}function Ge(e){const t=Number(e);return!Number.isFinite(t)||t<=0?null:Math.round(t)}function Ye(e,t,a){const o=Ge(t),r=Ge(a);if(e.removeAttribute("width"),e.removeAttribute("height"),o)return e.style.width=o+"px",void(e.style.height="auto");e.style.width="",e.style.height=r?r+"px":"auto"}function Qe(e,t,a){let o=null,r=null;if(a&&e.state.doc.descendants((e,t)=>{if("image"===e.type.name&&e.attrs["data-id"]===a)return o=t,r=e,!1}),null===o){try{o="function"==typeof t?t():null}catch(e){return}if(null==o)return;r=e.state.doc.nodeAt(o)}if(!r||"image"!==r.type.name)return;const c=e.view.nodeDOM(o),s=Ve(c instanceof Element?c:e.view.dom),n=function(e){return"element"===e.type?e.element.scrollTop:window.pageYOffset||document.documentElement.scrollTop||0}(s);let i=null;if(c instanceof Element)i=ye(c.getBoundingClientRect().top,s);else try{i=_e(e.view,o,s)}catch(e){i=null}const{tr:l}=e.state;l.delete(o,o+r.nodeSize);try{const e=l.doc.content.size,t=Math.max(0,Math.min(o,e));let a=null;try{a=we.g.near(l.doc.resolve(t),1)}catch(e){a=we.g.near(l.doc.resolve(t),-1)}a&&l.setSelection(a)}catch(e){}e.view.dispatch(l),e.view.focus();const d=()=>{if(null!==i)try{const t=_e(e.view,o,s);ke(s,n+(t-i))}catch(e){ke(s,n)}else ke(s,n)};d(),requestAnimationFrame(()=>{requestAnimationFrame(d)})}function Ke(){return({node:e,HTMLAttributes:t,getPos:a,editor:o})=>{const r=document.createElement("div");r.className="image-node-wrapper",r.style.cssText="\n display: block;\n max-width: 650px;\n width: fit-content;\n ";const c=e.attrs.align||"center";r.style.width="fit-content","left"===c?(r.style.margin="1em 0 1em 0",r.style.marginRight="auto"):"right"===c?(r.style.margin="1em 0 1em auto",r.style.marginLeft="auto"):r.style.margin="1em auto",r.setAttribute("data-align",c);const s=document.createElement("div");s.className="image-resize-wrapper",s.setAttribute("data-resize-wrapper","true"),s.style.position="relative",s.style.display="block",s.style.maxWidth="100%",s.style.width="fit-content",s.style.margin="0";const n=document.createElement("img");n.src=e.attrs.src,n.className=t.class||"editor-image",n.setAttribute("draggable","false"),n.style.display="block",n.style.maxWidth="100%",n.style.height="auto",n.onerror=()=>{if(e.attrs.error)return;let t;try{t="function"==typeof a?a():null}catch(e){return}if(null!=t){const{tr:e}=o.state,a=o.state.doc.nodeAt(t);a&&"image"===a.type.name&&o.view.dispatch(e.setNodeMarkup(t,void 0,{...a.attrs,error:!0}))}},n.style.margin="left"===c?"0":"right"===c?"0 0 0 auto":"0 auto",Ye(n,e.attrs.width,e.attrs.height),e.attrs["data-id"]&&n.setAttribute("data-id",e.attrs["data-id"]),e.attrs.alt&&(n.alt=e.attrs.alt);const i=document.createElement("div");i.className="image-align-toolbar",i.style.cssText="\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 20;\n opacity: 0;\n transition: opacity 0.2s ease;\n pointer-events: none;\n display: flex;\n gap: 4px;\n background: var(--popover-surface);\n border-radius: var(--creator-radius, 8px);\n padding: 6px;\n box-shadow: 0 0 0 1px var(--popover-border, rgba(0, 0, 0, 0.08)), var(--popover-shadow, 0 8px 20px rgba(0, 0, 0, 0.14));\n backdrop-filter: var(--popover-backdrop-filter, none);\n ";const l=document.createElement("div");l.className="image-drag-handle",l.setAttribute("data-drag-handle","true"),l.style.cssText=`\n width: ${Se};\n height: ${Se};\n padding: 0;\n border: none;\n background: transparent;\n color: var(--text-color);\n cursor: grab;\n border-radius: var(--creator-radius-sm, 4px);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;\n `,l.innerHTML=ze($e),Le(l,"ææ½æåº"),l.addEventListener("mouseenter",()=>{l.style.background="var(--hover-bg)"}),l.addEventListener("mouseleave",()=>{l.style.background="transparent"}),Ne(l,()=>{});let d=!1,p=null;let u=0,m=0,h=null;function b(e,t,a,o){const r=e.posAtCoords({left:a,top:o});if(!r)return null;const c=t.doc.resolve(r.pos),s=c.before(1),n=c.after(1),i=e.coordsAtPos(s),l=e.co
1ordsAtPos(n),d=o<(i.top+l.bottom)/2;return{insertPos:d?s:n,lineY:d?i.top:l.bottom}}const g=e=>{if(null==p)return;const t=e.clientX-u,a=e.clientY-m;!d&&(Math.abs(t)>5||Math.abs(a)>5)&&(d=!0,r.classList.add("image-dragging"),l.style.cursor="grabbing",h||(h=document.createElement("div"),h.className="image-drop-cursor",h.setAttribute("aria-hidden","true"),h.style.display="none",document.body.appendChild(h))),d&&function(e,t){const a=o.view,r=o.state,c=r.doc.nodeAt(p);if(!c||"image"!==c.type.name)return;const s=c.nodeSize,n=b(a,r,e,t);if(!n)return void(h&&(h.style.display="none"));const{insertPos:i,lineY:l}=n;if(i>p&&i<p+s)return void(h&&(h.style.display="none"));if(!h)return;const d=a.dom.getBoundingClientRect();h.style.left=d.left+"px",h.style.width=d.width+"px",h.style.top=l-2+"px",h.style.display="block"}(e.clientX,e.clientY)},O=e=>{if(null!=p){if(document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",O),h&&h.parentNode&&(h.parentNode.removeChild(h),h=null),l.style.cursor="grab",r.classList.remove("image-dragging"),d){const t=o.view,a=o.state;if(t.posAtCoords({left:e.clientX,top:e.clientY})&&o.isEditable){const o=b(t,a,e.clientX,e.clientY);if(o){let e=o.insertPos;const r=a.doc.nodeAt(p);if(r&&"image"===r.type.name){const o=r.nodeSize;if(!(e>p&&e<p+o)){e>p+o&&(e-=o);const c=a.tr.delete(p,p+o).insert(e,r);t.dispatch(c)}}}}}p=null,d=!1}
1};l.addEventListener("mousedown",t=>{if(!o.isEditable||e.attrs.error)return;t.preventDefault(),t.stopPropagation();const r="function"==typeof a?a():null;null!=r&&(p=r,u=t.clientX,m=t.clientY,d=!1,document.addEventListener("mousemove",g),document.addEventListener("mouseup",O))}),i.appendChild(l);const j=e.attrs.src.startsWith("data:")||e.attrs.src.startsWith("blob:"),C=[{value:"upload",icon:ze(Re),title:"ä¸ä¼ å¾ç"},{value:"left",icon:ze(Pe),title:"左对é½"},{value:"center",icon:ze(Ae),title:"å±
ä¸"},{value:"right",icon:ze(De),title:"å³å¯¹é½"},{value:"desc",icon:ze(Ze),title:"æ·»å æè¿°"},{value:"delete",icon:ze(Ie),title:"å é¤å¾ç"}];j&&!e.attrs.error&&C.unshift({value:"sync",icon:ze(Fe),title:"ç«å³åæ¥å°äºç«¯"});const f=document.createElement("div");f.className="image-progress-bar-container",f.style.opacity="0";const v=document.createElement("div");v.className="image-progress-bar-fill",v.style.width="0%",f.appendChild(v),null!==e.attrs.progress&&void 0!==e.attrs.progress&&e.attrs.progress<100&&(f.style.opacity="1",v.style.width=e.attrs.progress+"%");const w=document.createElement("div");w.className="image-error-wrapper",w.style.cssText="\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--popover-surface);\n border: 1px solid var(--error-color);\n border-radius: var(--creator-radius, 8px);\n display: none;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 8px;\n z-index: 35;\n padding: 16px;\n text-align: center;\n ";let V=!1,k=0,y=0,_=0,E=0,N=1,B=null;const H=50,x=50,M=()=>{if(!V)return;V=!1,s.removeAttribute("data-resize-state");const e=parseInt(n.style.width,10),t=parseInt(n.style.height,10),r="function"==typeof a?a():null;if(null!=r){const{tr:a}=o.state,c=o.state.doc.nodeAt(r);c&&"image"===c.type.name&&o.view.dispatch(a.setNodeMarkup(r,void 0,{...c.attrs,width:e,height:t}))}document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",M)},L=e=>{if(!V||!B)return;const t=e.clientX-k,a=e.clientY-y;let o=_,r=E;const c=B.includes("right"),s=B.includes("left"),i=B.includes("bottom"),l=B.includes("top");c?o=_+t:s&&(o=_-t),i?r=E+a:l&&(r=E-a),r=o/N;const d=S(o,r);n.style.width=d.width+"px",n.style.height=d.height+"px"},S=(e,t)=>{let a=e,r=t;a<H&&(a=H,r=a/N),r<x&&(r=x,a=r*N);const c=o.view.dom.clientWidth||800,s=Math.min(650,c-40);return a>s&&(a=s,r=a/N),{width:a,height:r}},T=t=>{w.style.display=t?"flex":"none",w.style.position=t?"relative":"absolute",n.style.display=t?"none":"block",f.style.opacity=t?"0":e.attrs.progress&&e.attrs.progress<100?"1":"0",t?(i.style.display="none",s.querySelectorAll(".resize-handle").forEach(e=>e.style.display="none"),s.style.outline="none",s.style.cursor="default",V&&M(),s.style.minWidth="240px",s.style.background="var(--popover-surface)",s.setAttribute("data-error","true")):(i.style.display="flex",s.querySelectorAll(".resize-handle").forEach(e=>e.style.display="block"),s.style.cursor="auto",s.removeAttribute("data-error"))};T(!!e.attrs.error);const A=document.createElement("div");A.style.color="var(--error-color)",A.innerHTML=ze(Te,"image-error-icon");const P=document.createElement("span");P.innerText="å¾çä¸ä¼ 失败",P.style.cssText="\n color: var(--error-color);\n font-size: 13px;\n font-weight: 500;\n ";const D=document.createElement("div");D.className="image-error-btn-group";const I=document.createElement("button");I.className="image-error-btn retry",I.title="使ç¨å½åæ°æ®éè¯",I.innerHTML=ze(Ue,"image-error-button-icon")+" éæ°å°è¯",Ne(I,()=>{const t=e.attrs["data-id"];t&&o.commands.reuploadImage(t)});const $=document.createElement("button");$.className="image-error-btn upload",$.innerHTML=ze(Fe,"image-error-button-icon")+" ä¸ä¼ å¾ç",Ne($,()=>{const t=e.attrs["data-id"];t&&o.commands.triggerImageFilePicker(t)});const Z=document.createElement("button");Z.className="image-error-btn delete",Z.innerHTML=ze(Ie,"image-error-button-icon")+" å é¤å¾ç",Ne(Z,()=>{Qe(o,a,e.attrs["data-id"])}),D.appendChild($),D.appendChild(Z),w.appendChild(A),w.appendChild(P),w.appendChild(D);const R=document.createElement("div");R.className="image-desc-wrapper",R.style.cssText=`\n display: ${e.attrs.desc?"block":"none"};\n `;const U=document.createElement("div");
1U.className="image-desc-input",U.contentEditable="true",U.setAttribute("data-placeholder","æ·»å å¾çæè¿°..."),e.attrs.desc&&(U.textContent=e.attrs.desc),U.style.cssText="\n width: 100%;\n min-height: 32px;\n padding: 6px 8px;\n border-radius: var(--creator-radius-sm, 4px);\n color: var(--text-color-secondary);\n font-size: 13px;\n outline: none;\n box-sizing: border-box;\n word-wrap: break-word;\n white-space: pre-wrap;\n position: relative;\n user-select: text;\n ";const F=()=>{""===U.textContent.trim()?U.classList.add("is-empty"):U.classList.remove("is-empty")};F(),U.addEventListener("blur",()=>{if(window.getSelection){const e=window.getSelection();e.rangeCount>0&&e.removeAllRanges()}const e=U.textContent.trim();let t=null;try{t="function"==typeof a?a():null}catch(e){return}if(null!=t){const{tr:a}=o.state,r=o.state.doc.nodeAt(t);r&&"image"===r.type.name&&(a.setNodeMarkup(t,void 0,{...r.attrs,desc:e||null}),o.view.dispatch(a)),e?z&&We(z,!0):(R.style.display="none",z&&We(z,!1))}F()}),U.addEventListener("input",()=>{F()}),U.addEventListener("keydown",e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),U.blur())}),R.appendChild(U);let z=null;C.forEach(({value:t,icon:r,title:s})=>{const n=document.createElement("button");n.className="image-align-btn",n.innerHTML=r,Le(n,s),"desc"===t?(z=n,qe(n),We(n,!!e.attrs.desc),Ne(n,()=>{"none"===R.style.display||""===R.style.display?(R.style.display="block",We(n,!0),setTimeout(()=>{U.focus()},50)):(R.style.display="none",We(n,!1))})):"delete"===t?(qe(n),n.classList.add("image-delete-btn"),n.addEventListener("mouseenter",()=>{n.style.color="var(--error-color)",n.style.background="var(--hover-bg)"}),n.addEventListener("mouseleave",()=>{n.style.color="var(--text-color)",n.style.background="transparent"}),Ne(n,()=>{Qe(o,a,e.attrs["data-id"])})):"upload"===t?(qe(n),Ne(n,()=>{const t=e.attrs["data-id"];t&&o.commands.triggerImageFilePicker(t)})):"sync"===t?(qe(n),n.classList.add("image-upload-btn-floating"),Ne(n,()=>{const t=e.attrs["data-id"];t&&o.commands.reuploadImage(t)})):(qe(n),We(n,c===t),Ne(n,()=>{const e="function"==typeof a?a():null;if(null!=e){const a=o.state.doc.nodeAt(e);a&&"image"===a.type.name&&o.view.dispatch(o.state.tr.setNodeMarkup(e,void 0,{...a.attrs,align:t}))}})),i.appendChild(n)}),s.appendChild(i),s.appendChild(f),s.appendChild(w),s.appendChild(n),e.attrs.width||e.attrs.height||(s.style.minWidth="200px",s.style.background="var(--bg-muted, #f8f9fa)",s.style.borderRadius="var(--creator-radius, 8px)"),r.appendChild(s),r.appendChild(R);let q=null;const W=()=>{setTimeout(()=>{const e=s.getBoundingClientRect(),t=n.getBoundingClientRect(),a=Math.max(e.width,t.width)||t.width||e.width;a>0&&(R.style.width=a+"px")},0)};setTimeout(()=>{W()},100),q=new ResizeObserver(()=>{W()}),q.observe(s),n&&q.observe(n),R.addEventListener("mousedown",e=>{e.stopPropagation()}),U.addEventListener("mousedown",e=>{e.stopPropagation()});const G=()=>{e.attrs.error||(i.style.opacity="1",i.style.pointerEvents="auto")},Y=()=>{i.style.opacity="0",i.style.pointerEvents="none"};s.addEventListener("mouseenter",G),s.addEventListener("mouseleave",e=>{i.contains(e.relatedTarget)||Y()}),i.addEventListener("mouseenter",G),i.addEventListener("mouseleave",Y);const Q=["top-left","top-right","bottom-left","bottom-right"];Q.forEach(e=>{const t=document.createElement("div");t.className="resize-handle",t.setAttribute("data-resize-handle",e),t.style.position="absolute",t.style.background="var(--theme-color)",t.style.border="1px solid var(--creator-primary-button-color, #ffffff)",t.style.borderRadius="50%",t.style.zIndex="10",t.style.width="12px",t.style.height="12px",t.style.cursor="pointer",t.style.transition="background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease",t.style.boxShadow="0 2px 4px rgba(0, 0, 0, 0.2)",t.style.opacity="0",t.style.pointerEvents="auto","top-left"===e?(t.style.top="-6px",t.style.left="-6px",t.style.cursor="nwse-resize"):"top-right"===e?(t.style.top="-6px",t.style.right="-6px",t.style.cursor="nesw-resize"):"bottom-left"===e?(t.style.bottom="-6px",t.style.left="-6px",t.style.cursor="nesw-resize"):"bottom-right"===e&&(t.style.bottom="-6px",t.style.right="-6px",t.style.cursor="nwse-resize"),s.appendChild(t)}),s.addEventListener("mouseenter",()=>{if(e.attrs.error)return;
1s.querySelectorAll(".resize-handle").forEach(e=>{e.style.opacity="1"}),s.style.outline="1px solid var(--theme-color)",s.style.outlineOffset="1px",s.style.borderRadius="var(--creator-radius, 8px)"}),s.addEventListener("mouseleave",()=>{if(!s.hasAttribute("data-resize-state")){s.querySelectorAll(".resize-handle").forEach(e=>{e.style.opacity="0"}),s.style.outline="none"}});Q.forEach(t=>{const a=s.querySelector(`[data-resize-handle="${t}"]`);a&&a.addEventListener("mousedown",a=>((t,a)=>{if(!o.isEditable||e.attrs.error)return;t.preventDefault(),t.stopPropagation(),V=!0,B=a,k=t.clientX,y=t.clientY;const r=n.getBoundingClientRect();_=r.width,E=r.height,_>0&&E>0&&(N=_/E),s.setAttribute("data-resize-state","true"),document.addEventListener("mousemove",L),document.addEventListener("mouseup",M)})(a,t))}),n.complete?!e.attrs.width&&!e.attrs.height&&n.naturalWidth&&n.naturalHeight&&(N=n.naturalWidth/n.naturalHeight):n.onload=()=>{!e.attrs.width&&!e.attrs.height&&n.naturalWidth&&n.naturalHeight&&(N=n.naturalWidth/n.naturalHeight)};let K=q;return{dom:r,contentDOM:null,ignoreMutation:e=>!(!R.contains(e.target)&&e.target!==R),stopEvent:e=>e.target instanceof Element&&(!!R.contains(e.target)||!!(i.contains(e.target)||w.contains(e.target)||e.target.closest("[data-resize-handle]")||e.target.closest(".image-align-btn")||e.target.closest(".image-drag-handle")||e.target.closest(".image-error-btn"))),destroy:()=>{K&&(K.disconnect(),K=null)},update:t=>{if("image"!==t.type.name)return!1;const a=e.attrs.align||"center",o=t.attrs.align||"center";o!==a&&(r.style.width="fit-content","left"===o?(r.style.margin="1em 0 1em 0",r.style.marginRight="auto"):"right"===o?(r.style.margin="1em 0 1em auto",r.style.marginLeft="auto"):r.style.margin="1em auto",r.setAttribute("data-align",o),n.style.margin="left"===o?"0":"right"===o?"0 0 0 auto":"0 auto",i.querySelectorAll(".image-align-btn").forEach((e,t)=>{const a=C[t].value;"left"!==a&&"center"!==a&&"right"!==a||We(e,o===a)}),e.attrs.align=o);const c=e.attrs.desc||null,s=t.attrs.desc||null;s!==c&&(U.textContent=s||"",s?(R.style.display="block",z&&We(z,!0)):(R.style.display="none",z&&We(z,!1)),""===U.textContent.trim()?U.classList.add("is-empty"):U.classList.remove("is-empty"),e.attrs.desc=s);const l=e.attrs.progress,d=t.attrs.progress;d!==l&&(null!=d&&d<100?(f.style.opacity="1",v.style.width=d+"%"):f.style.opacity="0",e.attrs.progress=d);const p=e.attrs.error||!1,u=t.attrs.error||!1;u!==p&&(T(u),e.attrs.error=u);const m=t.attrs.src.startsWith("data:")||t.attrs.src.startsWith("blob:"),h=i.querySelector(".image-upload-btn-floating");return h&&(h.style.display=m&&!t.attrs.error?"flex":"none"),t.attrs["data-id"]!==e.attrs["data-id"]&&(n.setAttribute("data-id",t.attrs["data-id"]||""),e.attrs["data-id"]=t.attrs["data-id"]),t.attrs.src!==e.attrs.src&&(n.src=t.attrs.src,e.attrs.src=t.attrs.src),t.attrs.width===e.attrs.width&&t.attrs.height===e.attrs.height||(Ye(n,t.attrs.width,t.attrs.height),e.attrs.width=t.attrs.width,e.attrs.height=t.attrs.height),!0}}}}a("4ccb"),a("11de"),a("2fd0"),a("7125");var Je=a("4f14"),Xe=a.n(Je),et=(a("04d6"),a("365c"));var tt=a("63bb"),at=a.n(tt);async function ot(e,t={}){try{const a=await async function(){const e=JSON.parse(localStorage.getItem("oss_sign")||"null"),t=Date.parse(new Date)/1e3;if(e&&e.expire&&e.expire-10>t)return e;try{return await et.a.call("GET","/file/oss_sign",{},e=>{var t,a;if(200===(null===(t=e.data)||void 0===t?void 0:t.code)){const t=e.data.data;return localStorage.setItem("oss_sign",JSON.stringify(t)),t}throw new Error((null===(a=e.data)||void 0===a?void 0:a.message)||"è·å OSS ç¾å失败")})}catch(e){throw console.error("è·å OSS ç¾å失败:",e),e}}();if(!(a&&a.policy&&a.accessid&&a.signature&&a.host&&a.dir))throw console.error("OSS ç¾åä¿¡æ¯ä¸å®æ´:",a),new Error("OSS ç¾åä¿¡æ¯ä¸å®æ´");const o=function(e,t){const a=e.type.split("/")[1],o=`${e.name}${e.size}${Math.random()}`;return`${t}/${at()(o)}.${a}`}(e,a.dir),r=new FormData;r.append("key",o),r.append("policy",a.policy),r.append("OSSAccessKeyId",a.accessid),r.append("success_action_status","201"),r.append("signature",a.signature),r.append("file",e,e.name);const c=await Xe.a.post(a.host,r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t.onUploadProgress});if(201===c.status){return await async function(e,t){try{return await et.a.call("PUT","/file/",{name:e.name,size:e.size,path:t},e=>{var t,a;
1if(200===(null===(t=e.data)||void 0===t?void 0:t.code))return e.data.data;throw new Error((null===(a=e.data)||void 0===a?void 0:a.message)||"注åä¸ä¼ æä»¶å¤±è´¥")})}catch(e){throw console.error("注åä¸ä¼ æä»¶å¤±è´¥:",e),e}}(e,o)}throw new Error("OSS ä¸ä¼ 失败ï¼ç¶æç : "+c.status)}catch(e){throw console.error("uploadToOSS error:",e),e.response&&console.error("é误ååº:",e.response.status,e.response.data),Y.a.error("ä¸ä¼ 失败: "+(e.message||"请éè¯")),e}}async function rt(e){try{return new Promise((t,a)=>{const o=new FileReader;o.onloadend=()=>t(o.result),o.onerror=a,o.readAsDataURL(e)})}catch(t){return console.error("å¾ç转æ¢å¤±è´¥ï¼ä½¿ç¨åå¾:",t),new Promise((t,a)=>{const o=new FileReader;o.onloadend=()=>t(o.result),o.onerror=a,o.readAsDataURL(e)})}}function ct(e){const t=e.split(","),a=t[0].match(/:(.*?);/)[1],o=atob(t[1]);let r=o.length;const c=new Uint8Array(r);for(;r--;)c[r]=o.charCodeAt(r);return new File([c],"pasted."+a.split("/")[1],{type:a})}async function st(e){const t=await fetch(e),a=await t.blob();return new Promise(e=>{const t=new FileReader;t.onloadend=()=>e(t.result),t.readAsDataURL(a)})}function nt(e,t=1e4){return new Promise((a,o)=>{const r=new Image,c=setTimeout(()=>{o(new Error("å¾çé¢å è½½è¶
æ¶: "+e))},t);r.onload=()=>{clearTimeout(c),a(r)},r.onerror=()=>{clearTimeout(c),o(new Error("å¾çå 载失败: "+e))},r.crossOrigin="anonymous",r.src=e})}async function it(e,t,a,o=null){try{let c=null;try{c=await nt(a),console.log("å¾çé¢å è½½æå: "+t)}catch(e){console.warn("å¾çé¢å 载失败ï¼ä½ç»§ç»æ¿æ¢: "+t,e)}const{state:s}=e;let n=null,i=null;if(s.doc.descendants((e,a)=>{if("image"===e.type.name&&e.attrs["data-id"]===t)return n=a,i=e,!1}),null!==n&&i){const l=i.attrs,d=e.view.dom.querySelector(`img[data-id="${t}"]`);let p={...l};if(d){const{width:e}=d.getBoundingClientRect();!p.width&&e>0&&(p.width=Math.round(e))}if(c&&c.naturalWidth>0&&c.naturalHeight>0){var r;const t=(null==e||null===(r=e.view)||void 0===r||null===(r=r.dom)||void 0===r?void 0:r.clientWidth)||650,a=Math.max(320,Math.min(650,t-40));let o=Number(p.width)||0;o<=0&&(o=c.naturalWidth>a?a:c.naturalWidth),p.width=Math.round(o),p.height=Math.round(c.naturalHeight*p.width/c.naturalWidth)}else p.width||(delete p.width,delete p.height);const u={...p,src:a,"data-id":o||t};delete u["data-uploading"],delete u.progress;const m=s.tr.setNodeMarkup(n,null,u);return e.view.dispatch(m),setTimeout(()=>{const a=e.view.dom.querySelector(`img[data-id="${o||t}"]`);a&&(a.removeAttribute("data-uploading"),a.style.border="none",a.style.background="transparent",a.style.minHeight="auto",a.removeAttribute("alt"))},50),console.log(`å¾çæ¿æ¢æå: ${t} -> ${o||t}, URL: ${a}`),!0}const l=e.view.dom.querySelector(`img[data-id="${t}"]`);if(l){const r=e.view.posAtDOM(l,0),s=e.state.doc.nodeAt(r);if(s&&"image"===s.type.name){const n={...s.attrs};if(c&&c.naturalWidth>0&&c.naturalHeight>0){const e=Number(n.width);e>0&&(n.height=Math.round(c.naturalHeight*e/c.naturalWidth))}n.src=a,n["data-id"]=o||t,delete n["data-uploading"],delete n.progress;const i=e.state.tr.setNodeMarkup(r,null,n);return e.view.dispatch(i),setTimeout(()=>{const a=e.view.dom.querySelector(`img[data-id="${o||t}"]`);a&&(a.removeAttribute("data-uploading"),a.style.border="none",a.style.background="transparent",a.style.minHeight="auto",a.removeAttribute("alt"))},50),console.log(`å¾çæ¿æ¢æå(å¤ç¨æ¹æ¡): ${t} -> ${o||t}, URL: ${a}`),!0}}return console.warn("æ æ³æ¾å°å¾çèç¹: "+t),!1}catch(e){return console.error("å¾çæ¿æ¢å¤±è´¥:",t,e),!1}}async function lt(e,t,a,o,r,c,s){try{console.log("å¼å§å¼æ¥ä¸ä¼ å¾ç: "+t),c.add(t);const n=ct(a),i=a=>{const{state:o}=e;let r=null;if(o.doc.descendants((e,a)=>{if("image"===e.type.name&&e.attrs["data-id"]===t)return r=a,!1}
1),null!==r){const t=o.tr.setNodeMarkup(r,void 0,{...o.doc.nodeAt(r).attrs,progress:a});e.view.dispatch(t)}},{url:l,id:d}=await ot(n,{onUploadProgress:e=>{if(e.total){const t=Math.round(100*e.loaded/e.total);i(t)}}});if(l){const a={id:d,imgId:t,url:l,uploadTime:Date.now()};o.push(a),s("image-uploaded",a),s("images-updated",o),r.add(t);if(await it(e,t,l,d))r.delete(t);else{let a=1;const o=3,c=async()=>{a++,console.log(`éè¯æ¿æ¢å¾ç ${t}ï¼ç¬¬ ${a} 次`);const s=await it(e,t,l,d);!s&&a<o?setTimeout(()=>c(),200*a):(r.delete(t),!s&&a>=o&&console.error("å¾çæ¿æ¢å¤±è´¥ï¼å·²è¾¾å°æå¤§å°è¯æ¬¡æ°: "+t))};setTimeout(()=>c(),200)}}}catch(a){console.error("å¾çä¸ä¼ 失败:",t,a),r.delete(t);const{state:o}=e;let c=null;if(o.doc.descendants((e,a)=>{if("image"===e.type.name&&e.attrs["data-id"]===t)return c=a,!1}),null!==c){const t=o.tr.setNodeMarkup(c,void 0,{...o.doc.nodeAt(c).attrs,error:!0,progress:null});e.view.dispatch(t)}s("image-upload-error",{id:t,error:a.message})}finally{c.delete(t)}}async function dt(e,t,a,o,r,c,s){try{console.log(`ð å¼å§å¼æ¥å¤çå¾ç: ${t}, src: ${a.substring(0,50)}...`);let n=a;if(a.startsWith("http"))try{console.log("ð 转æ¢å¤é¾å¾ç为 base64: "+t),n=await st(a)}catch(o){console.warn("â æ æ³æåå¤é¾å¾ç",a,o);const{state:r}=e;let c=null;if(r.doc.descendants((e,a)=>{if("image"===e.type.name&&e.attrs["data-id"]===t)return c=a,!1}),null!==c){const t=r.tr.setNodeMarkup(c,void 0,{...r.doc.nodeAt(c).attrs,error:!0});e.view.dispatch(t)}return}n.startsWith("data:image")&&n!==a&&(console.log("ð· æ¿æ¢å¾ç为 base64: "+t),await it(e,t,n)),n.startsWith("data:image")&&(console.log("âï¸ å¼å§ä¸ä¼ å¾çå° OSS: "+t),await lt(e,t,n,o,r,c,s))}catch(e){console.error("â 弿¥å¤çå¾ç失败:",t,e)}}const pt=new(a("0e07").a)({html:!0,linkify:!0,typographer:!0});var ut=a("902a"),mt=a("47d1"),ht=a("33fe"),bt=a("7ca8"),gt=a("7901");var Ot={components:{NodeViewWrapper:B.d,AudioPlayer:gt.a},props:B.f};a("279e");var jt=b()(Ot,[["render",function(e,t,a,r,c,s){const n=gt.a,i=Object(o.resolveComponent)("node-view-wrapper");return Object(o.openBlock)(),Object(o.createBlock)(i,{class:"audio-node-view"},{default:Object(o.withCtx)(()=>[Object(o.createVNode)(n,{src:e.node.attrs.src,title:e.node.attrs.title},null,8,["src","title"])]),_:1})}],["__scopeId","data-v-9ec39888"]]);const Ct=pe.d.create({name:"audio",group:"block",selectable:!0,draggable:!0,atom:!0,addAttributes:()=>({src:{default:null},controls:{default:!0},title:{default:null}}),parseHTML:()=>[{tag:"audio"},{tag:'div[data-type="audio"]',getAttrs:e=>{const t=e.querySelector("audio");if(!t)return!1;const a=e.querySelector(".audio-title-static");return{src:t.getAttribute("src"),title:t.getAttribute("title")||(a?a.textContent:null),controls:t.hasAttribute("controls")}}}],renderHTML:({HTMLAttributes:e})=>["div",{class:"audio-wrapper","data-type":"audio"},["div",{class:"audio-title-static"},e.title||"é³é¢"],["audio",Object(pe.w)(e,{controls:!0})]],addNodeView:()=>Object(B.e)(jt),addCommands(){return{setAudio:e=>({tr:t,dispatch:a})=>{const{selection:o}=t,r=this.type.create(e);return a&&t.replaceRangeWith(o.from,o.to,r),!0}}}});Ce.c.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!=e.plugins)};var ft={components:{EditorContent:B.c,BubbleMenuToolbar:L,TableMenu:g,TableOfContents:U,RiUploadCloud2Line:u.Q},props:{modelValue:{type:String,default:""},postId:{type:String,default:""},paper_slug:{type:String,default:""},editable:{type:Boolean,default:!0},isMobile:{type:Boolean,default:!1},uploadImage:{type:Function,default:null},uploadRemoteImage:{type:Function,default:null},isPreview:{type:Boolean,default:!1}},data:()=>({editor:null,showLinkModal:!1,editLink:null,uploadedImageIds:[],replacingImageIds:new Set,uploadingImageIds:new Set,isDragging:!1,dragCounter:0,tableMenuVisible:!1,tableColumnPosition:{top:0,left:0,width:0},tableRowPosition:{top:0,left:0,height:0},highlightedColumn:null,highlightedRow:null,tocHeadings:[],activeHeadingId:"",showToc:!0,scrollTimeout:null,tocUpdateTimeout:null,isUpdatingToc:!1,slashCommandHandler:null,slashCommandVisible:!1,slashCommandPosition:{top:0,left:0},slashCommandQuery:"",slashCommandTriggerPos:null,showPodcastModal:!1,isContentFromEditor:!1,lastEmittedHtml:""}),computed:{uploadStatus(){return{uploading:this.uploadingImageIds.size,completed:this.uploadedImageIds.length,isUploading:this.uploadingImageIds.size>0,uploadingList:Array.from(this.uploadingImageIds)}}},watch:{modelValue(e){if(!this.editor)return;const t="string"==typeof e?e:"";if(console.log("[Editor] modelValue watcher triggered",{isContentFromEditor:this.isContentFromEditor,valueLength:t.length}),t===this.lastEmittedHtml)return console.log("[Editor] skip setContent because modelValue equals lastEmittedHtml"),void(this.isContentFromEditor=!1);if(this.isContentFromEditor)return console.log("[Editor] skip setContent because change comes from editor"),this.isContentFromEditor=!1,void(this.lastEmittedHtml=t);if(this.editor.getHTML()===t)return console.log("[Editor] skip setContent because HTML is same as modelValue"),void(this.lastEmittedHtml=t);if(t.indexOf("pre")>-1){console.log("[Editor] modelValue contains <pre>, will normalize and setContent");const e=t.replace(/^\s*[\r\n]/gm,"");return this.editor.commands.setContent(e,!1),this.lastEmittedHtml=this.editor.getHTML(),void this.$nextTick(()=>{this.updateToc()})}console.log("[Editor] setContent with new modelValue (no <pre>)"),this.editor.commands.setContent(t,!1),this.lastEmittedHtml=this.editor.getHTML(),this.$nextTick(()=>{this.updateToc()})},uploadStatus:{handler(e){this.$emit("upload-status-change",e)},deep:!0,immediate:!0}},mounted(){const e=this;this.editor=new B.b({editable:this.editable,extensions:[Q.a.configure({placeholder:"æ£æ â¦"}),K.a,J.a,X.a.configure({HTMLAttributes:{class:"editor-paragraph"}}),ee.a,te.a,ae.a.configure({openOnClick:!1,validate:e=>/^https?:\/\//.test(e),autolink:!0,linkOnPaste:!0}),oe.a,re.a,ne.a,ce.a,ie.a.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),id:{default:null,parseHTML:e=>e.getAttribute("id"),renderHTML:e=>e.id?{id:e.id}:{}}}}}).configure({levels:[1,2,3]}
1),le.a,de.a.configure({HTMLAttributes:{class:"editor-image"},allowBase64:!0,inline:!1}).extend({draggable:!0,selectable:!0,addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),"data-id":{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e["data-id"]?{"data-id":e["data-id"]}:{}},width:{default:null,parseHTML:e=>{const t=e.getAttribute("width");return t?parseInt(t,10):null},renderHTML:e=>e.width?{width:e.width}:{}},height:{default:null,parseHTML:e=>{const t=e.getAttribute("height");return t?parseInt(t,10):null},renderHTML:e=>e.height?{height:e.height}:{}},align:{default:"center",parseHTML:e=>{var t;const a=e.closest(".image-wrapper");if(a){const e=a.getAttribute("data-align");if("left"===e||"right"===e)return e}const o=e.getAttribute("data-align")||e.style.textAlign||(null===(t=e.closest("[data-align]"))||void 0===t?void 0:t.getAttribute("data-align"));return"left"===o||"right"===o?o:"center"},renderHTML:e=>e.align&&"center"!==e.align?{"data-align":e.align}:{}},desc:{default:null,parseHTML:e=>{const t=e.closest(".image-wrapper");if(t){const e=t.querySelector(".image-desc");if(e)return e.textContent||null}const a=e.nextElementSibling;return a&&a.classList.contains("image-desc")?a.textContent||null:e.getAttribute("data-desc")||null},renderHTML:e=>e.desc?{"data-desc":e.desc}:{}},progress:{default:null,parseHTML:e=>{const t=e.getAttribute("data-progress");return t?parseInt(t,10):null},renderHTML:e=>null===e.progress||void 0===e.progress?{}:{"data-progress":e.progress}},error:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-error"),renderHTML:e=>e.error?{"data-error":"true"}:{}}}},addCommands(){var t;return{...null===(t=this.parent)||void 0===t?void 0:t.call(this),reuploadImage:(t,a=null)=>({editor:o})=>{const{state:r}=o;let c=null,s=null;if(r.doc.descendants((e,a)=>{if("image"===e.type.name&&e.attrs["data-id"]===t)return c=a,s=e,!1}),null!==c&&s){const n=a||s.attrs.src;if(n.startsWith("data:")||n.startsWith("blob:")||s.attrs.error||a){const a=r.tr.setNodeMarkup(c,void 0,{...s.attrs,src:n,error:!1,progress:0});return o.view.dispatch(a),lt(o,t,n,e.uploadedImageIds,e.replacingImageIds,e.uploadingImageIds,e.$emit.bind(e)),!0}}return!1},triggerImageFilePicker:e=>({editor:t})=>{const a=document.createElement("input");return a.type="file",a.accept="image/*",a.onchange=async a=>{var o;const r=null===(o=a.target.files)||void 0===o?void 0:o[0];if(r)try{const a=await rt(r);t.commands.reuploadImage(e,a)}catch(e){console.error("Failed to convert file to base64:",e)}},a.click(),!0}}},parseHTML:()=>[{tag:"div.image-wrapper",getAttrs:e=>{const t=e.querySelector("img");if(!t)return!1;const a=e.querySelector(".image-desc"),o=a?a.textContent:null,r=e.getAttribute("data-align")||"center";return{src:t.getAttribute("src"),alt:t.getAttribute("alt"),title:t.getAttribute("title"),width:t.getAttribute("width")?parseInt(t.getAttribute("width"),10):null,height:t.getAttribute("height")?parseInt(t.getAttribute("height"),10):null,"data-id":t.getAttribute("data-id"),align:"left"===r||"right"===r?r:"center",desc:o,error:"true"===e.getAttribute("data-error")||"true"===t.getAttribute("data-error")}}},{tag:"img[src]"}],renderHTML({HTMLAttributes:e,node:t}){const a={...e};t.attrs.align&&"center"!==t.attrs.align&&(a["data-align"]=t.attrs.align),t.attrs.desc&&(a["data-desc"]=t.attrs.desc);const o={class:"image-wrapper","data-align":t.attrs.align||"center"},r=[["img",a]];return t.attrs.desc&&r.push(["div",{class:"image-desc"},t.attrs.desc]),["div",o,...r]},addNodeView:Ke}),Oe.configure({lowlight:je.a}),ve.a.configure({multicolor:!0}),se.a.configure({HTMLAttributes:{class:"xbt-hr"}}),fe.a,Ct,ut.a.configure({HTMLAttributes:{class:"editor-table"},resizable:!0}),mt.a,ht.a,bt.a],editorProps:{attributes:{spellcheck:"false"},handleDOMEvents:{drop:(e,t)=>this.handleDrop(t,e),dragover:(e,t)=>(t.preventDefault(),t.stopPropagation(),!1),dragenter:(e,t)=>(t.preventDefault(),t.stopPropagation(),this.handleDragEnter(t),!1),dragleave:(e,t)=>(t.preventDefault(),t.stopPropagation(),this.handleDragLeave(t),!1),paste:(e,t)=>{var a,o;const{state:r}=e,{selection:c}=r,s=!c.empty,n=(null===(a=t.clipboardData)||void 0===a?void 0:a.getData("text/plain"))||"",i=(null===(o=t.clipboardData)||void 0===o?void 0:o.getData("text/html"))||"";if(i&&this.isInsideTable(e.state)){if((new DOMParser).parseFromString(i,"text/html").querySelectorAll("table").length>0)return t.preventDefault(),Y.a.warning("è¡¨æ ¼å
ä¸å
许æå
¥è¡¨æ ¼"),!0}if(s&&/^(https?:\/\/|www\.|mailto:|tel:)/i.test(n.trim())&&(!i||-1===i.indexOf("<img")))return console.log("ð æ£æµå°é䏿æ¬ç²è´´é¾æ¥ï¼
1让 TipTap åçå¤ç"),!1;if(this.editor.isActive("codeBlock"))return console.log("ð» å¨ä»£ç åå
ç²è´´ï¼è®© TipTap åçå¤ç"),!1;if(n&&!s&&this.isPodcastUrl(n.trim())&&console.log("ðï¸ æ£æµå°æå®¢é¾æ¥ï¼è½¬æ¢ä¸ºåµå
¥ææ¾å¨"),n&&(!i||i.trim()===n.trim()||this.isSimpleHtml(i))){if(this.isMarkdown(n)){console.log("ð æ£æµå° Markdown ç²è´´ï¼è½¬æ¢ä¸º HTML");const e=this.convertMarkdownToHtml(n);if(e)return t.preventDefault(),this.editor.commands.insertContent(e),!0}console.log("ð æ£æµå°çº¯ææ¬ç²è´´ï¼å¤çæ¢è¡ç¬¦");const e=this.processPlainTextPaste(n);return e!==n&&(t.preventDefault(),this.editor.commands.insertContent(e),!0)}return this.handlePaste(t)}}},content:this.modelValue,autofocus:!0,onUpdate:()=>{const e=this.editor.getHTML();console.log("[Editor] onUpdate fired, emitting update:modelValue"),this.lastEmittedHtml=e,this.isContentFromEditor=!0,this.$emit("update:modelValue",e);if(!("PaperDescription"===this.$route.name))try{const t=this.cleanContentForStorage(e);this.$store.commit("editor/addDraft",{id:this.postId?this.postId:this.paper_slug,content:t})}catch(t){console.error("ä¿åè稿失败:",t);try{this.$store.commit("editor/addDraft",{id:this.postId?this.postId:this.paper_slug,content:e})}catch(e){console.warn("ä¿åèç¨¿æ¶ localStorage é
é¢è¶
éï¼å°è¯ä¿åç®åçæ¬");const t=this.editor.getText();this.$store.commit("editor/addDraft",{id:this.postId?this.postId:this.paper_slug,content:`<p>${t}</p>`})}}}}),this.lastEmittedHtml=this.editor.getHTML(),this.$emit("editor-ready",this.editor),this.addGlobalDragListeners(),this.editor.on("selectionUpdate",this.updateTableMenu),this.editor.on("update",this.updateTableMenu),this.editor.on("update",()=>{this.tocUpdateTimeout&&clearTimeout(this.tocUpdateTimeout),this.tocUpdateTimeout=setTimeout(()=>{this.updateToc()},100)}),this.editor.on("create",()=>{this.updateToc()}),this.$nextTick(()=>{setTimeout(()=>{this.updateToc(),this.setupScrollListener()},200)})},beforeUnmount(){var e;this.removeGlobalDragListeners(),this.editor&&(this.editor.off("selectionUpdate",this.updateTableMenu),this.editor.off("update",this.updateTableMenu),this.editor.off("update",this.updateToc),this.editor.off("create",this.updateToc)),this.removeScrollListener(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.tocUpdateTimeout&&clearTimeout(this.tocUpdateTimeout),this.$emit("editor-destroy",{editor:this.editor,uploadedImages:this.uploadedImageIds,content:(null===(e=this.editor)||void 0===e?void 0:e.getHTML())||""}),this.editor.destroy()},methods:{isSimpleHtml:function(e){if(!e)return!1;const t=e.replace(/<\/?(?:html|body|head|meta|div|span|p|br\/?>)[^>]*>/gi,"").replace(/\s+/g," ").trim(),a=e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim();return t===a||t.length<1.2*a.length},processPlainTextPaste:function(e){if(!e)return e;if(!e.includes("\n"))return e;const t=e.split("\n"),a=[];for(let e=0;e<t.length;e++){const o=t[e].trim();""===o?a.length>0&&""!==a[a.length-1]&&a.push(""):a.push(o)}return a.map(e=>""===e?"<p></p>":`<p>${e}</p>`).join("")},isMarkdown:function(e){return!!e&&[/^#{1,6}\s/m,/^\s*[-*+]\s/m,/^\s*\d+\.\s/m,/^\s*>\s/m,/!\[.*\]\(.*\)/,/\[.*\]\(.*\)/,/(`{3,}|~{3,})/,/`[^`]+`/,/\*\*.*\*\*/,/__.*__/,/\*.*\*/,/_.*_/,/^\s*---+\s*$/m,/\|\s*[^|]+\s*\|/].some(t=>t.test(e))},convertMarkdownToHtml:function(e){return e?pt.render(e):""},isPodcastUrl:e=>!!e&&(/open\.spotify\.com\/episode\//.test(e)||/podcasts\.apple\.com\/.*\/podcast\//.test(e)||/xiaoyuzhoufm\.com\/episode\//.test(e)),getPodcastEmbedUrl(e){try{if(/open\.spotify\.com\/episode\//.test(e)){const t=new URL(e);return t.pathname.startsWith("/embed")||(t.pathname="/embed"+t.pathname),t.toString()}if(/podcasts\.apple\.com\/.*\/podcast\//.test(e)){const t=new URL(e);return t.hostname="embed.podcasts.apple.com",t.toString()}if(/xiaoyuzhoufm\.com\/episode\//.test(e))return e}catch(e){return console.error("Check Podcast URL Error:",e),null}return null},addImageOverlay(e){const t=document.createElement("div");t.style.position="relative",t.style.display="inline-block";const a=document.createElement("div");a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.background="rgba(255, 255, 255, 0.8)",a.style.display="flex",a.style.alignItems="center",a.style.justifyContent="center",a.style.fontSize="14px",a.style.color="#666",a.innerHTML="å¾çä¸ä¼ ä¸...",e.parentNode.insertBefore(t,e),t.appendChild(e),t.appendChild(a),e.overlayElement=a},addLink(e){const{url:t,title:a}=e;this.editor.chain().focus().extendMarkRange("link").setLink({href:t,target:"_blank"}).command(({tr:e})=>(e.insertText(a),!0)).run(),this.showLinkModal=!1},hideLink(){this.showLinkModal=!1},showAddLinkModal(e){if(e)this.editLink=e;else{const{from:e,to:t}=this.editor.state.selection,a=this.editor.state.doc.textBetween(e,t," "),o=this.editor.getAttributes("link").href;this.editLink={title:a,url:o}}this.showLinkModal=!0,this.$nextTick(()=>{this.$refs.bubbleMenuToolbar&&this.$refs.bubbleMenuToolbar.setAddLinkData(this.editLink)})},checkImg(){const e=document.querySelectorAll("img");
1e.length<10||e.forEach(e=>{if(!e.classList.contains("visibility")){e.classList.add("visibility");const t=e.width,a=e.height;e.style.containIntrinsicSize=`${t}px ${a}px`}})},checkRemovedImages(){if(!this.editor||0===this.uploadedImageIds.length)return;const e=[];this.editor.view.dom.querySelectorAll("img[data-id]").forEach(t=>{const a=t.getAttribute("data-id");a&&e.push(a)});const t=this.uploadedImageIds.filter(t=>{if(t.imgId&&this.replacingImageIds.has(t.imgId))return!1;return!(e.includes(t.id)||t.imgId&&e.includes(t.imgId))});t.length>0&&(this.uploadedImageIds=this.uploadedImageIds.filter(t=>{const a=e.includes(t.id)||t.imgId&&e.includes(t.imgId),o=t.imgId&&this.replacingImageIds.has(t.imgId);return a||o}),t.forEach(e=>{this.$emit("image-removed",e),e.imgId&&this.replacingImageIds.delete(e.imgId)}),this.$emit("images-updated",this.uploadedImageIds))},isInsideTable:function(e){if(!e)return!1;const{selection:t}=e,{$anchor:a}=t;for(let e=a.depth;e>0;e--){const t=a.node(e);if("tableCell"===t.type.name||"tableHeader"===t.type.name)return!0}return!1},handlePaste(e){var t,a;const o=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/html");if(o&&this.isInsideTable(this.editor.state)){if((new DOMParser).parseFromString(o,"text/html").querySelectorAll("table").length>0)return e.preventDefault(),Y.a.warning("è¡¨æ ¼å
ä¸å
许æå
¥è¡¨æ ¼"),!0}const r=null===(a=e.clipboardData)||void 0===a?void 0:a.files;if(r&&r.length>0){const t=Array.from(r).filter(e=>e.type.startsWith("image/")&&e.size<52428800);if(t.length>0){e.preventDefault(),console.log("å¤çç²è´´çå¾çæä»¶",t.length,"个");return(async()=>{const e=[];if(await Promise.all(t.map(async t=>{const a="img_"+Date.now()+"_"+Math.random().toString(36).slice(2);try{const o=await rt(t);e.push({imgId:a,base64:o,file:t})}catch(e){console.error("转æ¢å¾ç失败:",t.name,e)}})),0===e.length)return;const a=e.map(e=>({type:"image",attrs:{src:e.base64,"data-id":e.imgId}}));this.editor.chain().focus().insertContent(a).run(),e.forEach(e=>{lt(this.editor,e.imgId,e.base64,this.uploadedImageIds,this.replacingImageIds,this.uploadingImageIds,this.$emit.bind(this))})})(),!0}}if(!o)return!1;const c=(new DOMParser).parseFromString(o,"text/html"),s=c.querySelectorAll("img");if(0===s.length)return!1;e.preventDefault(),console.log("ð å¤ç坿æ¬ä¸çå¾çï¼é¢åé
ID");const n=[];return s.forEach(e=>{const t=e.getAttribute("src");if(t){const a="img_"+Date.now()+"_"+Math.random().toString(36).slice(2);e.setAttribute("data-id",a),n.push({imgId:a,src:t}),console.log(`é¢åé
ID: ${a} ç¨äº ${t.substring(0,30)}...`)}}
1),this.editor.commands.insertContent(c.body.innerHTML),n.forEach(({imgId:e,src:t})=>{dt(this.editor,e,t,this.uploadedImageIds,this.replacingImageIds,this.uploadingImageIds,this.$emit.bind(this))}),!0},isFileDragEvent:e=>Boolean(e.dataTransfer&&Array.from(e.dataTransfer.types||[]).includes("Files")),resetDragState(){this.isDragging=!1,this.dragCounter=0},handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this.isFileDragEvent(e)&&(this.dragCounter++,1===this.dragCounter&&(this.isDragging=!0,console.log("ð¯ å¼å§ææ½å¾ç")))},handleDragLeave(e){e.preventDefault(),e.stopPropagation();this.$el.contains(e.relatedTarget)||(this.dragCounter--,this.dragCounter<=0&&(this.resetDragState(),console.log("â©ï¸ ææ½ç¦»å¼")))},async handleDrop(e,t){var a;e.preventDefault(),e.stopPropagation(),this.resetDragState();const o=null===(a=e.dataTransfer)||void 0===a?void 0:a.files;if(!o||0===o.length)return console.log("â¹ï¸ ææ½å
容ä¸å
嫿件"),!1;const r=[],c=[];if(Array.from(o).forEach(e=>{const t=this.validateDragFile(e);t.valid?r.push(e):(c.push({file:e,reason:t.reason}),console.log(`â ï¸ ${t.reason}: ${e.name}`))}),c.length>0){const e=c.map(e=>`${e.file.name}: ${e.reason}`);this.showDragError("é¨åæä»¶æ æ³ä¸ä¼ :\n"+e.join("\n"))}if(0===r.length)return console.log("â¹ï¸ æ²¡æææçå¾çæä»¶"),!1;console.log(`ð ææ½ä¸ä¼ ${r.length} 个å¾çæä»¶`),r.length>1&&console.log(`ð å¼å§æ¹éä¸ä¼ ${r.length} 个å¾ç...`);const s=t.posAtCoords({left:e.clientX,top:e.clientY}),n=t.dom.getBoundingClientRect();let i=s?s.pos:t.state.selection.head;!s&&e.clientY>=n.bottom?i=t.state.doc.content.size:!s&&e.clientY<=n.top&&(i=0);return(async()=>{const e=[];if(await Promise.all(r.map(async t=>{const a="img_"+Date.now()+"_"+Math.random().toString(36).slice(2);try{const o=await rt(t);e.push({imgId:a,base64:o,file:t})}catch(e){console.error("è½¬æ¢ææ½å¾ç失败:",t.name,e)}})),0===e.length)return;let a=i;const o=t.state.tr;e.forEach(e=>{o.insert(a,t.state.schema.nodes.image.create({src:e.base64,"data-id":e.imgId})),a+=1}),t.dispatch(o),console.log(`â
æ¹éæå
¥ææ½å¾ç ${e.length} å¼ `),e.forEach(e=>{lt(this.editor,e.imgId,e.base64,this.uploadedImageIds,this.replacingImageIds,this.uploadingImageIds,this.$emit.bind(this))})})(),!0},showDragError(e){console.error("â ææ½ä¸ä¼ é误:",e)},validateDragFile:function(e){return["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/svg+xml"].includes(e.type)?e.size>52428800?{valid:!1,reason:`æä»¶å¤ªå¤§: ${(e.size/1024/1024).toFixed(1)}MB (æå¤§ 50MB)`}:{valid:!0}:{valid:!1,reason:"䏿¯æçæä»¶ç±»å: "+e.type}},async processImageAsync(e,t){return dt(this.editor,e,t,this.uploadedImageIds,this.replacingImageIds,this.uploadingImageIds,this.$emit.bind(this))},setDataIdForSingleImage(e){return function(e,t){const a=e.view.dom.querySelectorAll('img:not([data-id]), img[data-id=""]');if(a.length>0){const o=a[a.length-1];try{const a=e.view.posAtDOM(o,0),r=e.state.doc.nodeAt(a);if(r&&"image"===r.type.name){const o=e.state.tr.setNodeMarkup(a,null,{...r.attrs,"data-id":t});e.view.dispatch(o),console.log("设置æªå¾ data-id: "+t)}}catch(e){console.warn("设置æªå¾ data-id 失败:",e)}}}(this.editor,e)},async uploadImageAsync(e,t){return lt(this.editor,e,t,this.uploadedImageIds,this.replacingImageIds,this.uploadingImageIds,this.$emit.bind(this))},convertImageUrlToBase64:async e=>st(e),dataURLtoFile:ct,fileToBase64:async e=>rt(e),compressImage:(e,t=1200,a=.8)=>new Promise(o=>{const r=document.createElement("canvas"),c=r.getContext("2d"),s=new window.Image;s.onload=()=>{let{width:n,height:i}=s;n>t&&(i=i*t/n,n=t);i>1200&&(n=1200*n/i,i=1200),r.width=n,r.height=i,c.drawImage(s,0,0,n,i),r.toBlob(t=>{t?(console.log(`å¾çåç¼©å®æ: ${(e.size/1024).toFixed(1)}KB -> ${(t.size/1024).toFixed(1)}KB`),o(t)):o(e)},"image/jpeg",a)},s.onerror=()=>{o(e)},s.src=URL.createObjectURL(e)}),compressBase64Image:async(e,t=1200,a=.8)=>new Promise(o=>{const r=document.createElement("canvas"),c=r.getContext("2d"),s=new window.Image;s.onload=()=>
1{let n=s.naturalWidth,i=s.naturalHeight;n>t&&(i=i*t/n,n=t);i>1200&&(n=1200*n/i,i=1200),r.width=n,r.height=i,c.drawImage(s,0,0,n,i);const l=r.toDataURL("image/jpeg",a);console.log(`Base64å¾çåç¼©å®æ: ${(e.length/1024).toFixed(1)}KB -> ${(l.length/1024).toFixed(1)}KB`),o(l)},s.onerror=()=>{o(e)},s.src=e}),preloadImage:nt,replaceImageById:async(e,t,a,o=null)=>it(e,t,a,o),getUploadedImageIds(e=[]){if(!this.editor)return[];const t=[],a=new Set,o=new Map,r=new Map;this.uploadedImageIds.forEach(e=>{if(!e||void 0===e.id||null===e.id||""===e.id)return;const t=e.id,a=String(t);if(o.set(a,t),e.imgId&&o.set(String(e.imgId),t),e.url){const a=String(e.url);o.set(a,t),r.set(a,t)}}),e.forEach(e=>{e&&void 0!==e.id&&null!==e.id&&""!==e.id&&e.url&&r.set(String(e.url),e.id)});const c=e=>{if(null==e||""===e)return;const o=(e=>"string"==typeof e&&/^\d+$/.test(e)?Number(e):e)(e),r=String(o);a.has(r)||(a.add(r),t.push(o))};return this.editor.state.doc.descendants(e=>{if("image"!==e.type.name)return;const t=e.attrs["data-id"]?String(e.attrs["data-id"]):"",a=e.attrs.src?String(e.attrs.src):"";var s;t&&o.has(t)?c(o.get(t)):!t||(s=t)&&(/^img_\d+_[a-z0-9]+$/i.test(s)||s.startsWith("blob:")||s.startsWith("data:"))?a&&r.has(a)&&c(r.get(a)):c(t)}),t},getUploadedImagesInfo(){return this.uploadedImageIds},clearUploadedImages(){this.uploadedImageIds=[],this.replacingImageIds.clear(),this.base64Cache&&this.base64Cache.clear(),this.$emit("images-updated",this.uploadedImageIds)},removeUploadedImage(e){const t=this.uploadedImageIds.length;this.uploadedImageIds=this.uploadedImageIds.filter(t=>t.id!==e&&t.imgId!==e),this.replacingImageIds.delete(e),this.base64Cache&&this.base64Cache.delete(e),this.uploadedImageIds.length!==t&&this.$emit("images-updated",this.uploadedImageIds)},cleanupExpiredCache(){if(!this.base64Cache)return;const e=Date.now();for(const[a]of this.base64Cache){var t;const o=null===(t=a.match(/img_(\d+)_/))||void 0===t?void 0:t[1];o&&e-parseInt(o)>6e5&&(this.base64Cache.delete(a),console.log("æ¸
çè¿æç¼å: "+a))}},addGlobalDragListeners(){this.globalDragEnterHandler=e=>{this.isFileDragEvent(e)&&(e.preventDefault(),this.isDragging=!0)},this.globalDragOverHandler=e=>{this.isFileDragEvent(e)&&(e.preventDefault(),this.isDragging=!0,e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))},this.globalDragLeaveHandler=e=>{e.relatedTarget&&"HTML"!==e.relatedTarget.nodeName||(this.resetDragState(),console.log("ð å
¨å±ææ½ç¦»å¼ï¼éç½®ç¶æ"))},this.globalDropHandler=e=>{this.isFileDragEvent(e)&&(e.preventDefault(),e.stopPropagation(),this.editor&&this.editor.view&&this.editable&&!this.isPreview?this.handleDrop(e,this.editor.view):this.resetDragState())},document.addEventListener("dragenter",this.globalDragEnterHandler),document.addEventListener("dragover",this.globalDragOverHandler),document.addEventListener("dragleave",this.globalDragLeaveHandler),document.addEventListener("drop",this.globalDropHandler)},removeGlobalDragListeners(){this.globalDragEnterHandler&&document.removeEventListener("dragenter",this.globalDragEnterHandler),this.globalDragOverHandler&&document.removeEventListener("dragover",this.globalDragOverHandler),this.globalDragLeaveHandler&&document.removeEventListener("dragleave",this.globalDragLeaveHandler),this.globalDropHandler&&document.removeEventListener("drop",this.globalDropHandler)},getUploadStatus(){return this.uploadStatus},canSave(){return 0===this.uploadingImageIds.size},updateTableMenu(){if(!this.editor||this.isMobile)return this.tableMenuVisible=!1,void this.clearTableHighlight();const{state:e}=this.editor,{selection:t}=e,{$anchor:a}=t;let o=null,r=null;for(let e=a.depth;e>0;e--){const t=a.node(e);if("tableCell"===t.type.name||"tableHeader"===t.type.name){o=t,r=a.start(e);break}}if(!o||!r)return void(this.tableMenuVisible=!1);const c=this.editor.view,s=c.dom,n=this.$el.getBoundingClientRect();try{let e=c.domAtPos(r).node;for(3===e.nodeType&&(e=e.parentElement);e&&1===e.nodeType&&"TD"!==e.tagName&&"TH"!==e.tagName;)e=e.parentElement;if(!e||"TD"!==e.tagName&&"TH"!==e.tagName)return void(this.tableMenuVisible=!1);const t=e.closest("table");if(!t)return void(this.tableMenuVisible=!1);if(!s.contains(t))return void(this.tableMenuVisible=!1);const a=e.getBoundingClientRect(),o=t.querySelector("tr");let i=null;if(o){const e=o.querySelectorAll("td, th");for(let t=0;t<e.length;t++){const o=e[t],r=o.getBoundingClientRect(),c=a.left+a.width/2;if(c>=r.left-2&&c<=r.right+2){i=o;break}}}const l=(i||e).getBoundingClientRect();a.width>
10&&l.top>=n.top&&l.top<=n.bottom?this.tableColumnPosition={top:l.top-n.top-12,left:a.left-n.left+a.width/2-12,width:a.width}:this.tableColumnPosition={top:0,left:0,width:0};const d=e.closest("tr");if(d){const e=d.querySelector("td, th");if(e){const t=e.getBoundingClientRect();t.height>0&&t.left>=n.left&&t.left<=n.right?this.tableRowPosition={top:t.top-n.top+t.height/2-12,left:t.left-n.left-12,height:t.height}:this.tableRowPosition={top:0,left:0,height:0}}else this.tableRowPosition={top:0,left:0,height:0}}else this.tableRowPosition={top:0,left:0,height:0};this.tableColumnPosition.width>0&&this.tableRowPosition.height>0&&this.tableColumnPosition.top>=0&&this.tableRowPosition.top>=0?this.tableMenuVisible=!0:(this.tableMenuVisible=!1,this.clearTableHighlight())}catch(e){console.warn("æ´æ°è¡¨æ ¼èå失败:",e),this.tableMenuVisible=!1,this.clearTableHighlight()}},highlightTableColumn(e){if(this.clearTableHighlight(),!e){const{state:t}=this.editor,{selection:a}=t,{$anchor:o}=a;let r=null;for(let e=o.depth;e>0;e--){const t=o.node(e);if("tableCell"===t.type.name||"tableHeader"===t.type.name){r=o.start(e);break}}if(!r)return;const c=this.editor.view.domAtPos(r);for(e=3===c.node.nodeType?c.node.parentElement:c.node;e&&1===e.nodeType&&"TD"!==e.tagName&&"TH"!==e.tagName;)e=e.parentElement}if(!e||"TD"!==e.tagName&&"TH"!==e.tagName)return;const t=e.closest("table");if(!t)return;const a=e.getBoundingClientRect(),o=t.querySelectorAll("tr"),r=a.left+a.width/2;o.forEach(e=>{e.querySelectorAll("td, th").forEach(e=>{const t=e.getBoundingClientRect();r>=t.left-2&&r<=t.right+2&&e.classList.add("table-column-highlighted")})}),this.highlightedColumn=e},highlightTableRow(e){if(this.clearTableHighlight(),!e){const{state:t}=this.editor,{selection:a}=t,{$anchor:o}=a;let r=null;for(let e=o.depth;e>0;e--){const t=o.node(e);if("tableCell"===t.type.name||"tableHeader"===t.type.name){r=o.start(e);break}}if(!r)return;const c=this.editor.view.domAtPos(r);for(e=3===c.node.nodeType?c.node.parentElement:c.node;e&&1===e.nodeType&&"TD"!==e.tagName&&"TH"!==e.tagName;)e=e.parentElement}if(!e||"TD"!==e.tagName&&"TH"!==e.tagName)return;const t=e.closest("tr");if(!t)return;t.querySelectorAll("td, th").forEach(e=>{e.classList.add("table-row-highlighted")}),this.highlightedRow=t},clearTableHighlight(){var e;const t=null===(e=this.editor)||void 0===e||null===(e=e.view)||void 0===e?void 0:e.dom;if(!t)return;t.querySelectorAll(".table-column-highlighted, .table-row-highlighted").forEach(e=>{e.classList.remove("table-column-highlighted","table-row-highlighted")}),this.highlightedColumn=null,this.highlightedRow=null},updateToc(){if(this.editor&&!this.isUpdatingToc){this.isUpdatingToc=!0;try{const e=[],{doc:t}=this.editor.state,a=[];t.descendants((t,o)=>{if("heading"===t.type.name){const r=t.attrs.level,c=t.textContent.trim();if(c){let s=t.attrs.id||this.generateHeadingId(c,o);t.attrs.id||a.push({pos:o,id:s}),e.push({id:s,level:r,text:c,pos:o})}}}),a.length>0?this.$nextTick(()=>{const{tr:e,doc:t}=this.editor.state;let o=!1;if(a.forEach(({pos:a,id:r})=>{const c=t.nodeAt(a);c&&"heading"===c.type.name&&!c.attrs.id&&(e.setNodeMarkup(a,null,{...c.attrs,id:r}),o=!0)}),o)return this.editor.view.dispatch(e),void setTimeout(()=>{this.isUpdatingToc=!1,this.updateToc()},100);this.isUpdatingToc=!1}):this.isUpdatingToc=!1,this.tocHeadings=e,this.$nextTick(()=>{this.updateHeadingIds(),this.updateActiveHeading()})}catch(e){console.error("æ´æ°ç®å½å¤±è´¥:",e),this.isUpdatingToc=!1}}},generateHeadingId:function(e,t){return`heading-${e.toLowerCase().replace(/[^\w\u4e00-\u9fa5]+/g,"-").replace(/^-+|-+$/g,"").substring(0,32)||"section"}-${t}`},updateHeadingIds(){if(!this.editor)return;const e=this.editor.view.dom;if(!e)return;const t=e.querySelectorAll("h1, h2, h3");if(0===t.length)return;let a=0;t.forEach(e=>{const t=e.textContent.trim(),o=parseInt(e.tagName.charAt(1));let r="";for(;!r&&a<this.tocHeadings.length;){const e=this.tocHeadings[a];a++,e.level===o&&e.text===t&&(r=e.id)}(r&&e.id!==r||!e.id&&r)&&(e.id=r)})},setupScrollListener(){if(!this.editor||this.isMobile)return;const e=this.editor.view.dom;e&&(this.scrollHandler=()=>{this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.updateActiveHeading()},100)},e.addEventListener("scroll",this.scrollHandler,{passive:!0}),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.updateActiveHeading())}
1,removeScrollListener(){if(this.scrollHandler){var e;const t=null===(e=this.editor)||void 0===e||null===(e=e.view)||void 0===e?void 0:e.dom;t&&t.removeEventListener("scroll",this.scrollHandler),window.removeEventListener("scroll",this.scrollHandler)}},updateActiveHeading(){if(!this.editor||0===this.tocHeadings.length)return void(this.activeHeadingId="");const e=this.editor.view.dom;if(!e)return;const t=(e.scrollTop||window.pageYOffset)+100;let a="";for(let o=this.tocHeadings.length-1;o>=0;o--){const r=this.tocHeadings[o],c=e.querySelector("#"+r.id);if(c){if(c.offsetTop<=t){a=r.id;break}}}!a&&this.tocHeadings.length>0&&(a=this.tocHeadings[0].id),this.activeHeadingId=a},handleHeadingClick(e){this.activeHeadingId=e},handleSlashCommandTrigger(e){if(!this.editor||this.isMobile)return;const{pos:t,query:a,view:o}=e;this.$nextTick(()=>{this.slashCommandTriggerPos=t,this.slashCommandQuery=a||"";try{const e=o.coordsAtPos(t),a=this.$el.getBoundingClientRect();this.slashCommandPosition={top:e.top-a.top+20,left:e.left-a.left}}catch(e){const t=this.editor.state.selection,a=this.editor.view.coordsAtPos(t.$from.pos),o=this.$el.getBoundingClientRect();this.slashCommandPosition={top:a.top-o.top+20,left:a.left-o.left}}this.slashCommandVisible=!0,this.updateSlashCommandQuery()})},updateSlashCommandQuery(){if(this.editor&&this.slashCommandVisible&&null!==this.slashCommandTriggerPos)try{const{state:e}=this.editor,{doc:t}=e,a=t.resolve(this.slashCommandTriggerPos),o=a.start(a.depth),r=e.selection.$from.pos,c=t.textBetween(o,r," ").trim();c.startsWith("/")?this.slashCommandQuery=c.substring(1).trim():0!==c.length&&c.includes("/")?this.slashCommandQuery="":this.closeSlashCommand()}catch(e){console.warn("æ´æ° SlashCommand æ¥è¯¢ææ¬å¤±è´¥:",e)}},handleSlashCommandSelect(e){if(!this.editor||null===this.slashCommandTriggerPos)return;const t=this.slashCommandTriggerPos;this.closeSlashCommand(),this.$nextTick(()=>{try{const{state:a}=this.editor,o=a.doc.resolve(t),r=o.start(o.depth),c=a.selection.$from.pos,s=a.doc.textBetween(r,c," ");s.trim().startsWith("/")?(this.editor.chain().focus().deleteRange({from:r,to:c}).run(),this.$nextTick(()=>{e&&("podcast"===e.id?this.showPodcastModal=!0:e.action&&e.action(this.editor))})):e&&("podcast"===e.id?this.showPodcastModal=!0:e.action&&e.action(this.editor))}catch(t){console.error("æ§è¡ SlashCommand 失败:",t),e&&("podcast"===e.id?this.showPodcastModal=!0:e.action&&e.action(this.editor))}})},closeSlashCommand(){this.slashCommandVisible=!1,this.slashCommandQuery="",this.slashCommandTriggerPos=null,this.slashCommandPosition={top:0,left:0}},cleanContentForStorage(e){if(!e)return e;try{const t=(new DOMParser).parseFromString(e,"text/html");return t.querySelectorAll("img").forEach(e=>{const t=e.getAttribute("src")||"",a=e.getAttribute("data-id")||"";if("true"===e.getAttribute("data-error"))e.setAttribute("src","[error]");else if(t.startsWith("data:image")){const t=this.uploadedImageIds.find(e=>e.imgId===a||e.id===a);t&&t.url&&!t.url.startsWith("data:")?(e.setAttribute("src",t.url),t.id&&e.setAttribute("data-id",t.id)):a?(e.setAttribute("src",`[uploading:${a}]`),e.setAttribute("data-placeholder","true")):(e.setAttribute("src","[uploading]"),e.setAttribute("data-placeholder","true"))}}),t.body.innerHTML}catch(t){return console.warn("æ¸
çå
容失败ï¼ä½¿ç¨åå§å
容:",t),e.replace(/src="data:image[^"]*"/g,'src="[uploading]" data-placeholder="true"')}}}};a("9278"),a("ca82"),a("5726");const vt=b()(ft,[["render",function(e,t,a,r,c,s){const n=U,i=L,l=Object(o.resolveComponent)("editor-content"),d=g,p=Object(o.resolveComponent)("RiUploadCloud2Line");return Object(o.openBlock)(),Object(o.createElementBlock)("div",F,[c.editor&&!a.isMobile&&c.showToc&&!a.isPreview&&c.tocHeadings.length>0?(Object(o.openBlock)(),Object(o.createBlock)(n,{key:0,headings:c.tocHeadings,"active-id":c.activeHeadingId,onHeadingClick:s.handleHeadingClick},null,8,["headings","active-id","onHeadingClick"])):Object(o.createCommentVNode)("",!0),Object(o.createVNode)(i,{ref:"bubbleMenuToolbar",editor:c.editor,isMobile:a.isMobile,postId:a.postId,showLinkModal:c.showLinkModal,editLink:c.editLink,onShowAddLinkModal:s.showAddLinkModal,onAddLink:s.addLink,onHideLink:s.hideLink},null,8,["editor","isMobile","postId","showLinkModal","editLink","onShowAddLinkModal","onAddLink","onHideLink"]),Ob
1ject(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["editor-content-wrapper",{"with-toc":c.showToc&&!a.isMobile&&!a.isPreview&&c.tocHeadings.length>0}])},[Object(o.createVNode)(l,{editor:c.editor,class:Object(o.normalizeClass)({"drag-over":c.isDragging})},null,8,["editor","class"])],2),c.editor&&!a.isMobile?(Object(o.openBlock)(),Object(o.createBlock)(d,{key:1,editor:c.editor,visible:c.tableMenuVisible,"column-position":c.tableColumnPosition,"row-position":c.tableRowPosition,onHighlightColumn:s.highlightTableColumn,onHighlightRow:s.highlightTableRow,onClearHighlight:s.clearTableHighlight},null,8,["editor","visible","column-position","row-position","onHighlightColumn","onHighlightRow","onClearHighlight"])):Object(o.createCommentVNode)("",!0),c.isDragging?(Object(o.openBlock)(),Object(o.createElementBlock)("div",z,[Object(o.createElementVNode)("div",q,[Object(o.createElementVNode)("span",W,[Object(o.createVNode)(p)]),G])])):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-6f0986d2"]]);t.a=vt},cec6:function(e,t,a){},cfaa:function(e,t,a){"use strict";a("9b46")},d062:function(e,t,a){"use strict";a("3d8a")},d13f:function(e,t,a){},d15c:function(e,t,a){},d27f:function(e,t,a){},d27f9:function(e,t,a){"use strict";a("9777")},d390:function(e,t,a){"use strict";a("8333")},d4c4:function(e,t,a){},d6f1:function(e,t,a){},d786:function(e,t,a){},db22:function(e,t,a){"use strict";a("eb2d")},dbc3:function(e,t,a){},dc22:function(e,t,a){"use strict";a("b6b8")},dc3b:function(e,t,a){"use strict";a("ec60")},de7f:function(e,t,a){"use strict";a("ffce")},def0:function(e,t,a){},e1cc:function(e,t,a){},e1e72:function(e,t,a){"use strict";a("f544")},eabd:function(e,t,a){"use strict";a("d15c")},eaf6:function(e,t,a){},eb2d:function(e,t,a){},ebab:function(e,t,a){"use strict";a("3595")},ec60:function(e,t,a){},ed28:function(e,t,a){"use strict";a("4f38")},ee2c:function(e,t,a){},eeb7:function(e,t,a){},f0ab:function(e,t,a){"use strict";var o=a("0bca"),r=(a("8ab7"),a("90f1"));const c=e=>(Object(r.pushScopeId)("data-v-1345e7dc"),e=e(),Object(r.popScopeId)(),e),s=c(()=>Object(r.createElementVNode)("header",{class:"addLink__header"},[Object(r.createElementVNode)("h2",{class:"addLink__title"},"åå»ºé¾æ¥")],-1)),n={class:"addLink__fields"},i={class:"addLink__field"},l=c(()=>Object(r.createElementVNode)("span",{class:"addLink__label"},"æ é¢",-1)),d={class:"addLink__field"},p=c(()=>Object(r.createElementVNode)("span",{class:"addLink__label"},"龿¥",-1)),u={key:0,class:"addLink__error",role:"alert"},m={class:"addLink__actions"},h=c(()=>Object(r.createElementVNode)("button",{type:"submit",class:"addLink__button addLink__button--primary"},"确认",-1));var b={name:"AddLink",props:{handleOk:{type:Function,default:()=>{}},handleCancel:{type:Function,default:()=>{}}},data:()=>({error:"",link:{title:"",url:""}}),methods:{blurActiveElement(){var e;const t=document.activeElement;t&&null!==(e=this.$el)&&void 0!==e&&e.contains(t)&&t.blur()},save(){const e=this.link.title.trim(),t=this.link.url.trim();e&&t?/^https?:\/\//i.test(t)?(this.blurActiveElement(),this.handleOk({title:e,url:t}),this.link={title:"",url:""},this.error=""):this.error="龿¥éè¦ä»¥ http:// æ https:// å¼å¤´":this.error="è¯·å¡«åæ é¢å龿¥"},setLink(e){this.link={title:(null==e?void 0:e.title)||"",url:(null==e?void 0:e.url)||""},this.error=""},onCancel(){this.blurActiveElement(),this.$emit("hide-link"),this.handleCancel(),this.error=""}}},g=(a("6d7e"),a("cfaa"),a("5e0b"));const O=a.n(g)()(b,[["render",function(e,t,a,c,b,g){const O=o.a;return Object(r.openBlock)(),Object(r.createElementBlock)("form",{class:"addLink",onClick:t[3]||(t[3]=Object(r.withModifiers)(()=>{},["stop"])),onSubmit:t[4]||(t[4]=Object(r.withModifiers)((...e)=>g.save&&g.save(...e),["prevent"]))},[s,Object(r.createElementVNode)("div",n,[Object(r.createElementVNode)("label",i,[l,Object(r.createVNode)(O,{modelValue:b.link.title,"onUpdate:modelValue":t[0]||(t[0]=e=>b.link.title=e),placeholder:"è¾å
¥æ é¢"},null,8,["modelValue"])]),Object(r.createElementVNode)("label",d,[p,Object(r.createVNode)(O,{modelValue:b.link.url,"onUpdate:modelValue":t[1]||(t[1]=e=>b.link.url=e),placeholder:"https://example.com"},null,8,["modelValue"])])]),b.error?(Object(r.openBlock)(),Object(r.createElementBlock)("p",u,Object(r.toDisplayString)(b.error),1)):Object(r.createCommentVNode)("",!0),Object(r.createElementVNode)("footer",m,[h,Object(r.createElementVNode)("button",{type:"button",class:"addLink__button addLink__button--secondary",onClick:t[2]||(t[2]=(...e)=>g.onCancel&&g.onCancel(...e))},"åæ¶")])],32)}],["__scopeId","data-v-1345e7dc"]]);t.a=O},f379:function(e,t,a){},f544:function(e,t,a){},f9cf:function(e,t,a){"use strict";a("7006")},fa3c:function(e,t,a){},fa7d:function(e,t,a){"use strict";a.d(t,"l",(function(){return r})),a.d(t,"e",(function(){return c})),a.d(t,"g",(function(){return s})),a.d(t,"d",(function(){return n})),a.d(t,"k",(function(){return i})),a.d(t,"i",(function(){return l})),a.d(t,"a",(function(){return p})),a.d(t,"j",(function(){return u})),a.d(t,"f",(function(){return h})),a.d(t,"c",(function(){return m})),a.d(t,"b",(function(){return b})),a.d(t,"h",(function(){return g}));a("f764"),a("6072"),a("ed24"),a("b93c");var o=a("4360");function r(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"')}function c(e){return e.replace(/<img[^>]*src="([^"]*)"[^>]*>/g,(function(e,t){if(p(t)){if(t.indexOf(".gif")>-1)return e;if(-1===t.indexOf("!post")&&-1===t.indexOf("!postoriginal")){try{const a=new DOMParser,o=a.parseFromString(e,"text/html").querySelector("img");if(o){const e=d()?t+"!post":t+"!postoriginal";o.setAttribute("src",e);let a="<img";for(let e=0;e<o.attributes.length;e++){const t=o.attributes[e],r=t.name,c=t.value;a+=` ${r}="${c.replace(/"/g,""")}"`}return a+=" />",a}}catch(e){console.warn("è§£æ img æ ç¾å¤±è´¥ï¼ä½¿ç¨åéæ¹æ¡:",e)}const a=e.match(/<img\s+([^>
1]+)>/);if(a&&a[1]){let e=a[1];return e=e.replace(/src="[^"]*"/,`src="${d()?t+"!post":t+"!postoriginal"}"`),`<img ${e} />`}return d()?'<img src="'+t+'!post" />':'<img src="'+t+'!postoriginal" />'}}return e}))}function s(e,t=!1){if(!e||"string"!=typeof e)return console.warn("getReferUrl: slug åæ°æ æ"),"";try{var a;const r=(null===(a=o.a.state.user)||void 0===a||null===(a=a.user)||void 0===a?void 0:a.uuid)||null;let c=`${t?"https://xiaobot.net":m()}/p/${encodeURIComponent(e)}`;const s=new URLSearchParams;r&&s.append("refer",r);const n=s.toString();return n&&(c+="?"+n),c}catch(a){console.error("getReferUrl çæé¾æ¥å¤±è´¥:",a);return`${t?"https://xiaobot.net":m()}/p/${encodeURIComponent(e)}`}}function n(e){const{papers:{refers:t}}=o.a.state;return t.filter(t=>t.slug===e)[0]}function i(e,t){!function(){const e=navigator.userAgent,t=e.indexOf("MicroMessenger")>-1,a=e.indexOf("Windows NT")>-1||e.indexOf("Macintosh")>-1;return!t&&a}()?t():e()}function l(){return navigator.userAgent.indexOf("MicroMessenger")>-1}function d(){return 0==document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp")}function p(e){let t=!1;return e.indexOf("static.xiaobot.net")>-1&&(t=!0),e.indexOf("xiaobot.oss-cn-shanghai.aliyuncs.com")>-1&&(t=!0),t}function u(e){let t=n(e);if(t){(new Date).getTime()-t.time>6048e5&&(t=null,o.a.commit("papers/removeRefer",e))}else t=null;return t?t.refer:""}function m(){return window.location.protocol+"//"+function(){const e=window.location.host;return 0===e.indexOf("www.")?e.substring(4):e}()}function h(e){return"/pages/paper/paper?url="+m()+"/p/"+e}function b(e){if(!e)return e;return e.split(/(<[^>]+>)/g).map(e=>e.startsWith("<")&&e.endsWith(">")||e.includes("![")?e:e.replace(/(https?:\/\/([^\s</#)ï¼]+)[^\s<)ï¼ï¼]*)/g,(function(e,t){let a="";try{a=new URL(t).hostname}catch(e){a=t}return'<a href="'+t.replace('"',"%22")+'" target="_blank" onClick="event.preventDefault();">'+a+"...</a>"}))).join("")}function g(){return"https://xiaobot.net"}},fb1f:function(e,t,a){"use strict";a("3c36")},fb8e:function(e,t,a){},fc59:function(e,t,a){},fcff:function(e,t,a){},fd40:function(e,t,a){"use strict";a("b057")},fe4e:function(e,t,a){},fed6:function(e,t,a){"use strict";a("bf9c")},ffad:function(e,t,a){"use strict";a("1e1c")},ffce:function(e,t,a){},ffe2:function(e,t,a){"use strict";a("5a60")}},[[0,"runtime","chunk-core","chunk-editor","chunk-ui","chunk-vendors"]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.