PageSourceSearch

https://www.dn.no/investor/_pulse/Ck73td2V.js

js dn.no collected 2026-09-24 08:48:03 UTC 11,139 bytes, 1 lines download raw bytes

1import se from"./D4G_9L3Y.js";import{_ as oe}from"./CUw4pbXj.js";import{_ as ae}from"./C85-L6gv.js";import{_ as le}from"./BOD90fFw.js";import{_ as ie}from"./JojsxdA5.js";import{d as re,i as h,a2 as ne,b as m,e as c,f as e,h as r,m as u,t as l,a,l as f,c as de,g as ce,a0 as ue,a3 as me,o as n,F as C,r as L,_ as pe}from"./DjRoh7cm.js";import{u as fe}from"./CRk_Kew1.js";import"./j-G2pMb4.js";import"./DZTJzZ12.js";const xe={class:"company-logos-page min-h-screen"},be={class:"container mx-auto flex flex-col gap-6 px-padding-4 py-padding-6"},ge={class:"company-logos-hero overflow-hidden rounded-radius-card p-6 text-white lg:p-8"},_e={class:"grid gap-6 xl:grid-cols-[minmax(0,1.7fr)_minmax(20rem,1fr)]"},he={class:"space-y-4"},ve={class:"inline-flex items-center gap-2 rounded-full border border-white/20 bg-white/10 px-3 py-1 text-xs font-semibold uppercase tracking-[0.2em]"},ye={class:"grid gap-3 sm:grid-cols-2 xl:grid-cols-1"},ke={class:"rounded-radius-card border border-white/15 bg-white/10 p-4 backdrop-blur"},we={class:"mt-2 text-lg font-semibold"},Me={class:"mt-2 text-sm text-white/70"},Ce={class:"rounded-radius-card border border-white/15 bg-white/10 p-4 backdrop-blur"},Le={class:"mt-2 text-lg font-semibold"},Ee={class:"mt-2 text-sm text-white/70"},qe={class:"grid gap-4 md:grid-cols-2 xl:grid-cols-4"},Ne={class:"rounded-radius-card border border-basic-border bg-surface-base p-4"},ze={class:"mt-2 text-3xl font-bold"},Se={class:"rounded-radius-card border border-basic-border bg-surface-base p-4"},Ie={class:"mt-2 text-3xl font-bold"},Pe={class:"rounded-radius-card border border-basic-border bg-surface-base p-4"},Be={class:"mt-2 text-3xl font-bold"},Re={class:"rounded-radius-card border border-basic-border bg-surface-base p-4"},$e={class:"mt-2 text-3xl font-bold"},Fe={class:"flex flex-col gap-4"},Te={class:"flex flex-col gap-2"},De={class:"flex flex-wrap gap-2"},Oe={class:"flex flex-col gap-2"},Ve={class:"flex flex-wrap gap-2"},Qe={class:"flex flex-col gap-2"},Ue={class:"flex flex-wrap gap-2"},Ae={class:"mb-4 text-sm text-basic-sub-text"},He={class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-4"},je={class:"min-w-0"},Ge={class:"flex flex-wrap items-center gap-2"},We={class:"truncate font-semibold"},Ze={class:"rounded-full bg-primary-soft-base px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-primary-soft-content"},Je={class:"mt-1 text-xs text-basic-sub-text"},Ke={key:0,class:"rounded-radius-card border border-error-soft-base bg-error-soft-base p-4 text-sm text-error-soft-content"},Xe={key:1,class:"flex min-h-48 items-center justify-center"},Ye={key:2,class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4"},et={class:"flex items-start gap-4"},tt={class:"min-w-0 flex-1"},st={class:"flex flex-wrap items-center gap-2"},ot={class:"truncate text-sm font-semibold md:text-base"},at={class:"rounded-full bg-neutral-soft-background px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-basic-sub-text"},lt={class:"mt-2 grid gap-1 text-xs text-basic-sub-text"},it={class:"font-medium text-primary-solid-base"},rt={class:"font-medium text-primary-solid-base"},nt={class:"font-medium text-primary-solid-base"},dt={class:"font-medium text-primary-solid-base"},ct={key:3,class:"rounded-radius-card border border-basic-border bg-surface-base p-4 text-sm text-basic-sub-text"},b=50,T=10,ut=re({__name:"company-logos",async setup(mt){let y,B;const E=ue(),q=fe(),g=h(b),x=h("ticker"),k=h("echo"),N=h(1),z=h(!1),S=h(),I=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});if(q.modelsMapped.length===0){z.value=!0;const{data:s,error:t}=([y,B]=ne(()=>me("/models",{key:"pulse-testing-company-logos-models"},"$qNR51s25He")),y=await y,B(),y);t.value&&(console.error(t.value),S.value=t.value.message||"Failed to fetch models from /models."),s.value&&q.setModels(s.value),z.value=!1}const D=[{label:"Ticker",value:"ticker"},{label:"Name",value:"name"},{label:"Quant",value:"quant"}],O=[{label:"Unique only",value:"off"},{label:"Echo x2",value:"echo"},{label:"Burst x5",value:"burst"}];
1function V(s){return s._t==="crypto"?typeof s.destination=="string"&&s.destination.trim().length>0:s._t==="stock"&&"ticker"in s&&typeof s.ticker=="string"&&s.ticker.trim().length>0}function w(s){if(s._t==="crypto")return s.destination;if("ticker"in s)return s.ticker}function Q(s){if(s)return E.public.companyLogos?.exchangeFoldersByExchangeQuant?.[s]}function R(s,t){let i=t;for(let d=0;d<s.length;d+=1)i=Math.imul(i^s.charCodeAt(d),16777619);return i>>>0}function U(s,t){if(x.value==="shuffled"){const i=R(s.quant,N.value)-R(t.quant,N.value);if(i!==0)return i}if(x.value==="ticker"){const i=I.compare(w(s)||"",w(t)||"");if(i!==0)return i}if(x.value==="name"){const i=I.compare(s.displayName,t.displayName);if(i!==0)return i}return I.compare(s.quant,t.quant)}function A(s){x.value=s}function H(){N.value+=1,x.value="shuffled"}function j(){g.value=b}function G(){g.value+=b}function W(){g.value=Math.max(b,g.value-b)}const Z=m(()=>q.modelsMapped.filter(V)),M=m(()=>[...Z.value].sort(U)),p=m(()=>M.value.slice(0,g.value)),J=m(()=>k.value==="off"?0:k.value==="echo"?2:5),v=m(()=>p.value.slice(0,Math.min(T,p.value.length)).flatMap((t,i)=>Array.from({length:J.value},(d,_)=>({key:`${t.quant}-echo-${i}-${_}`,model:t,echoIndex:_})))),$=m(()=>p.value.length+v.value.length),K=m(()=>{const s=E.public.companyLogos?.baseUrl;if(!s)return"Not configured";try{return new URL(s).host}catch{return s}}),X=m(()=>p.value.length<M.value.length),Y=m(()=>g.value>b),P=m(()=>M.value.length>0);return(s,t)=>{const i=se,d=oe,_=ae,F=le,ee=ie;return n(),c("div",xe,[e("div",be,[e("section",ge,[e("div",_e,[e("div",he,[e("div",ve,[r(i,{name:"mdi:image-multiple-outline",size:"16"}),t[0]||(t[0]=u(" Company Logo Stress Test ",-1))]),t[1]||(t[1]=e("div",{class:"max-w-3xl space-y-3"},[e("h1",{class:"text-3xl font-bold tracking-tight lg:text-4xl"}," Exercise `PulseModelImage` with a large, repeatable logo grid. "),e("p",{class:"max-w-2xl text-sm text-white/80 lg:text-base"}," The first section pages through logo-capable instruments from the shared models store. The echo rack reuses the same quants on purpose so you can spot whether repeated logo resolutions stay fast and stable. ")],-1))]),e("div",ye,[e("div",ke,[t[2]||(t[2]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-white/60"}," Logo source ",-1)),e("div",we,l(a(K)),1),e("div",Me,l(a(E).public.companyLogos?.baseUrl||"No company logo base URL configured."),1)]),e("div",Ce,[t[3]||(t[3]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-white/60"}," Current sweep ",-1)),e("div",Le,l(a(p).length)+" unique + "+l(a(v).length)+" echoes ",1),e("div",Ee," Total rendered images: "+l(a($)),1)])])])]),e("div",qe,[e("div",Ne,[t[4]||(t[4]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-basic-sub-text"}," Logo-capable models ",-1)),e("div",ze,l(a(M).length),1),t[5]||(t[5]=e("div",{class:"mt-1 text-sm text-basic-sub-text"}," Instruments in the shared store that `PulseModelImage` can resolve. ",-1))]),e("div",Se,[t[6]||(t[6]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-basic-sub-text"}," Visible sweep ",-1)),e("div",Ie,l(a(p).length),1),e("div",{class:"mt-1 text-sm text-basic-sub-text"}," Main list page size, loaded in batches of "+l(b)+". ")]),e("div",Pe,[t[7]||(t[7]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-basic-sub-text"}," Cache echoes ",-1)),e("div",Be,l(a(v).length),1),t[8]||(t[8]=e("div",{class:"mt-1 text-sm text-basic-sub-text"}," Deliberate duplicate renders that reuse the same model quant. ",-1))]),e("div",Re,[t[9]||(t[9]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-basic-sub-text"}," Rendered images ",-1)),e("div",$e,l(a($)),1),t[10]||(t[10]=e("div",{class:"mt-1 text-sm text-basic-sub-text"}," Combined footprint of the sweep plus the echo rack. ",-1))])]),r(_,{title:"Controls",secondary:""},{default:f(()=>[e("div",Fe,[e("div",Te,[t[14]||(t[14]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-basic-sub-text"}," Page size ",-1)),e("div",De,[r(d,{type:"outlined",size:"small",disabled:!a(Y),onClick:W},{default:f(()=>
1[r(i,{name:"mdi:minus",size:"16"}),t[11]||(t[11]=u(" 50 fewer ",-1))]),_:1},8,["disabled"]),r(d,{type:"outlined",size:"small",onClick:j},{default:f(()=>[...t[12]||(t[12]=[u(" Reset to 50 ",-1)])]),_:1}),r(d,{type:"primary",size:"small",disabled:!a(X),onClick:G},{default:f(()=>[r(i,{name:"mdi:plus",size:"16"}),t[13]||(t[13]=u(" 50 more ",-1))]),_:1},8,["disabled"])])]),e("div",Oe,[t[16]||(t[16]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-basic-sub-text"}," Ordering ",-1)),e("div",Ve,[(n(),c(C,null,L(D,o=>r(d,{key:o.value,size:"small",type:a(x)===o.value?"primary":"outlined",onClick:te=>A(o.value)},{default:f(()=>[u(l(o.label),1)]),_:2},1032,["type","onClick"])),64)),r(d,{size:"small",type:a(x)==="shuffled"?"accent":"outlined",onClick:H},{default:f(()=>[r(i,{name:"mdi:shuffle-variant",size:"16"}),t[15]||(t[15]=u(" Shuffle order ",-1))]),_:1},8,["type"])])]),e("div",Qe,[t[17]||(t[17]=e("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-basic-sub-text"}," Cache echo rack ",-1)),e("div",Ue,[(n(),c(C,null,L(O,o=>r(d,{key:o.value,size:"small",type:a(k)===o.value?"accent":"outlined",onClick:te=>k.value=o.value},{default:f(()=>[u(l(o.label),1)]),_:2},1032,["type","onClick"])),64))])])])]),_:1}),a(v).length>0?(n(),de(_,{key:0,title:"Cache Echo Rack",secondary:""},{default:f(()=>[e("div",Ae," These cards intentionally repeat the first "+l(Math.min(T,a(p).length))+" visible models to make client-side cache reuse easy to spot. ",1),e("div",He,[(n(!0),c(C,null,L(a(v),o=>(n(),c("article",{key:o.key,class:"logo-card flex items-center gap-3 rounded-radius-card border border-basic-border bg-surface-base p-3"},[r(F,{model:o.model},null,8,["model"]),e("div",je,[e("div",Ge,[e("div",We,l(o.model.displayName),1),e("span",Ze," echo "+l(o.echoIndex+1),1)]),e("div",Je,l(w(o.model)||"-")+" | "+l(o.model.quant),1)])]))),128))])]),_:1})):ce("",!0),r(_,{title:`Company Logo Grid (${a(p).length})`},{default:f(()=>[a(S)&&!a(P)?(n(),c("div",Ke,l(a(S)),1)):a(z)&&!a(P)?(n(),c("div",Xe,[r(ee)])):a(P)?(n(),c("div",Ye,[(n(!0),c(C,null,L(a(p),o=>(n(),c("article",{key:o.quant,class:"logo-card rounded-radius-card border border-basic-border bg-surface-base p-4"},[e("div",et,[r(F,{model:o},null,8,["model"]),e("div",tt,[e("div",st,[e("h2",ot,l(o.displayName),1),e("span",at,l(o._t),1)]),e("div",lt,[e("div",null,[t[18]||(t[18]=u(" Lookup value: ",-1)),e("span",it,l(w(o)||"-"),1)]),e("div",null,[t[19]||(t[19]=u(" Quant: ",-1)),e("span",rt,l(o.quant),1)]),e("div",null,[t[20]||(t[20]=u(" Exchange ID: ",-1)),e("span",nt,l("exchangeQuant"in o&&o.exchangeQuant||"-"),1)]),e("div",null,[t[21]||(t[21]=u(" Exchange folder: ",-1)),e("span",dt,l("exchangeQuant"in o&&Q(o.exch
1angeQuant)||"-"),1)])])])])]))),128))])):(n(),c("div",ct," No logo-capable instruments are available in the store. "))]),_:1},8,["title"])])])}}}),kt=pe(ut,[["__scopeId","data-v-12981549"]]);export{kt 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.