PageSourceSearch

https://community.bipolaruk.org/dist/v2/forum/chunks/addons/groups/FromToDateTime.B6afjN85.min.js

js bipolaruk.org collected 2026-09-25 14:19:56 UTC 2,951 bytes, 17 lines download raw bytes

1import{o as e}from"../../rolldown-runtime.CMxvf4Kt.min.js";import{Fd as t,Jd as n,Yd as r,as as i,cf as a,is as o,lf as s,mp as c,of as l,sf as u}from"../dashboard/titlebar.DyAU_Ibz.min.js";import{dt as d,ft as f}from"../../../vendor/react-core.Bz6AEaX7.min.js";import{a as p}from"./eventsTypes.D4FESeM4.min.js"
2/**
3* @copyright 2009-2020 Vanilla Forums Inc.
4* @license Proprietary
5*/
6;var m=(0,e(l()).actionCreatorFactory)(`@@events`),h=class e extends u{static DEFAULT_LIMIT=30;static getEventListACs=m.async(`GET_EVENT_LIST`);getEventList=n=>{let r=a(e.getEventListACs,async()=>{let e=await this.api.get(`/events`,{params:{...n,expand:!0}}),r=t.parseHeaders(e.headers);return{events:e.data,pagination:r}})(n);return this.dispatch(r)};static getEventParentRecord=m.async(`GET_EVENT_PARENT_RECORD`);getEventParentRecord=t=>{let n=a(e.getEventParentRecord,async()=>{if(t.parentRecordType===`category`){let{data:e}=await this.api.get(`/categories/${t.parentRecordID}`);return{name:e.name,breadcrumbs:e.breadcrumbs,parentRecordID:e.categoryID,parentRecordType:`category`,url:e.url,description:e.description,bannerUrl:e.bannerUrl,iconUrl:e.iconUrl}}else{let{data:e}=await this.api.get(`/groups/${t.parentRecordID}`);return{name:e.name,breadcrumbs:e.breadcrumbs,parentRecordID:e.groupID,parentRecordType:`category`,url:e.url,description:e.description,bannerUrl:e.bannerUrl,iconUrl:e.iconUrl}}})(t);return this.dispatch(n)};static deleteEvent_ACS=m.async(`DELETE_EVENT`);static clearDeleteStatusAC=m(`CLEAR_DELETE_STATUS`);clearDeleteStatus=this.bindDispatch(e.clearDeleteStatusAC);deleteEvent=t=>{let n=a(e.deleteEvent_ACS,async()=>(await this.api.delete(`/events/${t}`)).data)({eventID:t});return this.dispatch(n)}};function g(){return s(h)}
7/**
8* @copyright 2009-2026 Vanilla Forums Inc.
9* @license GPL-2.0-only
10*/
11function _(e){let t=e.eventType===p.Hybrid,n=e.eventType===p.Virtual,r=[];return n||(e.location||e.locationUrl)&&r.push({label:c(t?`In-Person Location`:`Location`),location:e.location,locationUrl:e.locationUrl,safeLocationUrl:e.safeLocationUrl}),(n||t)&&(e.virtualLocation||e.virtualLocationUrl)&&r.push({label:c(t?`Virtual Location`:`Location`),location:e.virtualLocation,locationUrl:e.virtualLocationUrl,safeLocationUrl:e.safeVirtualLocationUrl}),r}f();var v=d();
12/**
13* @author Stéphane LaFlèche <[email protected]>
14* @copyright 2009-2019 Vanilla Forums Inc.
15* @license GPL-2.0-only
16*/
17function y(e){let{dateStarts:t,dateEnds:a,showTimeZone:s=!1}=e,c=r(new Date(t),new Date,n.YEAR),l=a?r(new Date(a),new Date,n.YEAR):!1,u=a?r(new Date(t),new Date(a),n.DAY):!1,d=u?o.TIME:o.EXTENDED,f=s&&(!a||!u),p=s&&!!a,m=(0,v.jsx)(i,{timestamp:e.dateStarts,type:o.EXTENDED,isSameYear:c,showTimeZone:f}),h=e.dateEnds?(0,v.jsx)(i,{timestamp:e.dateEnds,type:d,isSameYear:l,showTimeZone:p}):void 0;return(0,v.jsxs)(v.Fragment,{children:[m,e.dateEnds&&(0,v.jsxs)(v.Fragment,{children:[` `,h&&` - `,h]})]})}export{g as i,_ as n,h as r,y as 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.