PageSourceSearch

https://gitnation.com/_next/static/chunks/1949.2716e75754af1860.js

js gitnation.com collected 2026-10-02 16:35:47 UTC 4,013 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8d9c8a23-3f1e-481b-b79a-0bc086b5b7cf",e._sentryDebugIdIdentifier="sentry-dbid-8d9c8a23-3f1e-481b-b79a-0bc086b5b7cf")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1949],{81949:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var a=i(37557),s=i(18225),n=i(32130),r=i(60236),l=i(75544),o=i(62566),d=i(71209),c=i(52026),h=i(23049),u=i(26079);let m=(0,i(31069)._)({resolverName:"getViewsForLastMonths",resolverType:"query",routePath:"/getViewsForLastMonths",httpMethod:"POST"});var f=i(95977),x=i.n(f);let y=e=>{let{x:t,y:i,value:s}=e;return(0,a.jsx)("text",{x:t,y:i,dy:4,fill:"var(--colorGrayBToGray9)",fontSize:12,fontWeight:"bold",textAnchor:"middle",children:s})},w=e=>{let{x:t,y:i,payload:s}=e;return(0,a.jsx)("g",{transform:`translate(${t},${i})`,children:(0,a.jsx)("text",{className:"tick-text",x:0,y:0,dy:20,textAnchor:"middle",fill:"var(--colorGray5ToWhite)",children:s.value})})},v=e=>{let{cx:t,cy:i}=e;return(0,a.jsx)("rect",{x:t-20,y:i-13,rx:"12",ry:"12",width:"40",height:"25",
1stroke:"#FF6600",strokeWidth:3,fill:"var(--boxBg)"})};function b(e){let{id:t,slug:i}=e,[f]=(0,n.IT)(m,{contentID:t},{suspense:!0}),[b,p]=(0,s.useState)(0);if((0,s.useEffect)(()=>{function e(){let e=window.innerWidth;return e>1380?p(3.5):e<=1380&&e>1024?p(3.5/1.1):e<=1024&&e>500?p(3.5/1.2):p(3.5/1.5)}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),!f)return null;let g=new Date,j=0,k=f?.contentByMonth?.map(e=>(j+=e.popularity,{name:e.month,views:e.popularity}));return(0,a.jsxs)("div",{className:"statistics-container",children:[(0,a.jsx)("h2",{className:"statistics-widget-heading",children:"As author you can see statistics and edit details"}),(0,a.jsxs)("p",{className:"statistics-widget-text",children:["Total number of views in the last ",61+Number(g.getDate())," days: ",(0,a.jsx)("span",{children:j})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,a.jsx)(r.u,{aspect:b,className:"-ms-6 w-[calc(100%+24px)] min-w-0 md:-ms-7 md:flex-1 [&_svg]:w-full [&>div]:w-full",children:(0,a.jsxs)(l.b,{data:k,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,reverseStackOrder:!1,syncMethod:"index",margin:{top:20,left:-30,bottom:20},children:[(0,a.jsx)(o.d,{stroke:"var(--colorGrayEToGray4)"}),(0,a.jsx)(d.W,{dataKey:"name",tick:(0,a.jsx)(w,{}),tickLine:!1,allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0,padding:{left:20,right:30}}),(0,a.jsx)(c.h,{padding:{top:40},tickLine:!1,tick:!1,allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",reversed:!1}),(0,a.jsx)(h.N,{type:"monotone",dataKey:"views",stroke:"#FF6600",isAnimationActive:!1,strokeWidth:3,dot:(0,a.jsx)(v,{}),xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,legendType:"line",fill:"#fff",points:[],animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,children:(0,a.jsx)(u.Z,{content:(0,a.jsx)(y,{position:"center"}),valueAccessor:e=>Array.isArray(e.value)?e.value.at(-1):e.value})})]})}),(0,a.jsxs)("div",{className:"views-container min-w-50",children:[(0,a.jsxs)("div",{className:"views-text-container",children:[(0,a.jsx)("div",{children:"Views for all time"}),(0,a.jsx)("div",{className:"statistics-total",children:f?.totalForAllTime?f?.totalForAllTime:"0"})]}),(0,a.jsx)("div",{className:"am-aside-list",children:(0,a.jsx)(x(),{className:"btn btn--md edit-content-btn",href:`/contents/${i}/edit`,children:"Edit content"})})]})]})]})}}}]);

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.