PageSourceSearch

https://www.m-wealth.co.uk/assets/Slide-ChrVKDvt.js

js m-wealth.co.uk collected 2026-10-09 00:40:19 UTC 4,551 bytes, 3 lines download raw bytes

1import{h as i,c as d,j as t}from"./styledComponents-n4UW4kpA.js";import{a as c}from"./react-C3MRYTMn.js";import{a as v,u as I}from"./redux-DEt5ekS8.js";import{c as m,f as N,m as L,i as u,l as H,j as f,O as T}from"./index-Dbx1gyta.js";import{c as A}from"./buttons.styles-ClYbUcfj.js";import{b as y}from"./brandTextCheck-BtVFi4-W.js";import{I as C}from"./Icon-CkZJfHnP.js";import{S as D}from"./SsrLink-B3K7paPT.js";import"./polished.esm-CYsXSD1d.js";import"./index-g6qz2-ej.js";import"./urlHelpers-szXc1bAB.js";const M=i.div.withConfig({displayName:"Slidesstyles__SlideContainer",componentId:"sc-1lr4b2d-0"})(["padding-left:2px;"]),O=i.h5.withConfig({displayName:"Slidesstyles__Name",componentId:"sc-1lr4b2d-1"})(["width:100%;margin-bottom:15px;"]),P=i.p.withConfig({displayName:"Slidesstyles__Address",componentId:"sc-1lr4b2d-2"})(["margin-bottom:0;"]),B=i.div.withConfig({displayName:"Slidesstyles__HoursContainer",componentId:"sc-1lr4b2d-3"})([""," "," *{white-space:nowrap;}"],m(10,12,0,0),({theme:e})=>d(["","{","}","{","}",""],L(e.breakpoints.b),m(8,12,0,0),N(e.breakpoints.aa),m(11.5,12,0,0),e.style.keyline.size!=="0"?`padding-left: 10px !important; /* important to overwrite column mixin */
2        border-left: calc(${e.style.keyline.size} / 2) solid ${e.colours.accent.keyline};`:"")),E=i.div.withConfig({displayName:"Slidesstyles__Hours",componentId:"sc-1lr4b2d-4"})(["display:flex;margin:0 0 10px;width:100%;justify-content:space-between;"]),z=i.div.withConfig({displayName:"Slidesstyles__Day",componentId:"sc-1lr4b2d-5"})(["margin-right:15px;"]),R=i.div.withConfig({displayName:"Slidesstyles__Hour",componentId:"sc-1lr4b2d-6"})([""]),G=i.ul.withConfig({displayName:"Slidesstyles__ContactLinkGroup",componentId:"sc-1lr4b2d-7"})(["",""],({theme:e})=>d(["margin-bottom:20px;list-style:none;"])),W=i.li.withConfig({displayName:"Slidesstyles__ContactLinkWrap",componentId:"sc-1lr4b2d-8"})(["display:inline-block;a{","}"],A),$=i.button.withConfig({displayName:"Slidesstyles__CopyButton",componentId:"sc-1lr4b2d-9"})(["",""],({theme:e})=>d(["cursor:pointer;border:none;background:none;padding:0;margin-top:2px;position:relative;svg path{fill:",";}"],e.colours.button.primary.background)),F=i.div.withConfig({displayName:"Slidesstyles__AddressContainer",componentId:"sc-1lr4b2d-10"})(["display:flex;align-items:baseline;gap:8px;margin-bottom:15px;"]),q=i.div.withConfig({displayName:"Slidesstyles__CopiedPopup",componentId:"sc-1lr4b2d-11"})(["",""],({theme:e})=>d(["position:absolute;&::before{content:'Copied';position:absolute;top:-50px;left:-33px;background-color:",";color:",";padding:4px 8px;border-radius:12px;font-size:12px;font-weight:600;display:none;}&::after{content:'';position:absolute;top:-50px;left:-33px;width:10px;height:10px;color:",";transform:rotate(45deg);display:none;}&::before,&::after{display:block;}"],e.colours.button.primary.background,e.colours.button.primary.text,e.colours.button.primary.text)),so=({slide:{address:e,hours:b,partner:x,contact:p},isActiveSlide:g})=>{const _=v(),r=(e?Object.values(e).filter(o=>o!==""):[]).join(", "),w=c.useRef(null),[S,h]=c.useState(!1),j=c.useCallback(()=>{navigator.clipboard&&navigator.clipboard.writeText(r).then(()=>{h(!0),setTimeout(()=>h(!1),2e3),u("copy_address",{location:window.location.pathname})}).catch(o=>{H.error("Failed to copy address: ",o)})},[r]),k=I(o=>{var n,l,s,a;return((a=(s=(l=(n=o==null?void 0:o.page)==null?void 0:n.pageData)==null?void 0:l.context)==null?void 0:s.content)==null?void 0:a.path)||""});return t.jsxs(M,{ref:w,children:[x&&t.jsx(O,{dangerouslySetInnerHTML:{__html:y(x)}}),r&&t.jsxs(F,{children:[t.jsx(P,{dangerouslySetInnerHTML:{__html:y(r)}}),t.jsxs($,{"aria-label":"Copy the address",onClick:j,tabIndex:g?0:-1,children:[t.jsx(C,{icon:"copy-to-cl
2ipboard",height:16,width:16}),S&&t.jsx(q,{})]})]}),p&&p.length>0&&t.jsx(G,{children:p.map((o,n)=>o.url&&o.text&&t.jsx(W,{children:t.jsxs(D,{onClick:l=>{const{icon:s,url:a}=o;s&&f[s]&&u(f[s],{position:k.includes("contact")?"contact us page":"profile page bottom",contact_detail:s==="phone"||s==="mobile"?a:void 0}),o.icon==="email"&&f.email&&u("form_view",{form_step:"overview"}),a.toLowerCase().includes("#contactformoverlay")&&(l.preventDefault(),_({type:T}))},tabIndex:g?0:-1,href:o.url,isContactLink:!0,children:[t.jsx(C,{icon:o.icon}),t.jsx("span",{dangerouslySetInnerHTML:{__html:y(o.text)}})]})},n))}),b&&t.jsx(B,{children:b.map((o,n)=>t.jsxs(E,{children:[t.jsx(z,{children:o.day}),t.jsx(R,{children:o.hours})]},n))})]})};export{so as default};
3//# sourceMappingURL=Slide-ChrVKDvt.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.