1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7623],{67762:e=>{e.exports=function(e,t){for(var l,s=-1,i=e.length;++s<i;){var n=t(e[s]);void 0!==n&&(l=void 0===l?n:l+n)}return l}},12297:(e,t,l)=>{var s=l(67762),i=l(6557);e.exports=function(e){return e&&e.length?s(e,i):0}},68010:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>T});var s=l(85893),i=l(67294),n=l(45697),r=l.n(n),d=l(94184),a=l.n(d),c=l(12297),o=l.n(c),u=l(41609),C=l.n(u),h=l(31124),x=l(32004),m=l(22100),j=l(43948),p=l(69237),N=l(69367),_=l.n(N),H=l(30856),g=l(79169),f=l(58197);let v=e=>"Untitled List"===e?0:(0,p.Ht)(e),b=e=>{var t,l;let{listId:n,name:r,description:d,listCriteria:c,totalItems:u,articleText:m,onClose:j}=e,[N,b]=(0,i.useState)({});(0,i.useEffect)(()=>{(async()=>{try{let{data:{listItems:e}}=await (0,h.NJ)(n,{limit:u});b(e.reduce((e,t)=>{let{nameD:l,blather:s}=t;return e.nameCount+=(0,p.Ht)(l),e.descriptionCount+=(0,p.Ht)(s),e},{nameCount:0,descriptionCount:0}))}catch(e){}})()},[n,u]);let w=o()([...Object.values(N),v(r),(0,p.Ht)(d),(0,p.Ht)(c),(0,p.Ht)(m)]);return(0,s.jsx)(x.default,{width:660,title:(0,s.jsx)(g.Z,{title:"Word Count Breakdown"}),buttons:(0,s.jsx)(H.Z,{onDone:j,onCancel:j}),closeIcon:(0,s.jsx)(f.Z,{handleClose:j}),handleClose:j,children:(0,s.jsx)("div",{className:_().main,children:(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:_().titleHeader,children:"Title"}),(0,s.jsx)("th",{className:_().descriptionHeader,children:"Description"})]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:_().titleCell,children:"List Name"}),(0,s.jsx)("td",{"data-testid":"list-name-count",className:_().descriptionCell,children:v(r)})]}),m?(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:_().titleCell,children:"List Article"}),(0,s.jsx)("td",{className:_().descriptionCell,children:(0,p.Ht)(m)})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:_().titleCell,children:"List Criteria"}),(0,s.jsx)("td",{"data-testid":"list-criteria-count",className:_().descriptionCell,children:(0,p.Ht)(c)})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:_().titleCell,children:"List Description"}),(0,s.jsx)("td",{"data-testid":"list-description-count",className:_().descriptionCell,children:(0,p.Ht)(d)})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:_().titleCell,children:"Node Names"}),(0,s.jsx)("td",{className:_().descriptionCell,children:null!==(t=null==N?void 0:N.nameCount)&&void 0!==t?t:"calculating 0 of ".concat(u)})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:_().titleCell,children:"Node Descriptions"}),(0,s.jsx)("td",{className:_().descriptionCell,children:null!==(l=null==N?void 0:N.descriptionCount)&&void 0!==l?l:"calculating 0 of ".concat(u)})]})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:a()(_().titleCell,_().boldCell),children:"Total Word Count"}),(0,s.jsx)("td",{className:a()(_().descriptionCell,_().boldCell),children:C()(N)?"calculating...":w})]})]})]})})})},w=[{useTrackedState:m.oP,mapStateToProps:e=>{let{listData:{id:t,nameD:l,descriptionD:s,listCriteria:i,listStats:{totalItems:n}},pageData:{listArticle:{articleText:r}={}}}=e;return{listId:t,name:l,description:s,listCriteria:i,totalItems:n,articleText:r}}}];b.propTypes={listId:r().oneOfType([r().string,r().number]),name:r().string.isRequired,description:r().string.isRequired,listCriteria:r().string.isRequired,totalItems:r().number.isRequired,onClose:r().func.isRequired,articleText:r().string.isRequired};let T=(0,j.Z)({mapStateToProps:w})(b)},69367:e=>{e.exports={main:"wordCount_main___IYyl",titleHeader:"wordCount_titleHeader__qsUQr",titleCell:"wordCount_titleCell__OPQHa",descriptionHeader:"wordCount_descriptionHeader__dTnTg",descriptionCell:"wordCount_descriptionCell__3ogmR",boldCell:"wordCount_boldCell__CAThJ"}}}]); 2//# sourceMappingURL=list-edit-word-count.d11a94c73004b4f3.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.