1"use strict";(self.webpackChunknote_taker_ui=self.webpackChunknote_taker_ui||[]).push([[4724],{8168:(t,e,n)=>{n.d(e,{A:()=>s});n(5043);var i=n(9864),o=n(579);const a=t=>{let{item:e}=t;const n=(0,i.eU)(e.url);return(0,o.jsxs)("article",{className:"edition-item",children:[(0,o.jsx)("h3",{className:"edition-item__title",children:n?(0,o.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:e.title}):e.title}),e.sourceLabel||e.sourceDate?(0,o.jsx)("p",{className:"edition-item__source",children:[e.sourceLabel,e.sourceDate].filter(Boolean).join(" \xb7 ")}):null,(0,o.jsx)("p",{className:"edition-item__finding",children:e.finding}),(0,o.jsxs)("p",{className:"edition-item__boundary",children:[(0,o.jsx)("span",{className:"edition-item__label",children:"What would limit it"}),e.boundary]}),e.note?(0,o.jsx)("p",{className:"edition-item__note",children:e.note}):null]})},s=t=>{var e;let{edition:n,compact:s=!1}=t;if(!n)return null;const c=(0,i.OH)(n),r=s?"h2":"h1",l=s?"h3":"h2",{columns:d,looseItems:u}=(0,i.P7)(n);return(0,o.jsxs)("div",{className:"edition-paper".concat(s?" edition-paper--compact":""),children:[(0,o.jsxs)("header",{className:"edition__masthead",children:[(0,o.jsx)(r,{className:"edition__title",children:n.title}),(0,o.jsx)("p",{className:"edition__meta",children:[(0,i.V9)(n),c].filter(Boolean).join(" \xb7 ")}),n.ownerDisplayName?(0,o.jsxs)("p",{className:"edition__byline",children:["Kept by ",n.ownerDisplayName]}):null,n.writtenBy?(0,o.jsxs)("p",{className:"edition__byline",children:["Written by ",n.writtenBy]}):null]}),n.standfirst?(0,o.jsx)("p",{className:"edition__standfirst",children:n.standfirst}):null,d.length?d.map((t=>(0,o.jsxs)("section",{className:"edition__section",children:[(0,o.jsx)(l,{className:"edition__section-title",children:t.label}),t.items.length?t.items.map((t=>(0,o.jsx)(a,{item:t},t.itemId||t.title))):(0,o.jsx)("p",{className:"edition__section-empty",children:"Nothing this week."})]},t.key||t.label))):u.length?(0,o.jsx)("section",{className:"edition__section edition__section--loose",children:u.map((t=>(0,o.jsx)(a,{item:t},t.itemId||t.title)))}):(0,o.jsx)("p",{className:"editions__quiet","data-testid":"edition-columns-silence",children:"No columns set."}),n.throughLine?(0,o.jsxs)("section",{className:"edition__section",children:[(0,o.jsx)(l,{className:"edition__section-title",children:"Across the week"}),(0,o.jsx)("p",{children:n.throughLine})]}):null,null!==(e=n.watchNext)&&void 0!==e&&e.length?(0,o.jsxs)("section",{className:"edition__section",children:[(0,o.jsx)(l,{className:"edition__section-title",children:"What to watch next"}),(0,o.jsx)("ul",{className:"edition__watch",children:n.watchNext.map((t=>(0,o.jsx)("li",{children:t},t)))})]}):null]})}},9692:(t,e,n)=>{n.d(e,{$J:()=>g,AM:()=>m,M$:()=>u,O1:()=>p,P7:()=>w,Ph:()=>c,TG:()=>s,cY:()=>a,iN:()=>h,j1:()=>r,lz:()=>y,tO:()=>l,vp:()=>d});var i=n(2606),o=n(1138);const a=async function(){var t;let{profile:e="",limit:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=new URLSearchParams;e&&a.set("profile",e),n&&a.set("limit",String(n));const s=a.toString(),c=await i.Ay.get("/api/editions".concat(s?"?".concat(s):""),(0,o.z)());return Array.isArray(null===(t=c.data)||void 0===t?void 0:t.editions)?c.data.editions:[]},s=async t=>(await i.Ay.get("/api/editions/".concat(encodeURIComponent(t)),(0,o.z)())).data||null,c=async(t,e)=>(await i.Ay.post("/api/editions/".concat(encodeURIComponent(t),"/items/").concat(encodeURIComponent(e),"/save"),{},(0,o.z)())).data||null,r=async function(){let{cursor:t="",limit:e,view:n=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=new URLSearchParams;t&&a.set("cursor",t),e&&a.set("limit",String(e)),n&&a.set("view",n);const s=a.toString();return(await i.Ay.get("/api/editions/inbox".concat(s?"?".concat(s):""),(0,o.z)())).data||{items:[],hasMore:!1,nextCursor:""}},l=async(t,e,n)=>(await i.Ay.post("/api/editions/".concat(encodeURIComponent(t),"/items/").concat(encodeURIComponent(e),"/state"),{status:n},(0,o.z)())).data||{},d=async(t,e)=>(await i.Ay.post("/api/editions/".concat(encodeURIComponent(t),"/items/").concat(encodeURIComponent(e),"/later"),{},(0,o.z)())).data||{},u=async t=>(await i.Ay.get("/api/public/editions/".concat(encodeURIComponent(t)))).data||null,h=async t=>(await i.Ay.get("/api/editions/".concat(encodeURIComponent(t),"/share"),
1(0,o.z)())).data||{shared:!1},m=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(await i.Ay.post("/api/editions/".concat(encodeURIComponent(t),"/share"),e,(0,o.z)())).data||{}},g=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(await i.Ay.put("/api/editions/".concat(encodeURIComponent(t),"/share"),e,(0,o.z)())).data||{}},p=async t=>(await i.Ay.delete("/api/editions/".concat(encodeURIComponent(t),"/share"),(0,o.z)())).data||{revoked:!0},w=async t=>(await i.Ay.get("/api/editions/".concat(encodeURIComponent(t),"/thoughts"),(0,o.z)())).data.thoughts||[],y=async(t,e)=>(await i.Ay.put("/api/editions/".concat(encodeURIComponent(t),"/thoughts"),e,(0,o.z)())).data},9864:(t,e,n)=>{n.d(e,{$f:()=>_,Hm:()=>T,L4:()=>g,Ms:()=>w,OH:()=>d,P7:()=>p,Pl:()=>l,Qy:()=>y,V9:()=>r,bl:()=>m,eU:()=>v,oJ:()=>N,ty:()=>A,zd:()=>f,zw:()=>C});var i=n(7051);const o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=t=>{const e=t instanceof Date?t:new Date(t);return Number.isNaN(e.getTime())?null:e},c=864e5,r=function(){let{windowStart:t,windowEnd:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=s(t),i=s(e);if(!n||!i)return"";const a=t=>o[t].slice(0,3),c="".concat(a(n.getUTCMonth())," ").concat(n.getUTCDate()),r=n.getUTCMonth()===i.getUTCMonth()?"".concat(i.getUTCDate()):"".concat(a(i.getUTCMonth())," ").concat(i.getUTCDate());return"".concat(c," \u2013 ").concat(r)},l=function(){let{windowStart:t,windowEnd:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=s(t),i=s(e);if(!n||!i)return"";const c=i.getUTCFullYear(),r=t=>"".concat(a[t.getUTCDay()]," ").concat(t.getUTCDate());if(n.getTime()===i.getTime())return"".concat(a[n.getUTCDay()]," ").concat(n.getUTCDate()," ").concat(o[n.getUTCMonth()]," ").concat(c);return 1===n.getUTCDate()&&i.getUTCDate()===new Date(Date.UTC(c,i.getUTCMonth()+1,0)).getUTCDate()&&n.getUTCMonth()===i.getUTCMonth()?"".concat(o[n.getUTCMonth()]," ").concat(c):n.getUTCMonth()===i.getUTCMonth()?"".concat(r(n)," \u2013 ").concat(r(i)," ").concat(o[i.getUTCMonth()]," ").concat(c):"".concat(r(n)," ").concat(o[n.getUTCMonth()]," \u2013 ").concat(r(i)," ").concat(o[i.getUTCMonth()]," ").concat(c)},d=function(){let{issueLabel:t="Edition",number:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Number.isFinite(Number(e))&&Number(e)>0?"".concat(t," ").concat(e):""},u=t=>{const e=Date.parse(t||"");return Number.isFinite(e)?e:0},h=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[t.updatedAt,t.createdAt,t.windowEnd,t.windowStart].map(u).find(Boolean)||0},m=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;const n=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Math.max(0,...((null===t||void 0===t?void 0:t.items)||[]).map((t=>u(null===t||void 0===t?void 0:t.filedAt))))}(t);if(!n)return"";const i=new Date(n),o=e instanceof Date?e:new Date(e);if(Number.isNaN(o.getTime()))return"";const a=(t,e)=>t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate();if(a(i,o))return"Filed today";const s=new Date(o);return s.setDate(o.getDate()-1),a(i,s)?"Filed yesterday":"Filed ".concat(i.toLocaleDateString(void 0,{month:"short",day:"numeric"}))},g=function(){let{windowStart:t,windowEnd:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const i=s(t),o=s(e);return i&&o?n>o.getTime()+c?"closed":n<i.getTime()?"open":"filling":"open"},p=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return{ready:!1,columns:[],looseItems:[]};const e=function(){let{sections:t=[],items:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(t||[]).filter((t=>(null===t||void 0===t?void 0:t.key)||(null===t||void 0===t?void 0:t.label)));if(!n.length)return[];const o=new Set(n.map((t=>t.key))),a=n.map((t=>(0,i.A)((0,i.A)({},t),{},{items:(e||[]).filter((e=>e.section===t.key))}
1))),s=(e||[]).filter((t=>!o.has(t.section)));return s.length?[...a,{key:"",label:"Elsewhere",items:s}]:a}(t);return{ready:!0,columns:e,looseItems:e.length?[]:Array.isArray(t.items)?t.items:[]}},w=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=new Map;return(Array.isArray(t)?t:[]).forEach((t=>{null!==t&&void 0!==t&&t.profile&&(e.has(t.profile)||e.set(t.profile,{profile:t.profile,title:t.profileLabel||t.title,issueLabel:t.issueLabel||"Edition",issues:[]}),e.get(t.profile).issues.push(t))})),[...e.values()].map((t=>{const e=t.issues.slice().sort(((t,e)=>Date.parse(t.windowStart)-Date.parse(e.windowStart))),n=e.reduce(((t,n,i)=>h(n)>h(e[t])?i:t),0);return(0,i.A)((0,i.A)({},t),{},{issues:e,current:n})})).sort(((t,e)=>h(e.issues[e.current])-h(t.issues[t.current])))},y=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=new Map;return(Array.isArray(t)?t:[]).forEach((t=>{if(!t)return;const n=t.editionId||"";e.has(n)||e.set(n,{editionId:n,title:t.profileLabel||t.issueTitle||"Edition",issue:d(t),items:[]}),e.get(n).items.push(t)})),[...e.values()]},f=function(){let{title:t,issue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[t,e].filter(Boolean).join(" \xb7 ")},v=t=>{const e=String(t||"").trim();if(!e)return"";try{const t=new URL(e);return"http:"!==t.protocol&&"https:"!==t.protocol?"":t.toString()}catch(n){return""}},_=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=Array.isArray(null===t||void 0===t?void 0:t.items)?t.items:[],n=new Set,i=[];return e.forEach((t=>{const e=v(null===t||void 0===t?void 0:t.url);if(!e||n.has(e))return;n.add(e);const o=[t.sourceLabel,t.title].filter(Boolean).join(" \xb7 ")||(t=>{try{return new URL(t).hostname.replace(/^www\./,"")}catch(e){return""}})(e)||e;i.push({href:e,label:o,sourceDate:String(t.sourceDate||"").trim()})})),i},U=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=s(t.windowEnd),n=s(t.windowStart);return e||n?e&&n&&e.getUTCFullYear()!==n.getUTCFullYear()?"".concat(n.getUTCFullYear(),"\u2013").concat(e.getUTCFullYear()):String((e||n).getUTCFullYear()):""},C=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(Array.isArray(t)?t:[]).find((t=>t._id===e)),i=U(n)||U(t[t.length-1]);return i?"Issues \xb7 ".concat(i):"Issues"},N=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12;const i=Array.isArray(t)?t:[],o=i.slice().sort(((t,e)=>Date.parse(e.windowStart)-Date.parse(t.windowStart))).slice(0,n);if(e&&!o.some((t=>t._id===e))){const t=i.find((t=>t._id===e));if(t)return[...o,t].sort(((t,e)=>Date.parse(e.windowStart)-Date.parse(t.windowStart)))}return o},A=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const n=d((0,i.A)((0,i.A)({},t),{},{issueLabel:e}));if(!n)return"";const o=n.match(/(\d+)\s*$/);return o?"No. ".concat(o[1]):n},T=(t,e)=>{var n,i;if(null===t||void 0===t||null===(n=t.issues)||void 0===n||!n.length)return"";const o=null===e||void 0===e?void 0:e(t.profile),a=null===o||void 0===o?void 0:o.issueId;return a&&t.issues.some((t=>t._id===a))?a:(null===(i=t.issues[t.current])||void 0===i?void 0:i._id)||t.issues[t.issues.length-1]._id}}}]); 2//# sourceMappingURL=4724.2376f4d8.chunk.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.