PageSourceSearch

https://www.cptmarkets.com/_nuxt/MikPcGcN.js

js cptmarkets.com collected 2026-10-01 15:19:30 UTC 6,851 bytes, 1 lines download raw bytes

1import{_ as ce}from"./BCZkiYPU.js";import{_ as A,a as J}from"./CksQRh_2.js";import{_ as ue,f as pe,c as de,j as he,k as me,d as ge,G as ve,H as fe,u as _e,I as ye,J as Te,K as j,M as xe,N as we}from"./BipEvF2Q.js";import{af as ke,o as be,O as n,P as r,Q as g,u as l,H as M,U as _,$ as Ce,R as F,W as Me,J as L,V as Pe,e as p,ag as ze,a as y,a3 as De}from"./B17Jg6st.js";import{u as Ne,H as $e,g as V,h as He}from"./BlQL2q_J.js";import{S as Oe}from"./DG6kLpiT.js";import"./CV2l41uU.js";import"./DlaUCYkq.js";import"./BOp-f5gy.js";import"./awwjIm7w.js";const Se={class:"detail-container"},Re={key:0,src:A,alt:""},je={key:1,src:J,alt:""},Le={key:0,src:A,alt:""},Ue={key:1,src:J,alt:""},Ye={class:"article-title"},We={class:"article-meta"},Be={class:"date"},Ie=["innerHTML"],Ee={__name:"PagesMarketNewsHotTopics",async setup(K){let T,N;const{isDark:x}=pe(),{t:U,locale:w}=de(),q=p(()=>["zh-CN","zh-TW","zh-HK"].includes(w.value)),G=he(),k=me(),{isH5:$}=ge(),Q=async()=>{const e=k.params.id;if(!e)return null;try{const t=await V({current:1,size:999,status:1,type:2}),u=t?.data||t;return(u?.records||u?.data?.records||[]).find(f=>String(f.id)===String(e)||f.path===e)||null}catch(t){return console.error("Failed to resolve article from list:",t),null}},{data:a,pending:X}=([T,N]=ke(()=>Ne(`market-news-detail-${k.params.id}`,()=>Q(),{watch:[()=>k.params.id]})),T=await T,N(),T);if(!a.value)throw ve({statusCode:404,statusMessage:"Article Not Found",fatal:!0});const b=y([]),H=y(!1),O=y(!1),S=y(1),Y=y(0),Z=y(3),ee=p(()=>$.value?[{height:"32px",width:"90%"},{height:"32px",width:"60%",marginTop:"8px"},{height:"14px",width:"150px",marginTop:"16px"},{height:"200px",width:"100%",marginTop:"20px",borderRadius:"16px"},{height:"20px",width:"60%",marginTop:"24px"},{height:"14px",count:3,marginTop:"12px"},{height:"20px",width:"50%",marginTop:"24px"},{height:"14px",count:3,marginTop:"12px"}]:[{height:"48px",width:"60%"},{height:"48px",width:"40%",marginTop:"12px"},{height:"20px",width:"200px",marginTop:"24px"},{height:"500px",width:"100%",marginTop:"32px",borderRadius:"16px"},{height:"28px",width:"30%",marginTop:"40px"},{height:"20px",count:3,marginTop:"16px"},{height:"28px",width:"30%",marginTop:"32px"},{height:"20px",count:3,marginTop:"16px"}]),te=()=>{G.back()},P=p(()=>j[w.value]||j.en),d=p(()=>{if(!a.value||!a.value.titles)return"";const e=a.value.titles.find(t=>t.languageType===P.value)||a.value.titles[0];return e?e.content:""}),h=p(()=>{if(!a.value||!a.value.thumbnails)return"https://placehold.co/1200x500";const e=a.value.thumbnails.find(t=>t.languageType===P.value)||a.value.thumbnails[0];return e&&a.value.s3CustomDomain?`${a.value.s3CustomDomain}/${e.content}`:"https://placehold.co/1200x500"}),ae=p(()=>{if(!a.value||!a.value.contents)return"";const e=a.value.contents.find(u=>u.languageType===P.value)||a.value.contents[0];if(!e)return"";let t=e.content.replace(/width:\s*100%/g,"width: auto");return t=we(t,x.value),t}),v=p(()=>!a.value||!a.value.summary?"":(a.value.summary.find(t=>t.languageType===P.value)||a.value.summary[0])?.content||"");fe();const z=p(()=>{let e=window.location.origin;return e.startsWith("http://")&&!e.includes("localhost")&&(e=e.replace("http://","https://")),e});_e(()=>{const e=encodeURI(k.path),t=[{property:"og:type",content:"article"}];t.push({property:"og:url",content:`${z.value}${e}`}),d.value&&(t.push({property:"og:title",content:d.value}),t.push({name:"twitter:title",content:d.value})),v.value&&(t.push({name:"description",content:v.value}),t.push({property:"og:description",content:v.value}),t.push({name:"twitter:description",content:v.value})),h.value&&!h.value.includes("placehold.co")&&(t.push({property:"og:image",content:h.value}),t.push({name:"twitter:image",content:h.value}),t.push({name:"twitter:card",content:"summary_large_image"}));const u=ye(k.path),C=encodeURI(u),f=[{rel:"canonical",href:`${z.value}${e}`},...Te(z.value,C)],m=[];
1if(d.value){const c={"@context":"https://schema.org","@type":"NewsArticle",headline:d.value,mainEntityOfPage:{"@type":"WebPage","@id":`${z.value}${e}`},publisher:{"@type":"Organization",name:"CPT Markets"},author:a.value?.author?{"@type":"Person",name:a.value.author}:{"@type":"Organization",name:"CPT Markets"}};v.value&&(c.description=v.value),h.value&&!h.value.includes("placehold.co")&&(c.image=[h.value]);const i=a.value?.publishTime,o=a.value?.modifyTime;i&&(c.datePublished=i),(o||i)&&(c.dateModified=o||i),m.push({type:"application/ld+json",innerHTML:JSON.stringify(c)})}return{title:d.value||void 0,meta:t,link:f,script:m}});const W=async(e=!1)=>{e?O.value=!0:(H.value=!0,S.value=1);try{const t=[],u=e?S.value+1:1,C=e?3:1;for(let i=0;i<C;i++)t.push(V({current:u+i,size:Z.value,status:1,type:2}));const f=await Promise.all(t);let m=[],c=0;f.forEach(i=>{const o=i.data||i;if(o&&(o.code===200||o.records)){const oe=o.records||o.data&&o.data.records||[];o.total!==void 0?c=o.total:o.data&&o.data.total!==void 0&&(c=o.data.total);const ne=s=>s==="zh"?"zh-cn":s==="zh_TW"?"zh-tw":s==="uz"?"uz-latn":s,B=j[w.value]||"en_US",ie=["zh-CN","zh-TW"].includes(w.value),re=oe.map(s=>{const I=s.titles?.find(D=>D.languageType===B)||s.titles?.[0],le=xe(s,"en_US"),R=s.thumbnails?.find(D=>D.languageType===B)||s.thumbnails?.[0];let E=He;return R&&R.content&&s.s3CustomDomain&&(E=(s.s3CustomDomain.endsWith("/")?s.s3CustomDomain:s.s3CustomDomain+"/")+R.content),{id:s.id,slug:le,title:I?I.content:s.title,date:s.createTime?ze(s.createTime).locale(ne(w.value)).format(ie?"YYYY年MM月DD日":"DD MMMM YYYY"):"",image:E}});m=[...m,...re]}}),Y.value=c,e?(b.value=[...b.value,...m],S.value+=C):b.value=m}catch(t){console.error("Failed to fetch topics:",t)}finally{H.value=!1,O.value=!1}},se=()=>{W(!0)};return be(()=>{W()}),(e,t)=>(n(),r("div",{class:Pe(["hot-topics-detail-page",{"is-mobile":l($)}])},[g("div",Se,[g("div",{class:"back-link",onClick:te},[l($)?(n(),r(M,{key:0},[l(x)?(n(),r("img",Re)):(n(),r("img",je))],64)):(n(),r(M,{key:1},[l(x)?(n(),r("img",Le)):(n(),r("img",Ue))],64)),g("span",null,_(l(U)("marketNews.hotTopics.back")),1)]),l(X)?(n(),Ce(Oe,{key:0,rows:ee.value,title:!1},null,8,["rows"])):l(a)?(n(),r(M,{key:1},[g("h1",Ye,_(d.value),1),g("div",We,[g("span",Be,[q.value?(n(),r(M,{key:0},[F(_(l(a).modifyTime)+" "+_(e.$t("Updated,")),1)],64)):(n(),r(M,{key:1},[F(_(e.$t("Updated,"))+" "+_(l(a).modifyTime),1)],64))])]),g("div",{class:"article-content",innerHTML:ae.value},null,8,Ie)],64)):Me("",!0)]),L($e,{title:l(U)("marketNews.hotTopics.readMore"),topics:b.value,loading:H.value,"loading-more":O.value,"has-more":b.value.length<Y.value,onLoadMore:se},null,8,["title","topics","loading","loading-more","has-more"])],2))}},Fe=ue(Ee,[["__scopeId","data-v-39543f31"]]),Ve={class:"homePage"},at={__name:"[id]",setup(K){return(T,N)=>{const x=ce;return n(),r("div",Ve,[L(x,{name:"default"},{default:De(()=>[L(Fe)]),_:1})])}}};export{at 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.