PageSourceSearch

https://hbportal.co/router.531.a15022683b211f5f.js

js hbportal.co collected 2026-09-24 18:09:25 UTC 9,093 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkrouter=self.webpackChunkrouter||[]).push([["531"],{2462(e,t,i){function getStatsigClientIfInitialized(){return Object.values(window.__STATSIG__?.instances||{})[0]}function getStatsigClient(){let e=getStatsigClientIfInitialized();if(!e)throw Error("Statsig client not initialized. Did you forget to wrap your app in HBStatsigProvider?");return e}function isGateEnabled_isGateEnabled({gateName:e,enableExposure:t=!0}){return getStatsigClient().checkGate(e,{disableExposureLog:!t})}i.r(t),i.d(t,{useDynamicConfigValue:()=>useDynamicConfigValue,useIsGateEnabled:()=>useIsGateEnabled,getCommonCustomIDs:()=>getCommonCustomIDs,getStatsigClientIfInitialized:()=>getStatsigClientIfInitialized,getStatsigStableID:()=>getStatsigStableID,HBStatsigProvider:()=>HBStatsigProvider,manuallyLogDynamicConfigExposure:()=>manuallyLogDynamicConfigExposure,useFontGateControl:()=>useFontGateControl,useHBStatsigClient:()=>useHBStatsigClient,useIsNewFeature:()=>useIsNewFeature,useStatsigLogger:()=>useStatsigLogger,manuallyLogGateExposure:()=>manuallyLogGateExposure,getExperimentConfigValue:()=>getExperimentConfigValue,buildStatsigUser:()=>buildStatsigUser,isGateEnabled:()=>isGateEnabled_isGateEnabled,useExperimentConfigValues:()=>useExperimentConfigValues,getStatsigClient:()=>getStatsigClient,MARKETING_STABLE_ID_COOKIE_NAME:()=>d,useExperimentConfigValue:()=>useExperimentConfigValue,HBStatsigProviderExistsContext:()=>S,getDynamicConfigValue:()=>getDynamicConfigValue,useDynamicConfigValues:()=>useDynamicConfigValues,manuallyLogExperimentExposure:()=>manuallyLogExperimentExposure,REBRAND_FONTS_DATA_ATTRIBUTE:()=>b,useCommonCustomAttributes:()=>useCommonCustomAttributes});var r=i(1594),n=i.n(r),s=i(8235);let useHBStatsigClient=({config:e,statsigUser:t,statsigOptions:i,logger:r})=>{let n=getStatsigClientIfInitialized();return n?{client:n,initPromise:window.statsigInitPromise??Promise.resolve()}:initializeStatsigClient({config:e,statsigUser:t,statsigOptions:i,logger:r})},initializeStatsigClient=({config:e,statsigUser:t,statsigOptions:i,logger:r})=>{let n=e.statsig_initialization_timeout||3e3,a=new s.StatsigClient(e.statsig_client_api_key,t,i);return window.statsigInitPromise=a.initializeAsync({timeoutMs:n}).then(t=>{var i;i=t.duration,Math.floor(101*Math.random())<=(e.statsig_log_init_timeout_percentage||0)&&r.logInfo("initCompletionCallback success",{statsig_init_duration_ms:i})}).catch(e=>{r.trackStatsigError(e,"StatsigClient.initializeAsync error")}),a.on("error",function(e){let t=e.error instanceof Error?e.error:Error(`[${e.name}] ${e.tag}`,{cause:e.error});r.trackStatsigError(t,"StatsigClient.on error")}),a.on("gate_evaluation",function(e){window.DD_RUM?.addFeatureFlagEvaluation?.(e.gate.name,e.gate.value)}),{client:a,initPromise:window.statsigInitPromise}};var a=i(7283),o=i(6580);let u=["statsigEnvironment"],l=["requestUrl"],g=["requestUrl"],normalizeUserForComparison=e=>{if(!e)return e;let t=(0,o.A)(e,u),i=t.custom?(0,o.A)(JSON.parse(JSON.stringify(t.custom)),l):t.custom,r=t.customIDs?JSON.parse(JSON.stringify(t.customIDs)):t.customIDs;return JSON.parse(JSON.stringify({...t,custom:i,customIDs:r}))},updateStatsigUserIfNeeded=async(e,t,{shouldSkipUpdateUser:i}={})=>{let r,n;if(i?.())return;let{user:s}=e.getContext(),o=((e,t)=>{if(!t||!e)return t;let i={},r=!1;for(let t of g){let n=e.custom?.[t];null!=n&&(i[t]=n,r=!0)}if(r){let e={...t.custom||{},...i};return{...t,custom:e}}return t})(s,t);r=normalizeUserForComparison(s),n=normalizeUserForComparison(o),(0,a.A)(r,n)||e.updateUserAsync(o)},useIsWrappedWithStatsigProvider=()=>(0,r.useContext)(S);var m=i(9045);let useStatsigLogger=({navigatorOnLine:e,additionalData:t={}})=>(0,r.useMemo)(()=>{let i={statsig_service_type:"React",network_status:{navigatorOnLine:e},...t},r=new m.gP({messagePrefix:"[Statsig]",commonContext:i});return r.trackStatsigError=(e,t,i={})=>{i.statsig_error=t,r.trackError({error:e instanceof Error?e:Error(String(e)),message:t,context:i})},r},[t,e]);var c=i(6608),f=i(7138);let d="hb_statsig_stable_id",E=(0,c.Ri)(d),C=(0,c.Ri)(f.M9),useCommonCustomAttributes=({config:e,logger:t})=>(0,r.useMemo)(()=>{let i={},r=!1;try{e.isDevelopment?.()?i.local_user=e.local_user:e.isStaging?.()&&(i.staging_env_name=e.staging_env_name),i.is_in_app_browser=(0,c.fC)(),i.isWebflowVisitor="undefined"!=typeof document&&document.referrer?.includes("/lp/")}catch(e){t.trackStatsigError(e instanceof Error?e:Error(String(e)),"statsig- error building common custom attributes"),r=!0}return{customAttributes:i,hasErrorOccurred:r}},[e,t]),getCommonCustomIDs=e=>{let t={};
1return e?t.stableID=e:E&&(t.stableID=E),C&&(t.hb_anonymous_id=C),t},buildStatsigUser=({userID:e,email:t,country:i,locale:r,custom:n,customIDs:s,logger:a,hasErrorOccurred:o})=>{let u={userID:void 0},l=!1;try{e&&(u.userID=e),t&&(u.email=t),i&&(u.country=i),r&&(u.locale=r),u.custom=n,u.customIDs=s}catch(e){a.trackStatsigError(e instanceof Error?e:Error(String(e)),"statsig- error building statsigUser",{statsigUser:u}),l=!0}return{statsigUser:u,hasErrorOccurred:l||o}},S=(0,r.createContext)(!1),HBStatsigProvider=({children:e,name:t,config:i,customAttributes:s={},customIDs:a={},userID:o,email:u,country:l,locale:g,shouldSkipUpdateUser:m=!1})=>{let c=useIsWrappedWithStatsigProvider();return((({name:e})=>{let t=useIsWrappedWithStatsigProvider(),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{i.current||(i.current=!0)},[t,e,!0])})({name:t}),c)?n().createElement(n().Fragment,null,e):n().createElement(HBStatsigProviderInner,{config:i,customAttributes:s,customIDs:a,userID:o,email:u,country:l,locale:g,shouldSkipUpdateUser:m},e)},HBStatsigProviderInner=({children:e,config:t,customAttributes:i,customIDs:a,userID:o,email:u,country:l,locale:g,shouldSkipUpdateUser:m})=>{let[c,f]=(0,r.useState)(!1),d=useStatsigLogger({navigatorOnLine:navigator?.onLine,additionalData:{user_id:o,...a}}),{customAttributes:E,hasErrorOccurred:C}=useCommonCustomAttributes({config:t,logger:d}),{statsigUser:p,hasErrorOccurred:_}=(0,r.useMemo)(()=>buildStatsigUser({userID:o,email:u,country:l,locale:g,custom:{...E,...i},customIDs:{...getCommonCustomIDs(a.stableID),...a},logger:d,hasErrorOccurred:C}),[o,u,l,g,E,i,a,d,C]),I=(({config:e,logger:t,hasErrorOccurred:i})=>{let n=e.isTest();return(0,r.useMemo)(()=>{try{return{environment:{tier:e.isE2E()?e.statsigE2ETier:e.config.environment},networkConfig:{preventAllNetworkTraffic:!!n||i,api:e.statsigApiUrl||"https://statsigapi.net/v1"}}}catch(e){return t.trackStatsigError(e,"statsig- error building statsigOptions"),{networkConfig:{preventAllNetworkTraffic:!0}}}},[e,n,t,i])})({config:t,logger:d,hasErrorOccurred:_}),{client:b,initPromise:y}=useHBStatsigClient({config:t,statsigUser:p,statsigOptions:I,logger:d});return((0,r.useEffect)(()=>{y.finally(()=>{f(!0)})},[y]),(0,r.useEffect)(()=>{c&&!m&&updateStatsigUserIfNeeded(b,p)},[b,m,p,c]),c)?n().createElement(s.StatsigProvider,{client:b},n().createElement(S.Provider,{value:!0},e)):null};function useIsGateEnabled({gateName:e,enableExposure:t=!0}){return(0,s.useGateValue)(e,{disableExposureLog:!t})}function manuallyLogGateExposure({gateName:e}){getStatsigClient().checkGate(e)}function getDynamicConfigValue({configName:e,configKey:t,defaultValue:i,enableExposure:r=!0}){return getStatsigClient().getDynamicConfig(e,{disableExposureLog:!r}).get(t,i)}function useDynamicConfigValue({configName:e,configKey:t,defaultValue:i,enableExposure:r=!0}){return(0,s.useDynamicConfig)(e,{disableExposureLog:!r}).get(t,i)}function useDynamicConfigValues({configName:e,defaultValues:t,enableExposure:i=!0}){let r=(0,s.useDynamicConfig)(e,{disableExposureLog:!i});return{...t,...r.value}}function manuallyLogDynamicConfigExposure({configName:e}){getStatsigClient().getDynamicConfig(e)}function getExperimentConfigValue({experimentName:e,configName:t,defaultValue:i,enableExposure:r=!0}){return getStatsigClient().getExperiment(e,{disableExposureLog:!r}).get(t,i)}function manuallyLogExperimentExposure({experimentName:e}){getStatsigClient().getExperiment(e)}function useExperimentConfigValue({experimentName:e,configName:t,defaultValue:i,enableExposure:r=!0}){return(0,s.useExperiment)(e,{disableExposureLog:!r}).get(t,i)}function useExperimentConfigValues({experimentName:e,defaultValues:t,enableExposure:i=!0}){let r=(0,s.useExperiment)(e,{disableExposureLog:!i});return{...t,...r.value}}var p=i(8431),_=i.n(p);let I="new_feature_no_gate",useIsNewFeature=e=>{let t=useDynamicConfigValue({configName:"hb_new_features",configKey:e,defaultValue:{is_new:!1}}),i=t?.feature_gate||I,n=useIsGateEnabled({gateName:i});return(0,r.useMemo)(()=>{let e;return(i===I||!1!==n)&&!((e=_()(t?.end_date)).isValid()&&e.isBefore(_()(),"day"))&&!!t?.is_new},[n,t,i])},getStatsigStableID=()=>getStatsigClient().getContext().stableID,b="data-rebrand-new-fonts",useFontGateControl=()=>{let e=useIsGateEnabled({gateName:"rebrand_new_fonts"});(0,r.useEffect)(()=>(e?document.documentElement.setAttribute(b,"true"):document.documentElement.removeAttribute(b),()=>{document.documentElement.removeAttribute(b)}),[e])}}}]);
2//# sourceMappingURL=router.531.a15022683b211f5f.js.map

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.