1import{B as e}from"./DyA0rmCF.js";import{B as t}from"./z1uGv1XI.js";import{U as s}from"./BIVETZJT.js";import{bT as a,bW as r,bF as l,aE as n,bS as o,aA as c,aM as i,v as m,w as u,bc as g,av as p,u as d,s as f,aT as b}from"./rPzCxgu2.js";import{U as v}from"./D1DH0B25.js";import"./DH8wk0CJ.js";class C{static getBemBlock(){return s.bemBlock}static getDefaultClasses(){const e=t.get(C.getBemBlock());return{icon:e(e=>e.e("icon")),root:[e(e=>e),{blue:e(e=>e.m(s.types.blue)),red:e(e=>e.m(s.types.red))}],text:e(e=>e.e("text"))}}}const h=["src"],y=Object.assign({name:"BadgeUI"},{__name:"index",props:{params:{type:Object,default:e=>({})},root:{type:HTMLElement,default:null}},setup(t){const y=t,{$bem:j}=r(C.getBemBlock()),w=b({updateKey:0}),x=b({});let B=null,M=null;const P=f(()=>{const t=C.getDefaultClasses();return new e(j).merge(t,x.classes||{})}),_=Object.values(s.types),E=Object.freeze({[s.icons.information]:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.33398%209.9987H8.66732V11.332H7.33398V9.9987ZM7.33398%204.66536H8.66732V8.66536H7.33398V4.66536ZM7.99398%201.33203C4.31398%201.33203%201.33398%204.3187%201.33398%207.9987C1.33398%2011.6787%204.31398%2014.6654%207.99398%2014.6654C11.6807%2014.6654%2014.6673%2011.6787%2014.6673%207.9987C14.6673%204.3187%2011.6807%201.33203%207.99398%201.33203ZM8.00065%2013.332C5.05398%2013.332%202.66732%2010.9454%202.66732%207.9987C2.66732%205.05203%205.05398%202.66536%208.00065%202.66536C10.9473%202.66536%2013.334%205.05203%2013.334%207.9987C13.334%2010.9454%2010.9473%2013.332%208.00065%2013.332Z'%20fill='%23236192'/%3e%3c/svg%3e"}),k=f(()=>_.includes(x.type)?x.type:s.defaultType),O=f(()=>x.texts?.text??"ÐÐµÑ Ð´Ð°Ð½Ð½ÑÑ
"),H=f(()=>E[x.icon]??x.icon??null),T=f(()=>j([V("root"),V("root",k.value)],{type:"string"})),V=(e,t=null)=>{const s=P.value[e];return Array.isArray(s)?t?s[1]?.[t]||"":s[0]:s||""};return l(e=>y.params,e=>{for(const t of Object.keys(x))delete x[t];Object.assign(x,e,{classes:{...e?.classes},texts:{...e?.texts}})},{deep:!0,immediate:!0}),n(e=>{if(M=y.root,!M)return null;B=function(e,t,r){const l=new v(e,t,r);l.shareMethods=["getParam","getParams","setParam","getClass","setClass"];const n=t=>(s,r)=>{const n=l.getMethod(t)(s,r);return null===n?null:(e.dispatchEvent(new Event(a,{bubbles:!0})),n)};return l.shareInterface({getClass:l.getMethod("getClass"),getParam:l.getMethod("getParam"),getParams:l.getMethod("getParams"),setClass:n("setClass"),setParam:n("setParam")}),l.prepareElement(s.wrapperClass),e.__interface}(M,w,x),M.dispatchEvent(new Event(o,{bubbles:!0}))}),c(e=>{M?.__interface===B&&delete M.__interface}),(e,t)=>(i(),m("div",{class:p(T.value)},[u("span",{class:p(V("text"))},g(O.value),3),H.value?(i(),m("img",{key:0,class:p(V("icon")),src:H.value,alt:"","aria-hidden":"true"},null,10,h)):d("",!0)],2))}});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.