PageSourceSearch

https://www.ifswealth.co.uk/assets/EventResults-BBnjTiKA.js

js ifswealth.co.uk collected 2026-10-08 14:31:29 UTC 7,268 bytes, 2 lines download raw bytes

1import{h as s,c as a,j as n}from"./styledComponents-n4UW4kpA.js";import{a as E}from"./react-C3MRYTMn.js";import{a as H,u as G}from"./redux-DEt5ekS8.js";import{g as O,w as J,a as z,h as v,R as K,m as _,F as Q,y as U,ad as X,ac as Y,aJ as S,P as i}from"./index-Dbx1gyta.js";import{h as M,f as $}from"./buttons.styles-ClYbUcfj.js";import{a as Z,b as q,C as tt}from"./grid.style-DolOXk75.js";import{I as j}from"./Icon-CkZJfHnP.js";import{L as nt}from"./LoadingSpinner-CFgFOjya.js";import{L as ot,S as it}from"./SkeletonGrid-BLmWV_kV.js";import{S as at}from"./SsrLink-B3K7paPT.js";import{b as L}from"./brandTextCheck-BtVFi4-W.js";import{T as st}from"./Text-DGc87esK.js";import{P as et}from"./Picture-D6-DCGcV.js";import"./polished.esm-CYsXSD1d.js";import"./index-g6qz2-ej.js";import"./urlHelpers-szXc1bAB.js";import"./imageHelpers-rj6UfTAf.js";import"./useObserver-CZyhJdvV.js";const rt=s.section.withConfig({displayName:"EventResultsstyle__Wrapper",componentId:"sc-1g61hvu-0"})([""," "," button{","}"],O,({theme:t})=>a(["margin-top:",";margin-bottom:",";"],t.spacing.outer.small,t.spacing.outer.large),({theme:t})=>a(["display:block;margin:0 auto;margin-top:",";margin-bottom:",";"],t.spacing.inner,t.spacing.outer.large)),k=s.div.withConfig({displayName:"EventResultsstyle__EmptyContainer",componentId:"sc-1g61hvu-1"})(["p{","}"," i{display:block;margin:0 auto;width:auto;}*{text-align:center;}"],J,({theme:t})=>a(["width:100%;padding-top:",";padding-bottom:",";max-width:460px;margin:0 auto;"],t.spacing.outer.small,t.spacing.outer.large)),T=s.div.withConfig({displayName:"EventResultsstyle__IconWrapper",componentId:"sc-1g61hvu-2"})(["",""],({theme:t})=>a(["display:block;width:auto;margin:15px auto;svg{path{fill:",";}}"],t.colours.accent.icon)),N=s.button.withConfig({displayName:"EventResultsstyle__Button",componentId:"sc-1g61hvu-3"})(["",""],({theme:t})=>t.style.articleList.buttonVariant==="primary"?M:$),lt=s.div.withConfig({displayName:"EventCardstyles__IconWrapper",componentId:"sc-1t7l1vw-0"})(["",";"],({theme:t})=>a(["margin-bottom:20px;svg{path{fill:",";}}"],t.colours.accent.icon)),pt=s.div.withConfig({displayName:"EventCardstyles__TextContainer",componentId:"sc-1t7l1vw-1"})(["",""],({theme:t})=>a([""," display:block;position:relative;margin:15px 0 0;max-height:95px;overflow:hidden;","{","}","{","}"],t.style.articleList.buttonVariant==="primary"?`font-size: ${v(t,"fontSize","bodySmall",t.breakpoints.aa)};`:"",_(t.breakpoints.a),t.style.articleList.buttonVariant==="primary"?`font-size: ${v(t,"fontSize","bodySmall",t.breakpoints.a)};`:"",_(t.breakpoints.ba),t.style.articleList.buttonVariant==="primary"?`font-size: ${v(t,"fontSize","bodySmall",t.breakpoints.ba)};`:"")),ct=s.span.withConfig({displayName:"EventCardstyles__Attributes",componentId:"sc-1t7l1vw-2"})([""," ",";"],z,({theme:t})=>a(["font-size:",";display:block;text-transform:uppercase;color:",";"],t.style.articleList.buttonVariant==="primary"?"12px":v(t,"fontSize","bodySmall"),t.colours.text.tertiary)),R=s.span.withConfig({displayName:"EventCardstyles__Info",componentId:"sc-1t7l1vw-3"})([""," ",";"],z,({theme:t})=>a(["display:block;color:",";"],t.colours.text.secondary));s.div.withConfig({displayName:"EventCardstyles__Content",componentId:"sc-1t7l1vw-4"})(["",""],({theme:t,alignment:l})=>a(["padding:15px 15px 5px;display:block;position:relative;margin-bottom:auto;text-align:",";border-top:1px solid ",";"],l||"left",t.colours.accent.keyline));const dt=s.h5.withConfig({displayName:"EventCardstyles__Title",componentId:"sc-1t7l1vw-5"})(["margin:15px 0;",""],({theme:t})=>t.style.articleList.buttonVariant==="primary"?K:""),gt=s.div.withConfig({displayName:"EventCardstyles__LinkWrapper",componentId:"sc-1t7l1vw-6"})([""," a{"," display:flex;justify-content:center;align-items:center;text-decoration:none;width:100%;margin:0;","}svg{","}"],({theme:t})=>a(["padding:4%;align-self:flex-end;width:100%;position:relative;&::before{content:'';position:absolute;top:-50px;left:0;width:100%;height:50px;background:linear-gradient( rgb(255,255,255,0) 0%,"," 100% );}"],Q(t.colours.background.a,.8)),({theme:t})=>t.style.articleList.buttonVariant==="primary"?$:M,({theme:t})=>a(["","{width:100%;margin:0;}"],_(t.breakpoints.a)),({theme:t})=>a(["position:relative;bottom:1px;margin-left:5px;fill:",";",""],t.colours.button.secondary.text,t.style.articleList.buttonVariant==="primary"?"display: none;":"")),ht=({image:t,title:l,text:m,url:p,urlText:g,width:w,icon:y,dateFrom:h,dateTo:u,location:o,topic:c,eventType:d,eventCard:x,alignment:b,eventTimeOverride:f})=>n.jsxs(Z,{width:w,children:[n.jsx(et,{url:t==null?void 0:t.url,alt:t==null?void 0:t.altText,ratio:[2,1],noFilter:!0}),y&&n.jsx(lt,{children:n.jsx(j,{icon:y,height:"64px",width:"64px"})}),n.jsxs(q,{alignment:b,children:[(d&&c||d||c)&&n.jsx(ct,{children:U(d,c
1)}),l&&n.jsx(dt,{dangerouslySetInnerHTML:{__html:L(l)}}),(h&&u||f)&&n.jsx(R,{children:f||(h&&u?X({dateFrom:h,dateTo:u}):"")}),o&&n.jsx(R,{children:o}),m&&n.jsx(pt,{children:n.jsx(st,{children:m})})]}),p&&n.jsx(gt,{widthFull:x,children:n.jsxs(at,{iconRight:!0,href:p,ariaLabel:`${l} ${g||"Event Details"}`,children:[g||"EVENT DETAILS",n.jsx(j,{icon:"chevron-right-small",marginRight:"0",height:"14px",width:"14px"})]})})]}),ut=({...t})=>{const[l,m]=E.useState(!0),p=H(),{eventList:g,loadMoreText:w,noEventTitle:y,noEventText:h,noEventIcon:u="info-o",reqError:o,endpoint:c,total:d,pageSize:x,pageStart:b}=t,{isApplyingFilters:f,isLoadingMoreEvents:I,requestError:V,eventListing:e,isLoadingData:W,total:C}=G(r=>r.events),P=()=>p(S({endpoint:c,type:"loadmore"})),A=()=>p(S({endpoint:c}));E.useEffect(()=>{l&&(p(Y({eventListing:g,total:d,pageSize:x,pageStart:b})),m(!1))},[p,c,g,d,l,x,b,C]);const D=e&&C>e.length,B=e&&C!==e.length;return n.jsxs(rt,{children:[f&&n.jsx(ot,{}),W?n.jsx(it,{}):e&&e.length?n.jsxs(n.Fragment,{children:[n.jsx(tt,{articleCount:e.length,children:e.map((r,F)=>n.jsx(ht,{width:"third",...r},`EventCard__${F}__${(r==null?void 0:r.url)||(r==null?void 0:r.title)}`))}),e&&D&&!I&&B&&n.jsx(N,{onClick:()=>P(),children:`${w||"Load More"}`}),I&&n.jsx(nt,{marginTop:!0})]}):V?n.jsxs(k,{children:[o&&(o==null?void 0:o.icon)&&n.jsx(T,{children:n.jsx(j,{icon:o==null?void 0:o.icon,width:64,height:64,marginRight:"0"})}),n.jsx("h5",{children:o&&(o==null?void 0:o.title)||"There has been a problem loading events"}),n.jsx("p",{children:o&&(o==null?void 0:o.text)||"Please try and load events again"}),n.jsx(N,{onClick:()=>A(),children:`${(o==null?void 0:o.button)||"retry load"}`})]}):n.jsxs(k,{children:[n.jsx(T,{children:n.jsx(j,{icon:u,width:"64px",height:"64px",marginRight:"0"})}),n.jsx("h5",{dangerouslySetInnerHTML:{__html:L(y)||"There are no up-coming events right now"}}),n.jsx("p",{dangerouslySetInnerHTML:{__html:L(h)||"Please check back soon or sign-up to receive emails about our future events"}})]})]})};ut.propTypes={isLoadingData:i.bool,total:i.number,pageSize:i.oneOfType([i.string,i.number]),pageStart:i.oneOfType([i.string,i.number]),eventList:i.array,eventListing:i.array,loadMoreText:i.string,noEventTitle:i.string,noEventText:i.string,noEventIcon:i.string,endpoint:i.string,requestError:i.bool,reqError:i.object,isLoadingMoreEvents:i.bool,isApplyingFilters:i.bool};export{ut as default};
2//# sourceMappingURL=EventResults-BBnjTiKA.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.