System.register(["./index-legacy-DF2p3puw.js"],(function(e,t){"use strict";var s,r,a,i,l,n,d;return{setters:[function(e){s=e.u,r=e.t,a=e.r,i=e.j,l=e.n,n=e.L,d=e.a}],execute:function(){e("default",(function(){var e,t=s(),x=r.analytics.getAnalyticsGroups.useQuery();return a.useEffect((function(){t({title:"Analytics"})}),[t]),i.jsx("div",{className:"mx-32 bg-gray-50 p-8 rounded-lg",style:{marginTop:"-3.25rem"},children:x?i.jsx("ul",{className:"grid grid-flow-row gap-8 grid-col-1 grid-cols-2 auto-rows-auto",children:null===(e=x.data)||void 0===e?void 0:e.map((function(e){var t=e.label,s=e.pageViews,r=e.uniques,a=e.pages,d=e.returning;return i.jsxs("li",{className:"border-2 border-gray-200 rounded-xl overflow-hidden",children:[i.jsx("h2",{className:"text-2xl mb-2 bg-gray-900 text-white py-4 px-6 shadow-sm",children:t}),i.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[i.jsxs("div",{className:"text-2xl bg-gray-200 rounded-md p-2 px-3",children:[l(s),i.jsx("div",{className:"text-sm text-gray-600",children:"Page views"})]}),i.jsxs("div",{className:"text-2xl bg-gray-200 rounded-md p-2 px-3",children:[l(r),i.jsx("div",{className:"text-sm text-gray-600",children:"Unique visitors"})]}),i.jsxs("div",{className:"text-2xl bg-gray-200 rounded-md p-2 px-3",children:[l(d),i.jsx("div",{className:"text-sm text-gray-600",children:"Returning visitors"})]})]}),i.jsxs("table",{className:"m-4 break-all",style:{width:"calc(100% - 2rem)"},children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{"aria-label":"Page URL",children:"&nbsp"}),i.jsx("th",{className:"font-light text-xs uppercase text-right pr-3",children:"Views"}),i.jsx("th",{className:"font-light text-xs uppercase text-right pr-3",children:"Uniques"})]})}),i.jsx("tbody",{children:a.map((function(e,t){var s=e.path,r=e.pageViews,a=e.uniques;return i.jsxs("tr",{className:t%2==0?"":"bg-gray-200",children:[i.jsx("td",{className:"p-1 px-3",width:"75%",children:i.jsx(n,{to:s,className:"text-blue-600 hover:text-blue-800 inline-block text-sm truncate w-96",title:s,children:s})}),i.jsx("td",{className:"p-1 px-3 text-right align-top text-sm text-gray-700",width:"10%",children:l(r)}),i.jsx("td",{className:"p-1 px-3 text-right align-top text-sm text-gray-700",width:"10%",children:l(a)})]},s)}))})]})]},t)}))}):i.jsx(d,{})})}))}}}));
