1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4640],{38490:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/linkedin/new-posts",function(){return i(11727)}])},11727:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return new_posts}});var n=i(85893),d=i(54878),s=i(47890),l=i(54410),o=i(33934),a=i(99952),u=i(87921),r=i(85919),_=i(67294),v=i(98496),LinkedinNewPosts_LinkedinNewPosts=()=>{var e,t,i,d,c,p,w,h;let{selectedLinkedinUser:f}=(0,a.Z9)(),[g,k]=(0,_.useState)(!0),[x,m]=(0,_.useState)(100),{isMobile:j}=(0,v.Fs)(),y=(0,o.a)({queryKey:["new_linkedin_posts",f],queryFn:()=>(0,u.YJ)(f||""),refetchOnWindowFocus:!1,enabled:!!f}),N=(0,o.a)({queryKey:["linkedin_user",f],queryFn:()=>(0,u.Vl)(f||""),refetchOnWindowFocus:!1,enabled:!0});return(0,_.useEffect)(()=>{var e,t,i,n;(null===(t=N.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.is_creating_post)?k(!0):k(!1),m((null===(n=N.data)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.credits)||0),f&&y.refetch()},[N.data,f]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.T,{h:"lg"}),(null==y?void 0:null===(t=y.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.posts)&&(null==y?void 0:null===(c=y.data)||void 0===c?void 0:null===(d=c.data)||void 0===d?void 0:null===(i=d.posts)||void 0===i?void 0:i.length)===0?(0,n.jsx)(l.x,{size:"sm",children:"When a blog post is created, a new LinkedIn post will be automatically generated here."}):null,null==y?void 0:null===(h=y.data)||void 0===h?void 0:null===(w=h.data)||void 0===w?void 0:null===(p=w.posts)||void 0===p?void 0:p.map(e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{postId:e._id,status:e.status,text:e.text,post_url:e.post_url,og_image:e.og_image,video_asset_url:e.video_asset_url,display_media_url:e.display_media_url||"",og_title:e.og_title,date_created:e.date_created},e._id)})),(0,n.jsx)(s.T,{h:100})]})},new_posts=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d.I,{children:(0,n.jsx)(LinkedinNewPosts_LinkedinNewPosts,{})})})}},function(e){e.O(0,[5017,2269,2054,1736,6396,9774,2888,179],function(){return e(e.s=38490)}),_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.