PageSourceSearch

https://web.zaptilo.ai/build/assets/Dashboard-077e73c0.js

js zaptilo.ai collected 2026-10-05 13:20:21 UTC 9,781 bytes, 1 lines download raw bytes

1import{m as _,p as b,f as y,g as r,o as d,a as e,t as s,j as l,h,u as a,i,c,F as k,e as C,q as j,K as $,_ as B}from"./app-73e3755a.js";import M from"./App-c7b1679d.js";import"./Sidebar-dc25d02e.js";import"./Menu-fca25b61.js";import"./UsersIcon-264cbc28.js";import"./FormInput-cdda35f5.js";import"./FormPhoneInput-df022b6d.js";import"./vue-tel-input-754a83c1.js";import"./FormSelect-30929989.js";import"./hidden-44b2d02f.js";import"./use-tracked-pointer-b312a608.js";import"./use-outside-click-4e29d95e.js";import"./use-resolve-button-type-a489b699.js";import"./use-controllable-7f80c911.js";import"./use-text-value-63cd5c46.js";import"./transition-3ced6b7d.js";import"./micro-task-89dcd6af.js";import"./tabs-77584d1f.js";import"./UserGroupIcon-86de71f0.js";import"./MobileSidebar-3186c862.js";import"./index-bbc9af99.js";/* empty css              */import"./useRtl-de8f5b94.js";const L={class:"bg-white md:bg-inherit p-4 md:p-8 rounded-[5px] text-[#000] h-full overflow-y-auto"},V={class:"flex justify-between mt-3 md:mt-0"},N={class:"md:block hidden text-xl mb-1"},O={class:"mb-6 flex items-center leading-6"},S={class:"mt-1 font-semibold md:font-normal text-xl"},T={class:"md:flex space-x-2 md:space-x-2 mt-4 md:mt-0 mb-8 text-xl md:text-sm hidden"},z={class:"grid grid-cols-2 md:grid-cols-4 gap-x-4 gap-y-2 md:space-y-0"},A={class:"bg-slate-100 md:bg-white border border-slate-200 col-span-2 md:col-span-1 rounded-lg p-3"},R={class:"flex justify-between items-center"},D={class:"text-slate-600"},P={class:"text-xl text-gray-600"},U={class:"text-sm space-x-1 md:block hidden"},Z={class:"bg-slate-100 md:bg-white border border-slate-200 col-span-1 rounded-lg p-3"},E={class:"flex justify-between items-center"},F={class:"text-slate-600"},H={class:"text-xl text-gray-600"},I={class:"text-sm space-x-1 md:block hidden"},q={class:"bg-slate-100 md:bg-white border border-slate-200 rounded-lg p-3"},K={class:"flex justify-between items-center"},W={class:"text-slate-600"},Y={class:"text-xl text-gray-600"},G={class:"text-sm space-x-1 md:block hidden"},J={class:"bg-slate-100 col-span-2 md:col-span-1 md:bg-white border border-slate-200 rounded-lg p-3"},Q={class:"flex justify-between items-center"},X={class:"text-slate-600"},ee={class:"text-xl text-gray-600"},te={class:"md:grid md:grid-cols-2 gap-x-4 mt-8"},se={class:"md:bg-white md:border md:border-slate-200 md:rounded-lg md:p-4"},oe={id:"chart",class:"md:block hidden min-h-[350px]"},ne={class:"bg-white border border-slate-200 rounded-lg py-4 md:px-4 h-[fit-content]"},re={class:"text-sm"},le={key:0,class:"md:p-5 border-2 border-dashed mt-4"},ae={class:"text-sm text-center"},ie={key:1,class:"space-y-1"},de={class:"capitalize"},ce={class:"self-end"},me={class:"bg-[#ffe5b4] p-1 rounded-md text-xs px-2 capitalize"},ze={__name:"Dashboard",props:{title:{type:String},payments:{type:Object},totalRevenue:{type:String},userCount:{type:Number},openTickets:{type:Number},totalMessages:{type:Number},period:{type:Object},newUsers:{type:Object},revenue:{type:Object}},setup(u){const g=j(()=>B(()=>import("./vue3-apexcharts.common-09bb95d3.js").then(t=>t.v),["assets/vue3-apexcharts.common-09bb95d3.js","assets/app-73e3755a.js","assets/vue.runtime.esm-bundler-73d751b2.js"])),w=_(()=>$().props.auth.user);b(()=>{const t=new URLSearchParams(window.location.search);if(t.get("refresh_lang")==="1"){t.delete("refresh_lang");const o=window.location.pathname+(t.toString()?"?"+t.toString():"");window.history.replaceState({},"",o),window.location.reload()}});const n=u,x={chart:{height:350,type:"area",toolbar:{show:!1},zoom:{enabled:!1}},colors:["#418207"],fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}},dataLabels:{enabled:!1},stroke:{width:1,curve:"smooth"},xaxis:{type:"datetime",categories:n.period},tooltip:{x:{format:"dd/MM/yy HH:mm"}}},v=[{name:"New Customers",data:n.newUsers},{name:"Revenue",data:n.revenue}];return(t,o)=>(d(),y(M,null,{default:r(()=>{var m;return[e("div",L,[e("div",V,[e("div",null,[e("h2",N,s(t.$t("Dashboard")),1),e("p",O,[e("span",S,s(t.$t("Welcome back"))+", "+s((m=w.value)==null?void 0:m.first_name)+" 👋",1)])])]),e("div",T,[l(a(i),{href:"/admin/organizations/create",class:"bg-primary py-2 px-3 rounded-lg text-white text-center"},{default:r(()=>[h(s(t.$t("Add organization")),1)]),_:1}),l(a(i),{href:"/admin/users/create",class:"bg-primary py-2 px-3 rounded-lg text-white text-center"},{default:r(()=>[h(s(t.$t("Add user")),1)]),_:1})]),e("div",z,[e("div",A,[e("div",R,[e("div",null,[e("h2",D,s(t.$t("Total revenue")),1),e("h1",P,s(n.totalRevenue),1)]),o[0]||(o[0]=e("div",{class:"flex"}
1,[e("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[e("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[e("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))]),e("div",U,[l(a(i),{href:"/admin/payment-logs",class:"flex items-center space-x-1 underline"},{default:r(()=>[e("span",null,s(t.$t("View all")),1),o[1]||(o[1]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})])]),e("div",Z,[e("div",E,[e("div",null,[e("h2",F,s(t.$t("Active users")),1),e("h1",H,s(n.userCount),1)]),o[2]||(o[2]=e("div",{class:"flex"},[e("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[e("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[e("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))]),e("div",I,[l(a(i),{href:"/admin/users",class:"flex items-center space-x-1 underline"},{default:r(()=>[e("span",null,s(t.$t("View all")),1),o[3]||(o[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})])]),e("div",q,[e("div",K,[e("div",null,[e("h2",W,s(t.$t("Open tickets")),1),e("h1",Y,s(n.openTickets),1)]),o[4]||(o[4]=e("div",{class:"flex"},[e("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[e("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[e("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))]),e("div",G,[l(a(i),{href:"/admin/support",class:"flex items-center space-x-1 underline"},{default:r(()=>[e("span",null,s(t.$t("View all")),1),o[5]||(o[5]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})])]),e("div",J,[e("div",Q,[e("div",null,[e("h2",X,s(t.$t("Total messages")),1),e("h1",ee,s(n.totalMessages),1)]),o[6]||(o[6]=e("div",{class:"flex"},[e("span",{class:"bg-secondary/10 p-3 rounded-full self-start"},[e("svg",{class:"text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[e("path",{d:"M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14l2.293-2.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 0 1.414 0L17 10m0 0v2.5m0-2.5h-2.5"})])])])],-1))])])]),e("div",te,[e("div",se,[e("div",oe,[l(a(g),{type:"area",height:"350",options:x,series:v})])]),e("div",ne,[e("h1",null,s(t.$t("Recent transactions")),1),e("p",re,s(t.$t("Below are your most recent transactions")),1),n.payments.length===0?(d(),c("div",le,[e("p",ae,s(t.$t("You do not have any transactions")),1)])):(d(),c("div",ie,[(d(!0),c(k,null,C(n.payments.data,(p,f)=>(d(),c("div",{key:f,class:"mt-4 border-l-4 bg-gray-50 flex justify-between p-2 text-sm"},[e("div",de,s(p.organization.name),1),e("div",ce,[e("span",me,s(p.amount),1)])]))),128)),l(a(i),{href:"/admin/payment-logs",class:"flex items-center space-x-1 underline pt-3 text-sm"},{default:r(()=>[e("span",null,s(t.$t("View all")),1),o[7]||(o[7]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16l8-8m0 0h-6m6 0v6"})],-1))]),_:1})]))])])])]}),_:1}))}};export{ze 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.