PageSourceSearch

https://lidomatrip.com/_next/static/chunks/pages/admin/statistics-344a39d67d7b4a0b.js

js lidomatrip.com collected 2026-09-25 07:11:29 UTC 5,504 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8910],{82640:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/statistics",function(){return a(73434)}])},73434:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var s=a(10253),l=a(85893),n=a(67294),c=a(49759),i=a(36305),r=a(44389),x=a(84858),d=a(32474);function o(e){var t,a=e.points;if(!a.length)return(0,l.jsx)(d.ub,{text:"در ۳۰ روز گذشته کلیکی ثبت نشده"});var s=(t=Math).max.apply(t,(0,i.Z)(a.map(function(e){return e.count})).concat([1]));return(0,l.jsx)("div",{className:"flex items-end gap-x-4 h-[160px] px-4 overflow-x-auto",role:"img","aria-label":"نمودار کلیک روزانه‌ی لینک‌های کوتاه",children:a.map(function(e){return(0,l.jsxs)("div",{className:"flex-1 min-w-[10px] flex flex-col items-center gap-y-6",children:[(0,l.jsx)("span",{className:"text-10 leading-14 text-gray-6C6A7D",children:(0,d.N)(e.count)}),(0,l.jsx)("div",{className:"w-full bg-primary-main rounded-t-6 min-h-[3px] transition-all",style:{height:"".concat(e.count/s*110,"px")},title:"".concat(e.date,": ").concat(e.count," کلیک")}),(0,l.jsx)("span",{className:"text-10 leading-14 text-gray-9B9BAA truncate w-full text-center",children:e.date.slice(5)})]},e.date)})})}function p(){var e,t=(0,r.u)("/api/admin/short-links/analytics?days=30",function(e){return(0,x.SC)(e)}),a=t.data,s=t.isLoading,n=t.error;return s?(0,l.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-16",children:Array.from({length:2}).map(function(e,t){return(0,l.jsx)(d.Od,{className:"h-[104px]"},t)})}):n||!a?(0,l.jsx)("p",{className:"text-14 text-[#C62828]",children:"خطا در دریافت آمار لینک‌های کوتاه"}):(0,l.jsxs)("div",{className:"flex flex-col gap-y-16",children:[(0,l.jsxs)("section",{className:"grid grid-cols-2 lg:grid-cols-4 gap-16",children:[(0,l.jsx)(d.bB,{tone:"teal",label:"کل لینک‌های کوتاه",value:(0,d.N)(a.total_links),icon:(0,l.jsx)("i",{className:"icon-Attach text-18"})}),(0,l.jsx)(d.bB,{tone:"blue",label:"کل کلیک‌ها",value:(0,d.N)(a.total_clicks),icon:(0,l.jsx)("i",{className:"icon-Flash text-18"})})]}),(0,l.jsxs)(d.Zb,{className:"p-16",children:[(0,l.jsx)("h3",{className:"mb-12 text-14 leading-22 font-m text-black",children:"روند کلیک — ۳۰ روز گذشته"}),(0,l.jsx)(o,{points:a.daily_clicks})]}),(0,l.jsxs)(d.Zb,{className:"p-16",children:[(0,l.jsx)("h3",{className:"mb-12 text-14 leading-22 font-m text-black",children:"به تفکیک نوع پیامک"}),a.by_label.length?(0,l.jsx)("div",{className:"flex flex-col divide-y divide-gray-F0F0F0",children:a.by_label.map(function(e){return(0,l.jsxs)("div",{className:"flex items-center justify-between py-10 text-13 leading-20",children:[(0,l.jsx)("span",{className:"text-black",children:e.label}),(0,l.jsxs)("span",{className:"text-gray-6C6A7D",children:[(0,d.N)(e.links)," لینک \xb7 ",(0,d.N)(e.clicks)," کلیک"]})]},e.label)})}):(0,l.jsx)(d.ub,{text:"هنوز لینکی ساخته نشده"})]}),(0,l.jsxs)(d.Zb,{className:"overflow-x-auto",children:[(0,l.jsx)("h3",{className:"p-16 pb-0 text-14 leading-22 font-m text-black",children:"لینک‌های اخیر"}),a.recent.length?(0,l.jsxs)("table",{className:"w-full min-w-[820px] text-right border-collapse mt-8",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"bg-gray-F5F5F7 text-12 leading-18 text-gray-6C6A7D",children:[(0,l.jsx)("th",{className:"px-12 py-12 font-m",children:"لینک"}),(0,l.jsx)("th",{className:"px-12 py-12 font-m whitespace-nowrap",children:"مقصد"}),(0,l.jsx)("th",{className:"px-12 py-12 font-m whitespace-nowrap",children:"نوع"}),(0,l.jsx)("th",{className:"px-12 py-12 font-m whitespace-nowrap",children:"کلیک"}),(0,l.jsx)("th",{className:"px-12 py-12 font-m whitespace-nowrap",children:"آخرین کلیک"}),(0,l.jsx)("th",{className:"px-12 py-12 font-m whitespace-nowrap",children:"ساخته‌شده"})]})}),(0,l.jsx)("tbody",{className:"divide-y divide-gray-F0F0F0",children:a.recent.map(function(t){return(0,l.jsxs)("tr",{className:"hover:bg-gray-F5F5F7 transition",children:[(0,l.jsx)("td",{className:"px-12 py-12 whitespace-nowrap",children:(0,l.jsxs)("a",{href:t.url,target:"_blank",rel:"noreferrer",className:"text-13 font-m-en text-primary-dark",dir:"ltr",children:["/s/",t.slug]})}),(0,l.jsx)("td",{className:"px-12 py-12 text-12 text-gray-6C6A7D max-w-[260px] truncate",dir:"ltr",title:t.path,children:t.path}),(0,l.jsx)("td",{className:"px-12 py-12 text-13 whitespace-nowrap",children:null!==(e=t.label)&&void 0!==e?e:"سایر"}),(0,l.jsx)("td",{className:"px-12 py-12 text-14 font-m whitespace-nowrap",children:(0,d.N)(t.click_count)}),(0,l.jsx)("td",{className:"px-12 py-12 text-13 whitespace-nowrap text-gray-6C6A7D",children:t.last_click_at?(0,d.IY)(t.last_click_at):"—"}),(0,l.jsx)("td",{className:"px-12 py-12 text-13 whitespace-nowrap text-gray-6C6A7D",children:(0,d.IY)(t.created_at)})]},t.id)})})]}):(0,l.jsx)(d.ub,{text:"هنوز لینکی ساخته نشده"})]})]})}var h=[{key:"short-links",label:"لینک‌های کوتاه"}];
1function m(){var e=(0,s.Z)((0,n.useState)("short-links"),2),t=e[0],a=e[1];return(0,l.jsxs)(c.Z,{title:"آنالیتیکس",children:[(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(d.Qm,{tabs:h,value:t,onChange:a})}),"short-links"===t&&(0,l.jsx)(p,{})]})}}},function(e){e.O(0,[9791,9759,9774,2888,179],function(){return e(e.s=82640)}),_N_E=e.O()}]);

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.