1import{u as M,_ as B}from"./DUzAExkF.js";import{c as d}from"./CkutsO3D.js";import{aV as C,cF as k,aZ as E,aX as $,dW as S,dp as z,a$ as v,b1 as F,cg as i,b3 as p,dt as H,aY as L,b0 as o,b2 as T,bv as I}from"./BQ7hauk5.js";import{_ as N}from"./DhTbjJlp.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="24c2762a-2e7e-4284-b1f0-ba8dc974ef40",s._sentryDebugIdIdentifier="sentry-dbid-24c2762a-2e7e-4284-b1f0-ba8dc974ef40")}catch{}})();const V=["innerHTML"],x=["href"],A=["innerHTML"],O=C({__name:"svgMedia",props:{url:{default:""},includeFullSvg:{type:Boolean,default:!1},class:{default:""},showErrorIcon:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0}},async setup(s,{expose:n}){let t,_;const a=s,y=M(),r=k(null),u=k({}),f={fill:"var(--svg-fill, currentColor)"},l=E(()=>y.icons[a.url]??null),c=E(()=>a.class);if(n({svgEl:r}),!a.lazy){const{data:e}=([t,_]=$(()=>L("eagerData_"+a.url,()=>y.fetchSvg(a.url),"$tv9IM9E5a0")),t=await t,_(),t);u.value=e.value}return S(()=>{z(()=>a.url,e=>{!e||!a.lazy||y.load(e,{})},{immediate:!0})}),(e,g)=>{const D=B;return!e.lazy&&u.value?(o(),v("svg",i({key:0,ref_key:"svgEl",ref:r},{...u.value.props??{},...e.$attrs},{class:p(d)("w-full h-full",c.value),style:f,innerHTML:u.value.html}),null,16,V)):(o(),F(D,{key:1},{default:H(()=>{var m,h,b,w;return[l.value&&!e.includeFullSvg&&!l.value.error?(o(),v("svg",i({key:0,ref_key:"svgEl",ref:r},{...((m=l.value)==null?void 0:m.props)??{},...e.$attrs},{class:p(d)("w-full h-full",c.value),style:f}),[I("use",{href:"#"+((h=l.value)==null?void 0:h.id)},null,8,x)],16)):l.value&&e.includeFullSvg&&!l.value.error?(o(),v("svg",i({key:1,ref_key:"svgEl",ref:r},{...((b=l.value)==null?void 0:b.props)??{},...e.$attrs},{class:p(d)("w-full h-full",c.value),style:f,innerHTML:l.value.html}),null,16,A)):l.value&&l.value.error?(o(),v("svg",i({key:2,ref_key:"svgEl",ref:r},{...((w=l.value)==null?void 0:w.props)??{},...e.$attrs},{class:p(d)("w-full h-full",c.value),style:f}),g[0]||(g[0]=[I("use",{href:"#error_icon"},null,-1)]),16)):T("",!0)]}),_:1}))}}}),Y=N(O,[["__scopeId","data-v-37d76c48"]]);export{Y 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.