PageSourceSearch

https://app.emplibot.com/_next/static/chunks/pages/linkedin/settings-5dee82d0aa010a1f.js

js emplibot.com collected 2026-10-02 02:48:51 UTC 9,077 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1624],{93844:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var n=(0,s(30853).Z)("external-link","IconExternalLink",[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]])},8861:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var n=(0,s(30853).Z)("user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]])},66776:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/linkedin/settings",function(){return s(83138)}])},54878:function(e,t,s){"use strict";s.d(t,{I:function(){return LinkedinLayout}});var n=s(85893),i=s(47890),r=s(95429),l=s(70313),a=s(54410),o=s(58278),c=s(11163),d=s(88332),u=s.n(d),h=s(91851),x=s(98496);s(67294);let LinkedinLayout=e=>{let{children:t}=e,s=(0,c.useRouter)(),d=s.pathname.split("/").pop(),{isMobile:p}=(0,x.Fs)();return(0,n.jsxs)(n.Fragment,{children:[p&&(0,n.jsx)(i.T,{h:60}),(0,n.jsx)(r.k,{direction:"column",justify:"center",align:"center",children:(0,n.jsxs)(l.m,{value:d,onChange:e=>{null!==e&&s.push("/linkedin/".concat(e))},w:"100%",children:[!p&&(0,n.jsxs)(r.k,{direction:"row",className:u().navbar,align:"center",justify:"space-between",children:[(0,n.jsxs)(r.k,{direction:"row",align:"center",children:[(0,n.jsx)(a.x,{className:u().navbarTitle,px:"lg",children:"LinkedIn"}),(0,n.jsxs)(l.m.List,{className:u().list,children:[(0,n.jsx)(l.m.Tab,{value:"new-posts",className:u().tab,children:"New"}),(0,n.jsx)(l.m.Tab,{value:"archived-posts",className:u().tab,children:"Archived"}),(0,n.jsx)(l.m.Tab,{value:"settings",className:u().tab,children:"Settings"})]})]}),(0,n.jsx)(h.Z,{})]}),(0,n.jsx)(r.k,{justify:"center",children:(0,n.jsx)(o.x,{p:"lg",maw:1400,w:"100%",children:t})})]})})]})}},91851:function(e,t,s){"use strict";s.d(t,{Z:function(){return NavbarAccount}});var n=s(85893),i=s(99952),r=s(95429),l=s(54410),a=s(24843),o=s(8861);function NavbarAccount(){var e,t;let{getAccountDetailsQuery:s}=(0,i.ln)();return(0,n.jsxs)(r.k,{direction:"row",align:"center",px:"lg",children:[(0,n.jsx)(l.x,{pr:"md",fz:"sm",children:null==s?void 0:null===(t=s.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.email}),(0,n.jsx)(a.A,{variant:"outline",color:"gray",size:"md",radius:"md",component:"a",href:"/settings/account",children:(0,n.jsx)(o.Z,{style:{width:"70%",height:"70%"},stroke:1.5})})]})}},29250:function(e,t,s){"use strict";s.d(t,{c:function(){return TitleCard}});var n=s(85893),i=s(38878),r=s(356),l=s(54410),a=s(58278),o=s(10576);let TitleCard=e=>{let{props:t,children:s}=e;return(0,n.jsxs)(i.Z,{withBorder:!0,radius:"md",padding:"xl",shadow:"xs",mb:"lg",children:[(0,n.jsxs)(r.Z,{justify:"space-between",align:"center",children:[(0,n.jsx)(l.x,{fw:"bold",children:t.title}),t.rightContent&&(0,n.jsx)(a.x,{children:t.rightContent})]}),(0,n.jsx)(o.i,{my:"md"}),s]})}},83138:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return settings}});var n=s(85893),i=s(54878),r=s(29250),l=s(65599),a=s(87921),o=s(76556),c=s(58278),d=s(54410),u=s(95429),h=s(84638),x=s(84957),p=s(24998),m=s(98029),g=s(33934),j=s(41664),f=s.n(j),v=s(67294),Autopublish_Autopublish=()=>{var e;let[t,s]=(0,v.useState)(!1),i=(0,g.a)({queryKey:["linkedinSubscriptionStatus"],queryFn:()=>(0,a.vZ)(),refetchOnWindowFocus:!1,enabled:!0});(0,v.useEffect)(()=>{var e,t;s((null==i?void 0:null===(t=i.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.publication_status)==="publish")},[null===(e=i.data)||void 0===e?void 0:e.data]);let r=(0,m.D)({mutationFn:()=>(0,a.yV)(t?"publish":"draft"),onSuccess:e=>{e.data.success&&p.N9.show({title:"Success",message:"Settigs saved!",color:"teal"})}});return i.isLoading?(0,n.jsx)(o.a,{}):(0,n.jsx)(c.x,{maw:800,children:(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),r.mutate()},autoComplete:"off",children:[(0,n.jsx)(d.x,{fz:"sm",mt:"sm",children:"If you enable this option, a Linkedin post that belongs to a blog post will be automatically published if:"}),(0,n.jsx)(d.x,{fz:"sm",mt:"sm",children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:'you have set your blog posts to "publish" (not "draft"), or'}),(0,n.jsx)("li",{children:"if you publish the corresponding draft blog post in your WordPress dashboard."})]})}),(0,n.jsx)(d.x,{fz:"sm",mt:"sm",component:f(),c:"blue",href:"/settings/integrations",children:(0,n.jsx)("i",{children:(0,n.jsx)("u",{children:"Your Linkedin account must be connected."})})}),(0,n.jsxs)(u.k,{gap:"sm",align:"center",mt:"xl",children:[(0,n.jsx)(h.r,{checked:t,onChange:e=>s(e.currentTarget.checked),style:{cursor:"pointer"}}),(0,n.jsx)(d.x,{fz:"sm",children:"Autopublish Linkedin posts"})]}),(0,n.jsx)(l.Z,{isError:r.isError,error:r.error}),(0,n.jsx)(x.z,{type:"submit",mt:"xl",loading:r.isPending,children:"Save"})]})})},k=s(8207),b=s(93844);let y="DEFAULT_VIDEO",_="PDF_LISTICLE_CAROUSEL_001",w="SQUARE_QUOTE_IMAGE_001";var PostTypes_PostTypes=()=>{let[e,t]=(0,v.useState)(!1),[s,i]=(0,v.useState)(!1),[r,j]=(0,v.useState)(!1),[S,L]=(0,v.useState)(null),E=(0,g.a)({queryKey:["linkedinAllowedPostTypes"],queryFn:a.KK,refetchOnWindowFocus:!1,enabled:!0});(0,v.useEffect)(()=>{var e,s;if(null===(s=E.data)||void 0===s?void 0:null===(e=s.data)||void 0===e?void 0:e.allowed_linkedin_post_types){let e=E.data.data.allowed_linkedin_post_types;t(e.includes(y)),i(e.includes(_)),j(e.includes(w))}},[E.data]);let T=(0,m.D)({mutationFn:()=>(0,a.WX)(getSelectedPostTypes()),onSuccess:e=>{e.data.success?p.N9.show({title:"Success",message:"Settings saved!",color:"teal"}):p.N9.show({title:"Error",message:"Failed to save settings.",color:"red"})},onError:e=>{var t,s;p.N9.show({title:"Error",message:(null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(t=s.data)||void 0===t?void 0:t.message)||"An unexpected error occurred.",color:"red"})}}),getSelectedPostTypes=()=>{let t=[];return e&&t.push(y),s&&t.push(_),r&&t.push(w),t};return E.isLoading?(0,n.jsx)(o.a,{}):E.isError?(0,n.jsx)(c.x,{maw:800,children:(0,n.jsx)(l.Z,{isError:!0,error:E.error instanceof Error?E.error:Error("Failed to fetch allowed post types.")})}):(0,n.jsx)(c.x,{maw:800,children:(0,n.jsx)("form",{onSubmit:e=>{e.preventDefault(),L(null);let t=getSelectedPostTypes();if(0===t.length){L("Please select at least one post type.");return}T.mutate()},autoComplete:"off",children:(0,n.jsxs)(k.K,{gap:"md",children:[(0,n.jsx)(d.x,{fz:"sm",mt:"sm",children:"Configure the types of posts that are allowed to be autopublished to LinkedIn:"}),(0,n.jsxs)(u.k,{gap:"sm",align:"center",children:[(0,n.jsx)(h.r,{checked:e,onChange:e=>t(e.currentTarget.checked),style:{cursor:"pointer"}}),(0,n.jsxs)(u.k,{gap:"sm",children:[(0,n.jsx)(d.x,{fz:"sm",children:"Default video post"}),(0,n.jsxs)(d.x,{fz:"sm",component:f(),c:"blue",href:"https://www.linkedin.com/feed/update/urn:li:activity:7263450090726387712",target:"_blank",children:["Example ",(0,n.jsx)(b.Z,{size:12})]})]})]}),(0,n.jsxs)(u.k,{gap:"sm",align:"center",children:[(0,n.jsx)(h.r,{checked:s,onChange:e=>i(e.currentTarget.checked),style:{cursor:"pointer"}}),(0,n.jsxs)(u.k,{gap:"sm",children:[(0,n.jsx)(d.x,{fz:"sm",children:"PDF carousel 1"}),(0,n.jsxs)(d.x,{fz:"sm",component:f(),c:"blue",href:"https://www.linkedin.com/feed/update/urn:li:activity:7259827027187220480",target:"_blank",children:["Example ",(0,n.jsx)(b.Z,{size:12})]})]})]}),(0,n.jsxs)(u.k,{gap:"sm",align:"center",children:[(0,n.jsx)(h.r,{checked:r,onChange:e=>j(e.currentTarget.checked),style:{cursor:"pointer"}}),(0,n.jsxs)(u.k,{gap:"sm",children:[(0,n.jsx)(d.x,{fz:"sm",children:"Square quote image"}),(0,n.jsx)(d.x,{fz:"sm",component:f(),c:"blue",href:"/linkedin/settings/customize/square-quote-image",children:"Customize"})]})]}),S&&(0,n.jsx)(d.x,{c:"red",size:"sm",children:S}),(0,n.jsx)(l.Z,{isError:T.isError,error:T.error}),(0,n.jsx)(x.z,{w:"fit-content",type:"submit",mt:"md",loading:T.isPending,disabled:T.isPending,children:"Save"})]})})})},S=s(98496),LinkedinSettings_tsx_LinkedinSettings=()=>{let{isMobile:e}=(0,S.Fs)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.c,{props:{title:"Autopublish"},children:(0,n.jsx)(Autopublish_Autopublish,{})}),(0,n.jsx)(r.c,{props:{title:"Post types"},children:(0,n.jsx)(PostTypes_PostTypes,{})})]})},settings=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.I,{children:(0,n.jsx)(LinkedinSettings_tsx_LinkedinSettings,{})})})},88332:function(e){e.exports={list:"LinkedinLayout_list__QRW_2",tab:"LinkedinLayout_tab__14PI9",navbar:"LinkedinLayout_navbar__FLjrk",navbarTitle:"LinkedinLayout_navbarTitle__UllaM"}},47890:function(e,t,s){"use strict";s.d(t,{T:function(){return o}});var n=s(85893);s(67294);var i=s(90987),r=s(58278),l=s(9535);let a={}
1,o=(0,l.d5)((e,t)=>{let{w:s,h:l,miw:o,mih:c,...d}=(0,i.w)("Space",a,e);return(0,n.jsx)(r.x,{ref:t,...d,w:s,miw:o??s,h:l,mih:c??l})});o.displayName="@mantine/core/Space"}},function(e){e.O(0,[5017,2269,9519,9774,2888,179],function(){return e(e.s=66776)}),_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.