PageSourceSearch

https://www.onwish.ai/_nuxt/WNtxjEHh.js

js onwish.ai collected 2026-10-05 12:32:09 UTC 5,268 bytes, 4 lines download raw bytes

1import{_ as z}from"./BHvx1HQC.js";import{c as D,_ as F,a as j}from"./CvC1bszU.js";import{_ as Q}from"./BOemG_jx.js";import{f as P,r as k,l as v,q,v as G,o as i,c as u,a as o,J as T,K as A,D as J,m as d,E as K,t as $,I as W,Q as X,R as Z,d as I,b,G as C,g as tt,S as et,B as nt,w as ot}from"./DYiYvntX.js";import{u as M}from"./DxHtBhvS.js";import{u as st}from"./0pzMgD9L.js";import{m as S}from"./CTK1a051.js";import"./DVLuFF-7.js";const at={class:"table-of-content"},rt=o("div",{class:"toc-title"},"Table of contents",-1),lt=["title","onClick","href"],it=P({__name:"TableOfContent",props:{toc:{}},setup(x){const m=x,f=k(0),l=v(()=>m.toc.map(a=>document.getElementById(a.anchor))),p=a=>{const e=document.getElementById(a);if(e){const c=e.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:c,behavior:"smooth"})}},h=k(0),w=()=>{const a=window.scrollY,_=120;for(let e=0;e<l.value.length;e++){const n=l.value[e],c=l.value[e+1];if(n){const g=n.offsetTop-_,y=c?c.offsetTop-_:document.body.scrollHeight;if(a>=g&&a<y){h.value=e;break}}}f.value=a/(document.documentElement.scrollHeight-window.innerHeight)*100};return q(()=>{window.addEventListener("scroll",w)}),G(()=>{window.removeEventListener("scroll",w)}),(a,_)=>(i(),u(T,null,[o("div",at,[rt,o("ul",null,[(i(!0),u(T,null,A(a.toc,(e,n)=>(i(),u("li",{class:J({current:d(h)===n}),key:e.anchor},[o("a",{title:e.text,onClick:K(c=>p(e.anchor),["prevent"]),href:"#"+e.anchor},$(e.text),9,lt)],2))),128))])]),o("div",{class:"scroll-progress",style:W({width:d(f)+"%"})},null,4)],64))}}),ct={class:"blog-container"},ut={class:"wrapper"},dt={class:"date"},mt={class:"label"},pt=o("p",{class:"notice"}," Note: We reveal investment insights through the quotes of top business leaders. ",-1),ht=["innerHTML"],_t=["innerHTML"],ft={key:0,class:"see-also"},gt=o("h2",null,"See also",-1),vt={key:0},xt=P({__name:"[insights_name]",async setup(x){var B,E;let m,f;const l=X(),p=tt(),h=k(),w=l.params.insights_name,a=k([]),[{data:_},{data:e}]=([m,f]=Z(()=>Promise.all([M("/proxy/api/v1/cms/detail",{params:{type:"insights",file_name:w}},"$ktEyiQoAvS"),M("/proxy/api/v1/cms/related-posts",{params:{type:"insights",limit:8}},"$jhPbCU3r28")])),m=await m,f(),m),n=v(()=>_.value.data),c=v(()=>{var s;const t=(((s=n.value)==null?void 0:s.content)||"").trim().match(/^```\n([\s\S]+?)\n```$/m);return t?t[1].trim():""}),g=v(()=>c.value?S.parse(c.value.trim()):""),y=v(()=>S.parse((n.value.content||"").trim().replace(/^```\n([\s\S]+?)\n```$/m,"").trim()));st({title:n.value.title,meta:[{hid:"description",name:"description",content:`${n.value.title}. In-depth analysis of first-hand company insights from earnings calls, SEC filings, social media and more`},{hid:"twitter:css-selector",name:"twitter:css-selector",content:"article .summary"},{hid:"og:title",name:"og:title",content:`${(B=n.value)==null?void 0:B.title}`},{hid:"og:description",name:"og:description",content:`${(E=n.value)==null?void 0:E.description}`},{hid:"twitter:url",name:"twitter:url",content:`${p.public.siteUrl}${l.path}?utm_source=twitter`},{hid:"linkedin:url",name:"linkedin:url",content:`${p.public.siteUrl}${l.path}?utm_source=linkedin`}],link:[{rel:"canonical",href:`${p.public.siteUrl}${l.path}`}]}),S.use({renderer:{heading(t,s){if(s===2){const r=t.toLowerCase().replace(/[\s]+/g,"-").replace(/[^a-z0-9\-]+/g,"");return a.value.push({text:N(t),anchor:r}),`<h2 id="${r}">${t}</h2>`}return`<h${s}>${t}</h${s}>`}}});function N(t){return t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'")}q(()=>{h.value.addEventListener("mousedown",t=>{const s=t.target;s.tagName==="A"&&s.setAttribute("target","_blank")}),h.value.querySelectorAll("blockquote").forEach(t=>{t.querySelectorAll("p").forEach(s=>{const r=s.querySelectorAll("a");r.length>=1&&r[r.length-1].classList.add("last")})})});async function O(){let t=g.value+y.value;t=` <p>
2        Published by
3        <a href="https://www.onwish.ai/" target="_blank">onwish.ai</a>
4      </p>`+t;const s=new ClipboardItem({"text/html":new Blob([D(t)],{type:"text/html"})});try{await navigator.clipboard.write([s]),console.log("Content with embedded image copied to clipboard")}catch(r){console.error("Failed to copy content: ",r)}}return(t,s)=>{var H;const r=z,U=F,Y=Q,R=it,V=j;return i(),u("div",ct,[o("div",ut,[o("main",null,[o("article",null,[o("h1",null,$(n.value.title),
41),o("p",dt,[o("span",null,[I($(d(et)(n.value.content_published_date).format("MMMM D, YYYY"))+" ",1),o("span",mt,[(i(!0),u(T,null,A(n.value.labels,L=>(i(),nt(r,{to:`/resources/category/${L}`},{default:ot(()=>[I($(L),1)]),_:2},1032,["to"]))),256))])]),o("span",null,[b(U,{source:"insights_detail"})])]),pt,g.value?(i(),u("div",{key:0,class:"summary",innerHTML:g.value},null,8,ht)):C("",!0),o("div",{class:"content",ref_key:"markdownHtml",ref:h,innerHTML:y.value},null,8,_t)]),((H=d(e).data)==null?void 0:H.length)>0?(i(),u("section",ft,[gt,b(Y,{pagination_list:d(e).data},null,8,["pagination_list"])])):C("",!0)]),a.value.length>0?(i(),u("aside",vt,[b(R,{toc:a.value},null,8,["toc"])])):C("",!0)]),b(V,{description:n.value.description,url:`${d(p).public.siteUrl}${d(l).path}`,title:n.value.title,copyToSubstack:O},null,8,["description","url","title"])])}}});export{xt 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.