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