PageSourceSearch

https://simplywall.st/static/js/FloatingAddToWatchlist.modern.cf2d75f7.js

js simplywall.st collected 2026-09-24 08:32:31 UTC 7,695 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1170745c-a887-5325-85a8-fcfae248838d")}catch(e){}}();
3(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9178],{69290:function(e,t,r){r.r(t),r.d(t,{FloatingAddToWatchlist:function(){return g}});var n=r(26199),a=r.n(n),o=(r(15209),r(30782),r(51305),r(28379),r(2730),r(91662),r(2350),r(40458)),i=r(91880),c=r(4627),s=r(83406),l=r(88234),u=r(61860),p=r(88718),f=r(78747),d=r(17020),y=r(13048),h=r(71552),m=r(47364),v=r(80980),b=(0,s.Ay)({resolved:{},chunkName:function(){return"components-Search-components-AlgoliaSearch"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return Promise.all([r.e(41770),r.e(36567),r.e(75036),r.e(33516),r.e(98307)]).then(r.bind(r,58811))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function(e){var t=this.resolve(e);return r(t)},resolve:function(){return 58811}}),g=function(e){var t,r=(0,o.c)(32),n=e.watchlist,s=(0,i.useState)(""),g=a()(s,2),O=g[0],j=g[1],k=(0,i.useState)(!1),w=a()(k,2),x=w[0],S=w[1],A=(0,i.useState)(!1),D=a()(A,2),P=D[0],_=D[1],L=(0,m.Hf)().data,E=(0,l.useDispatch)(),C=(0,y.J)(),N=C.addCompany,T=C.addCompanyStatus;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"track",subject:"footer"},r[0]=t):t=r[0];var I,q=(0,c.z1)(t),R=q.Track,B=q.trackEvent,H=n.id,z=n.items,U=n.itemsLimit;r[1]!==z.length||r[2]!==U||r[3]!==x||r[4]!==B?(I=function(){z.length!==U?(S(!x),B({type:"track",action:"click"})):_(!0)},r[1]=z.length,r[2]=U,r[3]=x,r[4]=B,r[5]=I):I=r[5];var W,F=I;r[6]===Symbol.for("react.memo_cache_sentinel")?(W=function(){S(!1)},r[6]=W):W=r[6];var G,M=W;r[7]!==N||r[8]!==H?(G=function(e){N({id:e,includeSnackBar:!0,watchlistId:H}),j(""),S(!1)},r[7]=N,r[8]=H,r[9]=G):G=r[9];var K,Y=G;r[10]!==Y?(K=function(e,t){return(0,v.jsx)("div",{className:"cursor-pointer",role:"button",onClick:function(){Y(t.uniqueSymbol)},children:e})},r[10]=Y,r[11]=K):K=r[11];var J,Z,$,Q,V,X,ee,te=K,re=x?"true":"false",ne="pending"===T;(r[12]===Symbol.for("react.memo_cache_sentinel")?(J=(0,v.jsx)(f.A,{}),r[12]=J):J=r[12],r[13]!==F||r[14]!==ne?(Z=(0,v.jsx)(p.$n,{className:"size-x7 rounded-full",onClick:F,isDisabled:ne,"aria-label":"Add to watchlist",children:J}),r[13]=F,r[14]=ne,r[15]=Z):Z=r[15],r[16]!==re||r[17]!==Z?($=(0,v.jsx)("div",{"aria-hidden":re,className:"fixed bottom-0 right-[max(calc(50vw-600px-72px),theme(space.x2))] z-20 mb-[env(safe-area-inset-bottom)] size-x7 -translate-y-x10 rounded-full aria-hidden:translate-y-x7",children:Z}),r[16]=re,r[17]=Z,r[18]=$):$=r[18],r[19]!==E||r[20]!==te||r[21]!==O||r[22]!==x?(Q=x&&(0,v.jsx)(u.aF,{isNaked:!0,onSecondaryClick:M,children:(0,v.jsx)(b,{onClose:M,onSearchResult:function(e,t){j(t),E(d.x.trigger(e))},onReset:function(){return j("")},query:O,primaryWrapper:te,secondaryWrapper:te})}),r[19]=E,r[20]=te,r[21]=O,r[22]=x,r[23]=Q):Q=r[23],r[24]!==P||r[25]!==(null==L?void 0:L.planType))?(V=P&&(0,v.jsxs)(h.default,{onClose:function(){return _(!1)},children:[(0,v.jsxs)("p",{className:"m-0 mb-x5 text-base font-semibold text-solid",children:["You've reached your watchlist limits on your"," ",null!==(X=null==L?void 0:L.planType)&&void 0!==X?X:"free"," plan"]}),(0,v.jsx)("h2",{className:"m-0 mt-x1 text-3xl font-bold text-solid",children:"Upgrade to access more Watchlists"})]}),r[24]=P,r[25]=null==L?void 0:L.planType,r[26]=V):V=r[26];return r[27]!==R||r[28]!==$||r[29]!==Q||r[30]!==V?(ee=(0,v.jsxs)(R,{children:[$,Q,V]}),r[27]=R,r[28]=$,r[29]=Q,r[30]=V,r[31]=ee):ee=r[31],ee}},73440:function(e,t,r){r.r(t),r.d(t,{default:function(){return O}});var n=r(56945),a=r.n(n),o=(r(33853),r(315),r(91662),r(28593),r(30782),r(12726),r(55303),r(55020),r(30155),r(73117),r(43948),r(67084),r(40458)),i=r(85120),c=r(40636),s=r(63635),l=r.n(s),u=r(61860),p=r(80980),f=["styleType"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
3t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h=r(15441);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e){switch(e){case"Asset to equity ratio":return"keyInfo.metric.bank.assetToEquityRatio";case"Net interest margin":return"keyInfo.metric.bank.netInterestMargin";case"Total deposits":return"keyInfo.metric.bank.totalDeposits";case"Loan to deposit ratio":return"keyInfo.metric.bank.loanDepositRatio";case"Bad loans":return"keyInfo.metric.bank.badLoans";case"Allowance for bad loans":return"keyInfo.metric.bank.allowanceForBadLoans";case"Current ratio":return"keyInfo.metric.bank.currentRatio";case"Cash & equivalents":return"keyInfo.metric.bank.cashEquivalents"}}function g(e){switch(e){case"Appropriate":case"Sufficient":case"Good":return"positive";case"High":case"Low":return"warning";default:return"none"}}var O=function(e){var t,r,n=(0,o.c)(21),a=e.canonicalURL,s=e.titleElement,d=void 0===s?"h3":s,m=(0,c.L)(a),O=m.keyMetrics,j=m.metrics,k=(0,h.C)();n[0]!==O||n[1]!==k?(n[3]!==k?(r=function(e){var t=b(e.title);return v(v({},e),{},{title:t?k(t):e.title})},n[3]=k,n[4]=r):r=n[4],t=O.map(r),n[0]=O,n[1]=k,n[2]=t):t=n[2];var w,x,S=t;n[5]!==j||n[6]!==k?(n[8]!==k?(x=function(e){var t=b(e.title),r=function(e){switch(e){case"Appropriate":return"badge.appropriate";case"Sufficient":return"badge.sufficient";case"Good":return"badge.good";case"High":return"badge.high";case"Low":return"badge.low";case"None":return"badge.none"}}(e.value);return v(v({},e),{},{title:t?k(t):e.title,value:r?k(r):e.value,styleType:g(e.value)})},n[8]=k,n[9]=x):x=n[9],w=j.map(x),n[5]=j,n[6]=k,n[7]=w):w=n[7];var A,D=w;n[10]!==D?(A=function(e){var t={Appropriate:"positive",Sufficient:"positive",Good:"positive",High:"warning",Low:"warning",None:"none"};return e.map((function(e){if(t.hasOwnProperty(e.value)||"string"==typeof e.styleType){var r=e.styleType;return y(y({},l()(e,f)),{},{value:(0,p.jsx)(u.EY,{typography:"tiny",children:(0,p.jsx)(i.Badge,{styleType:r||t[e.value],children:e.value})})})}return y({},e)}))}(D),n[10]=D,n[11]=A):A=n[11];var P,_,L,E=A;return n[12]!==k?(P=k("keyInformation"),n[12]=k,n[13]=P):P=n[13],n[14]!==P||n[15]!==d?(_=(0,p.jsx)(u.DZ,{as:d,typography:"small",children:P}),n[14]=P,n[15]=d,n[16]=_):_=n[16],n[17]!==E||n[18]!==_||n[19]!==S?(L=(0,p.jsx)(i.default,{direction:"row",keyMetrics:S,metrics:E,heading:_}),n[17]=E,n[18]=_,n[19]=S,n[20]=L):L=n[20],L}}}]);
4//# sourceMappingURL=FloatingAddToWatchlist.modern.cf2d75f7.js.map
5//# debugId=1170745c-a887-5325-85a8-fcfae248838d

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.