PageSourceSearch

https://web-static.kurobbs.com/resource/prod/assets/tool-list-BSh2n5jW.js

js kurobbs.com collected 2026-10-09 01:18:46 UTC 8,288 bytes, 1 lines download raw bytes

1import{_ as W,u as Q}from"./kr-list-DhwPYV3k.js";import{u as X}from"./useListRequester-Ci39_XYq.js";import{_ as ee}from"./track-helpers-o_FINLWW.js";import{bo as te,bA as se,cK as O}from"./useConfig-DLqk4N_9.js";import{J as ne,a as M,v as ae,K as oe}from"./index-CWPdzgN0.js";import{u as re}from"./useElementExpose-ARIAsv75.js";import{E as $,t as K,U as V}from"./index-DCU6Kl-8.js";import{k as H,r as g,a as T,o as q,K as ie,A as ue,u as o,m as c,n as m,q as l,G as I,E as d,C as h,D as le,t as B,ap as z,a0 as ce,z as A,F as U,s as me,Z as de,an as pe,ao as fe}from"./index-BMfzZz2f.js";/* empty css                                                                              */import{L as he}from"./list-msg-skeleton-CtjDCHx1.js";import"./kr-empty-VwY3f9yI.js";import"./el-input-BGHNzqxF.js";import"./useCallApp-JorNIVgI.js";import"./helper-DSZogfxD.js";import"./app-bridge-PA9a5H5h.js";import"./kr-button-CdLzKUTK.js";/* empty css              */import"./sentry-handler-CCDRxDqW.js";import"./list-skeleton-51rTi550.js";import"./base-post-skeleton-PYTsR-dw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1e1e374c-7116-44ac-81ac-fa0648762f6e",e._sentryDebugIdIdentifier="sentry-dbid-1e1e374c-7116-44ac-81ac-fa0648762f6e")}catch(n){}})();var Y=(e=>(e[e.SYS=0]="SYS",e[e.LIKE=1]="LIKE",e[e.COMMENT=2]="COMMENT",e[e.MENTION=3]="MENTION",e[e.COLLECT=4]="COLLECT",e))(Y||{}),j=(e=>(e[e.TITLE_CONTENT=1]="TITLE_CONTENT",e[e.CONTENT_LINK=2]="CONTENT_LINK",e))(j||{}),_e=Object.defineProperty,ve=(e,a,n)=>a in e?_e(e,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[a]=n,G=(e,a,n)=>(ve(e,typeof a!="symbol"?a+"":a,n),n);const Z=class F{constructor(){G(this,"appPathRoutes",null)}static getInstance(){return F.instance||(F.instance=new F),F.instance}getAppPathRoutes(){return this.appPathRoutes===null&&(this.appPathRoutes=this.collectAppPathRoutes()),this.appPathRoutes}collectAppPathRoutes(){const a=[{appPath:"/openBrowser?url=:url"}];function n(t){var u;for(const r of t)(u=r.meta)!=null&&u.matchPath&&a.push({route:r,appPath:r.meta.matchPath})}return n(ne),a}};G(Z,"instance");let ge=Z;function be(e){const a=[];let n=e.replace(/[.+*?^${}()|[\]\\]/g,"\\$&").replace(/\\:/g,":");return n=n.replace(/:([a-zA-Z]+)/g,(u,r)=>(a.push(r),"([^&/?]+)")),{regex:new RegExp("^".concat(n,"$")),paramNames:a}}function Ee(e,a){const n={};for(let t=0;t<a.length;t++){const u=a[t],r=e[t+1];r!==void 0&&(n[u]=decodeURIComponent(r))}return n}function ye(e){const n=ge.getInstance().getAppPathRoutes(),t=e.startsWith("/")?e:"/".concat(e);for(const{route:u,appPath:r}of n){const{regex:b,paramNames:E}=be(r),_=t.match(b);if(_){const i=Ee(_,E);return(u==null?void 0:u.name)==="PostDetail"&&!i.game&&(i.game="pns"),{route:u,params:i,appPath:r,url:u?void 0:i.url}}}return null}function Ce(e){return ye(e)}const De={class:"header-section flex-between-center mb-16"},xe={class:"flex"},Se={class:"ml-12"},ke={class:"title mb-6"},Fe={key:0,class:"game"},Ie={class:"flex-all-center"},Re={key:0,class:"badge mr-8"},Pe={class:"btn-handler"},Be={class:"item"},we={key:1,class:"item flex"},Te=["src"],Ae={key:0,class:"item-content link-content mb-16"},Ne={class:"title mb-16"},Le={key:1,class:"item-content msg-content mb-16"},Oe={class:"title mb-8"},Me={key:2,class:"mb-16"},$e=84,Ke=H({__name:"tool-item",props:{item:{type:Object,required:!0}},emits:["contentClick","action","ignore","read"],setup(e,{emit:a}){const n=te(),t=e,u=se(),r=g(!1),b=s=>{r.value||!s||t.item.readState==2||(u.pushItem(t.item),r.value=!0)},E=a,_=()=>{t.item.readState===1&&E("read",t.item)},i=T(()=>{if(!t.item||!t.item.link)return;const s=Ce(t.item.link);if(s)return s}),R=T(()=>{var s;return i.value?((s=i.value.route)==null?void 0:s.name)==="PostDetail"?"1":"2":"0"}),y=T(()=>{if(!i.value)return"";try{if(i.value.route){const s=n.resolve({params:{...i.value.params},name:i.value.route.name,query:{enter_source:t.item.linkType==O.POST?$.SYSTEM_PUSH:M.系统推送}});return location.origin+s.href}else{if(!i.value.url)throw new Error;const s=new URL(i.value.url);return s.searchParams.append("enter_source",String(t.item.linkType==O.POST?$.SYSTEM_PUSH:M.系统推送)),s.toString()}}catch(s){return console.error("路由解析失败:",s),""}}),p=()=>
1{if(t.item.link&&R.value!=="0")try{K(V.点击系统推送通知配置内容,v(),!1);const s=y.value;s&&window.open(s,"_blank")}catch(s){console.error("路由解析失败:",s)}},f=g(!1),C=g(),D=g(0);q(async()=>{ie(()=>{const{height:s}=C.value.getBoundingClientRect();D.value=s,D.value>$e&&(f.value=!0)})});const v=()=>{var s,w,x,S,k,P,L;return{message_id:t.item.id||"",message_title:((s=t.item)==null?void 0:s.noticeTitle)||"",redirect_type:t.item.linkType||0,redirect_content:y.value&&(x=(w=t.item)==null?void 0:w.linkTarget)!=null?x:"",message_scenario:(k=(S=t.item)==null?void 0:S.comeFrom)!=null?k:"",message_sender:"".concat((P=t.item.sourceName)!=null?P:"","-").concat((L=t.item.gameName)!=null?L:""),message_style:t.item.picUrl?"2":"1",message_type:"2"}},N=g();return re({target:N,once:!1,pageVisibility:!0,callback:()=>{try{K(V.系统推送内容曝光,v(),!1),console.log("系统推送内容曝光",v())}catch(s){console.error("系统推送内容曝光失败:",s)}}}),(s,w)=>{var x,S,k;const P=ee;return ue((c(),m("div",{class:B(["tool-item"]),onClick:_},[l("div",De,[l("div",xe,[I(oe,{src:e.item.iconUrl,"no-bg-color":"",size:40,class:"tool-img"},null,8,["src"]),l("div",Se,[l("div",ke,d(e.item.sourceName||"工具通知"),1),e.item.gameName?(c(),m("div",Fe,d(e.item.gameName),1)):h("",!0)])]),l("div",Ie,[e.item.readState===1?(c(),m("span",Re)):h("",!0),l("div",Pe,[l("span",Be,d(e.item.showTime),1),e.item.link&&o(y)?(c(),m("button",{key:0,class:"item btn",onClick:p}," 查看详情 ")):h("",!0),e.item.noticeType!==o(Y).SYS?(c(),m("span",we,[e.item.noticeIcon?(c(),m("img",{key:0,src:e.item.noticeIcon,alt:"",class:"icon mr-3"},null,8,Te)):h("",!0),le(d(e.item.noticeText),1)])):h("",!0)])])]),l("div",{ref_key:"contentRef",ref:N,class:B({"cursor-pointer":o(i)}),onClick:p},[e.item.uiType===o(j).CONTENT_LINK?(c(),m("div",Ae,[l("div",Ne,d(e.item.noticeContent),1),l("div",{class:B(["content-section text-14",{"txt-overflow-ellipsis-10":o(f)}])},d(e.item.linkContent),3)])):(c(),m("div",Le,[l("div",Oe,d(e.item.noticeTitle),1),l("div",{ref_key:"shadowRef",ref:C,class:B(["content-section text-16",{"txt-overflow-ellipsis-10":o(f)}])},d(e.item.noticeContent),3)])),(x=e.item)!=null&&x.picUrl?(c(),m("div",Me,[I(P,{src:(k=(S=e.item)==null?void 0:S.picUrl)!=null?k:"",width:"266px",height:"150px",class:"border-rd-7"},null,8,["src"])])):h("",!0)],2)])),[[o(ae),b]])}}}),Ve=z(Ke,[["__scopeId","data-v-18c2df82"]]),J=e=>(pe("data-v-33a56d9c"),e=e(),fe(),e),Ue=J(()=>l("h2",{class:"title text-18 pb-20"},"工具通知",-1)),He={class:"content-section"},qe={key:0,class:"list mt-16"},ze=J(()=>l("div",{class:""},d("(仅显示最近2年的消息记录)"),-1)),Ye=H({__name:"tool-list",setup(e){const{queryParams:a,tableData:n,loadMore:t,loadData:u,hasNext:r,pagination:b,isInit:E,isError:_}=X("/user/notice/tool/page","list"),i=g(),R=async()=>{var p;a.minId=(p=n.value[n.value.length-1])==null?void 0:p.id,await t()},y=async()=>{const{canScroll:p,cleanup:f}=Q(me(document.body),{instant:!0});try{p.value||R()}finally{f()}};return q(async()=>{i.value=await u({type:1}),await y()}),(p,f)=>{var C,D;return c(),m(U,null,[Ue,l("div",He,[I(W,{list:o(n),"min-height":"calc(100vh - 60px - 248px - 24px)","has-next":o(r),"is-init":o(E),"sub-description":!o(r)&&((C=o(i))!=null&&C.ignoreHistory)?"(仅显示最近2年的消息记录)":"","auto-load-more":!o(_),onNextPage:R},ce({skeleton:A(()=>[I(o(he),{count:6})]),default:A(()=>[o(n).length?(c(),m("ul",qe,[(c(!0),m(U,null,de(o(n),v=>(c(),m("li",{key:v.id,class:"item mb-20"},[I(Ve,{item:v,onFetchData:f[0]||(f[0]=()=>o(u)({updateIdx:o(b).pageIndex,filterKey:"id"}))},null,8,["item"])]))),128))])):h("",!0)]),_:2},[!o(r)&&((D=o(i))!=null&&D.ignoreHistory)?{name:"lastAppendTxt",fn:A(()=>[ze]),key:"0"}:void 0]),1032,["list","has-next","is-init","sub-description","auto-load-more"])])],64)}}}),pt=z(Ye,[["__scopeId","data-v-33a56d9c"]]);export{pt as default};

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.