1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="05f83498-8642-465f-b6db-fd9a926df3b6",e._sentryDebugIdIdentifier="sentry-dbid-05f83498-8642-465f-b6db-fd9a926df3b6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98417],{18864:(e,t,a)=>{let n,r,i;a.d(t,{$R:()=>er,H9:()=>X});var l=a(567958),o=a(193104),s=a(488490),c=a(32165),d=a(481431),u=a(686366),m=a(235565),p=a(286388);a(544326);let g="dev-domain",h=e=>(e=>{try{return{isLocalHost:!1,proxyDomain:void 0}}catch(e){return console.log("Failed to get development config",e),{isLocalHost:!1,proxyDomain:void 0}}})((e.req.headers.host,e.query,e.resolvedUrl));if("localhost"===(i=(void 0)??window.location.host)||"127.0.0.1"===i||i.startsWith("localhost:")||i.startsWith("127.0.0.1:")){(0,p.destroyCookie)(null,g);let e=new URL(window.location.href).searchParams.get("domain");e&&(e=>{try{(0,p.setCookie)(null,g,e,{maxAge:2592e3,path:"/"}),console.log("Set dev-domain to cookie:",e)}catch(e){console.log("Failed to set dev-domain cookie:",e)}})(e)}var b=a(946456),f=a(833827),y=a(565328),v=a(581882),w=a(423326),C=a(303456),S=a(755795),U=a(861364),P=a(89567),k=a(484760),I=a(80364),L=a(965932),E=a(311946),A=a(311705),q=a(729886),T=a(139705),N=a(913779),M=a(310812),R=a(242579);function x(e){let t=e.req.headers["x-locale"],a=e.req.headers["x-pathname"];return(0,R.pickSupportedLocale)("string"==typeof e.params?.locale?e.params.locale:void 0,"string"==typeof e.query?.locale?e.query.locale:void 0,"string"==typeof a?(0,R.splitLocalePrefix)(a).locale:void 0,"string"==typeof t?t:void 0)??void 0}function F(e){let t=!!e.query&&"locale"in e.query,a="string"==typeof e.resolvedUrl?function(e){var t;let a=e.indexOf("?"),n=-1===a?e:e.slice(0,a),r=-1===a?"":e.slice(a+1),{logicalPath:i,locale:l}=(0,R.splitLocalePrefix)(n),o=(t=r).includes("locale")?t.split("&").filter(e=>"locale"!==e.split("=")[0]).join("&"):t;if(!l&&o===r)return e;let s=l?i:n;return o?`${s}?${o}`:s}(e.resolvedUrl):e.resolvedUrl,n=a!==e.resolvedUrl;if(!t&&!n)return e;let r={...e};return t&&(r.query=function(e){let{locale:t,...a}=e.query??{};return a}(e)),n&&(r.resolvedUrl=a),r}var D=a(754836);let B=(0,s.Kk)("home/explore/welcome-default-v2.png"),G=(0,s.Kk)("login/login-illustrator-default-v2.png");(0,s.Kk)("favicon/elc/favicon-16x16.png");let K=(0,s.Kk)("favicon/elc/favicon-32x32.png"),V=(0,s.Kk)("events/banner-default.jpg"),$=(0,s.Kk)("matches/banner-default.jpg"),H=T.Tj,_=T.wZ,z=T.iR,O={level:"currentLevel",teamSize:"currentTeamSize"},W=e=>{var t;let a=w.A((e,t)=>!!t.isPublicVisible-!!e.isPublicVisible,e?.questionnaireFields||[]),n=[];C.A(e=>{let t=O[e.key];t?n.push({...e,key:t}):n.push(e)},a);let r=e?.theme||{},i=r.primaryActiveColor||f.rv,l=r.gradientColors&&!S.A(r.gradientColors)?`linear-gradient(71.55deg, ${r.gradientColors[0]||i}, ${r.gradientColors[1]||i} 54.26%, ${r.gradientColors[2]||i} 98.35%)`:null,o={whiteLabelLevel:b.lmf.Standard,...e?.setting||{}},s=e?.primaryTenant,d=e?.profileFieldsSetting??{},u=e?.toolSetting??{},m=e?.tenantText??{},p=e?.forumSetting,g=e?.tenantAlbumSetting??{},h=e?.tenantClubSetting??{},y=e?.contributorSetting??{},v=e?.redemptionSetting,P=e?.tenantLayout??{},k=e?.communityModules??[],I=e?.chatSetting??{},L=e?.mcpSetting??{},E=(0,c.tW)(e),A=J(e),q=e?.localizationSetting||{};return t={tenant:{id:e?.id,name:e?.name,domain:e?.domain,description:e?.description,twitterName:e?.twitterName,slug:e?.slug,logoUrl:e?.logoUrl,blackLogoUrl:e?.blackLogoUrl,squareLogoUrl:e?.squareLogoUrl,squareBlackLogoUrl:e?.squareBlackLogoUrl,memberRequirement:e?.memberRequirement,questionnaireFields:a,termsOfService:e?.termsOfService,termsOfServiceDisplayName:e?.termsOfServiceDisplayName,codeOfConduct:e?.codeOfConduct||H,codeOfConductDisplayName:e?.codeOfConductDisplayName,privacyPolicy:e?.privacyPolicy||_,privacyPolicyDisplayName:e?.privacyPolicyDisplayName,policyVersion:e?.policyVersion,cookiePolicy:e?.cookiePolicy||z,cookiePolicyDisplayName:e?.cookiePolicyDisplayName,copyright:e?.copyright,withContent:!!e?.withContent,withContributor:!!e?.withContributor,withRedemption:!!e?.withRedemption,hasEventCalendarIntegration:!!e?.hasEventCalendarIntegration,matchEventModuleEnabled:e?.matchEventModuleEnabled,oneToOneMatchModuleEnabled:e?.oneToOneMatchModuleEnabled,roundTableModuleEnabled:e?.roundTableModuleEnabled,uiTheme:e?.theme?.themeMode||b.tyy.Dark,tenantGroupId:e?.tenantGroupId,defaultLocale:e?.defaultLocale||"en",supportedLocales:e?.supportedLocales||[e?.defaultLocale||"en"],primaryTenant:s?{id:s.id,slug:s.slug,name:s.name,squareLogoUrl:s.squareLogoUrl,squareBlackLogoUrl:s.squareBlackLogoUrl,domain:s.domain,setting:s.setting,theme:s.theme}:null,mappedQuestionnaireFields:n,theme:{id:r.id,themeMode:r.themeMode||b.tyy.Dark,primaryActiveColor:i,homePageBannerUrl:r.homePageBannerUrl||B,eventsPageBannerUrl:r.eventsPageBannerUrl||V,matchPageBannerUrl:r.matchPageBannerUrl||$,loginIllustratorUrl:r.loginIllustratorUrl||G,showSignInIllustration:r.showSignInIllustration,primaryGradient:l||null,appMenuBackgroun
1dColor:r.appMenuBackgroundColor??i,gradientColors:r.gradientColors,faviconX32Url:r.faviconX32Url||K,siteIconUrl:r.siteIconUrl,onboardingImageUrls:r.onboardingImageUrls,navigationLogo:r.navigationLogo,navigationItems:r.navigationItems,signInLogo:r.signInLogo,fontSource:r.fontSource||b.hiE.Default,fontFileMode:r.fontFileMode,fontName:r.fontName,staticFonts:r.staticFonts,variableFonts:r.variableFonts,lineHeightLoose:r.lineHeightLoose,lineHeight:r.lineHeight,letterSpacing:r.letterSpacing,buttonStyle:r.buttonStyle},intercomId:A?.[b.w8V.Intercom]?.data?.intercomId||null,intercomHelpButton:A?.[b.w8V.Intercom]?{position:A[b.w8V.Intercom]?.data?.helpButtonPosition??null,sideMarginPx:A[b.w8V.Intercom]?.data?.helpButtonSideMarginPx??null,bottomMarginPx:A[b.w8V.Intercom]?.data?.helpButtonBottomMarginPx??null,alwaysShow:A[b.w8V.Intercom]?.data?.helpButtonAlwaysShow??null}:null,hubIdForChat:A?.[b.w8V.HubspotChat]?.data?.hubId||null,gtmId:A?.[b.w8V.GoogleTagManager]?.data?.gtmId||null,googleAnalyticsMeasurementId:A?.[b.w8V.GoogleAnalytics]?.enabled!==!1&&A?.[b.w8V.GoogleAnalytics]?.data?.measurementId||null,segmentApiKey:A?.[b.w8V.Segment]?.data?.apiKey||null,hubIdForTracking:A?.[b.w8V.HubspotTracking]?.data?.hubId||null,rudderStackWriteKey:A?.[b.w8V.RudderStack]?.data?.writeKey||null,rudderStackDataPlaneUrl:A?.[b.w8V.RudderStack]?.data?.dataPlaneUrl||null,oneTrustScriptId:A?.[b.w8V.OneTrust]?.enabled!==!1&&A?.[b.w8V.OneTrust]?.data?.scriptId||null,ketchOrganizationCode:A?.[b.w8V.Ketch]?.enabled!==!1&&A?.[b.w8V.Ketch]?.data?.organizationCode||null,ketchPropertyCode:A?.[b.w8V.Ketch]?.enabled!==!1&&A?.[b.w8V.Ketch]?.data?.propertyCode||null,setting:{hasBrandedApp:o.hasBrandedApp??!1,isPrivateCommunity:!!o.isPrivateCommunity,whiteLabelLevel:o.whiteLabelLevel,seoSettings:o.seoSettings,useWorkEmail:o.useWorkEmail??!1,isWorkEmailRequired:(o.isWorkEmailRequired||s?.setting?.isWorkEmailRequired)??!1,customFieldDisplayName:{company:o.customFieldDisplayName?.company??null,jobTitle:o.customFieldDisplayName?.jobTitle??null,firstName:o.customFieldDisplayName?.firstName??null,bio:o.customFieldDisplayName?.bio??null},authMode:o.authMode,signUpMode:o.signUpMode,signUpExternalUrl:o.signUpExternalUrl,hasExternalPolicyAgreement:o.hasExternalPolicyAgreement??!1,supportWebsite:o.supportWebsite,displayExternalProfile:o.displayExternalProfile,profileSyncMethod:o.profileSyncMethod,memberBasicInfoEditability:o.memberBasicInfoEditability??b.N3n.Allowed,memberBasicInfoEditLink:o.memberBasicInfoEditLink,cookieManageDisabled:o.cookieManageDisabled??!1,cookieProvider:o.cookieProvider,defaultCookiePreferences:o.defaultCookiePreferences,hideSignInEntry:o.hideSignInEntry??!1,enableKnowledgeBaseAI:o.enableKnowledgeBaseAI??!1,loginCaptchaEnabled:o.loginCaptchaEnabled??!1,searchMode:o.searchMode,signInNudgeFrequency:o.signInNudgeFrequency,completeProfileNudgeFrequency:o.completeProfileNudgeFrequency},turnstile:e?.turnstile?{siteKey:e.turnstile.siteKey,enabled:e.turnstile.enabled}:null,featureFlags:e?.featureFlags,emailSettings:{helpEmail:e?.emailSettings?.helpEmail,marketingEmailConsent:e?.emailSettings?.marketingEmailConsent?{enabled:e.emailSettings.marketingEmailConsent.enabled??!1,label:e.emailSettings.marketingEmailConsent.label,defaultChecked:e.emailSettings.marketingEmailConsent.defaultChecked??!0}:null},profileFieldsSetting:{firstName:{requirement:d.firstName?.requirement??M.m5[M.bZ.firstName],editable:d.firstName?.editable??!0},lastName:{requirement:d.lastName?.requirement??M.m5[M.bZ.lastName],editable:d.lastName?.editable??!0},jobTitle:{requirement:d.jobTitle?.requirement??M.m5[M.bZ.jobTitle],editable:d.jobTitle?.editable??!0},company:{requirement:d.company?.requirement??M.m5[M.bZ.company],editable:d.company?.editable??!0},pictureUrl:{requirement:d.pictureUrl?.requirement??M.m5[M.bZ.pictureUrl],editable:d.pictureUrl?.editable??!0},signupPictureUrl:{requirement:d.signupPictureUrl?.requirement??M.m5[M.bZ.signupPictureUrl],editable:d.signupPictureUrl?.editable??!0},linkedInUrl:{requirement:d.linkedInUrl?.requirement??M.m5[M.bZ.linkedInUrl],editable:d.linkedInUrl?.editable??!0},location:{requirement:d.location?.requirement??M.m5[M.bZ.location],editable:d.location?.editable??!0},bio:{requirement:d.bio?.requirement??M.m5[M.bZ.bio],editable:d.bio?.editable??!0},locationFilterable:d.locationFilterable??!1},profileQuestionSettings:U.A(e=>!1!==e.enabled,d?.profileQuestionSettings??[]),toolSetting:u,featureAccess:E,tenantText:m,forumSetting:p,tenantAlbumSetting:g,tenantClubSetting:h,contributorSetting:y,redemptionSetting:v,tenantLayout:P,communityModules:k,chatSetting:I,localizationSetting:q,mcpSetting:L}},Z(t,!0)},j=["tenant.intercomId","tenant.hubIdForChat","tenant.gtmId","tenant.googleAnalyticsMeasurementId","tenant.segmentApiKey","tenant.hubIdForTracking","tenant.rudderStackWriteKey","tenant.rudderStackDataPlaneUrl","tenant.oneTrustScriptId"];function Z(e,t){let a=t?u.encrypt:u.decrypt,n=P.A(e);
1return j.forEach(e=>{let t=(0,y.get)(n,e);t&&(0,y.set)(n,e,a(t)??t)}),n}function X(e){return Z(e,!1)}let J=e=>k.A((e,t)=>(e[t.type]=t,e),{},e?.tenantIntegrations||[]),Y=async e=>{let{req:t}=e,{proxyDomain:n}=h(e),r=`http://${n||t?.headers.host}`,{hostname:i}=(0,A.parse)(r,!0);if((0,s.t_)(i))return(0,s.X$)(s.Gr,e.query);try{let a=await (0,q.f)(t,{locale:x(e)}),n=await a.query({query:b.ZSd,variables:{domain:i},fetchPolicy:"network-only"});if(n?.data?.tenant)return{props:W(n.data.tenant)};return(0,s.X$)("/404")}catch(l){let{isUnauthorizedApolloError:n,handleSSRBackendUnauthorized:r}=await a.e(96458).then(a.bind(a,996458));if(n(l)){let a=await r(t,e.res,e.resolvedUrl);if(a)return a}return d.cb.report(l,{metaData:{query:"getTenantByDomain",hostname:i}}),console.error("fail to find tenant",(0,m.ki)(l)),(0,s.X$)("/500")}},Q=async(e,t={})=>{let{req:a}=e,{proxyDomain:n}=h(e),r=`http://${n||a?.headers.host}`,{hostname:i}=(0,A.parse)(r,!0);if((0,s.t_)(i))return(0,s.X$)(s.Gr,e.query);try{let{withPageLayout:n}=t,r=n?new URL(e.resolvedUrl||"/",`https://${a.headers.host}`).pathname:null,o=await (0,q.f)(a,{locale:x(e)}),s=await o.query({query:b.ZSd,variables:{domain:i,path:r,withPageLayout:!!n},fetchPolicy:"network-only"}),c=s.data.tenant;if(c){let t,a=W(c),n=s.data.pageLayout||null;if(n){let{previewToken:a}=e.query;t=await en({pageLayout:n,tenant:c,previewToken:a,ctx:e})}else t={pageLayout:null,currentPageSource:b.dhX.Code,resolvedPageConfigData:null,isLowCodePage:!1};return{props:{...a,pageContext:t}}}throw new l.zi}catch(e){throw console.error("fail to find tenant",(0,m.ki)(e)),e}},ee=D.MT,et=(n=(e,t)=>{let a=e.resolvedUrl?.split(/\/|\?/)?.[1];if(I.A(/\/.+?\.\w+/,a)||ee(e.resolvedUrl))return{props:t};let n="viewOnly"===a,r="logout"===a,i="widgets"===a,l="login"===a,o="integrations"===a,c="idp"===a,u="l"===a,m=e.resolvedUrl?.startsWith("/public/email/unsubscribe/custom-email");if(n||r)return{props:t};if(t.tenant.setting?.isPrivateCommunity){if(i)return(0,s.X$)("/404");if(!(0,d.y0)(e)&&!l&&!o&&!c&&!u&&!m)return(0,s.X$)("/login",e?.resolvedUrl?{returnTo:e.resolvedUrl}:{})}return{props:t}},e=>{let t=(0,N.lU)(e?.req?.headers),a=F(e);return(0,N.YW)({forwardedHost:t},async()=>{let e=await Y(a);return"props"in e&&e?.props?.tenant?n(a,e.props):e})}),ea=(r=(e,t)=>{let a=e.resolvedUrl?.split(/\/|\?/)?.[1];if(I.A(/\/.+?\.\w+/,a))return{props:t};let n="viewOnly"===a,r="logout"===a,i="widgets"===a,o="login"===a,c="integrations"===a,u="idp"===a,m="l"===a,p=e.resolvedUrl?.startsWith("/public/email/unsubscribe/custom-email");if(n||r||(0,D.Wb)(e.query))return{props:t};if(t.tenant.setting?.isPrivateCommunity){if(i)throw new l.zi;if(!(0,d.y0)(e)&&!o&&!c&&!u&&!m&&!p)return(0,s.X$)("/login",e?.resolvedUrl?{returnTo:e.resolvedUrl}:{})}return{props:t}},async(e,t)=>{let a=F(e),n=(0,N.lU)(a.req?.headers);return(0,N.YW)({forwardedHost:n},async()=>{let e=await Q(a,t);return"props"in e&&e?.props?.tenant?r(a,e.props):e})}),en=async({pageLayout:e,tenant:t,previewToken:n,ctx:r})=>{let i,o;if(n){try{let e=(await Promise.resolve().then(a.bind(a,699775))).default,r=await e(n);r.tenantId===t?.id&&r.pageSource?(i=r.pageSource,o=!0):o=!1}catch{(0,d.z0)("Failed to get previewToken"),o=!1}if(!o)throw new l.zi}let s=e?.pageConfig?.config,c=i??e?.pageSource??b.dhX.Code,u=c===b.dhX.LowCode;if(u&&(0,D.Z4)(s)){let n=null,{migrateAndResolvePageData:i}=await a.e(16825).then(a.bind(a,116825));try{n=await i({data:s,communityModules:t?.communityModules??[],tenantId:t?.id,clubId:e?.clubId??void 0,pageType:e?.pageType,ctx:r})}catch(e){d.cb.notify(e),(0,d.z0)("Failed to migrate/resolve page data"),n=null}return{pageLayout:e,currentPageSource:c,resolvedPageConfigData:n,isLowCodePage:u}}return{pageLayout:e,currentPageSource:c,resolvedPageConfigData:null,isLowCodePage:u}},er={getServerSideProps:et,getServerSidePropsWithErrorPage:ea,mapTenantToTenantContext:W,resolvePageLayoutContext:en,isPrimaryTenant:e=>!e.tenantGroupId||!!e.tenantGroupId&&e.primaryTenant?.id===e.id,isFromSubTenant:e=>{let{targetTenantName:t,targetTenantId:a}=e.query;return L.A(D.Z4,[t,a])},getTenant:e=>"props"in e?e?.props?.tenant:void 0,hasTenantFeature:(e,t)=>
1(0,c.mM)(e.featureAccess,t),withErrorHandler:e=>async t=>{let a=(0,N.lU)(t.req?.headers);return(0,N.YW)({forwardedHost:a},async()=>{try{return await e(t)}catch(n){let e={props:{}},a=n;try{e=await Q(t)}catch(e){a=e}if(a instanceof l.sx)return t.res.statusCode=a.statusCode||500,E.A(e,{props:{errorPageProps:a.getSSRProps()}});return d.cb.notify(a),t.res.statusCode=500,E.A(e,{props:{errorPageProps:new l.mC().getSSRProps()}})}})},redirectOnNotFoundSSRWithErrorPage:async(e,t,a)=>{let{url:n}=v.parseUrl(e?.resolvedUrl??"");if(o.G.some(e=>e.test(n)))throw new l.zi({errorLayoutId:a});let r=await (0,o._)({tenantId:t,currentUrl:n})||"";if(r)return(0,s.X$)(`/${r}`);throw new l.zi({errorLayoutId:a})},isForumWidgetsPage:ee}},32165:(e,t,a)=>{a.d(t,{vs:()=>b,Uh:()=>p,mM:()=>h,tW:()=>g,qp:()=>C,_K:()=>U,W2:()=>y});var n,r,i=a(464821),l=a(798739),o=a(567958),s=a(346693);a(271910),a(700147);var c=a(397109),d=a(946456),u=a(897587),m=((n={}).NotEnabled="404",n),p=((r={}).People="people",r.Content="content",r.Messages="messages",r.Channels="channels",r.Tools="tools",r.Group="group",r.Album="album",r.Club="club",r.Contributor="contributor",r.Redemption="redemption",r.Course="course",r);let g=e=>{let{id:t,primaryTenant:a,withContent:n,withAlbum:r,tenantGroupId:i,withRedemption:l,communityModules:o}=e||{},c=e=>{let t=u.A(t=>t.moduleType===e,o??[]);return!((0,s.lH)(t)||t?.disabled)};return{content:{enabled:n},people:{enabled:c(d.EJG.People)},messages:{enabled:c(d.EJG.Message)},channels:{enabled:c(d.EJG.Channel)},tools:{enabled:c(d.EJG.Tool)},group:{enabled:c(d.EJG.Group)&&a?.id===t&&!!i},album:{enabled:c(d.EJG.Album)&&r},club:{enabled:c(d.EJG.Club)},contributor:{enabled:c(d.EJG.Contributor)},redemption:{enabled:l},course:{enabled:c(d.EJG.Course)}}},h=(e,t)=>!(t in e)||!0===(e?.[t]).enabled,b=({accessible:e,onAccessDenied:t,fallback:a=null,children:n})=>((0,c.useEffect)(()=>{!e&&t&&t()},[e,t]),e?(0,i.Y)(i.FK,{children:n}):a),f={[m.NotEnabled]:(0,i.Y)(l.M,{errorPageError:new o.zi})},y=(e,t)=>{let a=c.createElement(e,t),n=t?.accessDenied,r=n&&f[n];return(0,i.Y)(b,{accessible:(0,s.lH)(n),fallback:r,children:a})};var v=a(571321),w=a(871222);let C=()=>{let{rootStore:e}=(0,v.g)();return(0,w.q3)(()=>(e=>{if(!e)return{};let{isNotLimitedUser:t}=e;return{canAccessNotificationMessages:t,canAccessGradualHomeRecentDiscussions:t,canAccessGradualHomeNewMembers:t,canAccessGradualEventAttendeeList:t,canAccessGradualConnect:t,canAccessGradualRoundTable:t,canAccessGradualVideoCall:t,canAccessUser:t,canAccessChannels:t,canAccessChannel:t,canAccessMessages:t,canAccessChat:t,canAccessLivePeople:t,canAccessLiveStreamChat:t,canAccessLiveStreamEmoji:t,canAccessLiveMatch:!0,canAccessLiveVideoCall:t,canAccessLiveRoundTable:t,canAccessOnboardingQuestionnaire:t,canAccessOnboardingNudge:t}})(e.loginUser))};var S=a(945187);let U=()=>{let{tenant:{featureAccess:e}}=(0,c.useContext)(S.I);return{hasTenantFeature:(0,c.useCallback)(t=>h(e,t),[e])}}},139705:(e,t,a)=>{a.d(t,{Tj:()=>i,iR:()=>l,wZ:()=>n,yK:()=>r});let n="https://gradual.notion.site/Community-Privacy-Policy-1ef7cfbd014442b7bbdee13213f483d2",r="https://gradual.notion.site/Terms-of-Service-0d5e728b07394fd0b31adcb5a9ed88fa",i="https://gradual.notion.site/Community-Code-of-Conduct-a3cbc95532e7428ca4f7b884489991bb",l="https://gradual.notion.site/Gradual-Cookie-Policy-3586c5d5c70c80a89d0fdc74072d276c"},298417:(e,t,a)=>{a.d(t,{k:()=>w});var n=a(464821),r=a(481431),i=a(553076),l=a(602748),o=a(357607),s=a(477184),c=a(397109),d=a(440300),u=a(207634),m=a(421041);let p=["/logout",/^\/login/,/^\/idp\//,/^\/integrations\/*\/callback/,"/public/account-deletion"];function g(e){return l.A(t=>t instanceof RegExp?t.test(e):t===e,p)}var h=a(242579),b=a(257036);let f=a(567185).z0.extend("i18n-url");var y=a(18864),v=a(945187);let w=({children:e,value:t})=>{let a,l;a=(0,i.rd)(),l=(0,c.useRef)(!1),(0,c.useEffect)(()=>{(0,r.z0)("[useListenAuthStateChange] setting up listeners",{pathname:a.pathname});let e=()=>{l.current=!0,"visible"===document.visibilityState&&((0,r.z0)("[useListenAuthStateChange] reload due to auth state changed"),l.current=!1,a.reload())},t=()=>{"visible"===document.visibilityState&&l.current&&((0,r.z0)("[useListenAuthStateChange] reload due to auth state changed (page became visible)"),l.current=!1,a.reload())},n=(0,u.xQ)("auth");n?(0,r.z0)("[useListenAuthStateChange] broadcast channel available"):(0,r.z0)("[useListenAuthStateChange] no broadcast channel, using localStorage fallback only");let i=t=>{(0,r.z0)("[useListenAuthStateChange] received broadcast event",t.data);let{action:n,senderTabId:i}=t.data,l=(0,m.getTabId)();if(o.A(n,s.A(u.BM))){if(i===l)return void(0,r.z0)("[useListenAuthStateChange] skipping broadcast - same tab",{senderTabId:i,currentTabId:l});if(g(a.pathname))return void(0,r.z0)("[useListenAuthStateChange] skipping broadcast - on auth page",{pathname:a.pathname});(0,r.z0)("[useListenAuthStateChange] auth state changed via broadcast, will reload when visible"),e()}},c=t=>{if(t.key===d.LocalStorageKey.AUTH_STATE_CHANGED&&t.newValue){(0,r.z0)("[useListenAuthStateChange] received storage fallback event",t.newValue);try{let e=JSON.parse(t.newValue);if(!o.A(e.action,s.A(u.BM)))return}catch{return}if(g(a.pathname))return void(0,r.z0)("[useListenAuthStateChange] skipping storage event - on auth page",{pathname:a.pathname});(0,r.z0)("[useListenAuthStateChange] auth state changed via storage fallback, will reload when visible"),e()}};return n?.addEventListener("message",i),window.addEventListener("storage",c),document.addEventListener("visibilitychange",t),()=>{n?.removeEventListener("message",i),n?.close(),window.removeEventListener("storage",c),document.removeEventListener("visibilitychange",t)}},[a.pathname]);let p=(0,c.useMemo)(()=>
1{if(t.tenant.decrypted)return t;let e=(0,y.H9)(t);return e.tenant.decrypted=!0,e},[t]),{tenant:w}=p||{},{featureFlags:C}=w||{};return!function(e,t){let a=(0,i.rd)(),{locale:n}=(0,i.Ym)(),r=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!e||0===t.length)return void f("SKIP: tenant data not ready",{tenantDefaultLocale:e,tenantSupportedLocales:t});let i=window.location.pathname+window.location.search,l=a.asPath,o=(0,b.VL)(),s=i.split(/[/?]/)[1]||"",c=t.includes(s),d=c?s:null;if(f("useEffect triggered",{actualPath:i,routerPath:l,currentLocale:n,tenantDefaultLocale:e,tenantSupportedLocales:t,hasLocalePrefix:c,urlLocale:d,preference:o,lastRedirectTarget:r.current}),r.current===i){f("SKIP: just redirected to this path (preventing chain)",{actualPath:i,lastRedirectTarget:r.current}),r.current=null;return}if(d&&d===e){let{logicalPath:t}=(0,h.splitLocalePrefix)(window.location.pathname),o=window.location.search||"",s=window.location.hash||"",c=`${t||"/"}${o}`,u=`${(0,h.forcePrefixLocale)(t||"/",d)}${o}`,m=`${c}${s}`,p=`${u}${s}`;f("REDIRECT: removing default locale prefix from URL",{reason:"URL has default locale prefix, should use non-prefix version",actualPath:i,urlLocale:d,currentLocale:n,tenantDefaultLocale:e,routerPath:l,matchPath:p,targetPath:m}),r.current=c,a.replace(p,m,{locale:!1}).catch(e=>f("ERROR: router.replace failed",{error:String(e)}));return}if(!c){if(!o)return void f("SKIP: no locale prefix, no user preference stored",{actualPath:i});if(o===e)return void f("SKIP: user preference equals tenant default (no prefix needed)",{actualPath:i,preference:o,tenantDefaultLocale:e});if(!t.includes(o))return void f("SKIP: user preference not supported by tenant",{actualPath:i,preference:o,tenantSupportedLocales:t});let{logicalPath:n}=(0,h.splitLocalePrefix)(window.location.pathname),s=window.location.search||"",c=window.location.hash||"",d=`${(0,h.forcePrefixLocale)(n||"/",o)}${s}`,u=`${d}${c}`;return f("REDIRECT: applying user locale preference",{reason:"User has stored preference different from default locale",actualPath:i,routerPath:l,preference:o,tenantDefaultLocale:e,targetPath:u}),r.current=d,void a.replace(u,u,{locale:!1}).catch(e=>f("ERROR: router.replace failed",{error:String(e)}))}f("SKIP: URL has non-default locale prefix, respecting explicit locale",{actualPath:i,currentLocale:n,tenantDefaultLocale:e,urlLocale:d})},[a.asPath,n,a.replace,e,t])}(w?.defaultLocale||"en",w?.supportedLocales||[]),(0,n.Y)(v.I.Provider,{value:p,children:e})}},310812:(e,t,a)=>{a.d(t,{Ll:()=>o,bZ:()=>i,el:()=>r.H1w,kJ:()=>l,m5:()=>s});var n,r=a(946456),i=((n={}).firstName="firstName",n.lastName="lastName",n.pictureUrl="pictureUrl",n.signupPictureUrl="signupPictureUrl",n.location="location",n.linkedInUrl="linkedInUrl",n.jobTitle="jobTitle",n.company="company",n.bio="bio",n);let l={firstName:"common:profiles.field_label.first_name",lastName:"common:profiles.field_label.last_name",jobTitle:"common:profiles.field_label.job_title",company:"common:profiles.field_label.company",pictureUrl:"common:profiles.field_label.profile_picture",signupPictureUrl:"common:profiles.field_label.profile_picture",location:"common:profiles.field_label.location",linkedInUrl:"common:profiles.field_label.linkedin_url",bio:"common:profiles.field_label.bio"},o={firstName:"First Name",lastName:"Last Name",jobTitle:"Job Title",company:"Company",pictureUrl:"Profile Picture",signupPictureUrl:"Profile Picture",location:"Location",linkedInUrl:"LinkedIn URL",bio:"Bio"},s={firstName:r.H1w.Required,lastName:r.H1w.Required,jobTitle:r.H1w.Required,company:r.H1w.Required,pictureUrl:r.H1w.Required,signupPictureUrl:r.H1w.Hidden,location:r.H1w.Optional,linkedInUrl:r.H1w.Optional,bio:r.H1w.Optional}}}]); 2//#
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.