PageSourceSearch

https://portal.commoninterest.com/assets/ContactDetailsLayout-DbmslTNh.js

js commoninterest.com collected 2026-09-24 13:27:17 UTC 2,276 bytes, 1 lines download raw bytes

1import{r as l,j as e,a7 as E,u as b,S as k}from"./elements-DVh2jUIM.js";import{t as C,j as D,a5 as L,$ as N,A as v,p,R as I,O as T,k as U}from"./index-DeQvL4I7.js";import{u as x,E as w,c as A}from"./contactDetails-DxJJCpnD.js";import{u as K}from"./useHomeSettings-BcPcJ3OS.js";import{t as y}from"./trackEvent-CeNPAPKA.js";import"./grids-DXrfAsUA.js";import"./startOfDay-AazlW55I.js";function O(){var a;const n=C(),o=D(u=>u.launchDarklyIdentifiedKey);if(!((a=L)!=null&&a.trim()))return"on";const r=n.homeContactDetailsUpdateLink;return o===null||r===void 0?"pending":r?"on":"off"}function f(){const{t:n}=b();return e.jsxs("div",{className:"min-h-screen w-full bg-slate-50 flex flex-col items-center justify-center gap-4 px-6 text-center",children:[e.jsx(k,{}),e.jsx("p",{className:"text-lg font-bold text-base-fg",children:n("contactDetails.loading.headline")}),e.jsx("p",{className:"max-w-sm text-sm text-base-fg/70",children:n("contactDetails.loading.body")})]})}function M(){const{strategy:n,link:o}=N(),[r]=v(),a=O(),u=x(s=>s.setSession),d=x(s=>s.clearSession),{updateUserSettings:g}=K(),m=r.get("c")??r.get("C")??void 0,{data:t,isLoading:h}=p({queryKey:["contactDetailsHomeSettings",m??null],queryFn:()=>U.getUserSettings({lastAssociationCode:m}),staleTime:1/0,retry:!1});l.useEffect(()=>{t&&g(t)},[t,g]),l.useEffect(()=>d,[d]);const{error:c,isPending:j,data:S}=p({queryKey:["contactDetailsExchange",n,o],staleTime:1/0,gcTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,enabled:a==="on"&&!!o,queryFn:async()=>{const s=Number(n),i=await A.exchange({strategy:Number.isFinite(s)?s:0,webToken:o});return u(i),y("contact-details:link:opened",{hasPortalLogin:i.hasPortalLogin}),i}});return l.useEffect(()=>{var i;if(!c)return;const s=((i=c.response)==null?void 0:i.status)??null;y("contact-details:link:rejected",{reason:s===403?"invalid-link":"exchange-error",status:s})},[c]),a==="pending"?e.jsx(f,{}):a==="off"?e.jsx(I,{to:"/not-found",replace:!0}):c?e.jsx(w,{logoUrl:t==null?void 0:t.logoUrl,companyName:t==null?void 0:t.companyName,isBrandingLoading:h}):j||!S?e.jsx(f,{}):e.jsxs("div",{className:"default",children:[e.jsx(l.Suspense,{fallback:e.jsx(f,{}),children:e.jsx(T,{})}),e.jsx(E,{position:"bottom-right"})]})}export{M as Component};

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.