PageSourceSearch

https://eodash.org/assets/chunks/EodashChart-CRwi63zw.CB_7MuL3.js

js eodash.org collected 2026-09-28 06:59:53 UTC 5,109 bytes, 43 lines download raw bytes

1import"./main.Bam2uurB.js";import{o as v}from"./handling-BxOpxry-.CVdXYYoI.js";import{_ as B,g as O,a as s,c as z,b as M,d as R,e as T,m as I,f as N}from"./eo-dash.CQ9QL1VU.js";import{T as D}from"./index-MiXNUVYd.BFXbrG2E.js";import{q as V,a4 as q,v as L,$ as A,o as l,c as p,j as g,a2 as J,k as f,e as x,N as b,an as y,p as w,h as i,P}from"./framework.3XOJp8rl.js";import"./lit-element.CBn2YVps.js";import"./addCommonStyleSheet.B0XXRREc.js";import"./sequential.BcvVcPN9.js";import"./orient2d.DArCjZZA.js";import"./async-CHvUorS-.Bu1jS0cv.js";import"./utils.DMAht7nH.js";import"./index.DEU_HeW8.js";import"./commonjsHelpers.BosuxZz1.js";import"./migrate.DY-H0OwY.js";import"./main.36bDDvzg.js";import"./when.BR7zwNJC.js";import"./repeat.Duc9p3Ra.js";import"./directive.CvdRHFdJ.js";import"./directive-helpers.Bj3rQkfn.js";import"./unsafe-html.C2DIGSw-.js";import"./map.DiiNQ3pp.js";import"./XYZ.CHdMdQ9Y.js";import"./Object.DnEsKloU.js";import"./index.BUIxO2d3.js";import"./getElement.COiK8z0h.js";import"./VTooltip-CRmqT1qY.Ctx4yiQr.js";import"./forwardRefs-DxtjU0ld.B806CU3x.js";import"./transition-DxOcWt_X.B3OvBjWP.js";const j=".bg-surface:has(.eodash-chart-wrapper){height:100%;display:flex;flex-direction:column}",F=".eodash-chart-wrapper[data-v-c14bc6fb]{height:100%;flex-grow:1;min-height:180px;display:flex;flex-direction:column}.chart-frame[data-v-c14bc6fb]{position:relative;flex-grow:1;min-height:180px;display:flex;flex-direction:column}eox-chart[data-v-c14bc6fb]{flex-grow:1;min-height:0}.chart-toggle[data-v-c14bc6fb]{position:absolute;top:8px;right:46px;z-index:2;cursor:pointer}",H={ref:"container",class:"eodash-chart-wrapper"},K={viewBox:"0 0 20 20",width:"20",height:"20","aria-hidden":"true"},U=["d"],$=[".spec",".dataValues",".opt"],G={__name:"EodashChart",props:{enableCompare:{type:Boolean,default:!1},vegaEmbedOptions:{type:Object,default(){return{actions:!0}}}},setup(c){const d=i(()=>c.enableCompare?z.value:M.value),m=i(()=>c.enableCompare?R.value:T.value),C=i(()=>{const a=m.value;if(!a)return!1;let t=!1;const o=e=>{if(!(t||!e||typeof e!="object")){if("bind"in e&&typeof e.bind=="object"&&e.bind!==null&&"input"in e.bind){t=!0;return}Object.values(e).forEach(o)}};return o(a),t}),n=w(null);V(m,a=>{if(!a){n.value=null;return}const t=JSON.parse(JSON.stringify(a));t.height="container",t.width="container",P(()=>{n.value=t,u.value=Math.random(),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},150)})},{immediate:!0});const u=w(0),_=q("container");let r=null,h=null;L(()=>{const a=_.value;if(!a)return;h=window.setInterval(()=>{if(a){const o=a.querySelector("eox-chart");if(o&&o.shadowRoot&&!o.shadowRoot.querySelector("#eodash-chart-styles")){const e=document.createElement("style");e.id="eodash-chart-styles",e.innerHTML=`
2            * {
3              box-sizing: border-box !important;
4            }
5            #vis {
6              min-height: 100px !important;
7              flex: 1 1 auto !important;
8            }
9            :host, .vega-embed {
10              display: flex !important;
11              flex-direction: column !important;
12              height: 100% !important;
13              padding: 0 !important;
14              margin: 0 !important;
15            }
16            .vega-bindings {
17              flex: 0 0 auto !important;
18              display: flex !important;
19              flex-wrap: wrap;
20              gap: 2px !important;
21              background: rgba(255, 255, 255, 0.85);
22              padding: 6px 12px !important;
23              border-radius: 6px;
24              box-shadow: 0 2px 5px rgba(0,0,0,0.15);
25              margin: 0 !important;
26              margin-top: -10px !important;
27              z-index: 10;
28            }
29            .vega-bindings:empty {
30              display: none !important;
31            }
32            .vega-embed > canvas, .vega-embed > svg {
33              height: 100% !important;
34              max-width: 100% !important;
35              object-fit: contain;
36            }
37            .vega-bind {
38              display: flex;
39              align-items: center;
40              gap: 6px;
41              margin-bottom: 0 !important;
42            }
43          `,o.shadowRoot.appendChild(e)}}},200);
43const t=O(a);t&&(r=new MutationObserver(async()=>{getComputedStyle(t).display!=="none"&&(u.value=Math.random())}),r.observe(t,{attributes:!0,attributeFilter:["style","class"]}))}),A(()=>{r==null||r.disconnect(),h&&window.clearInterval(h)});const S=i(()=>({height:"100%",width:"100%"})),E=i(()=>s.value?I:N);function k(){s.value=!s.value}return(a,t)=>(l(),p("div",H,[g("div",{class:"chart-frame",style:b({paddingBottom:C.value?"25px":"0px"})},[d.value&&m.value?J((l(),p("button",{key:0,class:"chart-toggle",onClick:k},[(l(),p("svg",K,[g("path",{d:E.value},null,8,U)]))])),[[D,f(s)?"Minimize":"Maximize"]]):x("v-if",!0),d.value&&n.value?(l(),p("eox-chart",{key:u.value,".spec":y(n.value),".dataValues":y(d.value),style:b(S.value),".opt":c.vegaEmbedOptions,"onClick:item":t[0]||(t[0]=(...o)=>f(v)&&f(v)(...o))},null,44,$)):x("v-if",!0)],4)],512))}},_t=B(G,[["styles",[j,F]],["__scopeId","data-v-c14bc6fb"]]);export{_t 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.