1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7842],{57275:function(e,l,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/authors/author-profile/[profileId]",function(){return r(70595)}])},71459:function(e,l,r){"use strict";var t=r(85893),o=r(83671),i=r(61668),u=r(17209),n=r(11163),a=r(67294),d=r(59927),s=r(39491);let c=(e,l)=>{let{roles:r,additionalExpression:c=!0,additionalExpressionCallable:f=()=>!0,layout:v="default",redirectUrl:p}=l,h=l=>{var h,g;let{user:I,isAuthenticated:y,isInitialised:q,isLoginInProgress:b,isLogoutInProgress:m}=(0,o.Z)(),[,Z]=(0,i.Z)(),_=(0,n.useRouter)(),[,j]=(0,u.Z)(),w={layout:v,user:I,isAuthenticated:y,isInitialised:q};(0,a.useEffect)(()=>{var e,t;if((null==_?void 0:null===(e=_.query)||void 0===e?void 0:e.appUserId)&&(null==_?void 0:null===(t=_.query)||void 0===t?void 0:t.requestFrom))Z(!1);else if(!q||b||m||(0,d.r5)(x,r)&&c&&f(l))q&&!b&&(0,d.r5)(x,r)&&c&&f(l)&&j({layout:v});else{let o=p||("default"!==v?"/".concat(v,"/login?redirection=").concat(_.asPath):"/?redirection=".concat(_.asPath));o.includes("/transaction-history?activeTab=2&courseId=")&&localStorage.setItem("redirectTo",null==o?void 0:o.replace("/?redirection=","")),_.push(o)}return()=>{!q||b||m||(0,d.r5)(x,r)&&c&&f(w)||Z(!0)}},[I,v]);let x=(null==I?void 0:I.Roles)||[];return(null==_?void 0:null===(h=_.query)||void 0===h?void 0:h.appUserId)&&(null==_?void 0:null===(g=_.query)||void 0===g?void 0:g.requestFrom)?(0,t.jsx)(e,{...l}):!q||b||m?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.Z,{})}):(0,d.r5)(x,r)&&c&&f(l)?(0,t.jsx)(e,{...l,data:w}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.Z,{})})};return h};l.Z=c},70595:function(e,l,r){"use strict";r.r(l);var t=r(85893),o=r(67848),i=r(49422),u=r(39244),n=r(91185),a=r(6695),d=r(72365),s=r(11163),c=r(67294),f=r(80553),v=r(71459);let p=()=>{var e;let l=(0,s.useRouter)(),[r,v]=(0,c.useState)(""),{publicProfileInfo:p,setPublicProfileInfo:h}=(0,n.Z)();(0,a.Z)({items:[{label:"Blogs",link:"/blogs"},{label:"Article",link:"/blogs/".concat(r)},{label:"Author Profile"}]}),(0,c.useEffect)(()=>{l.query.blogId&&f.Z.getArticleById(l.query.blogId).then(e=>{let l=e.data;l&&v(null==l?void 0:l.articleUrl)})},[l.query.blogId]);let{data:g}=(0,o.a)(["authorProfile",l.query.profileId],()=>f.Z.getAuthorProfile(l.query.profileId),{enabled:!!l.query.profileId,refetchOnWindowFocus:!1}),{profileImageUrl:I}=(0,d.q)(null==g?void 0:null===(e=g.data)||void 0===e?void 0:e.profileImage);return(0,c.useEffect)(()=>{var e,l;h({...p,data:{...(0,u.d0)(null==g?void 0:g.data),profileImage:null==g?void 0:null===(e=g.data)||void 0===e?void 0:null===(l=e.profileImageUrl)||void 0===l?void 0:l.fileUrl},publicViewStatus:"author"})},[JSON.stringify(g),I,l.query.profileId]),(0,t.jsx)("main",{children:(0,t.jsx)(i.Z,{})})};l.default=(0,v.Z)(p,{roles:["admin"],layout:"admin"})}},function(e){e.O(0,[3874,2013,8166,260,8445,8005,878,2512,4129,827,1280,1033,2732,9422,9774,2888,179],function(){return e(e.s=57275)}),_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.