PageSourceSearch

https://posthog.com/component---src-pages-team-updates-tsx-3ef3052ce5df67a5d806.js

js posthog.com collected 2026-10-01 08:26:49 UTC 2,701 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkposthog_com=self.webpackChunkposthog_com||[]).push([[849],{5125:function(e,t,s){s.r(t),s.d(t,{default:function(){return j}});var n=s(86654),a=s(30758),i=s(75004),l=s.n(i),o=s(40232),r=s.n(o),c=s(19651),d=s.n(c),u=s(94722),m=s(8462),p=s(13630),h=s(83795),x=s(77002),b=s(86070);function j(){const{0:e,1:t}=(0,a.useState)(!0),{0:s,1:i}=(0,a.useState)(!1),{0:o,1:c}=(0,a.useState)(null),{user:j}=(0,h.Jd)();(0,a.useEffect)(()=>{(async()=>{const{data:e}=await fetch("https://better-animal-d658c56969.strapiapp.com/api/team-updates?"+l().stringify({populate:["question","team"],sort:["createdAt:desc"],filters:{thingOfTheWeek:!0,question:{createdAt:{$gte:r()().startOf("week").format()}}}},{encodeValuesOnly:!0})).then(e=>e.json()),s=d()(e,e=>{var t,s,n,a;return null==e||null===(t=e.attributes)||void 0===t||null===(s=t.team)||void 0===s||null===(n=s.data)||void 0===n||null===(a=n.attributes)||void 0===a?void 0:a.name});c(s),t(!1)})()},[]);const f=o&&Object.keys(o).length>0;return(0,b.jsxs)(n.A,{parent:p.tP,children:[(0,b.jsx)(m.Ay,{title:"Team updates - PostHog",noindex:!0}),(0,b.jsxs)("section",{className:"max-w-[700px] mx-auto px-5 mt-8",children:[(0,b.jsxs)("div",{className:"relative pb-6 mb-6 border-b border-input flex justify-between items-end",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"font-bold text-5xl my-0",children:"Team updates"}),(0,b.jsxs)("p",{className:"my-0 font-semibold opacity-70 mt-2",children:["Week of ",r()().startOf("week").format("MM/DD/YYYY")]})]}),"moderator"===(null==j?void 0:j.role.type)&&f&&(0,b.jsx)("div",{children:s?(0,b.jsx)("strong",{className:"opacity-80 text-sm",children:"Copied!"}):(0,b.jsx)("button",{onClick:()=>{const e=Object.keys(o).map(e=>"**"+e+"**\n"+o[e].map(e=>{const{attributes:{question:{data:{attributes:{body:t}}}}}=e;return t}).join("\n\n")).join("\n\n");navigator.clipboard.writeText(e),i(!0),setTimeout(()=>{i(!1)},3e3)},className:"font-bold text-red text-sm",children:"Copy as Markdown"})})]}),(0,b.jsx)("div",{className:"pb-12",children:e?(0,b.jsx)(x.EA,{}):f?(0,b.jsx)("ul",{className:"list-none m-0 p-0 pb-4 grid gap-y-4",children:Object.keys(o).map(e=>(0,b.jsxs)("li",{children:[(0,b.jsx)("h2",{children:e}),(0,b.jsx)("ul",{children:o[e].map(e=>{const{id:t,attributes:{question:{data:{attributes:{body:s}}}}}=e;return(0,b.jsx)("li",{children:(0,b.jsx)(u.A,{children:s})},t)})})]},e))}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h1",{className:"m-0 mb-1",children:"We're still cookin'"}),(0,b.jsx)("p",{className:"m-0 opacity-70 font-semibold",children:"Check back later!"})]})})]})]})}}}]);
2//# sourceMappingURL=component---src-pages-team-updates-tsx-3ef3052ce5df67a5d806.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.