1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2819],{22819:function(t,r,n){n.r(r);var e=n(85893),a=n(67294),l=n(96974),i=n(5976),u=n(83076),o=n(82579),c=n(27625),s=n(78454);function d(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}function f(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,a,l=[],i=!0,u=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(l.push(e.value),!r||l.length!==r);i=!0);}catch(o){u=!0,a=o}finally{try{i||null==n.return||n.return()}finally{if(u)throw a}}return l}}(t,r)||function(t,r){if(!t)return;if("string"===typeof t)return d(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g=function(t){var r,n=t.id,l=(0,a.useRef)(null),d=(0,c.Vq0)({variables:{id:n}}),g=f((0,c.taX)(),2),y=g[0],h=g[1],v=f((0,c.Ug7)(),2),p=v[0],b=v[1],m=(0,s.e)(),j=m.loading,x=m.ownedTags;return j||0===x.length||!n?(0,e.jsx)(e.Fragment,{}):(0,e.jsx)(i.Y,{queryResult:d,data:[null===(r=d.data)||void 0===r?void 0:r.scrapPaperById],children:function(t){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u.z,{color:"danger",disabled:b.loading,onClick:function(){p({variables:{input:{id:n}}})},children:"Delete"}),(0,e.jsx)(o.T,{ref:l,autoFocus:!0,defaultValue:t.content,placeholder:"Take notes",disabled:h.loading,tagSuggestions:x,onSave:function(){h.loading||null==l.current||y({variables:{input:{id:n,title:l.current.title.trim(),content:l.current.value.htmlString.trim()}}})}})]})}})};r.default=function(){var t=(0,l.UO)().id;return null==t?(0,e.jsx)(e.Fragment,{}):(0,e.jsx)(g,{id:t})}}}]);
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.