import{b as B,a as u,D as h,h as s,i as c,j as a,K as m,E as d,z as i,u as o,a6 as P,t as _,G as S,l as g,F as D,I as L,J as N}from"./vue-y3KLWBaS.js";import{u as V}from"./widget-qjKd4HCd.js";import{M as $}from"./MkContainer-6laePfDX.js";import{_ as A}from"./MkMiniChart.vue_vue_type_script_setup_true_lang-pO1kuPAx.js";import{Q as E,i as f,f as F,n as G}from"./app-JmgyQoR0.js";import"./v4-U7xWZqn4.js";const H=t=>(L("data-v-8d1179eb"),t=t(),N(),t),T=H(()=>o("i",{class:"ph-hash ph-bold ph-lg"},null,-1)),U={class:"wbrkwala"},j={class:"tag"},w="hashtags",z=B({__name:"trends",props:{widget:{}},emits:["updateProps"],setup(t,{expose:k,emit:v}){const M={showHeader:{type:"boolean",default:!0}},n=t,I=v,{widgetProps:b,configure:C}=V(w,M,n,I),l=u([]),p=u(!0);return E(()=>{F("hashtags/trend").then(r=>{l.value=r,p.value=!1})},1e3*60,{immediate:!0,afterMounted:!0}),k({name:w,configure:C,id:n.widget?n.widget.id:null}),(r,K)=>{const x=h("MkLoading"),y=h("MkA");return s(),c($,{"show-header":i(b).showHeader,class:"mkw-trends"},{header:a(()=>[T,m(d(i(f).ts._widgets.trends),1)]),default:a(()=>[o("div",U,[p.value?(s(),c(x,{key:0})):(s(),c(P,{key:1,tag:"div",name:r.$store.state.animation?"chart":"",class:"tags"},{default:a(()=>[(s(!0),_(D,null,S(l.value,e=>(s(),_("div",{key:e.tag},[o("div",j,[g(y,{class:"a",to:`/tags/${encodeURIComponent(e.tag)}`,title:e.tag},{default:a(()=>[m("#"+d(e.tag),1)]),_:2},1032,["to","title"]),o("p",null,d(i(f).t("nUsersMentioned",{n:e.usersCount})),1)]),g(A,{class:"chart",src:e.chart},null,8,["src"])]))),128))]),_:1},8,["name"]))])]),_:1},8,["show-header"])}}}),Y=G(z,[["__scopeId","data-v-8d1179eb"]]);export{Y as default};
