1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var i in s)s.hasOwnProperty(i)&&(e[i]=s[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:opencollective-frontend":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0b6b6b26-f48d-4689-b958-ebc981eacd88",e._sentryDebugIdIdentifier="sentry-dbid-0b6b6b26-f48d-4689-b958-ebc981eacd88")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5491],{197:()=>{},4281:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var i=s(37876);s(14232);var l=s(45884),n=s(61184),r=s(8545),a=s(47537),o=s(69020);let c=({children:e,data:t={},description:s,image:o,loadingLoggedInUser:c,LoggedInUser:d,title:u,metaTitle:m,noRobots:p,twitterHandle:h,showSearch:f=!0,canonicalURL:x,collective:g,showMenuItems:y=!0,withTopBar:A=!0,showFooter:w=!0,showProfileAndChangelogMenu:v=!0,loading:j,updatesRss:b})=>t.error?(0,i.jsx)(r.A,{data:t,LoggedInUser:d}):(0,i.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,i.jsx)(a.A,{showSearch:f,title:u,noRobots:p,twitterHandle:h,description:s,image:o,metaTitle:m,canonicalURL:x,collective:g,showMenuItems:y,LoggedInUser:d,showProfileAndChangelogMenu:v,loading:j,withTopBar:A,updatesRss:b}),(0,i.jsx)(n.A,{className:"flex-1",children:"function"==typeof e?e({LoggedInUser:d,loadingLoggedInUser:c}):e}),w&&(0,i.jsx)(l.A,{})]});c.displayName="Page";let d=(0,o.Cb)(c)},6243:(e,t,s)=>{"use strict";s.d(t,{f:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),l.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))});r.displayName="Edit"},12460:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});let i=(0,s(49950).A)("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]])},13477:(e,t,s)=>{"use strict";s.d(t,{T:()=>r});var i=s(78871),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 640 512"},e,{ref:t}),l.createElement("path",{fill:"currentColor",d:"M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25-2.3-5.3-4.8-10.5-7.6-15.5l-3.1-5.4c-3-5-6.3-9.9-9.8-14.6-5.7-7.6-15.7-10.1-24.7-7.1L241.3 77c-10.7-8.8-23-16-36.2-20.9l-6.1-29c-1.9-9.3-9.1-16.7-18.5-17.8C173.7 8.4 166.9 8 160 8s-13.7.4-20.4 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9l-28.3-9.2c-9-3-19-.5-24.7 7.1-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6-3.7 8.7-.9 18.6 6.2 25l22.2 19.8c-1.1 6.7-1.7 13.7-1.7 20.8s.6 14.1 1.7 20.9l-22.2 19.8c-7.1 6.3-9.9 16.2-6.2 25 2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6 5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8 6.7.8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1 3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5 3.7-8.7.9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM208 176c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm296.7 324.5c6.3 7.1 16.2 9.9 25 6.2 5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8 7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2L613 391c9.3-1.9 16.7-9.1 17.8-18.5.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5l-29.1-6.2c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1.6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2l-29.1 6c-9.3 1.9-16.7 9.1-17.8 18.5-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7 4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6 8.7 3.7 18.6.9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 400c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"}))});r.displayName="Cogs"},19977:()=>{},20389:(e,t,s)=>{"use strict";s.d(t,{e:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),l.createElement("line",{x1:12,x2:12,y1:8,y2:12}),l.createElement("line",{x1:12,x2:12.01,y1:16,y2:16}))});r.displayName="AlertOctagon"},21672:(e,t,s)=>{"use strict";s.d(t,{_:()=>n});var i=s(80438),l=s.n(i);let n=e=>l()(e,{allowedTags:[],allowedAttributes:{}})},21866:()=>{},27949:(e,t,s)=>{"use strict";s.d(t,{_:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("circle",{cx:18,cy:5,r:3}),l.createElement("circle",{cx:6,cy:12,r:3}),l.createElement("circle",{cx:18,cy:19,r:3}),l.createElement("line",{x1:8.59,x2:15.42,y1:13.51,y2:17.49}),l.createElement("line",{x1:15.41,x2:8.59,y1:6.51,y2:10.49}))});r.displayName="Share2"},28573:(e,t,s)=>{"use strict";s.d(t,{c:()=>r});var i=s(95557),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}))});r.displayName="Lock"},30153:(e,t,s)=>{"use strict";s.d(t,{M:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),l.createElement("circle",{cx:8.5,cy:7,r:4}),l.createElement("polyline",{points:"17 11 19 13 23 9"}))});r.displayName="UserCheck"},38946:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/update",function(){return s(52289)}])},39120:(e,t,s)=>{"use strict";s.d(t,{GY:()=>g,Od:()=>h,U7:()=>w,Y0:()=>A,ZL:()=>y,qH:()=>f});var i=s(37876),l=s(14232),n=s(62449),r=s(33123),a=s(96140),o=s(20322),c=s(15192),d=s(30619),u=s(38268),m=s(49294),p=s(49030);let h=(0,a.T)("div","flex flex-col gap-6 xl:flex-row xl:gap-10"),f=(0,a.T)("div","flex w-full xl:max-w-3xl flex-col gap-6"),x=(0,a.T)("div","w-full xl:max-w-56"),g=({children:e})=>(0,i.jsx)(x,{children:(0,i.jsx)("div",{className:"sticky top-10 flex flex-col gap-6",children:e})}),y=({children:e})=>{let[t,...s]=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-1 text-sm",children:[(0,i.jsx)("div",{className:"text-xs font-bold",children:t}),s]})},A=({update:e})=>{let t,s,a;return e.publishedAt?(t="info",s=(0,i.jsx)(n.sA,{id:"update.status.published",defaultMessage:"Published"}),a=(0,i.jsx)(n.sA,{id:"update.status.published.tooltip",defaultMessage:"This update is publicly visible"}),e.isChangelog?(s=(0,i.jsxs)(l.Fragment,{children:[s,"\xa0(",(0,i.jsx)(n.sA,{id:"Changelog",defaultMessage:"Changelog"}),")"]}),a=(0,i.jsx)(n.sA,{id:"update.status.published.tooltip.changelog",defaultMessage:"This update is publicly visible and displayed in the What's New section"})):e.isPrivate&&(s=(0,i.jsxs)(l.Fragment,{children:[s,"\xa0(",(0,i.jsx)(n.sA,{id:"Restricted",defaultMessage:"Restricted"}),")"]}),a=e.notificationAudience===r._$P.COLLECTIVE_ADMINS?(0,i.jsx)(n.sA,{id:"update.status.published.tooltip.private.COLLECTIVE_ADMINS",defaultMessage:"This update is visible for hosted collective admins only"}):e.notificationAudience===r._$P.FINANCIAL_CONTRIBUTORS?(0,i.jsx)(n.sA,{id:"update.status.published.tooltip.private.FINANCIAL_CONTRIBUTORS",defaultMessage:"This update is visible for contributors only"}):(0,i.jsx)(n.sA,{id:"update.status.published.tooltip.private",defaultMessage:"This update is visible for members only"}))):(t="neutral",s=(0,i.jsx)(n.sA,{id:"expense.draft",defaultMessage:"Draft"}),a=(0,i.jsx)(n.sA,{id:"update.status.drafted.tooltip",defaultMessage:"This update is a draft and it is not publicly visible"})),(0,i.jsxs)(p.m_,{children:[(0,i.jsx)(p.k$,{children:(0,i.jsx)(m.E,{type:t,className:"ml-2 inline-flex self-start font-semibold",size:"sm",children:s})}),(0,i.jsx)(p.ZI,{children:a})]})},w=({update:e})=>{let t=(0,i.jsx)(c.I,{account:e.fromAccount,includeAdminMembership:{accountSlug:e.account.slug},trigger:(0,i.jsxs)("div",{className:"mx-1 inline-flex flex-row items-baseline gap-1",children:[(0,i.jsx)(d.Ay,{collective:e.fromAccount,radius:16,className:"self-center"}),(0,i.jsx)(u.A,{collective:e.fromAccount})]})},e.fromAccount.id);return e.publishedAt?(0,i.jsx)(n.sA,{id:"update.publishedAtBy",defaultMessage:"Published on {date} by {author}",values:{date:(0,o.Yq)(e.publishedAt,{day:"numeric",month:"long",year:"numeric"}),author:t}}):(0,i.jsx)(n.sA,{id:"update.draftedBy",defaultMessage:"Drafted on {date} by {author}",values:{date:(0,o.Yq)(e.createdAt,{day:"numeric",month:"long",year:"numeric"}),author:t}})}},43560:(e,t,s)=>{"use strict";s.d(t,{s:()=>r});var i=s(89224),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))});r.displayName="DotsHorizontalRounded"},49746:()=>{},50843:(e,t,s)=>{"use strict";s.d(t,{j:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("polygon",{points:"5 3 19 12 5 21 5 3"}))});r.displayName="Play"},51391:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});let i=(0,s(49950).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},52289:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>z,default:()=>N});var i=s(37876),l=s(14232),n=s(10611),r=s(64487),a=s(89099),o=s(66740),c=s(6435),d=s(2948),u=s(11046),m=s(60257),p=s(21672),h=s(87058),f=s(58649),x=s(8084),g=s(16201),y=s(61205),A=s(56593),w=s(20468),v=s(69568),j=s(34877),b=s(8545),C=s(99202),E=s(617),M=s(4281),k=s(55994);let S=(0,u.J1)` 2 query UpdatePage($collectiveSlug: String, $updateSlug: String!, $offset: Int) { 3 account(slug: $collectiveSlug, throwIfMissing: false) { 4 id 5 legacyId 6 slug 7 name 8 type 9 description 10 settings 11 imageUrl 12 isFrozen 13 twitterHandle 14 ... on AccountWithHost { 15 host { 16 id 17 slug 18 name 19 features { 20 id 21 CONTACT_FORM 22 } 23 } 24 } 25 features { 26 id 27 ...NavbarFields 28 } 29 conversationsTags { 30 id 31 tag 32 } 33 ... on Collective { 34 isApproved 35 } 36 ... on AccountWithParent { 37 parent { 38 id 39 slug 40 name 41 imageUrl 42 } 43 } 44 } 45 update(slug: $updateSlug, account: { slug: $collectiveSlug }) { 46 id 47 slug 48 title 49 createdAt 50 publishedAt 51 html 52 summary 53 isPrivate 54 isChangelog 55 makePublicOn 56 userCanSeeUpdate 57 userCanPublishUpdate 58 reactions 59 userReactions 60 notificationAudience 61 account { 62 id 63 slug 64 type 65 name 66 isHost 67 } 68 fromAccount { 69 id 70 slug 71 type 72 name 73 } 74 comments(limit: 100, offset: $offset) { 75 totalCount 76 nodes { 77 id 78 ...CommentFields 79 } 80 } 81 } 82 } 83 ${v.hp} 84 ${y.P} 85`,I=(0,o.my)({query:S,getPropsFromContext:e=>(0,n.A)(e.query,["collectiveSlug","updateSlug"]),getVariablesFromContext:(e,t)=>
85t});var z=!0;function N(e){let{LoggedInUser:t}=(0,m.A)(),s=I.useQuery(e),n=(0,a.useRouter)(),{updateSlug:o,collectiveSlug:u}=e,{account:y,update:v}=s?.data||{},S=(0,r.A)(v,"comments.nodes",[]),z=(0,r.A)(v,"comments.totalCount",0),[N,L]=(0,l.useState)(null);l.useEffect(()=>{t&&s.refetch()},[t,v]),l.useEffect(()=>{(0,h.Bb)(n,y,`/updates/${o}`)});let U=async()=>{await s.fetchMore({variables:{collectiveSlug:u,updateSlug:o,offset:(0,r.A)(v,"comments.nodes",[]).length},updateQuery:(e,{fetchMoreResult:t})=>{if(!t)return e;let s={};return s.update={...e.update,comments:{...t.update.comments,nodes:[...e.update.comments.nodes,...t.update.comments.nodes]}},Object.assign({},e,s)}})};return y?!v||(0,c._w)(y)?(0,i.jsx)(b.A,{error:{type:d.ff.NOT_FOUND}}):(0,i.jsxs)(M.A,{collective:y,title:v.title,description:(0,p._)(v.summary),canonicalURL:`${(0,h.zA)(y)}/updates/${o}`,metaTitle:`${v.title} - ${y.name}`,noRobots:!(0,c.dz)(y),updatesRss:"ACTIVE"===(0,f.jL)(y,f.Gv.UPDATES),children:[(0,i.jsx)(x.A,{collective:y,isAdmin:t&&t.isAdminOfCollective(y),selectedCategory:g.q.CONNECT}),(0,i.jsxs)(A.A,{py:4,maxWidth:1260,m:"0 auto",px:[0,null,null,4],children:[(0,i.jsx)(k.A,{collective:y,update:v,reactions:v.reactions,LoggedInUser:t,compact:!1,isReloadingData:s.loading},v.id),v.userCanSeeUpdate&&(0,i.jsxs)(C.az,{pl:[0,5],children:[S.length>0&&(0,i.jsx)(A.A,{mb:3,pt:3,maxWidth:700,borderTop:"1px solid #eee",children:(0,i.jsx)(j.A,{collective:y,hasMore:S.length<z,fetchMore:U,items:S,onCommentDeleted:()=>s.refetch(),getClickedComment:L})}),v.publishedAt&&(0,i.jsxs)(C.so,{mt:"40px",maxWidth:700,children:[(0,i.jsx)(C.az,{display:["none",null,"block"],flex:"0 0",p:3,children:(0,i.jsx)(E.A,{size:24,color:"lightgrey"})}),(0,i.jsx)(C.az,{flex:"1 1",maxWidth:[null,null,"calc(100% - 56px)"],p:1,children:(0,i.jsx)(w.A,{id:"new-update",replyingToComment:N,UpdateId:v.id,onSuccess:()=>s.refetch()})})]})]})]})]}):(0,i.jsx)(b.A,{data:e})}},55994:(e,t,s)=>{"use strict";s.d(t,{A:()=>R});var i=s(37876),l=s(14232),n=s(99525),r=s(8594),a=s(89099),o=s(62449),c=s(5646),d=s(23968),u=s(58649),m=s(2948),p=s(11046),h=s(87058),f=s(20322),x=s(48519),g=s(61531),y=s(73359),A=s(39120),w=s(80207),v=s(30619),j=s(56593),b=s(99202),C=s(64986),E=s(33341),M=s(69756),k=s(38268),S=s(41955),I=s(98263),z=s(68901),N=s(78027);let L=(0,c.I4)(b.so).withConfig({componentId:"sc-62e704f1-0"})(["max-width:100%;min-height:100px;padding:20px;"," img{max-width:100%;}@media (max-width:600px){max-width:100%;}"],d.sJ),U=(0,c.I4)(I.A).withConfig({componentId:"sc-62e704f1-1"})(["height:40px;background:#f0f8ff;border:1px solid #b8deff;box-sizing:border-box;border-radius:6px;margin-top:10px;padding:10px;font-size:12px;color:#71757a;display:flex;align-items:center;"]);class B extends l.Component{constructor(e){super(e),this.deleteUpdate=async()=>{if(confirm("\uD83D\uDE31 Are you really sure you want to delete this update?"))try{await this.props.deleteUpdate({variables:{id:this.props.update.id}}),this.props.router.push(`/${this.props.collective.slug}`)}catch(e){(0,w.o)({variant:"error",message:(0,m.Rp)(this.props.intl,e)})}},this.state={modified:!1,update:{},mode:e.compact?"summary":"details"},this.messages=(0,o.YK)({edit:{id:"Edit",defaultMessage:"Edit"},cancelEdit:{id:"CancelEdit",defaultMessage:"Cancel edit"},viewLatestUpdates:{id:"update.viewLatestUpdates",defaultMessage:"View latest updates"}})}renderUpdateMeta(e,t,s){let{intl:l,collective:n}=this.props,{mode:r}=this.state,a=e.fromCollective||e.fromAccount;return(0,i.jsxs)("div",{"data-cy":"meta",className:"flex flex-wrap items-baseline gap-2",children:[t&&(0,i.jsx)(A.Y0,{update:e}),e.publishedAt?(0,i.jsx)(b.az,{as:"span",fontSize:"12px",children:(0,i.jsx)(o.sA,{id:"update.publishedAtBy",defaultMessage:"Published on {date} by {author}",values:{date:(0,f.Yq)(e.publishedAt,{day:"numeric",month:"long",year:"numeric"}),author:(0,i.jsx)(b.az,{as:"span",mr:2,fontSize:"12px",children:(0,i.jsx)(k.A,{collective:a})})}})}):(0,i.jsx)(b.az,{as:"span",fontSize:"12px",children:(0,i.jsx)(o.sA,{id:"update.createdAtBy",defaultMessage:"Created on {date} (draft) by {author}",values:{date:(0,f.Yq)(e.createdAt),author:(0,i.jsx)(b.az,{as:"span",mr:2,fontSize:"12px",children:(0,i.jsx)(k.A,{collective:a})})}})}),s&&(0,i.jsxs)("div",{className:"flex gap-1",children:[(0,i.jsx)(b.az,{fontSize:"12px",children:(0,i.jsx)(M.A,{href:(0,h.q5)(n,`updates/edit/${e.id}`),children:(0,i.jsx)(z.A,{buttonSize:"tiny","data-cy":"toggleEditUpdate",children:l.formatMessage(this.messages[`${"edit"===r?"cancelEdit":"edit"}`])})})}),(0,i.jsx)(b.az,{fontSize:"12px",children:(0,i.jsx)(z.A,{buttonSize:"tiny",onClick:this.deleteUpdate,children:(0,i.jsx)(o.sA,{id:"actions.delete",defaultMessage:"Delete"})})})]})]})}renderUpdateTitle(){let{update:e,collective:t}=this.props,{mode:s}=this.state;return"summary"===s?(0,i.jsx)(M.A,{href:`${(0,h.bl)(t)}/updates/${e.slug}`,children:(0,i.jsx)("h5",{className:"text-lg font-medium","data-cy":"updateTitle",children:e.title})}):(0,i.jsx)("h5",{className:"mb-2 text-lg font-medium","data-cy":"updateTitle",children:e.title})}
85renderSummary(e){let{collective:t,isReloadingData:s}=this.props;return(0,i.jsxs)(l.Fragment,{children:[e.userCanSeeUpdate&&(0,i.jsx)($,{mb:2,pl:[0,60],fontSize:"14px",color:"#4B4E52",children:(0,i.jsx)(r.VK,{noWrap:!0,content:e.summary})}),!e.userCanSeeUpdate&&!s&&(0,i.jsx)(U,{type:"info","data-cy":"mesgBox",children:(0,i.jsx)(o.sA,{id:"update.private.cannot_view_message",defaultMessage:"Contribute to {collective} to see this Update",values:{collective:t.name}})})]})}renderFullContent(){let{update:e,collective:t,isReloadingData:s,reactions:n,LoggedInUser:r}=this.props;return(0,i.jsxs)(P,{pl:[0,60],maxWidth:718,children:[(0,i.jsx)(N.A,{mt:3,mb:4,borderColor:"black.100"}),e.html?(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(C.Ay,{content:e.html}),e.publishedAt&&(0,i.jsxs)(b.so,{mt:3,flexWrap:"wrap","data-cy":"update-reactions",children:[n&&(0,i.jsx)(y.A,{reactions:n}),r&&(0,i.jsx)(g.A,{update:e})]})]}):e.userCanSeeUpdate||s?s?(0,i.jsx)(S.A,{height:300}):null:(0,i.jsx)(U,{type:"info","data-cy":"mesgBox",children:(0,i.jsx)(o.sA,{id:"update.private.cannot_view_message",defaultMessage:"Contribute to {collective} to see this Update",values:{collective:t.name}})}),t.isFrozen?(0,i.jsxs)(I.A,{withIcon:!0,type:"warning",mt:3,children:[(0,i.jsx)(o.sA,{defaultMessage:"This account is currently frozen and cannot be used to publish updates.",id:"qstjb6"})," ",(0,u.G7)(t.host,u.Gv.CONTACT_FORM)&&(0,i.jsx)(o.sA,{defaultMessage:"Please <ContactLink>contact</ContactLink> your fiscal host for more details.",id:"KxBiJC",values:{ContactLink:(0,E.lv)({href:`${(0,h.bl)(t.host)}/contact`})}})]}):null]})}render(){let{update:e,intl:t,collective:s,compact:n,LoggedInUser:r,...a}=this.props,{mode:o}=this.state,c=r&&r.canEditUpdate(e),d=!n&&c,u=e.fromCollective||e.fromAccount;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(L,{...a,children:"edit"!==o&&(0,i.jsxs)(j.A,{width:"100%",children:[(0,i.jsxs)(b.so,{mb:2,children:[(0,i.jsx)(j.A,{mr:20,children:(0,i.jsx)(k.A,{collective:u,children:(0,i.jsx)(v.Ay,{collective:u,radius:40})})}),(0,i.jsxs)(b.az,{children:[this.renderUpdateTitle(),this.renderUpdateMeta(e,c,d)]})]}),"summary"===o&&this.renderSummary(e),"details"===o&&this.renderFullContent()]})}),e.publishedAt&&"details"===o&&(0,i.jsx)(b.so,{my:3,justifyContent:["center","flex-start"],children:(0,i.jsx)(M.A,{href:`${(0,h.bl)(s)}/updates`,children:(0,i.jsx)(z.A,{ml:[0,5],children:t.formatMessage(this.messages.viewLatestUpdates)})})})]})}}let V=(0,p.J1)` 86 mutation DeleteUpdate($id: String!) { 87 deleteUpdate(id: $id) { 88 id 89 } 90 } 91`,T=(0,n.U)(V,{name:"deleteUpdate"}),_=(0,f.Zz)(T),R=(0,x.A)(_((0,a.withRouter)(B)));var $=(0,c.I4)(j.A).withConfig({componentId:"sc-62e704f1-2"})({wordBreak:"break-word"}),P=(0,c.I4)(j.A).withConfig({componentId:"sc-62e704f1-3"})({wordBreak:"break-word"})},59788:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});let i=(0,s(49950).A)("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]])},62693:(e,t,s)=>{"use strict";s.d(t,{X:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("line",{x1:18,x2:6,y1:6,y2:18}),l.createElement("line",{x1:6,x2:18,y1:6,y2:18}))});r.displayName="X"},63309:(e,t,s)=>{"use strict";s.d(t,{K:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),l.createElement("circle",{cx:8.5,cy:7,r:4}),l.createElement("line",{x1:23,x2:17,y1:11,y2:11}))});r.displayName="UserMinus"},69568:(e,t,s)=>{"use strict";s.d(t,{AI:()=>r,Us:()=>a,hp:()=>n,ti:()=>o});var i=s(11046),l=s(15192);let n=(0,i.J1)` 92 fragment CommentFields on Comment {
93 id 94 createdAt 95 html 96 reactions 97 userReactions 98 type 99 account { 100 id 101 slug 102 type 103 ... on AccountWithHost { 104 host { 105 id 106 slug 107 } 108 } 109 } 110 fromAccount { 111 id 112 type 113 name 114 slug 115 imageUrl 116 ...AccountHoverCardFields 117 } 118 } 119 ${l.B} 120`,r=(0,i.J1)` 121 fragment ConversationListFragment on ConversationCollection { 122 totalCount 123 offset 124 limit 125 nodes { 126 id 127 title 128 summary 129 slug 130 createdAt 131 tags 132 fromAccount { 133 id 134 name 135 type 136 slug 137 imageUrl 138 } 139 followers(limit: 5) { 140 totalCount 141 nodes { 142 id 143 slug 144 type 145 name 146 imageUrl(height: 64) 147 } 148 } 149 stats { 150 id 151 commentsCount 152 } 153 } 154 } 155`,a=(0,i.J1)` 156 query IsUserFollowingConversation($id: String!) { 157 loggedInAccount { 158 id 159 slug 160 imageUrl 161 type 162 name 163 ... on Individual { 164 isFollowingConversation(id: $id) 165 } 166 } 167 } 168`,o=(0,i.J1)` 169 mutation EditComment($comment: CommentUpdateInput!) { 170 editComment(comment: $comment) { 171 id 172 ...CommentFields 173 } 174 } 175 ${n} 176`},70333:(e,t,s)=>{"use strict";s.d(t,{U:()=>r});var i=s(95557),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"}))});r.displayName="Update"},71483:(e,t,s)=>{"use strict";s.d(t,{f:()=>r});var i=s(95557),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}))});r.displayName="Edit"},74303:(e,t,s)=>{"use strict";s.d(t,{F:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("line",{x1:12,x2:12,y1:5,y2:19}),l.createElement("line",{x1:5,x2:19,y1:12,y2:12}))});r.displayName="Plus"},77471:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});let i=(0,s(49950).A)("notepad-text",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]])},78741:(e,t,s)=>{"use strict";s.d(t,{v:()=>r});var i=s(3453),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("rect",{width:4,height:16,x:6,y:4}),l.createElement("rect",{width:4,height:16,x:14,y:4}))});r.displayName="Pause"},86715:(e,t,s)=>{"use strict";s.d(t,{r:()=>r});var i=s(78871),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),l.createElement("path",{fill:"currentColor",d:"m410.3 231 11.3-11.3-33.9-33.9-62.1-62.1-33.9-33.9-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s1
1765.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2l199.2-199.2 22.6-22.7zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9l-78.2 23 23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7l-14.4 14.5-22.6 22.6-11.4 11.3 33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5l-39.3-39.4c-25-25-65.5-25-90.5 0zm-47.4 168-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"}))});r.displayName="PencilAlt"},88645:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(14232),l=s(95581);let n=({timeout:e=3e3}={})=>{let[t,s]=i.useState(),n=i.useRef(void 0);return{isCopied:t,copy:i.useCallback(async t=>!!await (0,l.A)(t)&&(s(!0),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{s(!1)},e),!0),[e])}}},90901:(e,t,s)=>{"use strict";s.d(t,{r:()=>r});var i=s(95557),l=s(14232),n=s(75635),r=l.forwardRef(function(e,t){return l.createElement(n.StyledIconBase,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"}))});r.displayName="SyncAlt"}},e=>{e.O(0,[1152,888,1507,924,2024,297,1321,6525,1596,5536,5956,533,552
1760,7103,8235,4876,438,7147,9918,341,8545,7871,5192,8610,4550,266,9473,713,7357,8084,4877,8407,636,6593,8792],()=>e(e.s=38946)),_N_E=e.O()}]); 177//# sourceMappingURL=update-ce9d72299a2dd75d.js.map
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.