PageSourceSearch

https://my.account.bestinvest.co.uk/assets/index-BfxpIYC-.js

js bestinvest.co.uk collected 2026-10-01 14:43:35 UTC 9,025 bytes, 1 lines download raw bytes

1import{cA as Be,r,_ as O,cF as Y,a0 as p,Z as te,a1 as E,c8 as De,$ as Fe,bZ as ee,ay as He,fh as Q,fi as Ke}from"./index-DWQoA3oW.js";const Ve=Be(r.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),qe=Be(r.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));var L;function Te(){if(L)return L;var l=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",l.appendChild(e),l.dir="rtl",l.style.fontSize="14px",l.style.width="4px",l.style.height="1px",l.style.position="absolute",l.style.top="-1000px",l.style.overflow="scroll",document.body.appendChild(l),L="reverse",l.scrollLeft>0?L="default":(l.scrollLeft=1,l.scrollLeft===0&&(L="negative")),document.body.removeChild(l),L}function Ee(l,e){var u=l.scrollLeft;if(e!=="rtl")return u;var o=Te();switch(o){case"negative":return l.scrollWidth-l.clientWidth+u;case"reverse":return l.scrollWidth-l.clientWidth-u;default:return u}}function je(l){return(1+Math.sin(Math.PI*l-Math.PI/2))/2}function Oe(l,e,u){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},h=o.ease,f=h===void 0?je:h,m=o.duration,z=m===void 0?300:m,c=null,_=e[l],$=!1,D=function(){$=!0},F=function H(K){if($){v(new Error("Animation cancelled"));return}c===null&&(c=K);var R=Math.min(1,(K-c)/z);if(e[l]=f(R)*(u-_)+_,R>=1){requestAnimationFrame(function(){v(null)});return}requestAnimationFrame(H)};return _===u?(v(new Error("Element already at target position")),D):(requestAnimationFrame(F),D)}var Xe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ze(l){var e=l.onChange,u=O(l,["onChange"]),o=r.useRef(),v=r.useRef(null),h=function(){o.current=v.current.offsetHeight-v.current.clientHeight};return r.useEffect(function(){var f=Y(function(){var m=o.current;h(),m!==o.current&&e(o.current)});return window.addEventListener("resize",f),function(){f.clear(),window.removeEventListener("resize",f)}},[e]),r.useEffect(function(){h(),e(o.current)},[e]),r.createElement("div",p({style:Xe,ref:v},u))}var Ue=function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}},Ge=r.forwardRef(function(e,u){var o=e.classes,v=e.className,h=e.color,f=e.orientation,m=O(e,["classes","className","color","orientation"]);return r.createElement("span",p({className:E(o.root,o["color".concat(De(h))],v,f==="vertical"&&o.vertical),ref:u},m))});const Je=te(Ue,{name:"PrivateTabIndicator"})(Ge);var Qe={root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},Ye=r.createElement(Ve,{fontSize:"small"}),et=r.createElement(qe,{fontSize:"small"}),tt=r.forwardRef(function(e,u){var o=e.classes,v=e.className,h=e.direction,f=e.orientation,m=e.disabled,z=O(e,["classes","className","direction","orientation","disabled"]);return r.createElement(Fe,p({component:"div",className:E(o.root,v,m&&o.disabled,f==="vertical"&&o.vertical),ref:u,role:null,tabIndex:null},z),h==="left"?Ye:et)});const rt=te(Qe,{name:"MuiTabScrollButton"})(tt);var at=function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:ee({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}},lt=r.forwardRef(function(e,u){var o=e["aria-label"],v=e["aria-labelledby"],h=e.action,f=e.centered,m=f===void 0?!1:f,z=e.children,c=e.classes,_=e.className,$=e.component,D=$===void 0?"div":$,F=e.indicatorColor,H=F===void 0?"secondary":F,K=e.onCh
1ange,R=e.orientation,w=R===void 0?"horizontal":R,re=e.ScrollButtonComponent,ae=re===void 0?rt:re,le=e.scrollButtons,B=le===void 0?"auto":le,xe=e.selectionFollowsFocus,ne=e.TabIndicatorProps,oe=ne===void 0?{}:ne,ie=e.TabScrollButtonProps,ce=e.textColor,Me=ce===void 0?"inherit":ce,X=e.value,se=e.variant,ue=se===void 0?"standard":se,Ne=O(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),V=He(),W=ue==="scrollable",C=V.direction==="rtl",b=w==="vertical",q=b?"scrollTop":"scrollLeft",S=b?"top":"left",j=b?"bottom":"right",de=b?"clientHeight":"clientWidth",A=b?"height":"width",ve=r.useState(!1),fe=ve[0],ke=ve[1],he=r.useState({}),T=he[0],me=he[1],be=r.useState({start:!1,end:!1}),x=be[0],Ie=be[1],ge=r.useState({overflow:"hidden",marginBottom:null}),Le=ge[0],ze=ge[1],ye=new Map,y=r.useRef(null),M=r.useRef(null),Se=function(){var t=y.current,a;if(t){var i=t.getBoundingClientRect();a={clientWidth:t.clientWidth,scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollLeftNormalized:Ee(t,V.direction),scrollWidth:t.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}var s;if(t&&X!==!1){var g=M.current.children;if(g.length>0){var d=g[ye.get(X)];s=d?d.getBoundingClientRect():null}}return{tabsMeta:a,tabMeta:s}},P=Q(function(){var n,t=Se(),a=t.tabsMeta,i=t.tabMeta,s=0;if(i&&a)if(b)s=i.top-a.top+a.scrollTop;else{var g=C?a.scrollLeftNormalized+a.clientWidth-a.scrollWidth:a.scrollLeft;s=i.left-a.left+g}var d=(n={},ee(n,S,s),ee(n,A,i?i[A]:0),n);if(isNaN(T[S])||isNaN(T[A]))me(d);else{var k=Math.abs(T[S]-d[S]),I=Math.abs(T[A]-d[A]);(k>=1||I>=1)&&me(d)}}),Z=function(t){Oe(q,y.current,t)},pe=function(t){var a=y.current[q];b?a+=t:(a+=t*(C?-1:1),a*=C&&Te()==="reverse"?-1:1),Z(a)},_e=function(){pe(-y.current[de])},$e=function(){pe(y.current[de])},Re=r.useCallback(function(n){ze({overflow:null,marginBottom:-n})},[]),We=function(){var t={};t.scrollbarSizeListener=W?r.createElement(Ze,{className:c.scrollable,onChange:Re}):null;var a=x.start||x.end,i=W&&(B==="auto"&&a||B==="desktop"||B==="on");return t.scrollButtonStart=i?r.createElement(ae,p({orientation:w,direction:C?"right":"left",onClick:_e,disabled:!x.start,className:E(c.scrollButtons,B!=="on"&&c.scrollButtonsDesktop)},ie)):null,t.scrollButtonEnd=i?r.createElement(ae,p({orientation:w,direction:C?"left":"right",onClick:$e,disabled:!x.end,className:E(c.scrollButtons,B!=="on"&&c.scrollButtonsDesktop)},ie)):null,t},we=Q(function(){var n=Se(),t=n.tabsMeta,a=n.tabMeta;if(!(!a||!t)){if(a[S]<t[S]){var i=t[q]+(a[S]-t[S]);Z(i)}else if(a[j]>t[j]){var s=t[q]+(a[j]-t[j]);Z(s)}}}),N=Q(function(){if(W&&B!=="off"){var n=y.current,t=n.scrollTop,a=n.scrollHeight,i=n.clientHeight,s=n.scrollWidth,g=n.clientWidth,d,k;if(b)d=t>1,k=t<a-i-1;else{var I=Ee(y.current,V.direction);d=C?I<s-g-1:I>1,k=C?I>1:I<s-g-1}(d!==x.start||k!==x.end)&&Ie({start:d,end:k})}});r.useEffect(function(){var n=Y(function(){P(),N()}),t=Ke(y.current);return t.addEventListener("resize",n),function(){n.clear(),t.removeEventListener("resize",n)}},[P,N]);var U=r.useCallback(Y(function(){N()}));r.useEffect(function(){return function(){U.clear()}},[U]),r.useEffect(function(){ke(!0)},[]),r.useEffect(function(){P(),N()}),r.useEffect(function(){we()},[we,T]),r.useImperativeHandle(h,function(){return{updateIndicator:P,updateScrollButtons:N}},[P,N]);var Ce=r.createElement(Je,p({className:c.indicator,orientation:w,color:H},oe,{style:p({},T,oe.style)})),G=0,Ae=r.Children.map(z,function(n){if(!r.isValidElement(n))return null;var t=n.props.value===void 0?G:n.props.value;ye.set(t,G);var a=t===X;return G+=1,r.cloneElement(n,{fullWidth:ue==="fullWidth",indicator:a&&!fe&&Ce,selected:a,selectionFollowsFocus:xe,onChange:K,textColor:Me,value:t})}),Pe=function(t){var a=t.target,i=a.getAttribute("role");if(i==="tab"){var s=null,g=w!=="vertical"?"ArrowLeft":"ArrowUp",d=w!=="vertical"?"ArrowRight":"ArrowDown";switch(w!=="vertical"&&V.direction==="rtl"&&(g="ArrowRight",d="ArrowLeft"),t.key){case g:s=a.previousElementSibling||M.current.lastChild;break;case d:s=a.nextElementSibling||M.current.firstChild;break;case"Home":s=M.current.firstChild;break;case"End":s=M.current.lastChild;break}s!==null&&(s.focus(),t.preventDefault())}},J=We();return r.createElement(D,p({className:E(c.root,_,b&&c.vertical),ref:u},Ne),J.scrollButtonStart,J.scrollbarSizeListener,r.createElement("div",{className:E(c.scroller,W?c.scrollable:c.fixed),style:Le,ref:y,onScroll:U},r.createElement("div",{"aria-label":o,"aria-labelledby":v,className:E(c.flexContainer,b&&c.flexContainerVertical,m&&!W&&c.centered),onKeyDown:Pe,ref:M,role:"tablist"},Ae),fe&&Ce),J.scrollButtonEnd)});const ot=te(at,{name:"MuiTabs"})(lt);export{ot as default};

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.