PageSourceSearch

https://igca-insights.vercel.app/_next/static/chunks/pages/panel/author-95bf142846516d51.js

js igca-insights.vercel.app collected 2026-10-03 07:06:59 UTC 14,452 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8665],{51797:function(e,l,t){"use strict";var o=t(88169),a=t(85893);l.Z=(0,o.Z)((0,a.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit")},10785:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/panel/author",function(){return t(42643)}])},95677:function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e,l){let t=i.default,a={loading:e=>{let{error:l,isLoading:t,pastDelay:o}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a=o({},a,e)),a=o({},a,l);let r=a.loader,n=()=>null!=r?r().then(d):Promise.resolve(d(()=>null));return(a.loadableGenerated&&delete(a=o({},a,a.loadableGenerated)).loadableGenerated,"boolean"!=typeof a.ssr||a.ssr)?t(o({},a,{loader:n})):(delete a.webpack,delete a.modules,s(t,a))},l.noSSR=s;var o=t(6495).Z,a=t(92648).Z,i=(a(t(67294)),a(t(8976)));function d(e){return{default:(null==e?void 0:e.default)||e}}function s(e,l){return delete l.webpack,delete l.modules,e(l)}("function"==typeof l.default||"object"==typeof l.default&&null!==l.default)&&void 0===l.default.__esModule&&(Object.defineProperty(l.default,"__esModule",{value:!0}),Object.assign(l.default,l),e.exports=l.default)},92254:function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.LoadableContext=void 0;var o=(0,t(92648).Z)(t(67294));let a=o.default.createContext(null);l.LoadableContext=a},8976:function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=t(6495).Z,a=(0,t(92648).Z)(t(67294)),i=t(92254);let d=[],s=[],r=!1;function n(e){let l=e(),t={loading:!0,loaded:null,error:null};return t.promise=l.then(e=>(t.loading=!1,t.loaded=e,e)).catch(e=>{throw t.loading=!1,t.error=e,e}),t}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:l}=this;e.loading&&("number"==typeof l.delay&&(0===l.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},l.delay)),"number"==typeof l.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},l.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=o({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,l){this._loadFn=e,this._opts=l,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,l){let t=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},l),o=null;function d(){if(!o){let l=new u(e,t);o={getCurrentValue:l.getCurrentValue.bind(l),subscribe:l.subscribe.bind(l),retry:l.retry.bind(l),promise:l.promise.bind(l)}}return o.promise()}if(!r){let e=t.webpack?t.webpack():t.modules;e&&s.push(l=>{for(let t of e)if(-1!==l.indexOf(t))return d()})}function n(e,l){!function(){d();let e=a.default.useContext(i.LoadableContext);e&&Array.isArray(t.modules)&&t.modules.forEach(l=>{e(l)})}();let s=a.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return a.default.useImperativeHandle(l,()=>({retry:o.retry}),[]),a.default.useMemo(()=>{var l;return s.loading||s.error?a.default.createElement(t.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?a.default.createElement((l=s.loaded)&&l.default?l.default:l,e):null},[e,s])}return n.preload=()=>d(),n.displayName="LoadableComponent",a.default.forwardRef(n)}(n,e)}function m(e,l){let t=[];for(;e.length;){let o=e.pop();t.push(o(l))}return Promise.all(t).then(()=>
1{if(e.length)return m(e,l)})}c.preloadAll=()=>new Promise((e,l)=>{m(d).then(e,l)}),c.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(l=>{let t=()=>(r=!0,l());m(s,e).then(t,t)})},window.__NEXT_PRELOADREADY=c.preloadReady,l.default=c},42643:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return k}});var o=t(85893),a=t(25395),i=t(88169),d=(0,i.Z)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye"),s=(0,i.Z)((0,o.jsx)("path",{d:"M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"}),"ReplyAll"),r=t(51797),n=t(5152),u=t.n(n);let c=u()(()=>Promise.all([t.e(5279),t.e(7229)]).then(t.bind(t,47229)),{loadableGenerated:{webpack:()=>[47229]},ssr:!1}),m=e=>{let{pieLabel:l,pieSeries:t,title:a,className:i}=e;return(0,o.jsxs)("div",{className:"".concat(i),children:[(0,o.jsx)("h3",{className:"font-semibold w-full text-left tracking-wide text-black text-lg",children:a}),(0,o.jsx)(c,{type:"pie",height:"400",series:t,options:{chart:{width:380,type:"pie"},legend:{position:"bottom"},colors:["#5B50A1","#C43C5C","#a05b8b"],labels:l,responsive:[{breakpoint:1500,options:{chart:{width:300},legend:{position:"bottom"}}},{breakpoint:1200,options:{chart:{width:280},legend:{position:"bottom"}}},{breakpoint:480,options:{chart:{width:240},legend:{position:"bottom"}}}]}})]})},v=u()(()=>Promise.all([t.e(5279),t.e(7229)]).then(t.bind(t,47229)),{loadableGenerated:{webpack:()=>[47229]},ssr:!1});function h(e){let{series:l,categories:t,colors:a,title:i,height:d}=e;return(0,o.jsx)("div",{className:" bg-white p-6 min-w-[25rem]",children:(0,o.jsx)(v,{height:d,options:{title:{text:i,style:{fontWeight:"700",fontSize:"16px",color:"black"}},chart:{height:350,type:"line",zoom:{enabled:!1}},responsive:[{breakpoint:480,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{opacity:1},legend:{position:"bottom"},xaxis:{categories:t},colors:a},series:l,type:"line"})})}var p=t(60889),f=t(78413),b=t(30381),x=t.n(b),g=t(41664),y=t.n(g),j=t(67294),_=t(11163);function w(e){let{curElm:l,className:t}=e,a=(0,_.useRouter)();return(0,o.jsx)("section",{onClick:()=>a.push("".concat(l.clickableRoute)),children:(0,o.jsxs)("div",{className:"border border-secondary/30 shadow rounded-md cursor-pointer",children:[(0,o.jsxs)("div",{className:" flex justify-between p-5",children:[(0,o.jsxs)("div",{className:" flex flex-col gap-2",children:[(0,o.jsx)("p",{children:null==l?void 0:l.title}),(0,o.jsx)("p",{className:"!text-secondary font-semibold !text-2xl",children:null==l?void 0:l.number})]}),(0,o.jsx)("p",{className:"bg-white p-4 shadow-xl rounded-md border border-tertiary/50",children:null==l?void 0:l.icon})]}),(0,o.jsx)("img",{src:null==l?void 0:l.image,alt:"image",className:"lg:w-72 md:w-56"})]},l._id)})}let N=()=>{var e,l,t,i,n,u,c,v,b,g,N,k,C,M,P,E,O,T,R,Z,A,L,V,S,D,z,H,Y,G,B,X,F,I,W,K,q,J,Q,U,$,ee,el;(0,_.useRouter)();let{data:et,isValidating:eo,mutate:ea}=(0,p.Z)("dashboard/author-card-count"),{data:ei,isValidating:ed,mutate:es}=(0,p.Z)("dashboard/author-pie-graph"),er=(0,j.useMemo)(()=>{var e,l,t,i,r,n,u,c,m,v,h;return[{_id:"11",title:"Number of Post",number:(null==et?void 0:null===(e=et.data)||void 0===e?void 0:null===(l=e.success)||void 0===l?void 0:null===(t=l.data)||void 0===t?void 0:t.NumberOfPosts)||0,image:"/wave.svg",icon:(0,o.jsx)(a.Z,{className:"!text-secondary"}),clickableRoute:"/panel/author/all-post"},{_id:"22",title:"Highest Comment",number:(null==et?void 0:null===(i=et.data)||void 0===i?void 0:null===(r=i.success)||void 0===r?void 0:null===(n=r.data)||void 0===n?void 0:null===(u=n.HighestComments)||void 0===u?void 0:u.data)||0,image:"/wave.svg",icon:(0,o.jsx)(d,{className:"!text-secondary"}),clickableRoute:"#"},{_id:"33",title:"Highest Shares",number:(null==et?void 0:null===(c=et.data)||void 0===c?void 0:null===(m=c.success)||void 0===m?void 0:null===(v=m.data)||void 0===v?void 0:null===(h=v.HighestShareOnPost)||void 0===h?void 0:h.Count)||0,image:"/wave.svg",icon:(0,o.jsx)(s,{className:"!text-secondary "}),clickableRoute:"/panel/author/all-post"}]},[null==et?void 0:null===(e=et.data)||void 0===e?void 0:null===(l=e.success)||void 0===l?void 0:l.data]),{data:en,isValidating:eu,mutate:ec}=(0,p.Z)("post/get-my-blog"),em=null==en?void 0:null===(t=en.data)||void 0===t?void 0:null===(i=t.success)||void 0===i?void 0:i.data,{data:ev,isValidating:eh,mutate:ep}=(0,p.Z)("dashboard/author-wave-graph"),ef=null==ev?void 0:null===(n=ev.data)||void 0===n?void 0:null===(u=n.success)||void 0===u?void 0:null===(c=u.data)||void 0===c?void 0:c.map(e=>x()().month(e.month-1).format("MMM")),eb=null==ev?void 0:null===(v=ev.data)||void 0===v?void 0:null===(b=v.success)||void 0===b?void 0:null===(g=b.data)||void 0===g?void 0:g.map(e=>e.devices.DESKTOP),ex=null==ev?void 0:null===(N=ev.data)||void 0===N?void 0:null===(k=N.success)||void 0===k?void 0:null===(C=k.data)||void 0===C?void 0:C.map(e=>e.devices.MOBILE),eg=null==ev?void 0:null===(M=ev.data)||void 0===M?void 0:null===(P=M.success)||void 0===P?void 0:null===(E=P.data)||void 0===E?void 0:E.map(e=>e.devices.OTHER),ey=null==ev?void 0:null===(O=ev.data)||void 0===O?void 0:null===(T=O.success)||void 0===T?void 0:null===(R=T.data)||void 0===R?void 0:R.map(e=>e.devices.TABLET),{data:ej}=(0,p.Z)("auth/self"),e_=null==ej?void 0:null===(Z=ej.data)||void 0===Z?void 0:null===(A=Z.success)||void 0===A?void 0:A.data;return(0,o.jsx)(f.l,{title:"Welcome to Author Dashboard",children:(0,o.jsxs)("article",{className:"flex md:flex-row flex-col gap-5 ",children:[(0,o.jsxs)("aside",{className:"p-5 lg:w-[calc(100vw-450px)] md:w-[calc(100vw-24rem)] w-full flex flex-col gap-5",children:[(0,o.jsx)("section",{className:"flex lg:justify-center lg:items-center gap-5 w-full lg:flex-row flex-col",children:null==er?void 0:er.map(e=>(0,o.jsx)(w,{curElm:e},null==e?void 0:e._id))}),(0,o.jsxs)("section",{className:"flex lg:flex-row flex-col gap-5 lg:p-5",children:[(0,o.jsx)("div",{className:"shadow-lg rounded-md border border-primary/40 lg:w-7
1/12 w-full overflow-x-scroll",children:(0,o.jsx)(h,{categories:ef,colors:["#C43C5C","#19A2A8","#3119A8","#A819A1"],height:430,series:[{name:"Desktops",data:eb},{name:"Mobile",data:ex},{name:"Other",data:eg},{name:"Tablet",data:ey}],title:"Daily Visit"})}),(0,o.jsxs)("div",{className:"shadow-lg rounded-md border border-primary/40 lg:w-5/12 w-full p-5",children:[(0,o.jsx)("h1",{className:"font-semibold",children:"Last 30 days performance"}),(0,o.jsxs)("div",{className:"",children:[(0,o.jsx)(m,{className:"pb-5 border-b",title:"",pieSeries:[Number(null==ei?void 0:null===(L=ei.data)||void 0===L?void 0:null===(V=L.success)||void 0===V?void 0:null===(S=V.data)||void 0===S?void 0:S.post)||0,Number(null==ei?void 0:null===(D=ei.data)||void 0===D?void 0:null===(z=D.success)||void 0===z?void 0:null===(H=z.data)||void 0===H?void 0:H.commentLastMonth)||0,Number(null==ei?void 0:null===(Y=ei.data)||void 0===Y?void 0:null===(G=Y.success)||void 0===G?void 0:null===(B=G.data)||void 0===B?void 0:B.pastShare)||0],pieLabel:["Post","Comment","Share"]}),(0,o.jsxs)("div",{className:"grid grid-cols-2 gap-3 pt-5 font-semibold",children:[(0,o.jsxs)("p",{children:["Post: ",null==ei?void 0:null===(X=ei.data)||void 0===X?void 0:null===(F=X.success)||void 0===F?void 0:null===(I=F.data)||void 0===I?void 0:I.post]}),(0,o.jsxs)("p",{children:["Comment: ",null==ei?void 0:null===(W=ei.data)||void 0===W?void 0:null===(K=W.success)||void 0===K?void 0:null===(q=K.data)||void 0===q?void 0:q.commentLastMonth]}),(0,o.jsxs)("p",{children:["Share: ",null==ei?void 0:null===(J=ei.data)||void 0===J?void 0:null===(Q=J.success)||void 0===Q?void 0:null===(U=Q.data)||void 0===U?void 0:U.pastShare]}),(0,o.jsxs)("p",{children:["Visit: ",null==ei?void 0:null===($=ei.data)||void 0===$?void 0:null===(ee=$.success)||void 0===ee?void 0:null===(el=ee.data)||void 0===el?void 0:el.pastVisit]})]})]})]})]})]}),(0,o.jsxs)("aside",{className:"w-full md:absolute md:top-13 md:right-0 lg:w-[400px] md:w-[20rem] md:h-[calc(100vh-56px)] p-5 bg-white common-transition md:border-l border-primary/40",children:[(0,o.jsxs)("section",{className:"flex justify-center items-center flex-col",children:[(0,o.jsx)("h1",{className:"text-xl font-semibold",children:"My Profile"}),(0,o.jsx)("div",{className:" bg-gradient-to-br from-primary/20 to-gray-100 shadow-[0_8px_30px_rgb(0,0,0,0.12)]  p-4 rounded-2xl border border-tertiary/30 my-5",children:(0,o.jsx)("img",{src:"/admin/blogger.png",alt:"blogger_image",className:"h-20 w-20"})}),(0,o.jsxs)("div",{className:"flex justify-center items-center flex-col gap-1",children:[(0,o.jsx)("p",{className:"text-lg font-semibold text-secondary capitalize",children:null==e_?void 0:e_.name}),(0,o.jsx)("small",{className:"text-md text-gray-500",children:null==e_?void 0:e_.bio})]}),(0,o.jsxs)("div",{className:"flex gap-2 py-4",children:[(0,o.jsx)(y(),{href:"edit-profile",className:"p-3 border border-tertiary rounded-md ",children:(0,o.jsx)(r.Z,{})}),(0,o.jsx)(y(),{href:"profile",className:"py-2 px-5 border border-tertiary rounded-md hover:text-secondary flex justify-center",children:"View full profile"})]})]}),(0,o.jsx)("div",{className:"py-3",children:(0,o.jsx)("hr",{})}),(0,o.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,o.jsx)("h1",{className:"font-semibold text-lg",children:"New post are:"}),(0,o.jsxs)("div",{className:"flex justify-between mr-4 text-primary font-bold border-b border-secondary ",children:[(0,o.jsx)("p",{children:"Blog Title"}),(0,o.jsx)("p",{children:"Created Date"})]}),(0,o.jsx)("div",{className:"flex flex-col h-60 overflow-y-scroll",children:null==em?void 0:em.map(e=>(0,o.jsxs)("div",{className:"flex justify-between items-center border-b py-2 text-sm gap-4",children:[(0,o.jsx)("small",{className:"w-8/12",children:e.title}),(0,o.jsx)("p",{className:"w-4/12 text-secondary font-semibold",children:x()(e.createdAt).format("MMM Do YYYY")})]},e.id))})]})]})]})})};var k=N},5152:function(e,l,t){e.exports=t(95677)}},function(e){e.O(0,[4885,1963,1664,1133,433,5946,8413,9774,2888,179],function(){return e(e.s=10785)}),_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.