PageSourceSearch

https://vast.gg/assets/Locations-DQz8s-_f.js

js vast.gg collected 2026-10-04 12:39:14 UTC 2,431 bytes, 1 lines download raw bytes

1import{u as x}from"./campaignAdminStore-BwDLaLIY.js";import{cF as _,cG as p,cH as w,cJ as b,cK as o,d1 as t,d2 as d,d3 as r,d4 as m,d6 as v,d7 as h,dd as f,db as u,d5 as k,e6 as N,cL as i}from"./index-Dx8cLAZd.js";import{E as z}from"./el-pagination-CmwT8BUB.js";const L={class:"w-full space-y-2"},P={key:0,class:"w-full flex items-center justify-center py-8"},S={key:1,class:"w-full bg-dark-bg rounded-lg border border-gray-700 p-8 text-center"},j={class:"px-4 md:px-6 py-4 flex items-center justify-between"},C={class:"text-white font-medium"},D={class:"text-white"},V={class:"text-gray-400 ml-2"},A={key:0,class:"mt-6 text-xs text-gray-500 flex items-center justify-end gap-1"},U=_({__name:"Locations",setup(B){const n=x(),e=p(null),c=p(1),l=p(25);async function g(){e.value=null,e.value=await N({activityId:n.activityId,from:n.reporting.dates.startDate,to:n.reporting.dates.endDate})}return w(()=>{g()}),b(()=>n.reporting.dates,async()=>{await g()}),(E,a)=>{var y;return i(),o(v,null,[t("div",L,[a[3]||(a[3]=t("div",{class:"px-4 md:px-6 py-2 md:py-4 flex justify-between text-gray-400 font-medium"},[t("div",null,"Country"),t("div",null,"Participants")],-1)),e.value?e.value.length===0?(i(),o("div",S,[d(r(m),{icon:"mdi:information-outline",class:"w-8 h-8 text-gray-400 mx-auto mb-2"}),a[2]||(a[2]=t("p",{class:"text-gray-400"},"No locations found for the selected date range",-1))])):(i(!0),o(v,{key:2},h(e.value.slice((c.value-1)*l.value,c.value*l.value),s=>(i(),o("div",{key:s.country,class:"w-full bg-dark-bg rounded-lg border border-gray-700 overflow-hidden hover:bg-gray-800 transition-colors"},[t("div",j,[t("div",C,u(s.countryName),1),t("div",D,[f(u(s.users)+" ",1),t("span",V," ("+u(r(n).reporting.totalParticipants?(Number(s.users)/r(n).reporting.totalParticipants*100).toFixed(1):"0")+"%) ",1)])])]))),128)):(i(),o("div",P,[d(r(m),{icon:"mdi:loading",class:"w-8 h-8 text-gray-400 animate-spin"})]))]),d(r(z),{class:"mt-6",layout:"sizes, ->, prev, pager, next, jumper",total:((y=e.value)==null?void 0:y.length)??0,"default-page-size":l.value,"page-sizes":[25,50,100],"onUpdate:currentPage":a[0]||(a[0]=s=>c.value=s),"onUpdate:pageSize":a[1]||(a[1]=s=>l.value=s)},null,8,["total","default-page-size"]),e.value&&e.value.length>0?(i(),o("div",A,[d(r(m),{icon:"mdi:clock-outline",class:"text-sm"}),f(" Data last updated: "+u(new Date(e.value[0].refreshedAt).toLocaleString()),1)])):k("",!0)],64)}}});export{U 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.