PageSourceSearch

https://www.rcwealthmanagement.co.uk/assets/PersistentContactBar-B2yA_y2Y.js

js rcwealthmanagement.co.uk collected 2026-10-04 07:26:28 UTC 9,322 bytes, 71 lines download raw bytes

1import{h as i,c as s,j as o}from"./styledComponents-n4UW4kpA.js";import{a as y}from"./react-C3MRYTMn.js";import{j as P}from"./redux-DEt5ekS8.js";import{I as m}from"./Icon-CkZJfHnP.js";import{S as N}from"./SsrLink-B3K7paPT.js";import{P as S}from"./Picture-D6-DCGcV.js";import{g as T,m as n,c as q,F as l,a as u,a6 as H,i as p,j as h,Y as L,Z as M}from"./index-Dbx1gyta.js";import{b as A}from"./buttons.styles-ClYbUcfj.js";import{S as D,C as R}from"./Button.styles-Rqwg8VGJ.js";import{b}from"./brandTextCheck-BtVFi4-W.js";import{C as z}from"./componentHelpers-BPSUhRTF.js";import{p as F}from"./imageHelpers-rj6UfTAf.js";import{u as V}from"./useDeviceResize-CGNyMR0q.js";import"./urlHelpers-szXc1bAB.js";import"./useObserver-CZyhJdvV.js";import"./polished.esm-CYsXSD1d.js";import"./index-g6qz2-ej.js";const E=i.div.withConfig({displayName:"PersistentContactBarstyles__ContactBar",componentId:"sc-1qg4d0e-0"})(["",""],({theme:t,$isHidden:a})=>s(["background-color:",";border-top:1px solid ",";box-shadow:0 -3px 6px 0 rgb(0,0,0,0.2);position:fixed;bottom:0;width:100%;opacity:0;z-index:1000;transition:all 0.5s ease-in-out;",""],t.style.footer.variant==="b"?t.colours.background.b:t.colours.background.c,t.style.footer.variant==="b"?t.colours.accent.keyline:t.colours.link.default,a?`
2        visibility: hidden;
3        `:`
4        visibility: visible;
5        opacity: 1;
6        `)),W=i.div.withConfig({displayName:"PersistentContactBarstyles__ContactBarContainer",componentId:"sc-1qg4d0e-1"})(["",";",""],T,({theme:t})=>s(["display:flex;flex-wrap:wrap;padding-left:0;padding-right:0;","{padding:8px 3%;}","{padding-top:0;padding-bottom:0;}"],n(t.breakpoints.a),n(t.breakpoints.b))),Y=i.section.withConfig({displayName:"PersistentContactBarstyles__BioInfo",componentId:"sc-1qg4d0e-2"})(["",""],({theme:t})=>s(["",";padding:0;display:flex;align-items:center;order:2;position:relative;justify-content:space-between;","{width:100%;}","{width:40%;order:1;display:flex;}","{width:50%;}a{flex:1;margin-bottom:0;text-decoration:none;padding-left:5%;","{padding-left:0;}}"],q(12,12,0),n(t.breakpoints.a),n(t.breakpoints.b),n(t.breakpoints.c),n(t.breakpoints.a))),Z=i.div.withConfig({displayName:"PersistentContactBarstyles__Actions",componentId:"sc-1qg4d0e-3"})(["",""],({theme:t,$buttonVisibility:a})=>s(["padding:0;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column-reverse;max-height:0;height:0;overflow:hidden;transition:all 0.5s ease-in-out;order:1;white-space:nowrap;"," padding-left:5%;padding-right:5%;","{padding-left:0;padding-right:0;}","{width:60%;padding:0;flex-direction:row;order:2;justify-content:flex-end;}","{width:50%;}button{margin:0;margin-bottom:15px;","{margin-bottom:0;}}a:first-of-type{margin-bottom:0;}"],a?`
7          max-height: 250px;
8          height: 100%;
9          margin: 12px 0;
10        `:"",n(t.breakpoints.a),n(t.breakpoints.b),n(t.breakpoints.c),n(t.breakpoints.b))),G=i.div.withConfig({displayName:"PersistentContactBarstyles__Info",componentId:"sc-1qg4d0e-4"})(["",""],({theme:t})=>s(["display:flex;flex-direction:column;padding:0 15px;justify-content:center;overflow:hidden;position:relative;padding-left:50px;max-width:65vw;padding-top:8px;padding-bottom:8px;"," ","{max-width:unset;padding-top:0;padding-bottom:0;width:100%;border-right:1px solid ",";padding-left:75px;}a{margin-bottom:0;text-decoration:none;}"],t.style.footer.variant==="b"?"":`&:after {
11      content: '';
12      position: absolute;
13      right: 0;
14      height: 100%;
15      width: 25%;
16      background: linear-gradient(to right, ${l(t.colours.background.c,0)} 50%,${l(t.colours.background.c,1)} 100%);
17    }`,n(t.breakpoints.a),t.colours.text.primary)),J=i.div.withConfig({displayName:"PersistentContactBarstyles__ImageWrapper",componentId:"sc-1qg4d0e-5"})(["",""],({theme:t})=>s(["position:absolute;left:3%;top:50%;margin-top:-15px;height:30px;width:30px;border-radius:",";max-width:30px;"," overflow:hidden;","{left:0;height:64px;width:64px;max-width:64px;margin-top:0;top:",";}img{max-width:30px;","{max-width:64px;}}"],t.style.radius.avatar,t.style.footer.variant==="b"?"":`border: 1px solid ${t.colours.link.default};`,n(t.breakpoints.a),t.style.footer.variant==="b"?"-16px":"-24px",n(t.breakpoints.a))),K=i.h5.withConfig({displayName:"PersistentContactBarstyles__Name",componentId:"sc-1qg4d0e-6"})(["",""],({theme:t})=>s([""," margin:0;white-space:nowrap;"],t.style.footer.variant==="b"?"":`color: ${t.colours.link.default};
17`)),O=i.span.withConfig({displayName:"PersistentContactBarstyles__Partner",componentId:"sc-1qg4d0e-7"})([""," ",""],u,({theme:t})=>s(["color:",";white-space:nowrap;font-weight:600;line-height:1;"],t.colours.text.secondary)),Q=i(D).withConfig({displayName:"PersistentContactBarstyles__PartnerContactButton",componentId:"sc-1qg4d0e-8"})([""," ",";"],u,({theme:t})=>`
18    margin: 0;
19    width: 100%;
20    background-color: ${t.colours.button.primary.background};
21    ${t.style.footer.variant==="b"?"":`color: ${t.colours.button.primary.text};`}
22    text-transform: ${t.style.footer.variant==="b"?"none":"uppercase"};
23    font-weight: 500;
24  
25    &:hover {
26      ${t.style.footer.variant==="b"?`color: ${t.colours.button.primary.background};`:`background-color: ${l(t.colours.button.primary.background,1)};
27          box-shadow: inset 0px 0px 400px 110px rgba(0, 0, 0, .1);`}
28    }
29
30    ${n(t.breakpoints.b)}{
31      padding: 6px 10px;
32      width: auto;
33    }
34  `),U=i(R).withConfig({displayName:"PersistentContactBarstyles__ContactLinkButton",componentId:"sc-1qg4d0e-9"})([""," ",";"],u,({theme:t})=>`
35    font-size: 16px;
36    font-weight: 500;
37    line-height: 1.15;
38    margin: 0;
39    width: 100%;
40    background-color: ${l(t.colours.button.primary.background,.4)};
41    color: ${t.style.footer.variant==="b"?t.colours.text.primary:t.colours.link.default};
42    justify-content: center;
43    transition: background-color 0.5s ease-in-out;
44    padding: 13px 20px;
45
46    &:hover {
47      background-color: ${l(t.colours.button.primary.background,.7)};
48      color: ${t.colours.link.default};
49      ${n(t.breakpoints.a)}{
50        background: transparent;
51      }
52    }
53
54    ${n(t.breakpoints.b)}{
55      width: auto;
56      line-height: 1.75;
57      margin-right: 7px;
58      background: transparent;
59      padding: 4px 8px;
60      margin-bottom: 0;
61    }
62
63    svg {
64      path {
65        ${t.style.footer.variant==="b"?"":`fill: ${t.colours.link.default};`}
66      }
67    }
68  `),X=i.button.withConfig({displayName:"PersistentContactBarstyles__ToggleButton",componentId:"sc-1qg4d0e-10"})([""," ",""],A,({theme:t,$buttonVisibility:a})=>s(["width:auto;padding:6px 8px;margin:0;display:flex;align-items:center;font-size:12px;line-height:21px;margin-left:15px;font-weight:500;"," ","{line-height:14px;padding:8px;}","{display:none;}svg{margin-right:0 !important;margin-left:5px;transition:all 0.5s ease-in-out;path{fill:",";}}&:hover{svg{fill:",";}}"],a?`
69          background-color: ${t.colours.button.primary.background};
70        `:"",n(t.breakpoints.a),n(t.breakpoints.b),t.style.footer.variant==="b"?t.colours.button.primary.text:"white",t.style.footer.variant==="b"?t.colours.button.primary.background:"")),tt=i.span.withConfig({displayName:"PersistentContactBarstyles__ToggleButtonContainer",componentId:"sc-1qg4d0e-11"})(["",""],({theme:t})=>s(["cursor:pointer;padding-top:8px;padding-bottom:8px;padding-right:5%;","{padding-right:0;padding-top:0;padding-bottom:0;}"],n(t.breakpoints.a))),ot=({image:t,name:a,partner:c,contact:x,isHidden:k,partnerPageUrl:f,dispatchToggleModal:w,dispatchUpdateActiveForm:C,businessUnit:v=!1})=>{const _=H(),e=V(),[B,j]=y.useState(e),[d,g]=y.useState(e!=="mobile"&&e!=="tablet");e!==B&&(j(e),g(e!=="mobile"&&e!=="tablet"));const I=()=>{w(),C(null),p("contact_online_click",{position:"sticky banner"}),p("form_view",{form_step:"overview"})};return o.jsx(E,{$isHidden:k,children:o.jsxs(W,{children:[o.jsxs(Y,{children:[o.jsx(z,{condition:!!f,wrapper:r=>o.jsx(N,{onClick:()=>{p("profile_click",{position:"sticky banner"})},href:f,children:r}),children:o.jsxs(o.Fragment,{children:[!v&&o.jsx(J,{children:t&&(t!=null&&t.url)?o.jsx(S,{url:t==null?void 0:t.url,alt:(t==null?void 0:t.altText)||"alt text",ratio:[1,1],noAnimation:!0}):o.jsx("img",{src:F.person,alt:"default partner img placeholder"})}),o.jsxs(G,{children:[o.jsx("span",{children:a&&o.jsx(K,{dangerouslySetInnerHTML:{__html:b(a)}})}),c&&c!==a&&o.jsx(O,{dangerouslySetInnerHTML:{__html:b(c)}})]})]})}),o.jsx(tt,{onClick:()=>g(!d),children:o.jsxs(X,{$buttonVisibility:d,onClick:()=>g(!d),children:["Contact",e==="tablet"&&o.jsx(m,{icon:d?"close-small":"chevron-up-small",height:"14px",width:"14px",marginRight:"5px"})]})})]}),x&&_&&o.jsxs(Z,{$buttonVisibility:d,children:[x.map((r,$)=>o.jsxs(U,{href:r.url,target:r.target,...r.target==="_blank"&&{rel:"noopener noreferrer"},onClick:()=>{h[r.icon]&&p(h[r.icon],{position:"sticky banner",contact_detail:r.url})},children:[o.jsx(m,{icon:r.icon,height:"20px",width:"20px",marginRight:"5px"}),o.jsx("span",{dangerouslySetInnerHTML:{__html:b(r.text)}})]},$)),o.jsx(Q,{onClick:()=>I(),children:"Contact online"})]})]})})},nt=t=>({isHidden:t.contactbar.isHidden}),it=t=>({dispatchToggleModal:()=>t(M()),dispatchUpdateActiveForm:a=>t(L(a))}),wt=P(nt,it)(ot);export{wt as default};
71//# sourceMappingURL=PersistentContactBar-B2yA_y2Y.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.