1"use strict";(globalThis.webpackChunkamfs_ui||=[]).push([[357],{3357(e,t,n){n.r(t),n.d(t,{default:()=>T});var r=n(4848),o=n(6540),a=n(1113),l=n(6895),i=n(3421),c=n(9170),s=n(2803);let{LINKLIST:u,ICONLIST:p}=i.Hf,d=(e,t,n)=>({label:(e="icons"===n?e.link:e).value,dataTestId:e.id,navLink:(0,s.gD)(e.url),iconImageUrl:t,isExLink:e.showSpeedBump,modalType:e.navigationKeyId,analytics:e.trackingId?e.trackingId.split(","):[],socialNav:"socialMediaFollowList"===e.id,subNav:[{}]}),m=(e,t,n)=>e[u][t]?Object.values(e[u][t][n]).map(t=>{let r=d(t,"",n);return r.subNav=g(e,t.id,n)||[],r}):[],g=(e,t,n)=>{if(e[u][t]||e[p][t]){let r=e[u][t]?e[u][t]:e[p][t];if(r.icons)return Object.values(r.icons).map(e=>d(e,e?.image?.url,"icons"));if(r.links)return Object.values(r.links).map(e=>d(e,"",n))}};var f=n(5411);function h(e){let t=e.replaceAll(/[.*+?^${}()|[\]\\]/g,"\\$&");return document.cookie.replace(RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`),"$1")}function b(e,t,n,r,o,a=!0){if(!e||/^(?:expires|max-age|path|domain|secure)$/i.test(e))return!1;let l="";n&&("number"==typeof n?l=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":`; max-age=${String(n)}`:"string"==typeof n?l=`; expires=${n.replaceAll(/[;\r\n]/g,"")}`:n instanceof Date&&(l=`; expires=${n.toUTCString()}`));let i=e.replaceAll(/[;\r\n]/g,""),c=t.replaceAll(/[;\r\n]/g,""),s=o?`; domain=${o.replaceAll(/[;\r\n]/g,"")}`:"",u=r?`; path=${r.replaceAll(/[;\r\n]/g,"")}`:"";return document.cookie=`${i}=${c}${l}${s}${u}${a?"; secure":""}`,!0}async function v(e){try{if(e){let t=function(e){let t=e.split("-")[0]??"";if(5!==t.length)return"";let n=Number.parseInt(t,10);for(let[e,t,r]of $)if(n>=e&&n<=t)return r;return""}(e);if(t)return{region:t,country:"US"}}let t=h("tml");if(t){let e=t.split("|");return{region:e[0]??"",country:e.length>1?e[1]??"":""}}return await y()}catch(e){return console.warn(`TM Error: ${e}`),{region:"",country:""}}}async function y(){try{var e;let t=await (await fetch("https://static.chasecdn.com/loc/result")).json(),n="default"!==t.region?t.region:"",r=t.country;return e=`${n}|${r}`,b("tml",e,1),{region:n,country:r}}catch(e){return console.warn(e),{region:"",country:""}}}let $=[[300,500,"PR"],[501,501,"NY"],[502,543,"PR"],[544,544,"NY"],[545,999,"PR"],[1e3,2799,"MA"],[2800,2999,"RI"],[3e3,3899,"NH"],[3900,4999,"ME"],[5e3,5500,"VT"],[5501,5501,"MA"],[5502,5543,"VT"],[5544,5544,"MA"],[5545,5999,"VT"],[6e3,6389,"CT"],[6390,6390,"NY"],[6391,6999,"CT"],[7e3,8999,"NJ"],[1e4,14999,"NY"],[15e3,19699,"PA"],[19700,19999,"DE"],[2e4,20099,"DC"],[20100,20199,"VA"],[20200,20597,"DC"],[20598,20598,"VA"],[20599,20599,"DC"],[20600,21999,"MD"],[22e3,24699,"VA"],[24700,26999,"WV"],[27e3,28999,"NC"],[29e3,29999,"SC"],[3e4,31999,"GA"],[32e3,34999,"FL"],[35e3,36999,"AL"],[37e3,38599,"TN"],[38600,39799,"MS"],[39800,39999,"GA"],[4e4,42999,"KY"],[43e3,45999,"OH"],[46e3,47999,"IN"],[48e3,49999,"MI"],[5e4,52999,"IA"],[53e3,54999,"WI"],[55e3,56899,"MN"],[56900,56999,"DC"],[57e3,57999,"SD"],[58e3,58999,"ND"],[59e3,59999,"MT"],[6e4,62999,"IL"],[63e3,65999,"MO"],[66e3,67999,"KS"],[68e3,69999,"NE"],[7e4,71599,"LA"],[71600,72999,"AR"],[73e3,73199,"OK"],[73301,73399,"TX"],[73400,74999,"OK"],[75e3,79999,"TX"],[8e4,81999,"CO"],[82e3,83199,"WY"],[83200,83413,"ID"],[83414,83414,"WY"],[83415,83999,"ID"],[84e3,84999,"UT"],[85e3,86999,"AZ"],[87e3,88499,"NM"],[88500,88599,"TX"],[88900,89999,"NV"],[9e4,96699,"CA"],[96700,96999,"HI"],[97e3,97999,"OR"],[98e3,99499,"WA"],[99500,99999,"AK"]],C=e=>{try{return encodeURIComponent(decodeURIComponent(e))}catch{return encodeURIComponent(e)}},w=e=>{if(!e)return"#";try{var t;let n=new URL(e,globalThis.location.origin),r=(t=n.protocol,"https:"===t?"https:":"http:"===t?"http:":null);if(!r||!/^[a-z0-9.-]+$/i.test(n.hostname))return"#";let o=n.hostname.split(".").map(e=>encodeURIComponent(e)).join("."),a=n.port?`:${encodeURIComponent(n.port)}`:"",l=n.pathname.split("/").map(e=>e?C(e):"").join("/"),i=n.search?`?${n.search.slice(1).split("&").map(e=>{let t=e.indexOf("=");if(-1===t)return C(e);let n=e.slice(0,t),r=e.slice(t+1);return`${C(n)}=${C(r)}`}).join("&")}`:"",c="";return n.hash&&(c=`#${C(n.hash.slice(1))}`),`${r}//${o}${a}${l}${i}${c}`}catch(e){return console.error("Invalid URL:",e),"#"}},x=({bodyText:e,children:t})=>{let n=e.split("{{privacypolicy}}");return o.createElement("div",null,n[0],t,n[1])},I=({env:e,fixedPosition:t=!0,onOpen:n,onClose:r})=>{let a="prod"===e?"https://asset.chase.com/web/library/digddsautomation/reportingjs/config.json":"https://asset-qa2.chase.com/web/library/digddsautomation/reportingjs/config.json",[l,i]=(0,o.useState)(),[c,s]=(0,o.useState)(!1),[u,p]=(0,o.useState)(null),[d,m]=(0,o.useState)("en"),g=(0,o.useRef)(null),y=(0,o.useRef)(n),$=(0,o.useRef)(r);if((0,o.useEffect)(()=>{y.current=n,$.current=r},[n,r]),(0,o.useEffect)(()=>{c&&l&&(globalThis.dispatchEvent(new CustomEvent("addConsentBanner")),g.current?.focus(),y.current?.()),!c&&l&&(globalThis.dispatchEvent(new CustomEvent("removeConsentBanner")),$.current?.())},[c,l]),(0,o.useEffect)(()=>{void 0===globalThis.window||(async()=>{let e,t=(()=>{let e,t=h("PC_1_0");if(!t)return{};let n={};try{let n=t.replaceAll(/%u([\dA-Fa-f]{4})/g,(e,t)=>
1encodeURIComponent(String.fromCodePoint(Number.parseInt(t,16))));e=decodeURIComponent(n)}catch{e=t}for(let t of e.split("|")){let[e,r]=t.split("=");e&&(n[e]=r??"")}return n})(),n=await v(t.zip);m("en"===(e=(t?.locale??document.documentElement.lang).toLowerCase().split(/[_-]/)[0]??"en")||"es"===e?e:"en"),p(n)})()},[]),(0,o.useEffect)(()=>{let e=async()=>{try{let e=await fetch(a);if(!e.ok)throw Error("Failed to fetch config");let t=await e.json();t.consentBanner?(i(t.consentBanner),s(!0)):console.error("consentBanner property not found in config")}catch(e){console.error("Failed to fetch consent banner config:",e)}};if(void 0!==globalThis.window){let t;!Number.isNaN(t=Number.parseInt(sessionStorage.getItem("cbc_exp")??"",10))&&Date.now()>t&&(!function(e,t="/",n){let r="cbc".replaceAll(/[;\r\n]/g,""),o=t.replaceAll(/[;\r\n]/g,""),a,l=a?`; domain=${a}`:"";document.cookie=`${r}=; path=${o}${l}; max-age=0; secure`}(0),sessionStorage.removeItem("cbc_exp")),h("cbc")||e()}},[a]),void 0===globalThis.window)return null;let C=()=>{s(!1),b("cbc","true",86400);let e=Date.now()+864e5;sessionStorage.setItem("cbc_exp",e.toString())};if(!c||!l||!u||"US"!==u.country)return null;let I=l.enabledDomains.includes(globalThis.location.hostname),T=new URL(globalThis.location.href),N=T.origin+T.pathname,k=!l.excludePages.includes(N);if(!l.enableBanner||!I||!k)return null;let A=w(l[d].privacyPolicyDomains[globalThis.location.hostname]||"https://www.jpmorganchase.com/legal/privacy"),E=w(l.closeIcon);return o.createElement("div",{ref:g,id:"chase-consent-banner",className:`consent-banner ${t?"fixed":""}`,role:"dialog","aria-label":"es"===d?"Consentimiento de privacidad":"Privacy consent",tabIndex:-1},o.createElement("div",{className:"consent-banner-section-wrapper"},o.createElement(x,{bodyText:l[d].bodyText},o.createElement("a",{href:A,target:"_blank",rel:"noopener noreferrer",onClick:e=>{(0,f.dynamicLinkEvent)({linkName:"consent-privacy",linkUrl:e.currentTarget.href}),C()}},l[d].privacyPolicyLinkText))),o.createElement("div",{className:"close-icon-wrapper"},o.createElement("button",{className:"consent-close-icon-wrapper",onClick:()=>{(0,f.dynamicLinkEvent)({linkName:"consent-close",linkUrl:`${globalThis.location.href}#`}),C()}},o.createElement("img",{className:"consent-close-icon",src:E,alt:l[d].closeIconAltText??("es"===d?"Cerrar":"Close")}))))};n(9080);let T=()=>{let e=(0,o.useContext)(c.V),{LINKLIST:t,ICONLIST:n,LEGALCONTAINER:s,CONTENTLIST:u}=i.Hf,{t:p}=(0,a.Bd)(i.Aq.COMMON_TAG),d={linkList:p(t,i.x0),iconList:p(n,i.x0),legalContainer:p(s,i.x0),contentList:p(u,i.x0)},{footerMainNavList:g,footerLinksList:f,socialMediaLinks:h}=d.linkList,{footNoteText1:b,footNoteText2:v}=d.contentList,y=m(d,g?.id,"links"),$=m(d,f?.id,"links"),C=(0,o.useCallback)((t,n)=>{e.openModal?.(t,n)},[e]);if(!y.length||!$.length)return(0,r.jsx)("p",{children:i.Nj});let w=[{}];return h&&(w=Object.values(h.links).map(e=>({icon:e.iconId,altText:e.headerText,url:e.url,navigationKeyId:e.navigationKeyId,analytics:e.trackingId}))),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.X,{brand:i.qt,content:{footerNavigation:y,footerDisclosureLinks:$,footerSocialLinks:w,footerDisclosureCopy:b?.title?.text,footerLegalCopy:v?.title?.text,showModalAlert:C}}),(0,r.jsx)("div",{className:"pwfcwkxGkHbqB7CFhped",children:(0,r.jsx)(I,{env:"prod"})})]})}}}]);
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.