PageSourceSearch

https://los.liftfund.com/v1/lf-borrower/npm.react-avatar.4d19bda308de05a6e7c0.js

js liftfund.com collected 2026-10-02 05:09:25 UTC 16,925 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklos_borrower_portal_liftfund=self.webpackChunklos_borrower_portal_liftfund||[]).push([[457],{53259:(t,e,r)=>{r.d(e,{Ay:()=>tI});var n=r(58168),o=r(40975),i=r.n(o),a=r(96540),s=r(23029),u=r(92901),c=r(76660),l=r.n(c),p=r(22616),f=r.n(p),h=r(6686),v=r.n(h),d="failing",y=function(){try{return"localStorage"in window&&window.localStorage}catch(t){return!1}}(),A=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,t);var r=e.cachePrefix,n=e.sourceTTL,o=e.sourceSize;this.cachePrefix=void 0===r?"react-avatar/":r,this.sourceTTL=void 0===n?6048e5:n,this.sourceSize=void 0===o?20:o}return(0,u.A)(t,[{key:"set",value:function(t,e){if(y){e=l()(e);try{localStorage.setItem(this.cachePrefix+t,e)}catch(t){console.error(t)}}}},{key:"get",value:function(t){if(!y)return null;var e=localStorage.getItem(this.cachePrefix+t);return e?JSON.parse(e):null}},{key:"sourceFailed",value:function(t){var e=this.get(d)||[];return(e=f()(e).call(e,function(e){var r=e.expires>0&&e.expires<Date.now(),n=e===t||e.url==t;return!r&&!n})).unshift({url:t,expires:Date.now()+this.sourceTTL}),e=v()(e).call(e,0,this.sourceSize-1),this.set(d,e)}},{key:"hasSourceFailedBefore",value:function(t){return(this.get(d)||[]).some(function(e){var r=e.expires>0&&e.expires<Date.now();return(e===t||e.url==t)&&!r})}}]),t}();let m=new A;var g=r(5177),b=r.n(g),C=r(85501),x=r(56822),k=r(53954),T=r(64467),N=r(76490),w=r.n(N),z=r(5556),E=r.n(z),P=r(5544),R=r(60436),_=r(98894),O=r.n(_),S=r(79528),B=r.n(S),I=r(86462),j=r.n(I),F=r(25411),U=r.n(F)()(),D=["#A62A21","#7e3794","#0B51C1","#3A6024","#A81563","#B3003C"],H=/^([-+]?(?:\d+(?:\.\d+)?|\.\d+))([a-z]{2,4}|%)?$/;function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;if(!t)return"transparent";var r=function(t,e){for(var r,n=O()(r=(0,R.A)(t)).call(r,function(t){return t.charCodeAt(0)}),o=n.length,i=o%(e-1)+1,a=B()(n).call(n,function(t,e){return t+e})%e,s=n[0]%e,u=0;u<o;u++)s=(i*s+a)%e;return s}(t,e.length);return e[r]}function L(t){t=""+t;var e=H.exec(t)||[],r=(0,P.A)(e,3),n=r[1],o=void 0===n?0:n,i=r[2],a=void 0===i?"px":i;return{value:j()(o),str:o+a,unit:a}}function W(t){return t=isNaN((t=L(t)).value)?512:"px"===t.unit?t.value:0===t.value?0:512,U&&(t*=2),t}function $(t,e){var r,n,o,i=e.maxInitials;return v()(r=f()(n=O()(o=t.split(/\s/)).call(o,function(t){return t.substring(0,1).toUpperCase()})).call(n,function(t){return!!t})).call(r,0,i).join("").toUpperCase()}var V={};function J(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0;n<e.length;n++){var o=e[n];if(o||""===o)return o;if(!1===o||null===o)return null}}function q(t){return!0===t?"100%":!1!==t?t:void 0}var G={cache:m,colors:D,initials:$,avatarRedirectUrl:null},K=w()(G),Q=a.createContext&&a.createContext(),X=!Q,Y=X?null:Q.Consumer,Z=a.forwardRef||function(t){return t},tt=function(t){(0,C.A)(n,t);var e,r=(e=function(){if("undefined"==typeof Reflect||!b()||b().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(b()(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,k.A)(n);if(e){var o=(0,k.A)(this).constructor;t=b()(r,arguments,o)}else t=r.apply(this,arguments);return(0,x.A)(this,t)});function n(){return(0,s.A)(this,n),r.apply(this,arguments)}return(0,u.A)(n,[{key:"_getContext",value:function(){var t=this,e={};return K.forEach(function(r){void 0!==t.props[r]&&(e[r]=t.props[r])}),e}},{key:"render",value:function(){var t=this.props.children;return X?a.Children.only(t):a.createElement(Q.Provider,{value:this._getContext()},a.Children.only(t))}}]),n}(a.Component);(0,T.A)(tt,"displayName","ConfigProvider"),(0,T.A)(tt,"propTypes",{cache:E().object,colors:E().arrayOf(E().string),initials:E().func,avatarRedirectUrl:E().string,children:E().node});var te=function(t){function e(e,r){if(X){var o=r&&r.reactAvatar;return a.createElement(t,(0,n.A)({},G,o,e))}return a.createElement(Y,null,function(o){return a.createElement(t,(0,n.A)({ref:r},G,o,e))})}return e.contextTypes=tt.childContextTypes,Z(e)};X&&(tt.childContextTypes={reactAvatar:E().object},tt.prototype.getChildContext=function(){return{reactAvatar:this._getContext()}});var tr=r(9417),tn=r(69563),to=r.n(tn),ti=r(46513),ta=r.n(ti),ts=r(93220),tu=r.n(ts),tc=r(9703),tl=r.n(tc),tp=r(68251),tf=r.n(tp),th=function(){function t(){(0,s.A)(this,t),this.sourcePointer=0,this.active=!0,this.fetch=null}return(0,u.A)(t,[{key:"isActive",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.internal===this&&!!this.fetch&&!0===this.active}}]),t}();function tv(t,e){var r=w()(t);if(to()){var n=to()(t);e&&(n=f()(n).call(n,function(e){return ta()(t,e).enumerable})),r.push.apply(r,n)}return r}function td(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?tv(Object(r),!0).forEach(function(e){(0,T.A)(t,e,r[e])}):tu()?tl()(t,tu()(r)):tv(Object(r)).forEach(function(e){tf()(t,e,ta()(r,e))})}return t}function ty(t,e){var r=w()(t);if(to()){var n=to()(t);e&&(n=f()(n).call(n,function(e){return ta()(t,e).enumerable})),r.push.apply(r,n)}return r}var tA=function(t){(0,C.A)(n,t);var e,r=(e=function(){if("undefined"==typeof Reflect||!b()||b().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(b()(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,k.A)(n);if(e){var o=(0,k.A)(this).constructor;t=b()(r,arguments,o)}else t=r.apply(this,arguments);return(0,x.A)(this,t)});function n(){return(0,s.A)(this,n),r.apply(this,arguments)}return(0,u.A)(n,[{key:"render",value:function(){var t=this.props,e=t.className,r=t.unstyled,n=t.round,o=t.style,i=t.avatar,s=t.onClick,u=t.children,c=i.sourceName,l=L(this.props.size),p=r?null:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ty(Object(r),!0).forEach(function(e){(0,T.A)(t,e,r[e])}):tu()?tl()(t,tu()(r)):ty(Object(r)).forEach(function(e){tf()(t,e,ta()(r,e))})}return t}({display:"inline-block",verticalAlign:"middle",width:l.str,height:l.str,borderRadius:q(n),fontFamily:"Helvetica, Arial, sans-serif"},o),f=[e,"sb-avatar"];if(c){var h=c.toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"");f.push("sb-avatar--"+h)}return a.createElement("div",{className:f.join(" "),onClick:s,style:p},u)}}]),n}(a.PureComponent);(0,T.A)(tA,"propTypes",{className:E().string,round:E().oneOfType([E().bool,E().string]),style:E().object,size:E().oneOfType([E().number,E().string]),unstyled:E().bool,avatar:E().object,onClick:E().func,children:E().node});var tm=function(t){(0,C.A)(n,t);var e,r=(e=function(){if("undefined"==typeof Reflect||!b()||b().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(b()(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,k.A)(n);if(e){var o=(0,k.A)(this).constructor;t=b()(r,arguments,o)}else t=r.apply(this,arguments);return(0,x.A)(this,t)});function n(){return(0,s.A)(this,n),r.apply(this,arguments)}return(0,u.A)(n,[{key:"render",value:function(){var t=this.props,e=t.className,r=t.round,n=t.unstyled,o=t.alt,i=t.title,s=t.name,u=t.value,c=t.avatar,l=L(this.props.size),p=n?null:{maxWidth:"100%",width:l.str,height:l.str,borderRadius:q(r)};return a.createElement(tA,this.props,a.createElement("img",{className:e+" sb-avatar__image",width:l.str,height:l.str,style:p,src:c.src,alt:J(o,s||u),title:J(i,s||u),onError:c.onRenderFailed}))}}]),n}(a.PureComponent);(0,T.A)(tm,"propTypes",{alt:E().oneOfType([E().string,E().bool]),title:E().oneOfType([E().string,E().bool]),name:E().string,value:E().string,avatar:E().object,className:E().string,unstyled:E().bool,round:E().oneOfType([E().bool,E().string,E().number]),size:E().oneOfType([E().number,E().string])}),(0,T.A)(tm,"defaultProps",{className:"",round:!1,size:100,unstyled:!1});var tg=r(50530),tb=r.n(tg),tC=function(t){(0,C.A)(n,t);var e,r=(e=function(){if("undefined"==typeof Reflect||!b()||b().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(b()(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,k.A)(n);if(e){var o=(0,k.A)(this).constructor;t=b()(r,arguments,o)}else t=r.apply(this,arguments);return(0,x.A)(this,t)});function n(){(0,s.A)(this,n);for(var t,e,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r.call.apply(r,tb()(t=[this]).call(t,i)),(0,T.A)((0,tr.A)(e),"_scaleTextNode",function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=e.props,o=n.unstyled,i=n.textSizeRatio,a=n.textMarginRatio,s=n.avatar;if(e._node=t,t&&t.parentNode&&!o&&!s.src&&e._mounted){var u=t.parentNode,c=u.parentNode,l=u.getBoundingClientRect(),p=l.width,f=l.height;if(0==p&&0==f){var h=Math.min(1.5*r,500);!function(t,e){if(V[e]){V[e].push(t);return}var r=V[e]=[t];setTimeout(function(){delete V[e],r.forEach(function(t){return t()})},e)}(function(){return e._scaleTextNode(t,h)},h);return}c.style.fontSize||(c.style.fontSize="".concat(f/i,"px")),u.style.fontSize=null;var v=t.getBoundingClientRect().width;if(!(v<0)){var d=p*(1-2*a);v>d&&(u.style.fontSize="calc(1em * ".concat(d/v,")"))}}}),e}
1return(0,u.A)(n,[{key:"componentDidMount",value:function(){this._mounted=!0,this._scaleTextNode(this._node)}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"render",value:function(){var t=this.props,e=t.className,r=t.round,n=t.unstyled,o=t.title,i=t.name,s=t.value,u=t.avatar,c=L(this.props.size),l=n?null:{width:c.str,height:c.str,lineHeight:"initial",textAlign:"center",color:this.props.fgColor,background:u.color,borderRadius:q(r)},p=[u.value,this.props.size].join("");return a.createElement(tA,this.props,a.createElement("div",{className:e+" sb-avatar__text",style:l,title:J(o,i||s)},a.createElement("div",{style:n?null:{display:"table",tableLayout:"fixed",width:"100%",height:"100%"}},a.createElement("span",{style:n?null:{display:"table-cell",verticalAlign:"middle",fontSize:"100%",whiteSpace:"nowrap"}},a.createElement("span",{ref:this._scaleTextNode,key:p},u.value)))))}}]),n}(a.PureComponent);(0,T.A)(tC,"propTypes",{name:E().string,value:E().string,avatar:E().object,title:E().oneOfType([E().str
1ing,E().bool]),className:E().string,unstyled:E().bool,fgColor:E().string,textSizeRatio:E().number,textMarginRatio:E().number,round:E().oneOfType([E().bool,E().string,E().number]),size:E().oneOfType([E().number,E().string])}),(0,T.A)(tC,"defaultProps",{className:"",fgColor:"#FFF",round:!1,size:100,textSizeRatio:3,textMarginRatio:.15,unstyled:!1});var tx=r(83503),tk=r.n(tx),tT=(0,u.A)(function t(e){var r=this;(0,s.A)(this,t),(0,T.A)(this,"props",null),(0,T.A)(this,"isCompatible",function(){return!!r.props.email||!!r.props.md5Email}),(0,T.A)(this,"get",function(t){var e=r.props,n=e.md5Email||tk()(e.email),o=W(e.size),i="https://secure.gravatar.com/avatar/".concat(n,"?d=404");o&&(i+="&s=".concat(o)),t({sourceName:"gravatar",src:i})}),this.props=e});(0,T.A)(tT,"propTypes",{email:E().string,md5Email:E().string});var tN=(0,u.A)(function t(e){var r=this;(0,s.A)(this,t),(0,T.A)(this,"props",null),(0,T.A)(this,"isCompatible",function(){return!!r.props.facebookId}),(0,T.A)(this,"get",function(t){var e,n=r.props.facebookId,o=W(r.props.size),i="https://graph.facebook.com/".concat(n,"/picture");o&&(i+=tb()(e="?width=".concat(o,"&height=")).call(e,o)),t({sourceName:"facebook",src:i})}),this.props=e});(0,T.A)(tN,"propTypes",{facebookId:E().string});var tw=(0,u.A)(function t(e){var r=this;(0,s.A)(this,t),(0,T.A)(this,"props",null),(0,T.A)(this,"isCompatible",function(){return!!r.props.githubHandle}),(0,T.A)(this,"get",function(t){var e=r.props.githubHandle,n=W(r.props.size),o="https://avatars.githubusercontent.com/".concat(e,"?v=4");n&&(o+="&s=".concat(n)),t({sourceName:"github",src:o})}),this.props=e});(0,T.A)(tw,"propTypes",{githubHandle:E().string});var tz=(0,u.A)(function t(e){var r=this;(0,s.A)(this,t),(0,T.A)(this,"props",null),(0,T.A)(this,"isCompatible",function(){return!!r.props.skypeId}),(0,T.A)(this,"get",function(t){var e=r.props.skypeId;t({sourceName:"skype",src:"https://api.skype.com/users/".concat(e,"/profile/avatar")})}),this.props=e});(0,T.A)(tz,"propTypes",{skypeId:E().string});var tE=function(){function t(e){var r=this;(0,s.A)(this,t),(0,T.A)(this,"props",null),(0,T.A)(this,"isCompatible",function(){return!!(r.props.name||r.props.value||r.props.email)}),(0,T.A)(this,"get",function(t){var e=r.getValue();if(!e)return t(null);t({sourceName:"text",value:e,color:r.getColor()})}),this.props=e}return(0,u.A)(t,[{key:"getInitials",value:function(){var t=this.props,e=t.name,r=t.initials;return"string"==typeof r?r:"function"==typeof r?r(e,this.props):$(e,this.props)}},{key:"getValue",value:function(){return this.props.name?this.getInitials():this.props.value?this.props.value:null}},{key:"getColor",value:function(){var t=this.props,e=t.color,r=t.colors,n=t.name,o=t.email,i=t.value;return e||M(n||o||i,r)}}]),t}();(0,T.A)(tE,"propTypes",{color:E().string,name:E().string,value:E().string,email:E().string,maxInitials:E().number,initials:E().oneOfType([E().string,E().func])});var tP=(0,u.A)(function t(e){var r=this;(0,s.A)(this,t),(0,T.A)(this,"props",null),(0,T.A)(this,"isCompatible",function(){return!!r.props.src}),(0,T.A)(this,"get",function(t){t({sourceName:"src",src:r.props.src})}),this.props=e});(0,T.A)(tP,"propTypes",{src:E().string});var tR=(0,u.A)(function t(e){var r=this;(0,s.A)(this,t),(0,T.A)(this,"props",null),(0,T.A)(this,"icon","✷"),(0,T.A)(this,"isCompatible",function(){return!0}),(0,T.A)(this,"get",function(t){var e=r.props,n=e.color,o=e.colors;t({sourceName:"icon",value:r.icon,color:n||M(r.icon,o)})}),this.props=e});function t_(t,e){var r;return r=(0,u.A)(function r(n){var o=this;(0,s.A)(this,r),(0,T.A)(this,"props",null),(0,T.A)(this,"isCompatible",function(){return!!o.props.avatarRedirectUrl&&!!o.props[e]}),(0,T.A)(this,"get",function(r){var n,i,a,s=o.props.avatarRedirectUrl,u=W(o.props.size),c=s.replace(/\/*$/,"/"),l=o.props[e],p=tb()(n=tb()(i=tb()(a="".concat(c)).call(a,t,"/")).call(i,l,"?")).call(n,u?"size=".concat(u):"");r({sourceName:t,src:p})}),this.props=n}),(0,T.A)(r,"propTypes",(0,T.A)({},e,E().oneOfType([E().string,E().number]))),r}(0,T.A)(tR,"propTypes",{color:E().string});let tO=t_("twitter","twitterHandle"),tS=t_("vkontakte","vkontakteId"),tB=t_("instagram","instagramId"),tI=function(t){var e,r,o,c,l=(r=void 0===(e=t.sources)?[]:e,o=B()(r).call(r,function(t,e){return i()(t,e.propTypes)},{}),c=function(t){(0,C.A)(i,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!b()||b().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(b()(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,k.A)(i);if(e){var n=(0,k.A)(this).constructor;t=b()(r,arguments,n)}else t=r.apply(this,arguments);return(0,x.A)(this,t)});function i(t){var e;return(0,s.A)(this,i),e=n.call(this,t),(0,T.A)((0,tr.A)(e),"_createFetcher",function(t){return function(n){var o=e.props.cache;if(t.isActive(e.state)){n&&"error"===n.type&&o.sourceFailed(n.target.src);var i=t.sourcePointer;if(r.length!==i){var a=r[i];t.sourcePointer++,function(t,e,r){var n=e.cache,o=new t(e);if(!o.isCompatible(e))return r();o.get(function(t){!(t&&t.src&&n.hasSourceFailedBefore(t.src))&&t?r(t):r()})}(a,e.props,function(r){if(!r)return setTimeout(t.fetch,0);t.isActive(e.state)&&(r=td({src:null,value:null,color:null},r),e.setState(function(e){return t.isActive(e)?r:{}}))})}}}}),(0,T.A)((0,tr.A)(e),"fetch",function(){var t=new th;t.fetch=e._createFetcher(t),e.setState({internal:t},t.fetch)}),e.state={internal:null,src:null,value:null,color:t.color},e}
1return(0,u.A)(i,[{key:"componentDidMount",value:function(){this.fetch()}},{key:"componentDidUpdate",value:function(t){var e=!1;for(var r in o)e=e||t[r]!==this.props[r];e&&setTimeout(this.fetch,0)}},{key:"componentWillUnmount",value:function(){this.state.internal&&(this.state.internal.active=!1)}},{key:"render",value:function(){var t=this.props,e=t.children,r=t.propertyName,n=this.state,o=n.src,i=n.value,s=n.color,u=n.sourceName,c=n.internal,l={src:o,value:i,color:s,sourceName:u,onRenderFailed:function(){return c&&c.fetch()}};if("function"==typeof e)return e(l);var p=a.Children.only(e);return a.cloneElement(p,(0,T.A)({},r,l))}}]),i}(a.PureComponent),(0,T.A)(c,"displayName","AvatarDataProvider"),(0,T.A)(c,"propTypes",td(td({},o),{},{cache:E().object,propertyName:E().string})),(0,T.A)(c,"defaultProps",{propertyName:"avatar"}),(0,T.A)(c,"Cache",A),(0,T.A)(c,"ConfigProvider",tt),i()(te(c),{ConfigProvider:tt,Cache:A})),p=te(a.forwardRef(function(t,e){return a.createElement(l,(0,n.A)({},t,{propertyName:"avatar"}),function(r){var o=r.src?tm:tC;return a.createElement(o,(0,n.A)({},t,{avatar:r,ref:e}))})}));return i()(p,{getRandomColor:M,ConfigProvider:tt,Cache:A})}({sources:[tN,t_("google","googleId"),tw,tO,tB,tS,tz,tT,tP,tE,tR]})}}]);

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.