PageSourceSearch

https://canonizer.com/_next/static/chunks/pages/browse-ff74692681c4911e.js

js canonizer.com collected 2026-10-02 17:00:43 UTC 22,072 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[518],{32808:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var i=t(4942),r=t(87462),a=t(93967),o=t.n(a),l=t(50132),c=t(67294),s=t(53124),u=t(65223),d=t(74902),v=t(97685),f=t(98423),p=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t},h=c.createContext(null),m=function(e,n){var t=e.defaultValue,a=e.children,l=e.options,u=void 0===l?[]:l,m=e.prefixCls,g=e.className,x=e.style,w=e.onChange,b=p(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),_=c.useContext(s.E_),Z=_.getPrefixCls,j=_.direction,S=c.useState(b.value||t||[]),N=(0,v.Z)(S,2),C=N[0],k=N[1],T=c.useState([]),E=(0,v.Z)(T,2),O=E[0],P=E[1];c.useEffect((function(){"value"in b&&k(b.value||[])}),[b.value]);var z=function(){return u.map((function(e){return"string"===typeof e||"number"===typeof e?{label:e,value:e}:e}))},B=Z("checkbox",m),I="".concat(B,"-group"),M=(0,f.Z)(b,["value","disabled"]);u&&u.length>0&&(a=z().map((function(e){return c.createElement(y,{prefixCls:B,key:e.value.toString(),disabled:"disabled"in e?e.disabled:b.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:"".concat(I,"-item"),style:e.style},e.label)})));var R={toggleOption:function(e){var n=C.indexOf(e.value),t=(0,d.Z)(C);-1===n?t.push(e.value):t.splice(n,1),"value"in b||k(t);var i=z();null===w||void 0===w||w(t.filter((function(e){return O.includes(e)})).sort((function(e,n){return i.findIndex((function(n){return n.value===e}))-i.findIndex((function(e){return e.value===n}))})))},value:C,disabled:b.disabled,name:b.name,registerValue:function(e){P((function(n){return[].concat((0,d.Z)(n),[e])}))},cancelValue:function(e){P((function(n){return n.filter((function(n){return n!==e}))}))}},D=o()(I,(0,i.Z)({},"".concat(I,"-rtl"),"rtl"===j),g);return c.createElement("div",(0,r.Z)({className:D,style:x},M,{ref:n}),c.createElement(h.Provider,{value:R},a))},g=c.forwardRef(m),x=c.memo(g),w=t(98866),b=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t},_=function(e,n){var t,a=e.prefixCls,d=e.className,v=e.children,f=e.indeterminate,p=void 0!==f&&f,m=e.style,g=e.onMouseEnter,x=e.onMouseLeave,_=e.skipGroup,y=void 0!==_&&_,Z=e.disabled,j=b(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),S=c.useContext(s.E_),N=S.getPrefixCls,C=S.direction,k=c.useContext(h),T=(0,c.useContext)(u.aM).isFormItemInput,E=(0,c.useContext)(w.Z),O=null!==(t=(null===k||void 0===k?void 0:k.disabled)||Z)&&void 0!==t?t:E,P=c.useRef(j.value);c.useEffect((function(){null===k||void 0===k||k.registerValue(j.value)}),[]),c.useEffect((function(){if(!y)return j.value!==P.current&&(null===k||void 0===k||k.cancelValue(P.current),null===k||void 0===k||k.registerValue(j.value),P.current=j.value),function(){return null===k||void 0===k?void 0:k.cancelValue(j.value)}}),[j.value]);var z=N("checkbox",a),B=(0,r.Z)({},j);k&&!y&&(B.onChange=function(){j.onChange&&j.onChange.apply(j,arguments),k.toggleOption&&k.toggleOption({label:v,value:j.value})},B.name=k.name,B.checked=k.value.includes(j.value));var I=o()((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(z,"-wrapper"),!0),"".concat(z,"-rtl"),"rtl"===C),"".concat(z,"-wrapper-checked"),B.checked),"".concat(z,"-wrapper-disabled"),O),"".concat(z,"-wrapper-in-form-item"),T),d),M=o()((0,i.Z)({},"".concat(z,"-indeterminate"),p)),R=p?"mixed":void 0;return c.createElement("label",{className:I,style:m,onMouseEnter:g,onMouseLeave:x},c.createElement(l.Z,(0,r.Z)({"aria-checked":R},B,{prefixCls:z,className:M,disabled:O,ref:n})),void 0!==v&&c.createElement("span",null,v))};var y=c.forwardRef(_),Z=y;Z.Group=x,Z.__ANT_CHECKBOX=!0;var j=Z},78791:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/browse",function(){return t(94913)}])},64739:function(e,n,t){"use strict";t.d(n,{Y:function(){return h},H:function(){return m}});var i=t(47568),r=t(97582),a=t(25986),o=t(66069),l=t(51438),c=t(28668),s=t(25892),u=t(76166),d=t(96810),v=t(88350),f=function(e){(0,c.Z)(t,e);var n=(0,u.Z)(t);function t(e){return(0,l.Z)(this,t),n.call(this,e)}return t.getTags=function(e,n){return new v.Z(d.Z.Network.URL.GetTagsList,d.Z.Network.Method.POST,e,d.Z.Network.Header.Type.formData,{},n)},t.saveCatsPref=function(e){var n={user_tags:e};return new v.Z(d.Z.Network.URL.SavePrefCats,d.Z.Network.Method.POST,n,d.Z.Network.Header.Type.formData,{})},t}((0,s.Z)(v.Z)),p=t(5615),h=function(){var e=(0,i.Z)((function(){var e,n,t,i,l,c,s,u,d,v,h=arguments;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:e=h.length>0&&void 0!==h[0]?h[0]:1,n=h.length>1&&void 0!==h[1]?h[1]:15,t=h.length>2&&void 0!==h[2]?h[2]:"",i=h.length>3&&void 0!==h[3]?h[3]:"asc",l=h.length>4&&void 0!==h[4]?h[4]:"",c={search_term:t,sort_by:i},e&&(c.page=e),n&&(c.per_page=n),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,a.Z.fetch(f.getTags(c,l),!1)];case 2:return u=r.sent(),o.h.dispatch((0,p.mG)(null===u||void 0===u||null===(s=u.data)||void 0===s?void 0:s.items)),[2,u];case 3:return d=r.sent(),o.h.dispatch((0,p.mG)([])),[2,null===d||void 0===d||null===(v=d.error)||void 0===v?void 0:v.data];case 4:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,i.Z)((function(e){return(0,r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a.Z.fetch(f.saveCatsPref(e),!1)];case 1:return[2,n.sent()];case 2:return n.sent(),o.h.dispatch((0,p.mG)([])),[3,3];case 3:return[2]}}))}));return function(n){return e.apply(this,arguments)}}()},94913:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return K},default:function(){return Y}});var i=t(99534),r=t(85893),a=t(67294),o=t(11163),l=t(25617),c=t(47568),s=t(26042),u=t(69396),d=t(97582),v=t(56717),f=t(28508),p=t(1413),h=t(48820),m=t(84089),g=function(e,n){return a.createElement(m.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:h.Z}))};g.displayName="CopyOutlined";var x=a.forwardRef(g),w=t(38939),b=t(55241),_=t(32808),y=t(62986),Z=t(80284),j=t(75008),S=t(27049),N=t(51018),C=t(71577),k=t(71230),T=t(15746),E=t(10578),O=t(33202),P=t(78206),z=t(79947),B=t(46466),I=t(70980),M=t(68534),R=t(71926),D=t(25881),L=t(64739),V=t(19044),q=t(18625),A=t(51538),G=t(34155),F=Z.Z.Title,U=j.Z.Search,H=function(){var e,n,t=(0,o.useRouter)(),i=(0,l.I0)(),p=(0,V.Z)().isUserAuthenticated,h=Z.Z.Paragraph,m=(0,l.v9)((function(e){var n,t,i,r,a,o,l,c,s,u,d,v,f,p,h,m,g,x,w,b,_,y,Z,j,S,N;return{canonizedTopics:null===(n=e.homePage)||void 0===n?void 0:n.canonizedTopicsData,asofdate:null===(t=e.filters)||void 0===t||null===(i=t.filterObject)||void 0===i?void 0:i.asofdate,asof:null===(r=e.filters)||void 0===r||null===(a=r.filterObject)||void 0===a?void 0:a.asof,algorithm:null===(o=e.filters)||void 0===o||null===(l=o.filterObject)||void 0===l?void 0:l.algorithm,excludeBots:null===e||void 0===e||null===(c=e.filters)||void 0===c||null===(s=c.filterObject)||void 0===s?void 0:s.exclude_bots,nameSpaces:null===(u=e.homePage)||void 0===u?void 0:u.nameSpaces,filterNameSpace:null===e||void 0===e||null===(d=e.filters)||void 0===d||null===(v=d.filterObject)||void 0===v?void 0:v.nameSpace,userEmail:null===e||void 0===e||null===(f=e.auth)||void 0===f||null===(p=f.loggedInUser)||void 0===p?void 0:p.email,filterNameSpaceId:String(null===e||void 0===e||null===(h=e.filters)||void 0===h||null===(m=h.filterObject)||void 0===m?void 0:m.namespace_id),search:null===e||void 0===e||null===(g=e.filters)||void 0===g||null===(x=g.filterObject)||void 0===x?void 0:x.search,loading:null===e||void 0===e||null===(w=e.loading)||void 0===w?void 0:w.loading,onlyMyTopicsCheck:null===e||void 0===e||null===(b=e.filters)||void 0===b?void 0:b.onlyMyTopicsCheck,sortLatestTopic:null===e||void 0===e||null===(_=e.utils)||void 0===_?void 0:_.sortLatestTopic,sortScoreViewTopic:null===e||void 0===e||null===(y=e.utils)||void 0===y?void 0:y.sortScoreViewTopic,is_camp_archive_checked:null===e||void 0===e||null===(Z=e.utils)||void 0===Z?void 0:Z.archived_checkbox,filterByScore:null===(j=e.filters)||void 0===j||null===(S=j.filterObject)||void 0===S?void 0:S.filterByScore,allAlgorithms:null===(N=e.algorithms)||void 0===N?void 0:N.algorithms}})),g=m.canonizedTopics,j=m.asofdate,H=m.asof,X=m.algorithm,K=m.nameSpaces,Y=m.filterNameSpace,J=m.userEmail,Q=m.filterNameSpaceId,W=m.search,$=m.onlyMyTopicsCheck,ee=m.loading,ne=m.sortLatestTopic,te=m.sortScoreViewTopic,ie=m.is_camp_archive_checked,re=m.filterByScore,ae=m.excludeBots,oe=m.allAlgorithms,le=(0,a.useState)(g),ce=le[0],se=le[1],ue=(0,a.useState)(K),de=ue[0],ve=ue[1],fe=(0,a.useState)(W||""),pe=fe[0],he=fe[1],me=(0,a.useState)(String(Q)||"1"),ge=me[0],xe=me[1],we=(0,a.useState)(Y),be=we[0],_e=we[1],ye=(0,a.useState)(""),Ze=ye[0],je=(ye[1],(0,a.useState)(1)),Se=je[0],Ne=je[1],Ce=(0,a.useState)(24),ke=Ce[0],Te=Ce[1],Ee=(0,a.useState)([]),Oe=Ee[0],Pe=Ee[1],ze=(0,a.useRef)(null),Be=(0,a.useState)(!1),Ie=Be[0],Me=Be[1],Re=(0,a.useState)(!1),De=Re[0],Le=Re[1],Ve=(0,a.useState)([]),qe=Ve[0],Ae=Ve[1],Ge=(0,a.useState)([]),Fe=Ge[0],Ue=Ge[1],He=(0,a.useState)([]),Xe=He[0],Ke=He[1],Ye=(0,a.useState)(!1),Je=(Ye[0],Ye[1],(0,a.useState)(!1)),Qe=(Je[0],Je[1]),We=(0,a.useState)(!1),$e=(We[0],We[1]),en=(0,a.useState)([]),nn=(en[0],en[1]),tn=(0,a.useState)("review"==H),rn=tn[0],an=tn[1],on=(0,a.useState)(!1),ln=on[0],cn=on[1],sn=function(){var e=(0,c.Z)((function(){var e,n,t;return(0,d.__generator)(this,(function(i){switch(i.label){case 0:return[4,(0,L.Y)()];case 1:return t=i.sent(),Ae(null===(r=null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.items)||void 0===r?void 0:r.map((function(e){return{label:e.title,value:e.title}}
1))),Ke(null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.items),[2]}var r}))}));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){sn()}),[]),(0,a.useEffect)((function(){an("review"==H)}),[H]);var un={mode:"multiple",options:qe,placeholder:"Select Item...",maxTagCount:"responsive"},dn={value:Fe,onChange:Ue},vn=(0,r.jsxs)("div",{className:"max-w-[300px] w-full",children:[(0,r.jsx)(F,{level:5,children:"Canon"}),(0,r.jsxs)("p",{children:["Canons are a set of topics created for specific organizations and cities to separate topics exclusively for them from the topics of general interest. To get a canon created for your organization, contact"," "]}),(0,r.jsx)("a",{className:"text-[#096dd9]",href:"mailto:[email protected]",children:"[email protected]"})]}),fn=(0,r.jsxs)("div",{className:"max-w-[300px] w-full",children:[(0,r.jsx)(F,{level:5,children:"Topic Tag"}),(0,r.jsx)("p",{children:"Topic Tags are keywords that help categorize and organize topics within a Canon on Canonizer. By adding relevant tags to a topic, users can enhance discoverability, making it easier for others to find and engage with topics that match their interests. Tags also provide context, allowing users to quickly understand the focus and scope of a topic."})]});function pn(){return hn.apply(this,arguments)}function hn(){return(hn=(0,c.Z)((function(){var e,n;return(0,d.__generator)(this,(function(t){switch(t.label){case 0:return cn(!0),e={algorithm:(0,P.pf)(X,oe)||X,asofdate:"default"==H?Date.now()/1e3:j,namespace_id:String(ge),page_number:De?1:Se,page_size:ke,search:pe,filter:0,asof:H,user_email:$?J:"",is_archive:0,sort:!!ne,page:"browse",topic_tags:_n(Fe,Xe),current_user:p?J:"",exclude_bots:ae?1:0},[4,(0,E.UN)(e)];case 1:return n=t.sent(),Pe(n),cn(!1),[2]}}))}))).apply(this,arguments)}var mn=function(e){Le(!0),he(null===e||void 0===e?void 0:e.trim()),i((0,O.b7)({search:e||""})),Me(!0),Qe(!1)},gn=null;(0,a.useEffect)((function(){var e;return gn&&clearTimeout(gn),null===(e=ze.current)||void 0===e||e.focus(),gn=setTimeout((function(){(null===Ze||void 0===Ze?void 0:Ze.trim())&&xn(Ze)}),800),function(){gn&&(clearTimeout(gn),gn=null)}}),[Ze,String(ge),Fe]);var xn=function(){var e=(0,c.Z)((function(e){var n,t;return(0,d.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),n={algorithm:X,asofdate:"default"==H?Date.now()/1e3:j,namespace_id:String(ge),page_number:Se,page_size:15,search:e,filter:re,asof:H,user_email:$?J:"",is_archive:ie?1:0,sort:!!ne,page:"browse",topic_tags:_n(Fe,Xe)},[4,(0,E.aG)(n)];case 1:return t=i.sent(),$e(!1),t&&(nn(null===t||void 0===t?void 0:t.topic),setTimeout((function(){var e;null===ze||void 0===ze||null===(e=ze.current)||void 0===e||e.focus()}),400)),[3,3];case 2:return i.sent(),[3,3];case 3:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),wn=function(){var e=(0,c.Z)((function(){return(0,d.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,E.yj)()];case 1:return e.sent(),[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){pe&&Me(!0),wn()}),[]),(0,a.useEffect)((function(){}),[Ze,mn]),(0,a.useEffect)((function(){_e((function(){return Y})),he((function(){return W.trim()})),ve((function(){return K}))}),[Y,Q,W,K]),(0,a.useEffect)((function(){se(g)}),[null===g||void 0===g?void 0:g.topics]),(0,a.useEffect)((function(){function e(){return(e=(0,c.Z)((function(){return(0,d.__generator)(this,(function(e){switch(e.label){case 0:return[4,pn()];case 1:return e.sent(),[2]}}))}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[ge,pe,ne,te,ke,Se,$,ae,Fe]);var bn=(0,a.useMemo)((function(){return null===de||void 0===de?void 0:de.map((function(e){return(0,r.jsx)(w.Z.Option,{id:"name-space-".concat(e.id),value:e.id,children:(0,P.nD)(e.label)},e.id)}))}),[de]),_n=function(e,n){return null===e||void 0===e?void 0:e.map((function(e){var t=null===n||void 0===n?void 0:n.find((function(n){return(null===n||void 0===n?void 0:n.title)===e}));return t?null===t||void 0===t?void 0:t.id:null}))},yn=function(){var e=(0,c.Z)((function(){var e;return(0,d.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,E.jc)()];case 1:return e=n.sent(),i((0,A.KJ)(null===e||void 0===e?void 0:e.data)),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){null==oe&&yn()}),[]),(0,r.jsx)(M.Z,{routeName:"browse",children:(0,r.jsxs)("div",{className:"browse-wrapper pb-4 mt-3",children:[(0,r.jsx)(F,{level:4,className:"browse-title !mb-0",children:"Browse Canonizer\u2019s Topics"}),(0,r.jsx)(S.Z,{}),(0,r.jsx)(N.Z,{layout:"vertical",children:(0,r.jsxs)("div",{className:"browse-actions",children:[(0,r.jsxs)("div",{className:"flex gap-2 lg:w-[70%] max-sm:flex-col",children:[(0,r.jsxs)(N.Z.Item,{className:"browse-dropdown w-full",children:[(0,r.jsxs)("div",{className:"filter-popover-wrapper",children:[(0,r.jsx)("p",{className:"text-xs font-medium",children:"Filter By Canon"}),(0,r.jsx)(b.Z,{placement:"right",content:vn,children:(0,r.jsx)(v.Z,{})})]}),(0,r.jsxs)(w.Z,{size:"large",virtual:!0,showSearch:!0,placeholder:"Select a person",optionFilterProp:"children",onChange:function(e,n){var r;if(Le(!0),xe(String(e)),_e(null===n||void 0===n?void 0:n.children),Ne(1),"1"!==(null===e||void 0===e?void 0:e.toString()))t.query.canon=e,null===t||void 0===t||null===(r=t.query)||void 0===r||delete r.namespace,null===t||void 0===t||t.replace(t,void 0,{shallow:!0});else if(t.query.canon){var a=null===t||void 0===t?void 0:t.query;delete a.canon,delete a.namespace,t.query=a,t.replace(t,void 0,{shallow:!0})}i((0,O.b7)({namespace_id:String(e),nameSpace:null===n||void 0===n?void 0:n.children}))},defaultValue:(0,P.nD)(be),value:(0,P.nD)(be),disabled:ee,id:"browse-canon-select",className:"text-canBlack font-normal commonSelectClass [&_.ant-select-arrow]:text-canBlack [&_.ant-select-arrow>svg]:fill-canBlack",children:[bn,(0,r.jsx)(w.Z.Option,{id:"name-space-custom",value:"",children:"All"},"custom-key")]})]}),(0,r.jsxs)(N.Z.Item,{className:"browse-dropdown w-full",children:[(0,r.jsxs)("div",{className:"filter-popover-wrapper",children:[(0,r.jsx)("p",{className:"text-xs font-medium",children:"Filter by Topic Tags"}),(0,r.jsx)(b.Z,{placement:"right",content:fn,children:(0,r.jsx)(v.Z,{})})]}),(0,r.jsx)(w.Z,(0,u.Z)((0,s.Z)({size:"large",mode:"multiple",id:"browse-topic-tags-select",className:"text-canBlack font-normal commonSelectClass [&_.ant-select-arrow]:text-canBlack [&_.ant-select-arrow>svg]:fill-canBlack",showArrow:!0},un,dn),{onSelect:function(){Ne(1)}}))]})]}),(0,r.jsxs)("div",{className:"search-wrapper w-full items-center max-sm:flex-wrap lg:justify-end max-lg:justify-between",children:[(null===t||void 0===t?void 0:t.asPath.includes("/browse"))&&p&&(0,r.jsx)(_.Z,{id:"browse-only-my-topics",className:"min-w-[169px] max-sm:order-2",onChange:function(e){return function(e){var n;i((0,q.Mq)(!0)),i((0,O._j)(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.checked)),i((0,q.Mq)(!1)),Ne(1)}(e)},disabled:ee,checked:$,children:"Show only my topics"}),(0,r.jsx)("div",{className:"input-search-topic",children:(0,r.jsx)(U,{size:"large",id:"browse-search-input",className:"browse-search mainInput",placeholder:"Search via topic name",allowClear:Ie,defaultValue:pe,onSearch:mn,ref:ze,onBlur:(0,c.Z)((function(){return(0,d.__generator)(this,(function(e){return setTimeout((function(){Qe(!1)}),300),[2]}))}
1)),onFocus:function(){$e(!1),Qe(!0)}},pe)}),(0,r.jsx)(z.Z,{setPageNumber:Ne})]})]})}),Ie&&(null===W||void 0===W?void 0:W.length)>0&&(0,r.jsxs)("div",{className:"search-response",children:[(0,r.jsxs)("p",{children:[null===Oe||void 0===Oe?void 0:Oe.total_count," Results Found"]}),(0,r.jsxs)(C.Z,{type:"link",danger:!0,className:"btn-clear",onClick:function(){return Me(!1),he(""),Ne(1),void i((0,O.b7)({search:""}))},children:["Clear all",(0,r.jsx)(f.Z,{})]})]}),ee&&!Ze||null==(null===ce||void 0===ce?void 0:ce.topics)||ln?(0,r.jsx)(B.Z,{skeltonFor:"browse"}):(0,r.jsx)(r.Fragment,{children:0==(null===ce||void 0===ce||null===(e=ce.topics)||void 0===e?void 0:e.length)?(0,r.jsx)("div",{id:"browse-empty-container",className:"mt-[10rem]",children:(0,r.jsx)(y.Z,{image:y.Z.PRESENTED_IMAGE_SIMPLE})}):(0,r.jsx)(k.Z,{gutter:[24,24],id:"browse-topics-container",children:null===ce||void 0===ce||null===(n=ce.topics)||void 0===n?void 0:n.map((function(e,n){var t,i,a;return(0,r.jsx)(T.Z,{xs:24,sm:24,md:8,className:"".concat(0==(null===e||void 0===e||null===(t=e.tags)||void 0===t?void 0:t.length)?"[&_.mainTags]:!hidden":""),children:(0,r.jsx)(R.Z,{imageBaseURL:null===G||void 0===G||null===(i=G.env)||void 0===i?void 0:"https://canonizer-public-file.s3.us-east-2.amazonaws.com",cardClassName:"[&_.scoreTag]:mx-0 [&_.scoreTag]:ml-2 [&_.catTags]:flex-row [&_.cardCountCls]:!mt-0 [&_.scoreTag]:w-max [&_.topicDesc]:line-clamp-2",topic:(0,u.Z)((0,s.Z)({},e),{topic_num:null===e||void 0===e?void 0:e.topic_id,topicTags:null===e||void 0===e?void 0:e.tags,views:null===e||void 0===e?void 0:e.camp_views}),avatars:null===e||void 0===e||null===(a=e.supporterData)||void 0===a?void 0:a.slice(0,5),maxCount:5,scoreTag:(0,r.jsx)(D.Z,{topic_score:null===e||void 0===e?void 0:e.topic_score}),copyLink:(0,r.jsx)(h,{className:"!mb-0 hidden rightArrow",copyable:{text:e.is_archive?(0,r.jsx)(b.Z,{content:"Archived Topic",children:rn?(null===e||void 0===e?void 0:e.tree_structure)&&(null===e||void 0===e?void 0:e.tree_structure[1].review_title):null===e||void 0===e?void 0:e.topic_name}):rn?(null===e||void 0===e?void 0:e.tree_structure)&&(null===e||void 0===e?void 0:e.tree_structure[1].review_title):null===e||void 0===e?void 0:e.topic_name,icon:(0,r.jsx)(x,{className:"text-canLight"})},children:" "})})},n)}))})}),(null===Oe||void 0===Oe?void 0:Oe.total_count)>10&&(0,r.jsx)("div",{id:"browse-pagination",children:(0,r.jsx)(I.Z,{totalTopics:null===Oe||void 0===Oe?void 0:Oe.total_count,pageNumber:Se,pageSize:ke,loading:ee,handlePageChange:function(e,n){Le(!1),Ne(e),Te(n)}})})]})})},X=function(e){var n=e.current_date,t=(0,l.I0)(),c=(0,o.useRouter)();return t((0,O.vz)(n)),(0,a.useEffect)((function(){var e=null===c||void 0===c?void 0:c.query;if("namespace"in e){var n=e.namespace,r=(0,i.Z)(e,["namespace"]);r.canon=n,c.query=r,null===c||void 0===c||c.replace(c,null,{shallow:!0})}return function(){return t((0,O._j)(!1))}}),[]),(0,r.jsx)(H,{})};X.displayName="BrowsePage";var K=!0,Y=X},50132:function(e,n,t){"use strict";var i=t(87462),r=t(1413),a=t(4942),o=t(97685),l=t(91),c=t(93967),s=t.n(c),u=t(21770),d=t(67294),v=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],f=(0,d.forwardRef)((function(e,n){var t,c=e.prefixCls,f=void 0===c?"rc-checkbox":c,p=e.className,h=e.style,m=e.checked,g=e.disabled,x=e.defaultChecked,w=void 0!==x&&x,b=e.type,_=void 0===b?"checkbox":b,y=e.onChange,Z=(0,l.Z)(e,v),j=(0,d.useRef)(null),S=(0,u.Z)(w,{value:m}),N=(0,o.Z)(S,2),C=N[0],k=N[1];(0,d.useImperativeHandle)(n,(function(){return{focus:function(){var e;null===(e=j.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},input:j.current}}));var T=s()(f,p,(t={},(0,a.Z)(t,"".concat(f,"-checked"),C),(0,a.Z)(t,"".concat(f,"-disabled"),g),t));return d.createElement("span",{className:T,style:h},d.createElement("input",(0,i.Z)({},Z,{className:"".concat(f,"-input"),ref:j,onChange:function(n){g||("checked"in e||k(n.target.checked),null===y||void 0===y||y({target:(0,r.Z)((0,r.Z)({},e),{},{type:_,checked:n.target.checked}),stopPropagation:function(){n.stopPropagation()},preventDefault:function(){n.preventDefault()},nativeEvent:n.nativeEvent}))},disabled:g,checked:!!C,type:_})),d.createElement("span",{className:"".concat(f,"-inner")}))}));n.Z=f}},function(e){e.O(0,[4752,7747,6705,8534,3619,3922,9774,2888,179],(function(){return n=78791,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.