chunk-EWHA7BDY.js

https://app-static.eu.posthog.com/static/chunk-EWHA7BDY.js

Analyzed: 3/8/2026, 10:07:44 PM

View Scan Result

Script Analysis Summary

Summary: chunk-EWHA7BDY.js is a 13.09 MB external identified as react v1.238.0. Contains 63801 functions with complexity score of 39395. SHA-256: 01c204749d67cf1f...

external13.09 MBreact v1.238.0ML Embeddings Available

Code Metrics

File Size
13.09 MB
Functions
63,801*
Complexity
39,395
AST Nodes
0
AST Depth
-
Function Calls
0
Normalized Size
5.43 MB

Code Analysis

API Usage

dom0 calls
crypto0 calls
network0 calls

Control Flow

Functions50,111
Loops8,702
Conditionals19,747

String Statistics

Total Strings146,227
Unique Strings61,318
URLs Found272

Security Indicators

Uses eval()Crypto APIsEncoding Functions

Code Style

Lines of Code2,804
MinifiedYes

Obfuscation Analysis

No obfuscation data available

Library Detection

reactv1.238.0

Bundle Analysis

Not a bundled file

Copyright & License

License
{defaults:{license:""},errors:({license:n})=>({license:n?void 0:"Please enter your license key"}),submit:async({license:n},r)=>{await r(500);try{await Ae.update("api/billing/license",{license:n}),qK.router.actions.replace(`/${t.isOnboarding?"ingestion":"organization"}/billing?success=true`),setTimeout(()=>{window.location.reload()},100)}catch(i){throw e.setActivateLicenseManualErrors({license:i.detail||"License could not be activated. Please contact support."}),i}}},creditForm:{defaults:{creditInput:"",collectionMethod:"charge_automatically"},submit:async({creditInput:n,collectionMethod:r})=>{await Ae.create("api/billing/credits/purchase",{annual_credit_amount_usd:+n,collection_method:r}),e.showPurchaseCreditsModal(!1),e.loadCreditOverview(),e.reportCreditsFormSubmitted(+n),Hi.open({title:"Your credit purchase has been submitted",width:536,content:r==="send_invoice"?(0,RQ.jsxs)(RQ.Fragment,{children:[(0,RQ.jsx)("p",{className:"mb-4",children:"The invoice for your credits has been created and it will be emailed to the email on file."}),(0,RQ.jsx)("p",{children:"Once the invoice is paid we will apply the credits to your account. Until the invoice is paid you will be charged for usage as normal."})]}):(0,RQ.jsx)(RQ.Fragment,{children:(0,RQ.jsxs)("p",{children:["Your card will be charged soon and the credits will be applied to your account. Please make sure your"," ",(0,RQ.jsx)(mt,{to:t.billing?.stripe_portal_url,target:"_blank",children:"card on file"})," ","is up to date. You will receive an email when the credits are applied."]})})})},errors:({creditInput:n,collectionMethod:r})=>({creditInput:n?+n<3333?"Please enter a credit amount of at least $3,333":void 0:"Please enter the amount of credits you want to purchase",collectionMethod:r?void 0:"Please select a collection method"})}})),(0,ZZ.listeners)(({actions:e,values:t})=>({reportBillingShown:()=>{Oe.capture("billing v2 shown")},reportBillingAlertShown:({alertConfig:n})=>{Oe.capture("billing alert shown",{...n})},reportBillingAlertActionClicked:({alertConfig:n})=>{Oe.capture("billing alert action clicked",{...n})},reportCreditsModalShown:()=>{Oe.capture("credits modal shown")},reportCreditsFormSubmitted:({creditInput:n})=>{Oe.capture("credits modal credit form submitted",{credit_amount_usd:n})},reportCreditsCTAShown:({creditOverview:n})=>{Oe.capture("credits cta shown",{eligible:n.eligible,status:n.status,estimated_monthly_credit_amount_usd:n.estimated_monthly_credit_amount_usd})},toggleCreditCTAHeroDismissed:({isDismissed:n})=>{n&&Oe.capture("credits cta hero dismissed")},switchFlatrateSubscriptionPlan:async n=>{e.setSwitchPlanLoading(n.to_product_key)},loadBillingSuccess:async(n,r)=>{e.registerInstrumentationProps(),e.determineBillingAlert(),e.loadCreditOverview(),(qK.router.values.location.pathname.includes("/organization/billing")||qK.router.values.location.pathname.includes("/onboarding"))&&(qK.router.values.searchParams.success||qK.router.values.searchParams.upgraded)&&(await r(1e3),e.loadUser(),e.loadCurrentOrganization(),qK.router.values.location.pathname.includes("/organization/billing")&&qK.router.actions.replace("/organization/billing"))},determineBillingAlert:()=>{if(t.billingAlert)return;if(t.productSpecificAlert){e.setBillingAlert(t.productSpecificAlert);return}if(!t.billing||!t.preflight?.cloud)return;let n=QUe(t.currentOrganization),r=t.billing.trial;if(r&&r.expires_at&&(0,lt.default)(r.expires_at).isAfter((0,lt.default)())){if(r.type==="autosubscribe"||r.status!=="active")return;let c=(0,lt.default)(r.expires_at).diff((0,lt.default)(),"days"),d=(0,lt.default)(r.expires_at).diff((0,lt.default)(),"hours");if(d>72)return;let u=t.billing.account_owner?.email||"[email protected]",m=t.billing.account_owner?.name||"sales",f=d<24?So(d,"hour"):So(c,"day"),g=(0,put.capitalizeFirstLetter)(r.target);e.setBillingAlert({status:"info",title:`Your free trial for the ${g} plan ends in ${f}. Your service will continue without interruption, and you'll be charged for the ${g} plan.`,message:`Questions? Reach out to ${m} at ${u}.`});return}if(t.billing.deactivated){e.setBillingAlert({status:"error",title:"Your organization has been temporarily suspended.",message:"Please contact support to reactivate it.",contactSupport:!0});return}let i=t.billing.billing_period?.current_period_end?.format("YYYY-MM-DD"),s=t.billing.products?.filter(c=>{if(c.percentage_usage<=1||!c.usage_key)return!1;let d=`billing_hide_product_${c.type}`;return!(t.featureFlags[d]===!0||NLi(t.currentOrganization?.id,c.type,i))})||[];if(s.length>0){let{title:c,message:d}=G9i(s,n);e.setBillingAlert({status:"error",title:c,message:d,dismissKey:"usage-limit-exceeded",onClose:()=>{let u=t.billing?.billing_period?.current_period_end?.format("YYYY-MM-DD");for(let m of s)ALi(t.currentOrganization?.id,m.type,u);e.setBillingAlert(null)}});return}e.resetUsageLimitExceededKey();let l=t.billing.products?.filter(c=>{if(c.percentage_usage<=a6a||c.percentage_usage>1)return!1;let d=`billing_hide_product_${c.type}`;return!(t.featureFlags[d]===!0||NLi(t.currentOrganization?.id,c.type,i,"-approaching"))})||[];if(l.length>0){let{title:c,message:d}=U9i(l,n);e.setBillingAlert({status:"info",title:c,message:d,dismissKey:"usage-limit-approaching",onClose:()=>{let u=t.billing?.billing_period?.current_period_end?.format("YYYY-MM-DD");for(let m of l)ALi(t.currentOrganization?.id,m.type,u,"-approaching");e.setBillingAlert(null)}});return}e.resetUsageLimitApproachingKey()},setCreditFormValue:({name:n,value:r})=>{if(n==="creditInput"||n?.[0]==="creditInput"){let i=+r;for(let s of t.creditBrackets)if(i>=s.annual_credit_from_inclusive&&i<(s.annual_credit_to_exclusive||1/0)){e.setComputedDiscount(s.discount);return}e.setComputedDiscount(0)}},registerInstrumentationProps:async(n,r)=>{if(await r(100),Oe&&t.billing){let i={has_billing_plan:!!t.billing.has_active_subscription,free_trial_until:t.billing.free_trial_until?.toISOString(),customer_deactivated:t.billing.deactivated,current_total_amount_usd:t.billing.current_total_amount_usd};if(t.billing.custom_limits_usd)for(let s of Object.keys(t.billing.custom_limits_usd))i[`custom_limits_usd.${s}`]=t.billing.custom_limits_usd[s];if(t.billing.products)for(let s of t.billing.products){let l=s.type.toLowerCase();i[`percentage_usage.${l}`]=s.percentage_usage,i[`current_amount_usd.${l}`]=s.current_amount_usd,i[`unit_amount_usd.${l}`]=s.unit_amount_usd,i[`usage_limit.${l}`]=s.usage_limit,i[`current_usage.${l}`]=s.current_usage,i[`projected_usage.${l}`]=s.projected_usage,i[`free_allocation.${l}`]=s.free_allocation}t.billing.billing_period&&(i.billing_period_start=t.billing.billing_period.current_period_start,i.billing_period_end=t.billing.billing_period.current_period_end),Oe.register(i)}},showPurchaseCreditsModal:({isOpen:n})=>{n&&e.reportCreditsModalShown()},scrollToProduct:({productType:n})=>{let r=document.querySelector(`[data-attr="billing-product-addon-${n}"]`);r==null&&(r=document.querySelector(`[data-attr="billing-product-${n}"]`)),r?.scrollIntoView({behavior:"smooth",block:"center"})}})),(0,qK.urlToAction)(({actions:e,values:t})=>({"/, but the `finder` dependency has always been using `CSS.escape` from the browser, information:, (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE, React, the MIT license found in the, file in the root directory of this source tree, MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE, Papa Parse, MIT, React v16.13.1, the MIT License, (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE, the MIT License (MIT), see, DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE, the MIT license, information please see uuidv7.js.LICENSE.txt, Apache-2.0, ISC, Apache, BSD, Papa, DOMPurify, DOMP
Authors
Alexey Vasiliev, Feross Aboukhadijeh <https://feross.org>, DISCLAIMS ALL WARRANTIES WITH, BE LIABLE FOR ANY SPECIAL, DIRECT,, Feross Aboukhadijeh
Version (from header)
1.238.0
Copyright Notice
(c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE

ML Analysis

CodeBERT (768d)GraphCodeBERT (768d)AST Features (128d)Handcrafted (64d)
Composite Vector1728 dimensions

Used for semantic similarity search across the database

Module Information

Module Pattern
module
Is Module
Yes