1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[80250],{3858(e,t,r){r.d(t,{EventsContent:()=>w});var n=r(391426),l=r(559574),i=r(36764),a=r(879995),s=r(760250),o=r(238189),c=r(118955),u=r(230763),v=r(570310),f=r(450225),m=r(933578),d=r(417980),p=r(655726),y=r(813455),h=r(254132),x=r(223659),g=r(6418),j=r(739042),b=r(892907),C=function(){var e=(0,u.Od)().currentCommunityMember,t=(0,l.r)().eventLink,r=(0,x.W)().showCreateEventModal,i=(0,g.V8)(e),a=(null==t?void 0:t.label)||(0,d.t)("all_events.title");return(0,n.jsxs)("div",{className:"flex items-center gap-3 pb-2 pt-4",children:[(0,n.jsx)(b.o5,{variant:"heading-lg",className:"flex-1",children:a}),i&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(j.$,{variant:"primary",size:"sm",onClick:r,children:(0,d.t)("events.new_event")}),(0,n.jsx)(h.C,{})]})]})};function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,l=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){var i=[],a=!0,s=!1;try{for(l=l.call(e);!(a=(r=l.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var w=function(){var e=(0,u.Od)().currentCommunitySettings,t=(0,f.YQ)().data,r=(0,l.r)().eventLink,h=(null==t?void 0:t.community_settings)||e,x="calendar"===(null==h?void 0:h.public_events_view)?a.K.CALENDAR:a.K.LIST,g=S((0,y.D)({defaultCommunityView:x,views:a.K,activeStorageKey:"all_events_active_view"}),2),j=g[0],b=g[1],A=S((0,m.useState)(!1),2),w=A[0],_=A[1],k=Array.from((0,c.R)().currentFilters),E=j===a.K.CALENDAR,N=(null==r?void 0:r.label)||(0,d.t)("all_events.title");return h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.$,{title:N}),(0,n.jsx)(C,{}),(0,n.jsxs)("div",{className:(0,v.x)("flex flex-col gap-6 pt-2",{"p-0 pt-4":E}),children:[(0,n.jsx)(o.s,{activeView:j,isPastEvents:w,onStatusChange:_,onViewChange:b}),E?(0,n.jsx)(i.S,{topics:k}):(0,n.jsx)(s.u,{isPastEvents:w,topics:k})]})]}):null}}}]); 2//# sourceMappingURL=/packs/js/MobileEventsContent-ab2a2a8601c85aaf.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.