PageSourceSearch

https://finbox.com/assets/2165.c992e1a596d17703f234.chunk.js

js finbox.com collected 2026-10-02 06:21:18 UTC 10,572 bytes, 16 lines download raw bytes

1"use strict";(self["webpackChunkfinbox_www"]=self["webpackChunkfinbox_www"]||[]).push([[2165],{"6f19758b084c6de83029":(t,e,a)=>{a.d(e,{Z:()=>y});var n=a("a5ca158a9dd6914b194f");var o=a("0aad002ce4825d07781a");const r=(0,o.Z)({loader:()=>a.e(3269).then(a.bind(a,"fcd87f7619bfce40da8f")),loading:()=>null});let i=0;let c=[];let d;const s=1;const l=document.body;const u=document.createElement("div");function f(){n["default"].render(n["default"].createElement(r,{onRequestDismiss:p,toasts:c}),u)}function p(t,e=false){c=c.filter(a=>{var n;const o=a.key===t;if(o)a===null||a===void 0?void 0:(n=a.onDismiss)===null||n===void 0?void 0:n.call(a,e);return!o});f()}function m(){if(!d){l.appendChild(u);d=true}f()}function v(t){return c.every(({key:e})=>e!==t)}function w(){if(c.length>=s){p(c[c.length-1].key)}}function b(t,e=`toast-${i+=1}`){return{...t,key:e}}function h(t,e){if(false){}if(!d)m();if(s)w();const a=b(t,e);if(e===undefined||v(e)){c=[a,...c]}else{c=c.map(t=>t.key===e?a:t)}f();return a.key}function g(){c.forEach(t=>{var e;t===null||t===void 0?void 0:(e=t.onDismiss)===null||e===void 0?void 0:e.call(t)});c=[];if(d)f()}const _={show:h,create:m,clear:g};const y=_},f432f8cbe62dd658fa2d:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a("e65a3ff89646ed6d368c");var o=a.n(n);function r(){const{location:{search:t}}=window;if(!t||t==="?")return{};return o().parse(t,{ignoreQueryPrefix:true})}},f48437a46e2009cb7847:(t,e,a)=>{a.d(e,{Z:()=>d});var n=a("d37f2c775a827ed8c8f4");var o=a.n(n);var r=a("1855bc3d4b1957ad6996");var i=a("30067a900f99beaadfc6");var c=a("f432f8cbe62dd658fa2d");async function d(t){if(!t)return;const{value:e,category:a,action:n,label:d,context:s,data:l}=t;const{pathname:u,search:f}=window.location;const p=f&&(o()(f).call(f,"utm_")||o()(f).call(f,"gclid=")||o()(f).call(f,"msclkid=")||o()(f).call(f,"fbclid=")||o()(f).call(f,"ad_group_id")||o()(f).call(f,"ad_id")||o()(f).call(f,"target_id"));const{utm_source:m,utm_campaign:v,utm_medium:w,utm_term:b,utm_content:h,utm_name:g,utm_ad_set:_,utm_ad_group_id:y,utm_ad_id:A,utm_target_id:S,ad_group_id:k,ad_id:Z,target_id:$,gclid:x,msclkid:E,fbclid:L}=p?(0,c.Z)():{};const C=y||k;const O=A||Z;const D=S||$;const P=t=>Array.isArray(t)?t.join(";"):t;const j={category:a,action:n,label:d,context:s,value:typeof e==="number"?e:0,timestamp:new Date,data:{pathname:u,search:f,utm_source:P(m),utm_campaign:P(v),utm_medium:P(w),utm_term:P(b),utm_content:P(h),utm_name:P(g),utm_ad_set:P(_),utm_ad_group_id:P(C),utm_ad_id:P(O),utm_target_id:P(D),gclid:x,msclkid:E,fbclid:L,...l}};window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:[a,n,d].filter(t=>t).join(";"),...j});try{await r.Z.post(`${"https://finbox.com/_/api/v5"}/users/events`,j,{withCredentials:true})}catch(t){(0,i.Z)(t)}}},"7e5d60135e1acb7b3a86":(t,e,a)=>{a.d(e,{Z:()=>n});function n(t){if(!t)return;window.dataLayer=window.dataLayer||[];window.dataLayer.push(t)}},"28da06a2fac1a1dec060":(t,e,a)=>{a.r(e);a.d(e,{default:()=>$});var n=a("a5ca158a9dd6914b194f");var o=a("352049b0bcbcd0dd42a9");var r=a("d30adbd63a85880c7337");
2/*! *****************************************************************************
3Copyright (c) Microsoft Corporation. All rights reserved.
4Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5this file except in compliance with the License. You may obtain a copy of the
6License at http://www.apache.org/licenses/LICENSE-2.0
7
8THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11MERCHANTABLITY OR NON-INFRINGEMENT.
12
13See the Apache Version 2.0 License for specific language governing permissions
14and limitations under the License.
15***************************************************************************** */
16var i=function(){i=Object.assign||function t(e){for(var a,n=1,o=arguments.length;n<o;n++){a=arguments[n];for(var r in a)if(Object.prototype.hasOwnProperty.call(a,r))e[r]=a[r]}return e};return i.apply(this,arguments)};function c(t,e){var a={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)a[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)if(e.indexOf(n[o])<0)a[n[o]]=t[n[o]];return a}
16function d(t){var e=(0,n.useState)(t?"loading":"idle"),a=e[0],o=e[1];(0,n.useEffect)(function(){if(!t){o("idle");return}var e=document.querySelector('script[src="'+t+'"]');if(!e){e=document.createElement("script");e.src=t;e.async=true;e.setAttribute("data-status","loading");document.body.appendChild(e);var a=function(t){!!e&&e.setAttribute("data-status",t.type==="load"?"ready":"error")};e.addEventListener("load",a);e.addEventListener("error",a)}else{o(e.getAttribute("data-status")||"idle")}var n=function(t){o(t.type==="load"?"ready":"error")};e.addEventListener("load",n);e.addEventListener("error",n);return function(){if(e){e.removeEventListener("load",n);e.removeEventListener("error",n)}}},[t]);return a}var s="__googleOneTapScript__";var l="https://accounts.google.com/gsi/client";var u="https://oauth2.googleapis.com/tokeninfo?id_token=";function f(t){var e=t.data,a=t.onError,n=t.onSuccess;if(e===null||e===void 0?void 0:e.credential){fetch(""+u+e.credential).then(function(t){if((t===null||t===void 0?void 0:t.status)===200&&(t===null||t===void 0?void 0:t.json)){return t.json()}else{if(a){a()}throw new Error("Something went wrong")}}).then(function(t){if(n){n(t)}}).catch(function(t){if(a){a(t)}throw t})}}function p(t){var e=t.onError,a=t.disabled,o=t.onSuccess,r=t.googleAccountConfigs,c=t.disableCancelOnUnmount,u=c===void 0?false:c;var p=d(l);var m=r.callback?r.callback:function(t){return f({data:t,onError:e,onSuccess:o})};(0,n.useEffect)(function(){if(!(window===null||window===void 0?void 0:window[s])&&window.google&&p==="ready"){window.google.accounts.id.initialize(i(i({},r),{callback:m}));window[s]=true}if((window===null||window===void 0?void 0:window[s])&&p==="ready"&&!a){window.google.accounts.id.prompt();return function(){if(!u){window.google.accounts.id.cancel()}}}},[p,window===null||window===void 0?void 0:window[s],a]);return null}function m(t){var e=t.children,a=e===void 0?null:e,n=c(t,["children"]);p(n);return a}var v=null&&memo(m);const w=null&&v;var b=a("1855bc3d4b1957ad6996");var h=a("30067a900f99beaadfc6");var g=a("f48437a46e2009cb7847");var _=a("7e5d60135e1acb7b3a86");var y=a("6f19758b084c6de83029");var A=a("eb8c28a56140392350a0");var S=a("de91292aa7bd9de6c50d");var k=a("426f07adbc2828d5e7d4");var Z=a("184d18181bc4a5ecf9e1");function $(){const t=(0,r.I0)();const e=(0,o.k6)();const a=(0,r.v9)(t=>!!t.profile.details);const i=t=>{(0,g.Z)({category:"conversion",action:"SignUp",label:"social",value:1,data:{service:t}},[]);if(localStorage.getItem("finbox.query.funnel"))(0,_.Z)({event:"funnel",funnel:localStorage.getItem("finbox.query.funnel")})};const c=(0,n.useCallback)(async({credential:a})=>{t((0,k.$K)(false));t((0,k.K4)(true));try{const{status:n,data:o}=await b.Z.post(`${"https://auth.finbox.com"}/auth/google-one-tap`,{code:a,clientID:"353485998189-pfpbtm579s1pac3ttob9eik0fh30qve9.apps.googleusercontent.com",redirectUri:window.location.origin});if(n!==200&&n!==201)throw new Error(`auth credential failed (${n})`);const{status:r}=await t((0,k.d9)({service:"google",token:o}));if(r!==200&&r!==201)throw new Error(`login failed (${r})`);if(r===201){i("google");await t((0,S._)())}const c=await t((0,A.W_)());t((0,A.aF)(c));e.push((0,Z.Z)())}catch(t){(0,h.Z)(t);y.Z.show({intent:"danger",message:"Failed, please try again"})}t((0,k.K4)(false))},[t,e]);p({disabled:a,onError:t=>(0,h.Z)(t),googleAccountConfigs:{client_id:"353485998189-pfpbtm579s1pac3ttob9eik0fh30qve9.apps.googleusercontent.com",callback:c}});return null}},"426f07adbc2828d5e7d4":(t,e,a)=>{a.d(e,{$K:()=>r,K4:()=>i,LX:()=>p,Pw:()=>l,YS:()=>m,d9:()=>d,f8:()=>f,hG:()=>s,lK:()=>v,y$:()=>u});var n=a("1855bc3d4b1957ad6996");var o=a("7189566568ab37eaab78");function r(t){return{type:"AUTH_SET_EXPIRED_SESSION",mode:t}}function i(t){return{type:"AUTH_SET_LOADING",mode:t}}function c({service:t,token:e}){return()=>client.request({url:`${"https://finbox.com/_/api/v5"}/accounts/${t}`,method:"post",data:{jwt:e}})}function d({service:t,token:e}){return()=>n.Z.request({url:`${"https://finbox.com/_/api/v5"}/accounts/${t}`,method:"post",withCredentials:true,data:{jwt:e}})}function s({data:t}){return()=>n.Z.request({url:`${"https://finbox.com/_/api/v5"}/users`,method:"post",withCredentials:true,data:t})}function l({email:t,password:e}){return()=>n.Z.post(`${"https://finbox.com/_/api/v5"}/tokens`,{email:t,password:e},{withCredentials:true})}function u({email:t}){return()=>n.Z.post(`${"https://finbox.com/_/api/v5"}/users/forgot`,{email:t})}function f({key:t,password:e}){return()=>n.Z.post(`${"https://finbox.com/_/api/v5"}/users/reset`,{key:t,password:e},{withCredentials:true})}function p({key:t}){return()=>n.Z.post(`${"https://finbox.com/_/api/v5"}/users/verify`,{key:t},{withCredentials:true})}function m(){return()=>n.Z.post(`${"https://finbox.com/_/api/v5"}/tokens/logout`,{},{withCredentials:true})}function v(){return()=>{localStorage.clear();(0,o.s)()}}},"184d18181bc4a5ecf9e1":(t,e,a)=>{a.d(e,{Z:()=>n});function n(){return localStorage.getItem("nextLocationAfterAuth")||`/${"NASDAQGS:AAPL"}`}function o(){return!!localStorage.getItem("nextLocationAfterAuth")}},de91292aa7bd9de6c50d:(t,e,a)=>{a.d(e,{_:()=>r,b:()=>i});var n=a("1855bc3d4b1957ad6996");var o=a("5f01f93daae38833ed72");function r(){const t=Object.keys(o.Z).map(t=>({taskId:t,name:o.Z[t].name,completed:false}));return()=>n.Z.post(`${"https://finbox.com/_/api/v5"}/users/progress/update`,{uid:"OnboardingToDoList",steps:t},{withCredentials:true})}function i(t){return()=>n.Z.post(`${"https://finbox.com/_/api/v5"}/users/progress/update`,{uid:"OnboardingToDoList",steps:t},{withCredentials:true})}},"5f01f93daae38833ed72":(t,e,a)=>{a.d(e,{Z:()=>n});const n={company:{name:"Company Overview",location:`/${"NASDAQGS:AAPL"}`},explorer:{name:"Data Explorer",location:`/${"NASDAQGS:AAPL"}/explorer`},ideas:{name:"Ideas",location:"/ideas"},health:{name:"Financial Health",location:`/${"NASDAQGS:AAPL"}/health`},screener:{name:"Screener",location:"/screener"},chartTemplates:{name:"Chart Templates",location:`/${"NASDAQGS:AAPL"}/chart-templates`},models:{name:"Models",location:`/${"NASDAQGS:AAPL"}/models`},watchlists:{name:"Watchlists",location:"/watchlist"},charts:{name:"Charts",location:`/${"NASDAQGS:AAPL"}/charts`}}}}]);

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.