1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[7313],{88180:(e,t,n)=>{n.d(t,{B:()=>s,s:()=>r});const r={"Prod Author":"https://preview-wcmext-prd.chase.com","Staging Author":"https://preview-wcmext-stg.chase.com","Current Environment":""},s={QA:"https://asset-qa2.chase.com",Prod:"https://asset.chase.com"}},92214:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(39995),s=n(92407),o=n(42374),a=n(74848);const i=o.default.div.withConfig({displayName:"CommonSkeleton__SkeletonFlexContainer",componentId:"sc-973jhs-0"})(["display:flex;flex-direction:column;flex-grow:1;justify-content:space-evenly;"]),c=(0,o.default)(s.Skeleton).withConfig({displayName:"CommonSkeleton__TallSkeleton",componentId:"sc-973jhs-1"})(["height:10rem;"]),l=()=>(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"ds-flex",style:{alignContent:"flex-start"},children:(0,a.jsxs)(i,{children:[(0,a.jsx)(r.Spacing,{margin:{bottom:"0.625rem"},children:(0,a.jsx)(s.Skeleton,{shape:"round"})}),(0,a.jsx)("div",{children:(0,a.jsx)(s.Skeleton,{shape:"round"})})]})}),(0,a.jsx)(r.Spacing,{margin:{top:"1rem"},children:(0,a.jsx)(c,{shape:"rectangle"})})]})},99915:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f,getTrustedRemoteEntryUrl:()=>m});var r=n(35583),s=n(5894),o=n(34213),a=n(61899),i=n(84033),c=n(28300),l=n(92214),d=n(90282);const m=(e,t)=>{try{const n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname.startsWith("/web/library/")&&n.pathname.endsWith("/remoteEntry.js")?n.href:null}catch{return null}};var p=n(73270),u=n(88180),h=n(74848);const g=(0,r.memo)(({RemoteComponent:e,loadError:t,content:n,language:s,theme:o,appConfigs:a,basePath:i,ddPreviewMode:m})=>{const u=(0,p.useLogger)(),g=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{t&&!g.current?(u.error(`Failed to load remote component: ${t}`),g.current=!0):t||(g.current=!1)},[t]),(0,h.jsxs)(h.Fragment,{children:[!e&&(0,h.jsx)(d.A,{children:(0,h.jsx)(c.Grid,{children:(0,h.jsx)(l.A,{})})}),e&&(0,h.jsx)(e,{content:n,channelType:"public",language:s,theme:o,appConfigs:a,ddPreviewMode:m,basePath:i})]})});g.displayName="RemoteComponentLoader";const f=(0,p.withPerformance)(({distributedApp:e,componentName:t,scope:f,version:x,fragmentsNeeded:y,pqEndpointUrl:j,assignmentGroup:v,sealIds:w,cxoEnv:b})=>{const{s3Host:A,basePath:E,ddEnv:P,ddPreviewMode:S}=(0,r.useContext)(i.Vv),{error:$,data:C}=(0,i.KA)(j||null),D=(0,p.useLogger)(),{measureApi:_}=(0,p.useApiPerformance)({apiEndpoint:A?`${A}/web/library/${e}/${x}/remoteEntry.js`:"",metricName:`${t}-fetch`}),{measure:N}=(0,p.usePerformance)(),T=(0,r.useRef)({startTime:null,mountTime:null,firstRenderTime:null});null===T.current.startTime&&(T.current.startTime=Date.now());const{externalAppConfig:R,appsconfig:L,language:k,theme:I}=(0,o.ZY)(),M=(0,r.useMemo)(()=>(0,a.IH)(I||"CPO"),[I]);let O="";b?O=u.B[b]:A&&(O=A);const U=O?`${O}/web/library/${e}/${x}/remoteEntry.js`:"",[V,B]=(0,r.useState)(null),[F,H]=(0,r.useState)(null),[q,G]=(0,r.useState)(null),K=A&&"prod"!==P&&"perf"!==P&&!S,Q=(0,r.useMemo)(()=>j&&C?(D.info(`[DistributedAppV2] Using PQ content for ${e}`),C):(j&&$&&D.error(`[DistributedAppV2] PQ content error for ${e}: ${$}`),y||[]),[j,C,$,y,e]),W=(0,r.useMemo)(()=>({...R,analyticsDPSEnvironment:L?.analyticsDPSEnvironment,analyticsDPSDomain:"prod"===L?.analyticsDPSEnvironment?"https://analytics.chase.com":"https://qac02-analytics.chase.com",ddAppsEnv:P}),[R,L,P]);return(0,r.useEffect)(()=>{K&&!F&&fetch(`${A}/web/library/version/versions.json`).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(t=>{const n=Object.entries(t).filter(([t])=>t===e);1===n.length&&H(n[0][1]?.nonProdVersions?.current||null)}).catch(e=>{const t=`Failed to load app versions: ${e.message||String(e)}`;D.error(`[DistributedAppV2] ${t}`)})},[A,D,e,F,K]),(0,r.useEffect)(()=>{if(K&&F||!K&&U){const r=async()=>{try{const r=m(F?`${O}/web/library/${e}/${F}/remoteEntry.js`:U,O||"");if(r){const o=F||x,a=`${t}-load`;await N(a,async()=>{await _(()=>((e,t)=>new Promise((n,r)=>{const s=document.createElement("script");s.src=e,s.type="text/javascript",s.async=!0,s.crossOrigin="anonymous",s.onload=()=>{t.info(`Remote script loaded: ${e}`),n(null)},s.onerror=()=>{t.error(`Failed to load remote script: ${e}`),r()},document.head.appendChild(s)}))(r||"",D),{apiEndpoint:r}),await n.I("default");const e=window[f];await e.init(n.S.default);const o=(await e.get(`./${t}`))();B(()=>(0,s.Ay)(()=>Promise.resolve(o)))}
1,{detail:{distributedApp:e,componentName:t,version:o}}),G(null)}}catch(e){const t=e instanceof Error?e.message:String(e);G(t)}};r()}},[U,f,t,A,F]),A?(0,h.jsx)("div",{"data-feature":"distributed-app",className:"distributedApp",children:(0,h.jsx)(p.PlatformProvider,{appName:e,componentName:t,sealId:w?.[0],assignmentGroup:v,autoInit:!1,children:(0,h.jsx)(p.RemoteAppBoundary,{loadTimeout:4e3,requireSuccessSignal:!S,fallback:(0,h.jsx)(d.A,{children:(0,h.jsx)(c.Grid,{children:(0,h.jsx)(l.A,{})})}),children:(0,h.jsx)(g,{RemoteComponent:V,loadError:q,content:Q,language:k,theme:M,appConfigs:W,basePath:E,ddPreviewMode:S})})})}):null},{appName:"chaseux-next-express",name:"DistributedAppV2",trackRenderCount:!0})}}]);
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.