1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[56287],{582882(e,t,n){var i=n(933578),a=n(358255),r=n(21281),l=n(260007),o=n(669880),u=function(e){var t=e.hideAvatar,n=void 0!==t&&t,u=e.onValueChange,c=e.selectedValue,s=e.tabs,f=e.title,d=e.trailing,v=void 0===d?null:d,b=(0,o.C)(),m=b.setTabsOverride,p=b.updateSelectedValue,h=(0,r.u)().setTitleOverride,g=(0,l.K)().setTrailingOverride,_=(0,a.u)().setIsAvatarHidden;(0,i.useEffect)(function(){return h(f),g(v),m({tabs:s,selectedValue:c,onValueChange:u}),function(){h(null),g(null),m(null)}},[f,v,s,u,m,h,g]),(0,i.useEffect)(function(){if(n)return _(!0),function(){return _(!1)}},[n,_]),(0,i.useEffect)(function(){p(c)},[c,p])};n.d(t,{Y:()=>u})},383635(e,t,n){n.d(t,{NotificationsContent:()=>w});var i=n(391426),a=n(714315),r=n(230763),l=n(570310),o=n(417980),u=n(655726),c=n(445365),s=n(988484),f=n(508479),d=n(915779),v=n(519104),b=n(310860),m=n(933578),p=n(978421),h=n(191662),g=function(){var e=(0,h.d)().setDrawerOverride,t=(0,v.Z)(),n=(0,b.z)({select:function(e){return e.pathname}}),a=(0,b.z)({select:function(e){return e.searchStr}}),r=(0,m.useMemo)(function(){var e=d.Qr.notifications({pathname:n,search:a}),r=e.pathname,l=e.state;return(0,i.jsx)(p.g,{icon:"bell",label:(0,o.t)("mobile_shell.manage_notifications"),onClick:function(){t({to:r,state:l})}})},[n,a,t]);return(0,m.useEffect)(function(){return e(r),function(){return e(function(e){return e===r?null:e})}},[r,e]),null},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled;return(0,f.T)(g,void 0===t||t?{}:null)},y=n(599059),C=n(492776),A=n(658232),k=n(52441),S=n(679082),O=n(274685),T=n(717526);function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var j=function(){var e=(0,r.Od)().currentCommunitySettings,t=!!(null==e?void 0:e.live_pulse_notifications_tab_v2_enabled),n=(0,T.d)(),i=(0,C.M)(),a=i.activeFilter,l=i.setActiveFilter,u=i.setLastMarkedAsRead,c=(0,O.jE)(),s=(0,m.useCallback)(function(e){n.success((0,o.t)("header_v3.notifications_marked_as_read")),e.success&&u(new Date(null==e?void 0:e.read_at_time).getTime())},[n,u]),f=(0,A.vg)(s),d=f.mutate,v=f.isLoading,b=(0,m.useCallback)(function(e){c.invalidateQueries({queryKey:["notifications",e]}),l(e)},[c,l]);return(0,m.useMemo)(function(){var e,n=[{value:C.SC.ALL,label:(0,o.t)("header_v3.filters.all"),icon:"bullet-list"},{value:C.SC.UNREAD,label:(0,o.t)("header_v3.filters.unread"),icon:"app"},{value:C.SC.ARCHIVED,label:(0,o.t)("header_v3.filters.archived"),icon:"inbox-empty"}];return((function(e){if(Array.isArray(e))return V(e)})(e=t?[{id:"filter",label:(0,o.t)("header_v3.filters.title"),icon:"filter",submenu:[{type:"radio-group",value:a,items:n.map(function(e){var t=e.value;return{type:"radio",value:t,label:e.label,icon:e.icon,onClick:function(){return b(t)}}})}]}]:[])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return V(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return V(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([{id:"mark-as-read",label:(0,o.t)("header_v3.mark_all_as_read"),icon:"checkmark-double",onClick:function(){return d({action:S.pp.markAllAsRead})},loading:v}])},[t,a,b,d,v])},x=n(799684),M=n(582882),E=function(){var e=(0,C.M)(),t=e.activeTab,n=e.setActiveTab,i=e.setNotificationTabCounters,a=e.getTabLabel,l=(0,r.Od)().currentCommunity,u=(0,A.lV)(null==l?void 0:l.id,i).data,c=(0,k.O)(),s=(0,m.useMemo)(function(){return c.map(function(e){var t=y.CU[e],n=t&&u?u[t]:0,i=n>0?String((0,x.f)(n)):void 0;return{value:e,label:a(e),badge:i}})},[c,u,a]),f=(0,m.useCallback)(function(e){n(e)},[n]),d=j(),v=(0,m.useMemo)(function(){return{actions:d,collapseActions:!1}},[d]);(0,M.Y)({title:(0,o.t)("notifications.page_title"),trailing:v,hideAvatar:!1,tabs:s,selectedValue:t,onValueChange:f})},w=function(){var e=(0,o.t)("notifications.page_title"),t=(0,r.Od)().isViewOnl
1yMasquerading,n=(0,c.s)().resizeNotificationWindow;(0,s.G)(n),E();var f=_();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.$,{title:e}),f,(0,i.jsx)("div",{className:(0,l.x)("flex size-full min-h-full grow flex-col",{"pointer-events-none":t}),id:"notifications-full-page","data-testid":"notifications-full-page",children:(0,i.jsx)(a.n,{})})]})}}}]); 2//# sourceMappingURL=/packs/js/MobileNotificationsContent-a91ccd7c11b428c0.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.