(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2047],{20986:function(e,n,a){"use strict";var l,i;a.d(n,{m:function(){return l}}),(i=l||(l={})).PasswordNeeded="password_needed",i.IncorrectPassword="incorrect_password"},5450:function(e,n,a){"use strict";var l,i,t,s,o,d,r,u,c,p,v,m,g,y,S,h,k,f,x,P,j,_,C,L,w,b,F,E;a.r(n);let K=(l={defaultValue:null,kind:"LocalArgument",name:"password"},i={defaultValue:null,kind:"LocalArgument",name:"slug"},t={defaultValue:null,kind:"LocalArgument",name:"username"},s=[{kind:"Variable",name:"password",variableName:"password"},{kind:"Variable",name:"slug",variableName:"slug"},{kind:"Variable",name:"username",variableName:"username"}],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"collection",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"pageStatus",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"openGraphImageURL",storageKey:null},p={alias:null,args:null,concreteType:"CaseStudyPageContent",kind:"LinkedField",name:"publishedContent",plural:!1,selections:c=[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null}],storageKey:null},v={alias:null,args:null,concreteType:"CaseStudyPageContent",kind:"LinkedField",name:"draftContent",plural:!1,selections:c,storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"about",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"creationTime",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},S={alias:null,args:null,kind:"ScalarField",name:"displayNameLowercase",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"photoURL",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"replyPrivacy",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"statusBody",storageKey:null},j={alias:null,args:null,concreteType:"StatusEmoji",kind:"LinkedField",name:"statusEmoji",plural:!1,selections:[x={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},P={alias:null,args:null,kind:"ScalarField",name:"emoji",storageKey:null}],storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"statusTimestamp",storageKey:null},C={alias:null,args:null,kind:"ScalarField",name:"uid",storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},w={alias:null,args:null,concreteType:"CaseStudyPage",kind:"LinkedField",name:"pivotLinkPages",plural:!0,selections:[o,p,{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null}],storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"privateCaseStudyOpenGraphURL",storageKey:null},{fragment:{argumentDefinitions:[l,i,t],kind:"Fragment",metadata:null,name:"CaseStudyPermalinkQuery",selections:[{alias:null,args:s,concreteType:"CaseStudyPageResponse",kind:"LinkedField",name:"caseStudyPageV2",plural:!1,selections:[{alias:null,args:null,concreteType:"CaseStudyPage",kind:"LinkedField",name:"caseStudy",plural:!1,selections:[o,d,r,u,p,v,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"owner",plural:!1,selections:[m,g,y,S,u,h,k,f,j,_,C,L,{args:null,kind:"FragmentSpread",name:"ProfileMessageButtonFragment_user"}],storageKey:null},w],storageKey:null},b={alias:null,args:null,concreteType:"Error",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"code",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"privateCaseStudyOwner",plural:!1,selections:[L,y,h,F={alias:null,args:null,concreteType:"StatusEmoji",kind:"LinkedField",name:"statusEmoji",plural:!1,selections:[P,x],storageKey:null}],storageKey:null},E],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,i,l],kind:"Operation",name:"CaseStudyPermalinkQuery",selections:[{alias:null,args:s,concreteType:"CaseStudyPageResponse",kind:"LinkedField",name:"caseStudyPageV2",plural:!1,selections:[{alias:null,args:null,concreteType:"CaseStudyPage",kind:"LinkedField",name:"caseStudy",plural:!1,selections:[o,d,r,u,p,v,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"owner",plural:!1,selections:[m,g,y,S,u,h,k,f,j,_,C,L,{alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null},o],storageKey:null},w],storageKey:null},b,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"privateCaseStudyOwner",plural:!1,selections:[L,y,h,F,o],storageKey:null},E],storageKey:null}]},params:{cacheID:"48279fe4c0aee58157a4be89afc6f6ae",id:null,metadata:{},name:"CaseStudyPermalinkQuery",operationKind:"query",text:"query CaseStudyPermalinkQuery(\n  $username: String!\n  $slug: String!\n  $password: String\n) {\n  caseStudyPageV2(username: $username, slug: $slug, password: $password) {\n    caseStudy {\n      id\n      collection\n      pageStatus\n      openGraphImageURL\n      publishedContent {\n        title\n        content\n      }\n      draftContent {\n        title\n        content\n      }\n      owner {\n        about\n        creationTime\n        displayName\n        displayNameLowercase\n        openGraphImageURL\n        photoURL\n        replyPrivacy\n        statusBody\n        statusEmoji {\n          description\n          emoji\n        }\n        statusTimestamp\n        uid\n        username\n        ...ProfileMessageButtonFragment_user\n        id\n      }\n      pivotLinkPages {\n        id\n        publishedContent {\n          title\n          content\n        }\n        slug\n      }\n    }\n    error {\n      code\n    }\n    privateCaseStudyOwner {\n      username\n      displayName\n      photoURL\n      statusEmoji {\n        emoji\n        description\n      }\n      id\n    }\n    privateCaseStudyOpenGraphURL\n  }\n}\n\nfragment ProfileMessageButtonFragment_user on User {\n  canSee\n  replyPrivacy\n  uid\n  username\n}\n"}});K.hash="cfeecffb286356b0f23cea20be834587",n.default=K},10446:function(e,n,a){"use strict";a.d(n,{Z:function(){return t}});var l=a(27378),i=a(30868);function t(){let[e]=(0,l.useState)((0,i.Z)());return e}},52047:function(e,n,a){"use strict";a.d(n,{B:function(){return ec},Z:function(){return ev}});var l,i,t=a(24246),s=a(27378),o=a(86992),d=a(23899),r=a.n(d),u=a(71942),c=a.n(u),p=a(90005),v=a.n(p),m=a(5678),g=a(88038),y=a.n(g),S=a(73941),h=a(22119),k=a(20233),f=a(40780),x=a(85556),P=a(63297),j=a(65113);function _(e){var n=e.children,a=(0,x._T)(e,["children"]);(a=(0,x.pi)((0,x.pi)({},(0,s.useContext)(P._)),a)).isStatic=(0,j.h)(function(){return a.isStatic});var l="object"==typeof a.transition?a.transition.toString():"",i=(0,s.useMemo)(function(){return a},[l,a.transformPagePoint]);return s.createElement(P._.Provider,{value:i},n)}var C=a(63018),L=a(38336),w=a(37888),b=a(3321),F=a(99337),E=a(3420),K=a(58989),N=a(9186),Z=a(90251),T=a(10446),V=a(63073),D=a(4745),I=a(46605),O=a(97678),U=a(32345),G=a(84530),R=a.n(G),M=a(51056),B=a(7952),A=a(9575),Q=a(2301),q=a(11098),H=a(88231),W=a(22604),$=a(20986),Y=a(71517),z=a(96045),J=a.n(z),X=a(14770);let ee=e=>{var n,a,l,i,d,r,u,c,p,v,g,y,S,h,f,x,P;let{data:j,lastFailedAttempt:_,locked:L,onSubmitPassword:w,onUnlock:b}=e,[F,K]=(0,s.useState)(""),[N]=(0,s.useState)(j),Z=(0,s.useContext)(E.Z),[T,V]=(0,s.useState)(!1),[D,O]=(0,s.useState)(!1),U=(0,s.useContext)(B.Z),G=(0,s.useRef)(null),R=null!=N?N:j;(0,s.useEffect)(()=>{_&&(V(!1),M())},[_]),(0,s.useEffect)(()=>{if(!T){var e;null===(e=G.current)||void 0===e||e.select()}},[T]);let M=()=>{O(!0),setTimeout(()=>{O(!1)},300)};(0,s.useEffect)(()=>{var e;null===(e=G.current)||void 0===e||e.focus()},[]);let A=null==R?void 0:null===(n=R.caseStudyPageV2)||void 0===n?void 0:null===(a=n.privateCaseStudyOwner)||void 0===a?void 0:a.username,Q=U.onMainDomain?"/"+A:U.canonicalPathToDomain;return(0,t.jsx)(k.E.div,{className:J().lockscreen,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:o.D_,children:(0,t.jsxs)(k.E.div,{animate:{x:D?[0,3,-3,0]:0},transition:{duration:.15,repeat:4},className:J().card,children:[(0,t.jsx)("div",{className:J().heading,children:(0,t.jsx)(m.Z,{hover:!1,to:Q,children:(0,t.jsx)(C.Z,{status:null!==(f=null==R?void 0:null===(l=R.caseStudyPageV2)||void 0===l?void 0:null===(i=l.privateCaseStudyOwner)||void 0===i?void 0:null===(d=i.statusEmoji)||void 0===d?void 0:d.emoji)&&void 0!==f?f:void 0,statusLabel:null!==(x=null==R?void 0:null===(r=R.caseStudyPageV2)||void 0===r?void 0:null===(u=r.privateCaseStudyOwner)||void 0===u?void 0:null===(c=u.statusEmoji)||void 0===c?void 0:c.description)&&void 0!==x?x:void 0,showStatus:!0,path:null==R?void 0:null===(p=R.caseStudyPageV2)||void 0===p?void 0:null===(v=p.privateCaseStudyOwner)||void 0===v?void 0:v.photoURL,size:72,name:null!==(P=null==R?void 0:null===(g=R.caseStudyPageV2)||void 0===g?void 0:null===(y=g.privateCaseStudyOwner)||void 0===y?void 0:y.displayName)&&void 0!==P?P:""})})}),(0,t.jsxs)("p",{children:[(0,t.jsx)(m.Z,{to:Q,children:null==R?void 0:null===(S=R.caseStudyPageV2)||void 0===S?void 0:null===(h=S.privateCaseStudyOwner)||void 0===h?void 0:h.displayName})," has made this page private, please enter the password to continue."]}),(0,t.jsxs)("div",{className:J().input,children:[(0,t.jsx)(Y.Z,{type:"password",autoComplete:"off",onChange:e=>{K(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&F&&(e.preventDefault(),V(!0),w(F))},disabled:T,ref:G,placeholder:"Enter password",value:F}),(0,t.jsx)("div",{className:J().inputLock,children:(0,t.jsx)(X.Z,{fill:Z.grey1,locked:L,unlockCallback:b})})]}),(0,t.jsx)("div",{className:J().submitButton,children:(0,t.jsx)(I.Z,{loading:L&&T,disabled:!F||L&&T,onClick:()=>{!T&&F&&(V(!0),w(F))},label:"Submit"})})]})})};var en=a(61332),ea=a(77615),el=a(92401),ei=a(97018),et=a(23728),es=a(83007),eo=a(38562),ed=a(44217);let er=()=>null,eu=(0,s.lazy)(()=>Promise.all([a.e(9774),a.e(7705),a.e(8642),a.e(1217),a.e(8946),a.e(2093),a.e(2668),a.e(3287),a.e(5498),a.e(6166),a.e(3660),a.e(8312),a.e(7825)]).then(a.bind(a,98312))),ec=a(5450);(l=i||(i={}))[l.Loading=0]="Loading",l[l.PrivateUnlockScreen=1]="PrivateUnlockScreen",l[l.PrivateOpening=2]="PrivateOpening",l[l.Loaded=3]="Loaded";let ep=e=>{var n,l,d,u,p,g,x,P,j,G,Y,z,J,X,ep,ev,em,eg,ey,eS,eh,ek,ef;let ex,eP,ej,e_,eC,{username:eL,slug:ew,previewMode:eb,currentUser:eF,userData:eE,hideSocialInfo:eK}=e,[eN,eZ]=(0,s.useState)(),[eT,eV]=(0,s.useState)(),{data:eD,isLoading:eI}=(0,Z.aM)(ec,{username:null!=eL?eL:"",slug:null!=ew?ew:"",password:eN},{fetchPolicy:eN?"network-only":"store-or-network",fetchKey:eT}),eO=null==eD?void 0:null===(n=eD.caseStudyPageV2)||void 0===n?void 0:n.caseStudy,eU=null==eO?void 0:eO.owner,eG=null==eU?void 0:eU.displayName,eR=null==eU?void 0:eU.uid,eM=(eb?null==eO?void 0:null===(l=eO.draftContent)||void 0===l?void 0:l.title:null==eO?void 0:null===(d=eO.publishedContent)||void 0===d?void 0:d.title)||"Untitled",eB=(eb?null==eO?void 0:null===(u=eO.draftContent)||void 0===u?void 0:u.content:null==eO?void 0:null===(p=eO.publishedContent)||void 0===p?void 0:p.content)||"",eA=null!==(Y=null==eO?void 0:eO.openGraphImageURL)&&void 0!==Y?Y:null!==(G=null==eU?void 0:eU.openGraphImageURL)&&void 0!==G?G:"https://read.cv/og-image-illustrated.png",eQ=eb||(null==eO?void 0:eO.pageStatus)==="published",[eq,eH]=(0,s.useState)(!1),eW=(0,s.useContext)(b.I6),e$=(0,s.useContext)(E.Z),eY=(0,T.Z)(),ez=(0,s.useRef)(null),[eJ,eX]=(0,s.useState)("Copy page link"),e0=(0,V.y)("admin"),e1=(0,s.useContext)(B.Z),e2=(0,s.useContext)(q.Z),[e8,e3]=(0,s.useState)(!1),[e6,e7]=(0,s.useState)(),[e4,e9]=(0,s.useState)(!1),e5=null==eO?void 0:eO.id,[ne,nn]=(0,s.useState)(!1),[na,nl]=(0,s.useState)(!1),[ni,nt]=(0,s.useState)(!1),ns=(0,s.useContext)(O.Z),no=(0,s.useContext)(ed.Z),nd=(null==no?void 0:null===(g=no.domainDoc)||void 0===g?void 0:g.type)==="user_profile"?no.domainDoc.extraOptions:void 0,nr=null==e5?void 0:e5.replace("/private-pages/","/pages/"),[nu,nc]=(0,s.useState)(()=>{var e,n,a,l,t;return(null==eD?void 0:null===(e=eD.caseStudyPageV2)||void 0===e?void 0:e.caseStudy)?i.Loaded:(null==eD?void 0:null===(n=eD.caseStudyPageV2)||void 0===n?void 0:null===(a=n.error)||void 0===a?void 0:a.code)===$.m.IncorrectPassword||(null==eD?void 0:null===(l=eD.caseStudyPageV2)||void 0===l?void 0:null===(t=l.error)||void 0===t?void 0:t.code)===$.m.PasswordNeeded?i.PrivateUnlockScreen:i.Loading});(0,s.useEffect)(()=>{var e,n,a,l,t;(null==eD?void 0:null===(e=eD.caseStudyPageV2)||void 0===e?void 0:e.caseStudy)?nu===i.PrivateUnlockScreen||nu===i.PrivateOpening?nc(i.PrivateOpening):nu===i.Loading&&nc(i.Loaded):(null==eD?void 0:null===(n=eD.caseStudyPageV2)||void 0===n?void 0:null===(a=n.error)||void 0===a?void 0:a.code)&&(nu===i.Loading&&nc(i.PrivateUnlockScreen),(null==eD?void 0:null===(l=eD.caseStudyPageV2)||void 0===l?void 0:null===(t=l.error)||void 0===t?void 0:t.code)===$.m.IncorrectPassword&&nv(Date.now()))},[null==eD?void 0:eD.caseStudyPageV2]);let[np,nv]=(0,s.useState)();(0,s.useEffect)(()=>{document.body.scrollTo(0,0)},[]);let[nm,ng]=(0,s.useState)();(0,S.useSubscribeToInvalidationState)(nm?[nm]:[],()=>{(eN||nu!==i.Loading)&&(eZ(void 0),nc(i.Loading),eV(Date.now()))}),(0,s.useEffect)(()=>{eL&&ew&&ng(en.ROOT_ID+":"+(0,en.getStableStorageKey)("caseStudyPageV2",{username:eL,slug:ew}))},[eL,ew]);let ny=(0,s.useCallback)(e=>{e3(!0),e7(e)},[]),[nS,nh]=(0,s.useState)();(0,s.useEffect)(()=>{var e,n;let a=null==eD?void 0:null===(e=eD.caseStudyPageV2)||void 0===e?void 0:null===(n=e.caseStudy)||void 0===n?void 0:n.pivotLinkPages;a&&0!==a.length&&nh(a[Math.floor(Math.random()*a.length)])},[null==eD?void 0:null===(x=eD.caseStudyPageV2)||void 0===x?void 0:null===(P=x.caseStudy)||void 0===P?void 0:P.pivotLinkPages]),(0,s.useEffect)(()=>{e8&&setTimeout(()=>{e3(!1)},1e3)},[e8]),(0,s.useEffect)(()=>{var e;if(!eR)return;let n=null==ns?void 0:null===(e=ns.blocked)||void 0===e?void 0:e.some(e=>e.uid.includes(eR));nl(null!=n&&n),(0,U.yY)({type:"person",objectID:eU.uid}).then(e=>{"unable"===e.visibility?nn(!0):nn(!1)})},[eR,ns]);let nk=(null==eE?void 0:eE.username)===eL,[nf,nx]=(0,s.useState)();(0,s.useEffect)(()=>{if(!nk||!ew||!(null==eE?void 0:eE.uid))return;let e=(0,ei.JU)(et.db,"users",eE.uid,"private-data","profile");(0,ei.QT)(e).then(e=>{var n,a;let l=e.data(),i=(null!==(a=null==l?void 0:null===(n=l.writing)||void 0===n?void 0:n.pages)&&void 0!==a?a:[]).find(e=>e.slug===ew||e.id===ew);i&&nx(i.id)})},[ew,nk]),nk?ex=(0,t.jsx)("div",{style:{width:"fit-content"},children:(0,t.jsx)(eo.Z,{label:"Edit page",icon:(0,t.jsx)(w.Z,{fill:e$.grey1}),onClick:()=>nP()})}):eR&&eW!=b.IC.Loading&&(ex=(0,t.jsxs)("div",{className:r().pageActions,children:[(0,t.jsx)(F.Z,{uid:eR}),(0,t.jsx)(es.Z,{messageFragment:eU})]}));let nP=()=>{Promise.all([a.e(9774),a.e(417),a.e(7291),a.e(8642),a.e(1217),a.e(6637),a.e(8579),a.e(2886),a.e(124),a.e(2668),a.e(3287),a.e(4197),a.e(3510),a.e(7222),a.e(6381),a.e(4245),a.e(3868)]).then(a.bind(a,81369)).then(e=>{er=e.default,eH(!0)})};(0,s.useEffect)(()=>{nk&&Promise.all([a.e(9774),a.e(417),a.e(7291),a.e(8642),a.e(1217),a.e(6637),a.e(8579),a.e(2886),a.e(124),a.e(2668),a.e(3287),a.e(4197),a.e(3510),a.e(7222),a.e(6381),a.e(4245),a.e(3868)]).then(a.bind(a,81369)).then(e=>{er=e.default})},[nk]);let nj=null!=nf?nf:null==eO?void 0:eO.id.split("/")[3];if(eq&&eF&&eE&&nj&&(eP=(0,t.jsx)(N.Z,{clickToClose:!1,maxWidth:840,cancel:()=>eH(!1),children:(0,t.jsx)(er,{caseStudyDocID:nj,showPageEditor:!0,cancel:()=>eH(!1),currentUser:eF,user:eE})})),ne)return null;if(nu===i.PrivateUnlockScreen||nu===i.PrivateOpening)ej={title:"This page is password protected",description:"By "+(null==eD?void 0:null===(z=eD.caseStudyPageV2)||void 0===z?void 0:null===(J=z.privateCaseStudyOwner)||void 0===J?void 0:J.displayName),openGraphImage:null!==(ep=null==eD?void 0:null===(X=eD.caseStudyPageV2)||void 0===X?void 0:X.privateCaseStudyOpenGraphURL)&&void 0!==ep?ep:void 0},e_=(0,t.jsx)(ee,{data:null!=eD?eD:void 0,locked:nu!==i.PrivateOpening,onSubmitPassword:e=>{eV(Date.now()),eZ(e)},lastFailedAttempt:np,onUnlock:()=>{nc(i.Loaded)}},"locked");else if(eD&&(null===(j=eD.caseStudyPageV2)||void 0===j?void 0:j.caseStudy)&&eU&&eR){if(eQ){let e,n,a,l,i;if(nS&&eU){let n=e1.onMainDomain?"/"+eU.username+"/"+nS.slug:e1.canonicalPathToDomain+nS.slug;e=(0,t.jsxs)("div",{id:r().pivot,children:[(0,t.jsxs)("div",{className:r().pivotHeader,children:["More from ",eU.displayName]}),(0,t.jsx)("div",{className:r().pivotLink,children:(0,t.jsx)(m.Z,{to:n,hover:!1,children:(0,t.jsx)(W.Z,{slug:nS.slug,uid:eU.uid,showSnippet:!0,width:52,height:66})})})]})}let d=e1.canonicalPathToDomain,u=d+eY.slice(1),c=()=>{ez.current&&(eX("Copied!"),ez.current.select(),ez.current.setSelectionRange(0,99999),document.execCommand("copy"))},p=()=>{eX("Copy page link")};e8&&(n=(0,t.jsx)(H.Z,{emoji:e6})),a="undefined"!=typeof navigator&&navigator.share&&eO&&eU?(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{label:"Share",onClick:()=>{var e;navigator.share({url:u,text:(null===(e=eO.publishedContent)||void 0===e?void 0:e.title)+" by "+eU.displayName})}})}):(0,t.jsx)(A.Z,{string:eJ,children:(0,t.jsx)(M.Z,{label:"Share",onClick:()=>c(),onMouseLeave:()=>p()})});let v=!1,g=null!==(eg=eU.replyPrivacy)&&void 0!==eg?eg:"Everyone";if("Everyone"===g)v=!0;else if("Following"===g){let e=null==e2?void 0:null===(ey=e2.followers)||void 0===ey?void 0:ey.some(e=>e.uid.includes(eR));v=!0===e}(!eF||eF.uid!==eU.uid&&v&&!na)&&eU&&(l=(0,t.jsxs)("div",{className:r().replyGroup,children:[(0,t.jsxs)("div",{className:r().replyHeader,children:["Send ",eU.displayName," a reply about this page"]}),(0,t.jsx)(h.M,{children:n}),(0,t.jsx)(Q.Z,{numberOfReactions:"all",user:eU,onSend:ny,replyContent:{type:"page",data:{docPath:null!=nr?nr:""}},clearOnEnter:!0,focusOnMount:!1,visualStyle:"noPadding"})]})),e0&&e4&&(i=(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(t.Fragment,{}),children:(0,t.jsx)(eu,{highlightContent:{type:"page",data:{docPath:null!=e5?e5:""}},uid:eU.uid,cancel:()=>e9(!1)})})),e_=(0,t.jsx)(k.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:o.D_,children:(0,t.jsx)(f.s,{children:(0,t.jsx)(_,{transition:{duration:.4,ease:"easeInOut"},children:(0,t.jsxs)(k.E.div,{layout:"position",id:r().caseStudyPermalink,children:[eK?null:(0,t.jsxs)(k.E.div,{layout:"position",className:r().author,children:[(0,t.jsx)(m.Z,{to:e1.onMainDomain?"/"+eL:e1.canonicalPathToDomain,hover:!1,children:(0,t.jsx)(C.Z,{id:ew,size:48,status:null!==(eS=null==eU?void 0:null===(ev=eU.statusEmoji)||void 0===ev?void 0:ev.emoji)&&void 0!==eS?eS:void 0,statusLabel:null!==(eh=null==eU?void 0:null===(em=eU.statusEmoji)||void 0===em?void 0:em.description)&&void 0!==eh?eh:void 0,showStatus:!0,path:null==eU?void 0:eU.photoURL,name:eU.displayName})}),(0,t.jsx)("input",{type:"text",value:u,ref:ez,readOnly:!0}),e0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Z,{icon:(0,t.jsx)(D.Z,{fill:e$.grey3}),visualStyle:"light",onClick:()=>e9(!0)}),(0,t.jsx)(h.M,{children:i})]}):null]}),(0,t.jsxs)(k.E.div,{layout:"position",className:r().authorAndTitle,children:[(0,t.jsx)(m.Z,{className:r().name,to:e1.onMainDomain?"/"+eL:e1.canonicalPathToDomain,children:eG}),(0,t.jsx)("h1",{children:eM})]}),!na||ni?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L.Z,{context:"permalink",content:eB,type:"caseStudy"}),(0,t.jsx)(k.E.div,{layout:"position",id:r().pagePermalinkFooter,children:(0,t.jsxs)("div",{className:r().footerContent,children:[e1.onMainDomain?l:null,e,(0,t.jsxs)("div",{className:r().pageNavButtons,children:[(0,t.jsx)("div",{children:(0,t.jsx)(m.Z,{to:e1.onMainDomain?"/"+eL:e1.canonicalPathToDomain,children:"Back to profile"})}),a]})]})})]}):(0,t.jsx)("div",{style:{maxWidth:540,margin:"0 auto",width:"100%"},className:R().blockedProfileStatus,children:(0,t.jsxs)("div",{className:R().blockedInterstitial,children:["You blocked ",eU.displayName,(0,t.jsx)("span",{children:(0,t.jsx)(M.Z,{onClick:()=>nt(!0),label:"View anyway"})})]})})]})})},ew)},"caseStudy"),ej={title:eM,description:"By "+eG,openGraphImage:eA},(null==nd?void 0:nd.ogImage)&&(ej.openGraphImage=nd.ogImage)}else ej={title:eM,description:"By "+eG,openGraphImage:eA}}else ej={title:"Loading...",ogTitle:"CV",description:"Mindful professional profiles"},e_=eI?null:(0,t.jsx)(ea.Z,{}),eC={padding:0};return(0,t.jsxs)(k.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:o.D_,id:r().caseStudyPage,style:eC,className:v()(c().content,r().caseStudy),children:[(0,t.jsxs)(y(),{children:[(0,t.jsx)("title",{children:ej.title}),(0,t.jsx)("meta",{name:"description",content:ej.description}),(0,t.jsx)("meta",{property:"og:title",content:null!==(ek=ej.ogTitle)&&void 0!==ek?ek:ej.title}),(0,t.jsx)("meta",{property:"og:description",content:ej.description}),(0,t.jsx)("meta",{property:"og:site_name",content:"Read.cv"}),ej.openGraphImage?(0,t.jsx)("meta",{property:"og:image",content:(0,el.Zw)(ej.openGraphImage)}):null,(0,t.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,t.jsx)("meta",{name:"twitter:title",content:null!==(ef=ej.ogTitle)&&void 0!==ef?ef:ej.title}),(0,t.jsx)("meta",{name:"twitter:description",content:ej.description}),ej.openGraphImage?(0,t.jsx)("meta",{name:"twitter:image",content:(0,el.Zw)(ej.openGraphImage)}):null,(null==nd?void 0:nd.favicon)?(0,t.jsx)("link",{rel:"icon",href:(0,el.WQ)(nd.favicon),type:"image/x-icon"},"favicon"):null]}),(0,t.jsx)(K.Z,{children:ex}),(0,t.jsx)(h.M,{children:eP}),(0,t.jsx)(h.M,{exitBeforeEnter:!0,children:e_})]})};var ev=ep},96045:function(e){e.exports={lockscreen:"Locked_lockscreen__atFzI",card:"Locked_card__eKiW0",heading:"Locked_heading__JIGRK",lock:"Locked_lock__phM_S",input:"Locked_input__0Z_tb",inputLock:"Locked_inputLock__w2a6q",submitButton:"Locked_submitButton__Fn0FF"}},23899:function(e){e.exports={caseStudyPage:"CaseStudyPermalink_caseStudyPage__UOhp_",caseStudy:"CaseStudyPermalink_caseStudy__udXLF",caseStudyPermalink:"CaseStudyPermalink_caseStudyPermalink__q9wCV",author:"CaseStudyPermalink_author___UV63",authorAndTitle:"CaseStudyPermalink_authorAndTitle__j5qLu",name:"CaseStudyPermalink_name__q9VKX",pagePermalinkFooter:"CaseStudyPermalink_pagePermalinkFooter__GIDxf",footerContent:"CaseStudyPermalink_footerContent__HEP3y",replyGroup:"CaseStudyPermalink_replyGroup__AjGYW",replyHeader:"CaseStudyPermalink_replyHeader__Ev_04",pivot:"CaseStudyPermalink_pivot__YOYMW",pivotHeader:"CaseStudyPermalink_pivotHeader__WBNlG",pivotLink:"CaseStudyPermalink_pivotLink__ljDQG",pageNavButtons:"CaseStudyPermalink_pageNavButtons__jEBj5",pageActions:"CaseStudyPermalink_pageActions__R8ST8"}}}]);