PageSourceSearch

https://static.nyse.com/cms/41.10.17/chunks/cms-components/ice-report-center/Main-DCZp6A_E.js

js nyse.com collected 2026-10-02 02:16:37 UTC 40,256 bytes, 1 lines download raw bytes

1import{h as De,a as f,D as O,j as t,n as Et,f as G,F as Nt,d as $e,H as xe,A as X,aq as Rt}from"../../__generated__/components/demos-DhThR4g2.js";import{B as re,b as vt,E as we}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/feedback/Spinner-DWFnkFxu.js";import{u as Dt}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/hooks/useDebounce-BFyhuKQu.js";import{L as Xe}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/controls/links/Link-B-okl8DV.js";import{u as St}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/hooks/useWebStorage-C-KGFvjq.js";import{u as Tt}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/contexts/global-state-context/GlobalStateContext-BPTmPYHT.js";import{u as Mt}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/hooks/useUpdateEffect-B-c5lsZF.js";import{u as kt}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/hooks/usePrevious-h5-zoYRk.js";import{I as Ze}from"../../shared/apis/wmd/ice-report-center/utils/constants-BwRcF6-a.js";import{o as qe}from"../../shared/utils/objectToQuerystring-XZn8i5IX.js";import{s as Ke}from"../../backend/utils/safeParse-hue9LUqW.js";import{c as Ot,r as At,i as Ut,t as Pt,u as $t}from"../../shared/apis/wmd/ice-report-center/useMeta-DtLGGO1T.js";import{u as et}from"../../node_modules/-pnpm/react-router@6-30-4_react@18-3-1/node_modules/react-router/dist/index-js-commonjs-proxy-DScuS9fV.js";import{u as Vt}from"../../__generated__/components/main-B_XpGw9E.js";import{i as Ve}from"../../shared/utils/isPermissionsError-YNYYaB0y.js";import{o as It,V as tt,i as Ft}from"../../node_modules/-pnpm/@theice-pushpop@3-5-0_@types-express@4-17-25/node_modules/@theice/pushpop/build/array/replace-BIxldC1J.js";import{r as nt}from"../../node_modules/-pnpm/@theice-val@4-0-4_@types-express@4-17-25_eslint@9-39-4_jiti@2-6-1__typescript@5-9-3/node_modules/@theice/val/build/required-Dqmey6Jh.js";import{m as Lt}from"../../node_modules/-pnpm/@theice-val@4-0-4_@types-express@4-17-25_eslint@9-39-4_jiti@2-6-1__typescript@5-9-3/node_modules/@theice/val/build/minDate-BaafSwQv.js";import{m as _t}from"../../node_modules/-pnpm/@theice-val@4-0-4_@types-express@4-17-25_eslint@9-39-4_jiti@2-6-1__typescript@5-9-3/node_modules/@theice/val/build/maxDate-DT5FSKj8.js";import{d as Ht}from"../../node_modules/-pnpm/@theice-val@4-0-4_@types-express@4-17-25_eslint@9-39-4_jiti@2-6-1__typescript@5-9-3/node_modules/@theice/val/build/date-DGpZJmym.js";import{c as st}from"../../node_modules/-pnpm/@theice-val@4-0-4_@types-express@4-17-25_eslint@9-39-4_jiti@2-6-1__typescript@5-9-3/node_modules/@theice/val/build/composeValidators-C9n9veTE.js";import{p as rt}from"../../node_modules/-pnpm/@theice-val@4-0-4_@types-express@4-17-25_eslint@9-39-4_jiti@2-6-1__typescript@5-9-3/node_modules/@theice/val/build/provideLabel-f3-FQFT-.js";import{c as zt}from"../../node_modules/-pnpm/@theice-val@4-0-4_@types-express@4-17-25_eslint@9-39-4_jiti@2-6-1__typescript@5-9-3/node_modules/@theice/val/build/createStructuredValidator-IfQMMOZt.js";import{o as Ie,p as Z,G as Bt,r as ge,H as Jt,f as Gt,I as Yt,d as lt,J as Wt}from"../../node_modules/-pnpm/date-fns@2-30-0/node_modules/date-fns/addYears/index-js-commonjs-es-import-wvD8i_oy.js";import{M as Qt}from"../../node_modules/-pnpm/@meronex-icons@4-0-0_react@18-3-1/node_modules/@meronex/icons/vsc/VscChevronRight-js-commonjs-es-import-CWEV05sZ.js";import{R as Xt}from"../../node_modules/-pnpm/@meronex-icons@4-0-0_react@18-3-1/node_modules/@meronex/icons/md/MdRefresh-js-commonjs-es-import-DghFdtOY.js";import{D as Re}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/controls/form/DateTime-C_IzgPFJ.js";import{T as Zt}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/control
1s/form/TypeAhead-Bu6ZiXZQ.js";import{u as qt}from"../../shared/render-context/useCmsProxyBaseUrl-Dy5Zztou.js";import{T as Kt}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/controls/form/Textbox-D4MN9ybO.js";import{R as Ce}from"./components/RecaptchaDisclaimer-BYdQ8q-w.js";import{C as en}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/controls/form/Checkbox-DdthLttV.js";import{D as at}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/lists/DefinitionList-DWmQtW9V.js";import{P as tn}from"../../node_modules/-pnpm/@meronex-icons@4-0-0_react@18-3-1/node_modules/@meronex/icons/md/MdPrint-js-commonjs-es-import-BuRqEmnf.js";import{D as ot}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/overlays/Dialog-CdgS2PfJ.js";import{D as nn}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/tables/DataTable-CjQB_rsC.js";import{u as sn,f as Fe,g as rn,a as ln}from"../../node_modules/-pnpm/@tanstack-react-table@8-21-3_react-dom@18-3-1_react@18-3-1__react@18-3-1/node_modules/@tanstack/react-table/build/lib/index-C5ZUoZx1.js";import{P as an}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/controls/links/Pagination-BpA-1Qcw.js";import{T as Le}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/tables/TableRow-UkefqzEn.js";import{D as it}from"../../shared/components/download-button/DownloadButton-DHYqW2hE.js";import{M as on}from"../../node_modules/-pnpm/@meronex-icons@4-0-0_react@18-3-1/node_modules/@meronex/icons/md/MdAdd-js-commonjs-es-import-CH-9rVY8.js";import{H as cn}from"../../node_modules/-pnpm/@meronex-icons@4-0-0_react@18-3-1/node_modules/@meronex/icons/md/MdRemove-js-commonjs-es-import-0yF1WqIJ.js";import{N as un}from"./constants-j5z2QWQU.js";import{C as ve}from"../../shared/components/partial/Partial-DRFkuGSA.js";import{R as dn}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/controls/rich-text/RichText-CtV79qxZ.js";import{d as mn}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-40/packages/website-components/build/components/controls/rich-text/deserializeRichText-BAuE132P.js";import{e as fn,r as hn,h as pn}from"./utils/replacePlaceholders-B5EWIUFi.js";const xn=async(e,n,r)=>{const s=r!=null&&r.reportUrl?"".concat(r.reportUrl,"/criteria"):"/marketdata/api/reports/".concat(encodeURIComponent(e),"/criteria"),l=qe(n),a=l.length?"".concat(s,"?").concat(l):s,i=await fetch(a);return i.status===418&&e&&(window.location.replace("/marketdata/reports/".concat(encodeURIComponent(e))),await new Promise(()=>{})),De(i),Ke(Ot,await i.json())},gn=(e,n)=>{if(n.type==="date-range"){const r=e[n.fromName],s=e[n.toName];return r||s?{from:r,to:s}:void 0}return e[n.name]},jn=(e,n,r,s)=>{const l=et([Ze,"criteria",r,n],()=>xn(e,n,{reportUrl:s==null?void 0:s.reportUrl}),{...s,retry:!1,keepPreviousData:!0,enabled:!1}),{data:a,refetch:i,error:o}=l,c=f.useMemo(()=>{const d=a!=null&&a.length?Object.fromEntries(a.filter(m=>m.refetchCriteriaOnChange).flatMap(m=>{const p=gn(n,m);return p!=null&&p!==""?[[m.name,p]]:[]})):{};return JSON.stringify(d)},[a,n]);return f.useEffect(()=>{(s==null?void 0:s.enabled)!==!1&&!o&&(console.info("[ICE-REPORT-CENTER]","fetching criteria",c),i().then(d=>{console.info("[ICE-REPORT-CENTER]","fetched criteria",c,d.data)}))},[i,c,s==null?void 0:s.enabled,o]),l},bn=async(e,n,r)=>{const s=await fetch(r?"".concat(r,"/results"):"/marketdata/api/reports/".concat(encodeURIComponent(e),"/results"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:qe(n)});return De(s),Ke(At,await s.json()).datasets},yn=(e,n,r)=>{const s=e.isPaginated?e.rowsPerPage:void 0,l=[Ze,"content",n,e.values,s];return et(l,()=>bn(e.reportId,{...e.values,offset:e.isPaginated?e.values.offset:void 0,pageNumber:e.isPaginated?e.values.pageNumber:void 0,max:s}
1,r==null?void 0:r.reportUrl),{...r,enabled:Ut(r)&&(e.reportId!=null||(r==null?void 0:r.reportUrl)!=null)})},q=e=>n=>Array.isArray(n)?n.every(e):e(n),wn=e=>e!=null&&!Array.isArray(e)&&typeof e=="object"&&e.type==="download",Cn=e=>e!=null&&!Array.isArray(e)&&typeof e=="object"&&e.type==="link",En=e=>e!=null&&!Array.isArray(e)&&typeof e=="object"&&e.type==="modal",Nn=e=>typeof e=="number",Rn=e=>{switch(typeof e){case"number":case"string":return!0;default:return!1}},vn=e=>{switch(typeof e){case"number":case"string":return!0;default:return!1}},Dn=q(wn),Sn=q(Cn),Tn=q(En),Mn=q(vn),kn=q(Nn),On=q(Rn),An=e=>e.type==="download",Un=e=>e.type==="link",Pn=e=>e.type==="modal",$n=e=>e.type==="date",Vn=e=>e.type==="number",In=e=>e.type==="text"||e.type===void 0,Fn=e=>e.name!=null&&e.name!=="",de=e=>e.type==="date-range",Ln=e=>{if(typeof window>"u"||!e)return;const n=window.history.state;return n==null?void 0:n["ice-report-center:".concat(e)]},me=(e,n,r,s)=>{var i;const l=new URLSearchParams(window.location.search).get(n);if(l)return console.info("[ICE-REPORT-CENTER]",'found default value for "'.concat(n,'" in querystring'),JSON.stringify(l)),{value:l};const a=(i=Ln(s))==null?void 0:i[n];if(a)return console.info("[ICE-REPORT-CENTER]",'found default value for "'.concat(n,'" in history.state for namespace ').concat(s!=null?s:"unknown"),JSON.stringify(a)),a;if(r!=null)return console.info("[ICE-REPORT-CENTER]",'found default value for "'.concat(n,'" in criterion'),JSON.stringify(r)),e==="typeahead"?{value:r,meta:{text:r}}:{value:r}},_n=(e,n)=>{const r=["[ICE-REPORT-CENTER]","(re)applying default value to ".concat(n.name," because")];return e?e.type!==n.type?(console.info(...r,"the type changed from",JSON.stringify(e.type),"to",JSON.stringify(n.type)),!0):de(e)&&de(n)&&(e.defaultFromValue!==n.defaultFromValue||e.defaultToValue!==n.defaultToValue)?(console.info(...r,"the defaultFrom/defaultTo values changed"),!0):!de(e)&&!de(n)&&e.defaultValue!==n.defaultValue?(console.info(...r,"the defaultValue changed from",JSON.stringify(e.defaultValue),"to",JSON.stringify(n.defaultValue)),!0):!1:(console.info(...r,"it was not found in the previous criteria fields"),!0)},Hn=(e,n,r)=>{const s=n.flatMap(l=>{var i;const a=e==null?void 0:e.find(o=>o.name===l.name);if(!_n(a,l))return[];switch(l.type){case"date-range":return[[l.fromName,me(l.type,l.fromName,l.defaultFromValue,r)],[l.toName,me(l.type,l.toName,l.defaultToValue,r)]];case"select":if(l.values.some(o=>o.value===""))return[[l.name,me(l.type,l.name,(i=l.defaultValue)!=null?i:"",r)]];default:return[[l.name,me(l.type,l.name,l.defaultValue,r)]]}});return Object.fromEntries(s)},zn=(e,n,r,s,l)=>{const{data:a,isPreviousData:i,isError:o}=n,[c,d]=f.useState(!1);return f.useEffect(()=>{if(o){d(!0);return}!a||i||(s(m=>{const p=Hn(e,a,l),C=(e!=null?e:[]).flatMap(h=>{var b;const u=a.find(x=>x.name===h.name&&x.type===h.type);if(!u)return console.info("[ICE-REPORT-CENTER]","removing the value for",h.name,"because the field was removed from the criteria"),h.type==="date-range"?[h.name,h.fromName,h.toName]:[h.name];if(u.type==="select"){const x=(b=r[h.name])==null?void 0:b.value,T=u.values.some(v=>v.value===x);if(x!=null&&x!==""&&!T)return console.info("[ICE-REPORT-CENTER]","removing the value for",h.name,"because the current value,",x,", is not in the latest value list:",u.values),[h.name]}return[]});if(C.length===0&&Object.keys(p).length===0)return m;const g={...It(C,m),...p};return console.info("[ICE-REPORT-CENTER]","updating criteria values for namespace ".concat(l!=null?l:"unknown"),{prevCriteria:e,criteria:a,removedNames:C,newDefaultValues:p,results:g}),g},!0),d(!0))},[e,a,i,l,o]),c},Bn={date:O["input:date"],datetime:O["input:datetime-local"],month:O["input:month"],time:O["input:time"],week:O["input:week"]},Jn=(e,n="Value")=>e==null?["".concat(n," is required.")]:null,ct=e=>{var l;const n=[],r=e.type==="date-range"?"date":(l=e.scope)!=null?l:"date",s=Bn[r];return n.push(nt,Ht(s)),e.min&&n.push(Lt(s,e.min)),e.max&&n.push(_t(s,e.max)),n},_e=(e,n,r)=>(s,l,a)=>rt(n,r)(a==null?void 0:a[e],l,a),Gn=(e,n,r,s="months",l)=>(a,i="Date Range",o)=>{const c=o==null?void 0:o[e],d=o==null?void 0:o[n];if(!c||!d||r==null)return null;const m=Z(c,l,0),p=Z(d,l,Bt(0));if(!ge(m)||!ge(p)||m>p)return null;const C=Jt(m,{[s]:r});return p>C?["".concat(i," should have a range of ").concat(r," or fewer ").concat(s,".")]:null},Yn=(e,n,r=O["input:date"])=>(s,l="Date Range",a)=>{const i=a==null?void 0:a[e],o=a==null?void 0:a[n];if(!i||!o)return null;const c=Ie(Z(i,r,0)),d=Ie(Z(o,r,0));return c>d?["".concat(l," should have an end date that is after the start date.")]:null},Wn=e=>{const n=st(...ct(e));return[_e(e.fromName,"".concat(e.displayName," - Start Date"),n),_e(e.toName,"".concat(e.displayName," - End Date"),n),Yn(e.fromName,e.toName),Gn(e.fromName,e.toName,e.maxDiff,e.maxDiffUnit,O["input:date"])]},Qn=e=>{const n=[];
1switch(e.type){case"date":n.push(...ct(e));break;case"date-range":n.push(...Wn(e));break;case"select":{e.values.some(s=>s.value==="")||n.push(Jn);break}case"text":case"typeahead":break;default:n.push(nt)}return rt(e.displayName,st(...n))},He=(e,n)=>{var s;return(s=f.useMemo(()=>zt(Object.fromEntries((e!=null?e:[]).map(l=>[l.name,Qn(l)]))),[e])(n))!=null?s:null},Xn=({criterion:e,value:n,onChange:r,setTouched:s})=>{var o;const l=tt(c=>c.value,e.values),a=l.some(c=>c.value!==""),i=l.some(c=>c.value==="");return t.jsxs(Et,{id:e.name,name:e.name,value:n==null?"":String(n),onChange:c=>{r(c.currentTarget.value),s()},onBlur:s,disabled:!a,children:[!i&&t.jsx("option",{value:"",children:(o=e.placeholder)!=null?o:""}),l.map(c=>t.jsx("option",{value:c.value,children:c.label},c.value))]})},Zn=Intl.DateTimeFormat().resolvedOptions().timeZone,qn=({criterion:e,value:n,onChange:r,setTouched:s})=>{var a;let l=n==null?"":String(n);return typeof n=="string"&&n!==""&&e.scope==="datetime"&&(l=Gt(Yt(Z(n,O["input:datetime-local"],0),Zn),O["input:datetime-local"])),t.jsx(Re,{id:e.name,name:e.name,type:e.scope==="datetime"?"datetime-local":e.scope,min:e.min,max:e.max,value:l,format:O[e.scope==="datetime"?"input:datetime-local":"input:".concat((a=e.scope)!=null?a:"date")],onChange:(i,o)=>
1{if(o&&e.scope==="datetime"){const c=lt(o,"UTC",O["input:datetime-local"]);r(c)}else r(i||void 0);s()},onBlur:s,placeholder:e.placeholder})},Kn=({criterion:e,setCriteria:n,setTouched:r,criteria:s})=>{var p,C;const{name:l,fromName:a,toName:i,min:o,max:c}=e,d=(p=s[a])==null?void 0:p.value,m=(C=s[i])==null?void 0:C.value;return t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Re,{id:l,name:a,min:o,max:c,value:d==null?"":String(d),"aria-label":"".concat(e.displayName," - Start Date"),onChange:g=>{n(h=>({...h,[a]:{value:g||void 0}})),r()},onBlur:r,placeholder:e.placeholder}),t.jsx("span",{children:"TO"}),t.jsx(Re,{id:i,min:o,max:c,name:i,value:m==null?"":String(m),"aria-label":"".concat(e.displayName," - End Date"),onChange:g=>{n(h=>({...h,[i]:{value:g||void 0}})),r()},onBlur:r,placeholder:e.placeholder})]})},es=({criterion:e,value:n,meta:r,criteria:s,onChange:l,setTouched:a})=>{var g,h;const i=qt("ice"),[o,c]=f.useState(String((h=(g=r==null?void 0:r.text)!=null?g:n)!=null?h:""));f.useEffect(()=>{const u=r==null?void 0:r.text;u!=null&&u!==""&&o===""&&c(String(u))},[o,r==null?void 0:r.text]);const d=f.useMemo(()=>{var b,x;const u=new URL("".concat(i).concat(e.endpoint),window.location.origin);for(const[T,v]of Object.entries(e.queryParams))T!==e.name&&u.searchParams.set(v,String((x=(b=s[T])==null?void 0:b.value)!=null?x:""));return u.toString()},[i,e.endpoint,e.queryParams,e.name,s]),[,m]=f.useMemo(()=>{var u;return(u=Object.entries(e.queryParams).find(([b])=>b===e.name))!=null?u:[e.name,e.name]},[e.name,e.queryParams]),p=f.useCallback(async u=>{const b=new URL(d);b.searchParams.set(m,u);const x=await fetch(b);De(x);const T=Pt.parse(await x.json());return tt(v=>v.value,T)},[d,m]),C=f.useCallback(u=>({id:u.value,value:u.label}),[]);return t.jsx("div",{className:"md:min-w-[75vw]",children:t.jsx(Zt,{id:e.name,name:e.name,value:o,fetchResults:p,parseResult:C,strict:!0,onChange:(u,b)=>{c(u),l(b==null?void 0:b.value,b?{text:u}:void 0),a()},onBlur:a,debounceTime:500,placeholder:e.placeholder})})},ts=({criterion:e,value:n,onChange:r,setTouched:s})=>t.jsx(Kt,{id:e.name,name:e.name,value:n==null?"":String(n),placeholder:e.placeholder,onChange:l=>{r(l.currentTarget.value),s()},onBlur:s}),ns=({criterion:e,...n})=>{switch(e.type){case"select":return t.jsx(Xn,{criterion:e,...n});case"text":return t.jsx(ts,{criterion:e,...n});case"date":return t.jsx(qn,{criterion:e,...n});case"date-range":return t.jsx(Kn,{criterion:e,...n});case"typeahead":return t.jsx(es,{criterion:e,...n});default:{const r=e;throw new Error("Unknown Criterion Type: ".concat(r.type))}}},ss=" ",rs=({errors:e,touched:n,...r})=>{const{criterion:{name:s,displayName:l,type:a}}=r;return t.jsx("div",{className:G({"col-span-4 flex-1":a==="typeahead"}),children:t.jsx(Nt,{label:l||ss,labelFor:s,error:n?e:null,children:t.jsx(ns,{...r})},s)})},ls=({criteria:e,valuesAndMeta:n,setCriteria:r,errors:s,showSubmitButton:l,showResetButton:a,refetchResults:i,isReadyForResults:o,isFetchingResults:c,helpText:d,reset:m,criteriaVariant:p="fixed"})=>{const[C,g]=f.useState({});if(!e.length)return null;const h=p==="flex",u=e.length,b=h?u===1?"w-full md:w-1/2":"w-full":"";return t.jsxs("form",{onReset:x=>{x.preventDefault(),g({}),m()},onSubmit:x=>{x.preventDefault(),g(Object.fromEntries(e.map(T=>[T.name,!0]))),o&&i()},className:"flex flex-col items-start gap-4 print:hidden",children:[d!=null&&d!==""?t.jsx("div",{children:d}):null,t.jsx("div",{className:G("flex w-full gap-4",{"flex-col md:grid md:w-auto md:auto-cols-fr md:grid-cols-[repeat(4,auto)]":!h,"flex-col md:flex-row":h}),children:e.map(x=>{var T,v,D;return t.jsx("div",{className:b,children:t.jsx(rs,{criterion:x,value:(T=n[x.name])==null?void 0:T.value,meta:(v=n[x.name])==null?void 0:v.meta,errors:(D=s==null?void 0:s[x.name])!=null?D:null,onChange:(w,R)=>r(V=>({...V,[x.name]:{value:w,meta:R}})),criteria:n,setCriteria:r,touched:!l||!!C[x.name],setTouched:()=>g(w=>({...w,[x.name]:!0}))})},x.name)})}),l||a?t.jsxs("div",{className:"flex items-center gap-2",children:[l?t.jsx(re,{type:"submit",wide:!0,disabled:c||!o,icon:c?t.jsx(vt,{title:"Loading Results..."}):t.jsx(Qt,{}),iconPosition:"right",children:"Submit"}):null,a?t.jsx(re,{type:"reset",wide:!0,disabled:c,icon:t.jsx(Xt,{}),children:"Reset"}):null]}):null]})},as=({children:e,isAgreed:n,setIsAgreed:r})=>t.jsxs(t.Fragment,{children:[e,t.jsx(en,{checked:n,onChange:s=>r(s.currentTarget.checked),children:"I Agree"})]}),os=({reportId:e,enabled:n=!0})=>{const r=$t(e,{enabled:n});if(!r.isSuccess)return null;const{categoryName:s,exchange:l}=r.data;return t.jsx("div",{"data-testid":"report-meta",children:t.jsxs(at,{inline:!0,uppercase:!0,children:[t.jsx("dt",{children:"Category"}),t.jsx("dd",{children:s}),t.jsx("dt",{children:"Market"}),t.jsx("dd",{children:l})]})})},is=({state:e,children:n})=>e.hasLevelOneHeading?t.jsx("div",{children:n}):e.hasLowerHeading?t.jsxs("div",{children:[t.jsx("h1",{className:"sr-only",children:"Report Center"}),n]}):t.jsx("div",{role:"heading","aria-level":1,children:n}),cs=/<h1(?:\s[^>]*)?>([\S\s]*?)<\/h1>/i,us=/<h[2-6][\s>]/i,ze=e=>e.replace(/<[^>]*>/g,"").replace(/&nbsp;/gi," ").trim(),ds=e=>{var l,a;let n=!1,r=!1,s=!1;for(const i of e!=null?e:[])if(i.name==="cms-component-lexical-rich-text"){const o=(l=i.props.lexicalContent)!=null?l:"";if(ze(o).length>0){n=!0;const c=cs.exec(o);c&&ze((a=c[1])!=null?a:"").length>0?r=!0:us.test(o)&&(s=!0)}}else n=!0;return{hasContent:n,hasLevelOneHeading:r,hasLowerHeading:s}},ms=({columns:e})=>$e.createElement("tr",{className:"!bg-transparent"},$e.createElement("td",{className:"pb-4",colSpan:e})),P=({children:e})=>t.jsx(t.Fragment,{children:e==null?null:String(e).split("\n").flatMap((n,r)=>t.jsxs(f.Fragment,{children:[r===0?null:t.jsx("br",{}),n]},r))}),fs=({value:e,downloadDisclaimer:n,onError:r})=>{const s=Array.isArray(e)?e:[e];return t.jsx("div",{className:"inline-flex w-fit flex-col gap-2",children:s.map((l,a)=>{var d;if(l==null||typeof l!="object"||!l.url)return null;const{type:i,showDisclaimer:o,...c}=l;return t.jsx(it,{...c,onError:r,disclaimer:o?n:void 0,children:t.jsx(P,{children:(d=l.label)!=null?d:"Download"})},a)})})},hs=({value:e})=>{const n=Array.isArray(e)?e:[e];return t.jsx("div",{className:"inline-flex w-fit flex-col gap-2",children:n.map((r,s)=>{if(r==null||typeof r!="object"||!r.url)return null;const{url:l,label:a}=r;return t.jsx("a",{href:l,className:"text-blue-600 underline hover:text-blue-800",rel:"noreferrer",children:t.jsx(P,{children:a!=null?a:l})},s)})})},ps=({value:e})=>t.jsx(t.Fragment,{children:Array.isArray(e)?e.map((n,r)=>t.jsxs(f.Fragment,{children:[r>0&&t.jsx("br",{}),t.jsx(P,{children:n})]},r)):t.jsx(P,{children:String(e)})}),xs=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),Be=(e,n)=>{const r=Z(e,n,0);return xs(r)},fe=e=>ge(e)?e:null,Je="iso:date",gs=e=>e*1e3>new Date(2500,0,0).valueOf(),ut=(e,n)=>{var s,l;if(Array.isArray(n))return n.map(a=>ut(e,a)).filter(Ft).map((a,i)=>t.jsxs(f.Fragment,{children:[i>0&&t.jsx("br",{}),a]},i));const r=typeof n=="string"?(l=(s=fe(Be(n,O["iso:date"])))!=null?s:fe(Be(n,O["iso:month"])))!=null?l:fe(Wt(n)):typeof n=="number"?fe(new Date(gs(n)?n:n*1e3)):null;return r!=null&&ge(r)?lt(r,"UTC",e!=null?e:""):n==null?n:typeof n=="string"||typeof n=="number"?String(n):JSON.stringify(n)},js=({column:{dateFormat:e=Je},value:n})=>{const r=e&&O[e]?O[e]:O[Je];return t.jsx(t.Fragment,{children:ut(r,n)})},bs=({column:{numberType:e="number",minimumFractionDigits:n,maximumFractionDigits:r,currencySign:s="standard",signDisplay:l
1="auto"},value:a})=>{const i=f.useMemo(()=>{const{displayName:d,...m}=un[e];try{return new Intl.NumberFormat("en-US",{...m,minimumFractionDigits:n,maximumFractionDigits:r,currencySign:s,signDisplay:l})}catch(p){return console.error(p),new Intl.NumberFormat("en-US",m)}},[r,n,e,s,l]),o=Array.isArray(a)?a:[a],c=o.length-1;return t.jsx(t.Fragment,{children:o.map((d,m)=>d==null?null:t.jsxs(f.Fragment,{children:[i.format(d),m!==c&&t.jsx("br",{})]},m))})},ys=({title:e,launcherType:n="button",launcherText:r=e,image:s,imageAlt:l=e,partial:a})=>{const[i,o]=f.useState(!1),c=d=>{d.preventDefault(),o(!0)};return t.jsxs(t.Fragment,{children:[n==="link"?t.jsx(Xe,{onClick:c,children:t.jsx(P,{children:r})}):t.jsx(re,{wide:!0,onClick:c,children:t.jsx(P,{children:r})}),t.jsx(ot,{isModal:!0,isOpen:i,title:e,closeButton:!0,onClose:()=>o(!1),children:t.jsxs("div",{className:"space-y-4",children:[s?t.jsx("div",{className:"text-center",children:t.jsx("img",{src:s,alt:l})}):null,a?t.jsx(ve,{url:a,trusted:!0}):null]})})]})},ws=({value:e})=>{const n=Array.isArray(e)?e:[e];return t.jsx(t.Fragment,{children:n.map((r,s)=>r?t.jsx(ys,{...r},s):null)})},Cs=e=>Fn(e)||e.isParentColumn,Es=({columns:e,dynamicColumns:n,onDownloadError:r,downloadDisclaimer:s})=>{const l=(a,i)=>{var p,C;if(!Cs(a))return[];const o=a.name?n==null?void 0:n[a.name]:void 0;if((o==null?void 0:o.show)===!1)return[];const c=(p=o==null?void 0:o.heading)!=null?p:a.heading,d={...a,divider:!!(o!=null&&o.divider)||a.divider},m=()=>t.jsx(P,{children:c});return a.isParentColumn?{id:a.id,header:m,columns:((C=a.columns)!=null?C:[]).flatMap(l),meta:a}:{id:a.id,accessorKey:a.name,header:m,cell:g=>{const h=g.getValue();let u=null;switch(a.type){case"download":An(a)&&Dn(h)&&(u=t.jsx(fs,{column:a,value:h,onError:r,downloadDisclaimer:s}));break;case"link":Un(a)&&Sn(h)&&(u=t.jsx(hs,{column:a,value:h}));break;case"modal":Pn(a)&&Tn(h)&&(u=t.jsx(ws,{column:a,value:h}));break;case"date":$n(a)&&Mn(h)&&(u=t.jsx(js,{column:a,value:h}));break;case"number":Vn(a)&&kn(h)&&(u=t.jsx(bs,{column:a,value:h}));break;default:In(a)&&On(h)&&(u=t.jsx(ps,{column:a,value:h}));break}if(i===0){if(g.row.getCanExpand())return t.jsxs("div",{className:"flex w-full items-center gap-4",children:[g.row.getIsExpanded()?t.jsx(cn,{className:"size-4"}):t.jsx(on,{className:"size-4"}),u]});if(g.row.depth)return t.jsx("div",{className:G({"pl-12":g.row.depth===1,"pl-20":g.row.depth===2,"pl-36":g.row.depth===3}),children:u})}return u},meta:d}};return(e!=null?e:[]).flatMap(l)},Ns=({html:e})=>{const n=f.useMemo(()=>mn("<div>".concat(e,"</div>")),[e]);return t.jsx(dn,{value:n})},dt=({children:e})=>t.jsx("div",{"data-testid":"ActionButtons",className:"flex flex-col items-start justify-end gap-4 whitespace-nowrap md:flex-row md:items-center print:hidden",children:e}),Ee=e=>e.isSubheading===!0,Ge=(e,n=!1)=>{const r="header"in e,s="row"in e,{depth:l=0}=s?e.row:{},{type:a,align:i,noWrap:o,divider:c,columnStyling:d}=e.column.columnDef.meta,m=d==="emphasized"&&!n;return G({"font-bold":s&&e.row.subRows.length,"text-xs":l>0,"text-left":i==="left","text-center":i==="center","text-right":i==="right","print:hidden":a==="download","border-r":!r&&c,"whitespace-nowrap":o,"border-r border-l bg-gray-100 font-bold":m})},Rs=e=>{var s;const{column:n}=e;if(((s=n.columnDef.meta)==null?void 0:s.columnStyling)==="emphasized")return{borderTopWidth:"1px"}},vs=e=>{switch(e){case"filled-dark":return"bg-black text-white";case"filled-primary":return"bg-primary text-white";case"filled-secondary":return"bg-secondary text-white";default:return""}},Ds=[],Ss=({name:e,columns:n,fixed:r,data:s,isPaginated:l,rowsPerPage:a,offset:i=0,setOffset:o,setPageNumber:c,actions:d,expandSubRowsByDefault:m,onDownloadError:p,width:C,align:g,headerVariant:h,titleVariant:u,isLoading:b=!1})=>{var H,le;const[x,T]=f.useState(m?!0:{}),v=f.useMemo(()=>Es({columns:n,dynamicColumns:s==null?void 0:s.dynamicColumns,onDownloadError:p,downloadDisclaimer:s==null?void 0:s.downloadDisclaimer}),[n,s==null?void 0:s.downloadDisclaimer,s==null?void 0:s.dynamicColumns,p]),D=sn({data:(H=s==null?void 0:s.rows)!=null?H:Ds,columns:v,state:{expanded:x},onExpandedChange:T,getCoreRowModel:ln(),getExpandedRowModel:rn(),getSubRows:y=>y.subRows}),{header:w,subheader:R,downloads:V}=s!=null?s:{},je=vs(h),K=D.getHeaderGroups().map(y=>t.jsx("tr",{className:je,children:y.headers.map(E=>t.jsx("th",{className:Ge(E.getContext()),colSpan:E.colSpan,style:Rs(E.getContext()),children:E.isPlaceholder?null:Fe(E.column.columnDef.header,E.getContext())},E.id))},y.id)),J=D.getAllColumns().length,Y=D.getRowModel().rows,ee=y=>{var E;return(E=s==null?void 0:s.meta)==null?void 0:E.map(N=>{var A;return N.position!==y?null:t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("div",{children:(A=N.headings)==null?void 0:A.map((M,z)=>t.jsx(xe,{level:4,children:t.jsx(P,{children:M})},z))}),t.jsx(at,{inline:N.variant==="inline",uppercase:!0,children:Object.entries(N.data).map(([M,z])=>t.jsxs(f.Fragment,{children:[t.jsx("dt",{children:M}),t.jsx("dd",{children:z})]},M))},N.id)]},N.id)})},L=J!==0,_=V==null?void 0:V.map(({showDisclaimer:y,...E},N)=>{var A;return t.jsx(it,{...E,type:"button",onError:p,disclaimer:y?s==null?void 0:s.downloadDisclaimer:void 0,children:t.jsx(P,{children:(A=E.label)!=null?A:"Download"})},N)});return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col items-start justify-between gap-4 md:flex-row",children:[t.jsxs("div",{className:"flex flex-col gap-4",children:[w!=null&&w!==""&&t.jsx(t.Fragment,{children:u==="3xl"||u==="3xl-bold"||u==="4xl"||u==="4xl-bold"?t.jsx("div",{className:G({"text-3xl":u==="3xl"||u==="3xl-bold","text-4xl":u==="4xl"||u==="4xl-bold","font-bold":u==="3xl-bold"||u==="4xl-bold"}),children:t.jsx(P,{children:w})}):t.jsx(xe,{level:u==="h3"||u==="h3-bold"?3:2,children:t.jsx("div",{className:G({"font-normal":u==="h2"||u==="h3"}),children:t.jsx(P,{children:w})})})}),R!=null&&R!==""&&t.jsx(xe,{level:3,children:t.jsx(P,{children:R})})]}),t.jsxs(dt,{children:[d,L?_:null]})]}),ee("top"),s!=null&&s.alert?t.jsx(X,{intent:s.alert.alertType,heading:s.alert.heading,children:t.jsx(P,{children:s.alert.text})}):null,t.jsx("div",{className:"flex gap-2",children:L?null:_}),s!=null&&s.html?t.jsx("div",{"data-testid":"".concat(e,"-html"),children:t.jsx(Ns,{html:s.html})}
1):null,s!=null&&s.partialUrl?t.jsx(ve,{url:s.partialUrl}):null,J!==0&&(s!=null||b)?t.jsxs(nn,{fixed:r,"data-testid":"".concat(e,"-table"),width:C,align:g,children:[t.jsx("thead",{children:K}),t.jsxs("tbody",{children:[b?Array.from({length:8}).map((y,E)=>t.jsx("tr",{children:D.getVisibleLeafColumns().map(N=>{var M;const{align:A}=(M=N.columnDef.meta)!=null?M:{};return t.jsx("td",{className:G({"text-left":A==="left","text-center":A==="center","text-right":A==="right"}),children:t.jsx("div",{className:"h-5 w-full animate-pulse rounded-sm bg-gray-200"})},N.id)})},E)):Y.map((y,E)=>{var z;const{original:N}=y,A=(z=Y[E+1])==null?void 0:z.original,M=E!==0&&A!=null&&(Ee(N)||N.isSubtotals)&&!Ee(A)&&!A.isSubtotals;return t.jsxs(f.Fragment,{children:[Ee(N)?t.jsx("tr",{children:t.jsx("th",{colSpan:J,children:t.jsx(P,{children:N.text})})}):t.jsx(Le,{highlight:N.isSubtotals||N.isHighlighted,click:y.getCanExpand()?y.getToggleExpandedHandler():void 0,"aria-expanded":y.getCanExpand()?y.getIsExpanded():void 0,children:y.getVisibleCells().map(I=>t.jsx("td",{className:Ge(I.getContext(),N.isSubtotals),children:Fe(I.column.columnDef.cell,I.getContext())},I.id))},y.id),M?t.jsxs(t.Fragment,{children:[t.jsx(ms,{columns:J}),K.map(I=>t.jsx(Le,{isHeadings:!0,...I.props},I.key))]}):null]},y.id)}),!b&&Y.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:J,className:"text-center italic",children:"No Data Available"})})]})]}):null,l&&a!=null&&((le=s==null?void 0:s.totalCount)!=null?le:0)>a?t.jsx(an,{offset:i,perPage:a,count:s==null?void 0:s.totalCount,onChange:y=>{o==null||o(y.offset),c==null||c(y.page)},numbers:!0,first:!0,last:!0,previous:!0,next:!0,arrows:!0,showDisabled:!0,getUrl:y=>"#offset=".concat(y.offset)}):null,s!=null&&s.chart?t.jsx("div",{className:G({"text-left":g==="left","text-center":g==="center","text-right":g==="right"}),children:t.jsx("img",{src:s.chart,alt:"chart"})}):null,ee("bottom"),s!=null&&s.footerPartialUrl?t.jsx(ve,{url:s.footerPartialUrl}):null]})},he=({renderSlot:e,showMethodologyButton:n,showPrintButton:r,datasetConfigs:s,datasets:l,offset:a,setOffset:i,setPageNumber:o,isPaginated:c,rowsPerPage:d,onDownloadError:m,headerVariant:p,titleVariant:C,isLoading:g=!1})=>{var D;const[h,u]=f.useState(!1),b=t.jsxs(t.Fragment,{children:[n?t.jsx(re,{type:"button",wide:!0,onClick:()=>u(!0),children:"Show Methodology"}):null,r?t.jsx(re,{type:"button",icon:t.jsx(tn,{}),wide:!0,onClick:()=>window.print(),children:"Print"}):null]}),x=(D=s==null?void 0:s.filter(w=>w.name!=null&&(l==null||w.name in l||g)))!=null?D:[],T=x.length===1,v=t.jsxs(t.Fragment,{children:[!T&&t.jsx(dt,{children:b}),e("content-header"),x.map(w=>{var R,V;return t.jsxs(f.Fragment,{children:[t.jsx(Ss,{...w,data:(R=l==null?void 0:l[w.name])!=null?R:null,offset:a,setOffset:i,setPageNumber:o,isPaginated:c,rowsPerPage:d,actions:T?b:void 0,onDownloadError:m,headerVariant:(V=w.headerVariant)!=null?V:p,titleVariant:C,isLoading:g},"".concat(w.id,"-dataset")),e(w.id)]},w.id)}),e("content-footer")]});return t.jsxs(t.Fragment,{children:[g?t.jsx("div",{"data-testid":"spinner","aria-label":"Loading Results",children:v}):v,h?t.jsx(ot,{isModal:!0,isOpen:!0,title:"Methodology",closeButton:!0,onClose:()=>u(!1),children:e("methodology")}):null]})},Ts=e=>{const n=new URL("".concat(e,"/appUserLogin?loginApp=WEBSITE_REPORTS"));return n.searchParams.set("redirectUrl","".concat(window.location.origin,"/marketdata/checkLogin?authFilterRedirectUrl=").concat(encodeURIComponent(window.location.href))),String(n)},Ye=e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.status)===401},Ne=e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.status)===409},Ms=()=>String.fromCodePoint(Math.floor(97+Math.random()*26)),se=e=>Array.from({length:e}).map(Ms).join(""),ks=e=>{switch(e.type){case void 0:case"text":return se(8);case"number":return Math.random()*1e6-5e5;case"date":{const n=new Date(1971,0,1).valueOf(),r=Date.now()-5*n;return Math.round(r+Math.random()*10*n)}case"download":return{type:"download",url:"/mock-download",params:[],label:"Download ".concat(se(3).toUpperCase())};case"link":return{type:"link",url:"/mock-link/".concat(se(8)),method:"GET",params:[],label:se(6).toUpperCase()};case"modal":return{type:"modal",title:"View ".concat(se(5))};default:{const n=e.type;return"mock cell (unknown type: ".concat(String(n),")")}}},mt=e=>e.flatMap(n=>{var r;return n.isParentColumn?mt((r=n.columns)!=null?r:[]):n}),Os=e=>Object.fromEntries(mt(e).map(n=>[n.name,ks(n)])),We=e=>Object.fromEntries(Object.entries(e).map(([n,r])=>[n,r==null?void 0:r.value])),As=e=>JSON.parse(JSON.stringify(e)),pe=e=>{const n=(e!=null?e:"unknown").replace(/[^\w-]/g,"_");return"component_".concat(n)},Us=(e,n=500)=>{const[r,s]=f.useState(()=>{const o=(c=>typeof c=="function")(e)?e():e;return{value:o,debouncedValue:o}}),l=f.useCallback(()=>{s(i=>i.value!==i.debouncedValue?{...i,debouncedValue:i.value}:i)},[]);Dt(l,n,[r.value]);const a=f.useCallback((i,o=!1)=>{s(c=>{const m=(p=>typeof p=="function")(i)?i(c.value):i;return{value:m,debouncedValue:o?m:c.debouncedValue}})},[]);return[r.value,r.debouncedValue,a,l]}
1,Ps=[],Qe=Symbol("unused-global-state"),$s=({reportId:e,reportUrl:n,tables:r=Ps,showSubmitButton:s,showResetButton:l,showMethodologyButton:a,showPrintButton:i=!0,requireAgreement:o,hasBackend:c=!0,renderSlot:d,slots:m,rowsPerPage:p=10,isPaginated:C,customAuth:g,autoSubmit:h=!0,debounceDelay:u=500,headerVariant:b,titleVariant:x="h2-bold",criteriaVariant:T="fixed",globalStateKey:v,id:D})=>{const{isCmsAdmin:w,isCmsEditor:R,siteName:V,ssoBaseUrl:je,urlPath:K,requestPath:J}=Vt(),Y=f.useMemo(()=>v?Rt(v):Qe,[v]),[,ee]=Tt(Y,null),[L,_,H]=Us({offset:{value:0},pageNumber:{value:1}},u),[le,y]=f.useState(null),[E,N]=St("ice-report-center:agreement:".concat(pe(D)),!1,"session"),A=f.useMemo(()=>We(L),[L]),M=f.useMemo(()=>We(_),[_]),z=R&&!(n!=null&&n.includes("/api/mocks"))?"/api/sites/".concat(V,"/proxy"):"",I=f.useMemo(()=>fn(K,J),[K,J]),B=f.useMemo(()=>hn(n,I),[n,I]),W=f.useMemo(()=>pn(B),[B]),ae=f.useCallback((j,S)=>{H(U=>({...(Pe=>typeof Pe=="function")(j)?j(U):j,offset:{value:0}}),S)},[H]),oe=f.useCallback(j=>H(S=>{var U,F;return{...S,offset:{value:typeof j=="number"?j:j((F=(U=S.offset)==null?void 0:U.value)!=null?F:0)}}},!0),[H]),ie=f.useCallback(j=>H(S=>{var U,F;return{...S,pageNumber:{value:typeof j=="number"?j:j((F=(U=S.pageNumber)==null?void 0:U.value)!=null?F:1)}}},!0),[H]),$=jn(e,M,D,{enabled:c&&!W,reportUrl:B?z+B:void 0}),[ft,Se]=kt($.data),ht=He($.data,A),pt=He($.data,M),Te=L===_&&pt==null,xt=zn(ft,$,L,ae,pe(D)),be=!!n&&(!c||xt&&Te)||e!=null&&$.isSuccess&&Te&&(!o||E),k=yn({reportId:e,values:M,isPaginated:C,rowsPerPage:p},D,{retry:!1,enabled:!W&&(c&&h&&be||!!B&&!c),reportUrl:B?z+B:void 0}),{refetch:Me}=k,te=e!=null,ye=f.useMemo(()=>ds(m==null?void 0:m.title),[m==null?void 0:m.title]),gt=ye.hasContent,ne=!!n,jt=!te&&ne,bt=c,ke=Ve($.error)||Ve(k.error),ce=Ye($.error)||Ye(k.error);f.useEffect(()=>{!te&&ne&&!c&&!W&&Me()},[te,ne,c,W,Me]),Mt(()=>{if(!w){const j=pe(D),U={...window.history.state,["ice-report-center:".concat(j)]:As(_)};console.info("[ICE-REPORT-CENTER]","setting history.state for namespace ".concat(j),U),window.history.replaceState(U,"")}},[_,w,D]);const yt=f.useCallback(()=>{Se();const j=pe(D);console.info("[ICE-REPORT-CENTER]","clearing history.state for namespace ".concat(j));const U={...window.history.state},{["ice-report-center:".concat(j)]:F,...Ue}=U;window.history.replaceState(Ue,""),ae({offset:{value:0}},!0)},[ae,Se,D]),Q=f.useMemo(()=>{const j=k.data;return w||R?Object.fromEntries(r.filter(S=>S.name!=null).map(S=>{var U,F;return[S.name,(F=j==null?void 0:j[S.name])!=null?F:{header:'Mock Dataset Results for "'.concat(S.name,'" dataset:'),rows:(U=S.columns)!=null&&U.length?Array.from({length:5}).map(()=>Os(S.columns)):void 0}]})):j!=null?j:{}},[w,R,r,k.data]),ue=k.isFetching&&!k.isError;if(f.useEffect(()=>{Y!==Qe&&v&&ee(Q)},[Q,v,Y,ee]),!te&&!ne)return null;const Oe=()=>bt?$.isError?t.jsx(we,{error:$.error}):$.isLoading?t.jsx("div",{className:"flex flex-col gap-4","data-testid":"spinner",children:t.jsx("div",{className:"flex w-full flex-col gap-4 md:grid md:w-auto md:auto-cols-fr md:grid-cols-[repeat(4,auto)]",children:Array.from({length:4}).map((j,S)=>t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("div",{className:"h-5 w-24 animate-pulse rounded-sm bg-gray-300"}),t.jsx("div",{className:"h-10 w-48 animate-pulse rounded-sm bg-gray-200"})]},S))})}):t.jsx(ls,{valuesAndMeta:L,setCriteria:ae,criteria:$.data,errors:ht,showSubmitButton:s,showResetButton:l,refetchResults:k.refetch,isReadyForResults:be,isFetchingResults:k.isFetching,helpText:d("criteriaHelpText"),reset:yt,criteriaVariant:T}):null,Ae=()=>{var j;return!c&&!ne?t.jsx(he,{renderSlot:d,showMethodologyButton:a,showPrintButton:i,datasetConfigs:r,datasets:Q,onDownloadError:y,offset:M.offset,setOffset:oe,setPageNumber:ie,headerVariant:b,titleVariant:x,isLoading:ue}):!be||h&&L!==_?null:k.isError?((j=k.error.response)==null?void 0:j.status)===417?t.jsx(we,{error:k.error,message:"Invalid Criteria"}):t.jsx(we,{error:k.error}):k.isLoading&&!k.isFetching?t.jsx("div",{"data-testid":"waiting-for-submit"}):t.jsx(he,{renderSlot:d,showMethodologyButton:a,showPrintButton:i,datasetConfigs:r,datasets:Q,isPaginated:C,rowsPerPage:p,offset:M.offset,setOffset:oe,setPageNumber:ie,onDownloadError:y,headerVariant:b,titleVariant:x,isLoading:ue})},wt=()=>Ne($.error)?t.jsx(Ce,{onSuccess:()=>{$.refetch()}}):Ne(k.error)?t.jsx(Ce,{onSuccess:()=>{k.refetch()}}):Ne(le)?t.jsx(Ce,{onSuccess:()=>y(null)}):null,Ct=()=>{const j=wt();return j||(ke?t.jsxs(X,{intent:"warn",children:["You have been logged in, but you do not have permissions for the requested report.",t.jsx("br",{}),"Please contact the ICE Help Desk for further assistance."]}):ce&&g?d("customAuth"):ce?t.jsxs(X,{intent:"info",heading:"Login Required",children:["You must be logged in to view this report. Please"," ",t.jsx(Xe,{href:Ts(je),children:"click here to login"}),". You will be redirected back to this report after logging in.",d("loginInfo")]}):o&&!E?t.jsx(as,{isAgreed:E,setIsAgreed:N,children:d("agreement")}
1):t.jsxs(t.Fragment,{children:[Oe(),Ae()]}))};return jt?t.jsx("div",{className:"flex flex-col gap-4 pb-4",children:W&&(w||R)?t.jsxs(t.Fragment,{children:[t.jsxs(X,{intent:"warn",children:["Report URL contains unfilled placeholders ",t.jsx("code",{children:B})]}),t.jsx(he,{renderSlot:d,showMethodologyButton:a,showPrintButton:i,datasetConfigs:r,datasets:Q,isPaginated:C,rowsPerPage:p,offset:M.offset,setOffset:oe,setPageNumber:ie,onDownloadError:y,headerVariant:b,titleVariant:x,isLoading:ue})]}):t.jsxs(t.Fragment,{children:[Oe(),Ae()]})}):t.jsxs("div",{className:"flex flex-col gap-4 pb-4","data-reportid":e,children:[te?t.jsxs("div",{className:"contents print:hidden",children:[gt?t.jsxs(t.Fragment,{children:[t.jsx(is,{state:ye,children:d("title")}),R&&!ye.hasLevelOneHeading?t.jsx(X,{intent:"warn",children:'Use "Heading 1" for the page title so the page keeps a level-1 heading for accessibility and SEO.'}):null]}):t.jsxs(t.Fragment,{children:[t.jsx(xe,{level:1,children:"Report Center"}),R?d("title"):null]}),d("navigation",{readOnly:!0}),t.jsx(os,{reportId:e,enabled:c})]}):null,g&&R&&!ce?d("customAuth"):null,o&&R?d("agreement"):null,W&&(w||R)?t.jsxs(X,{intent:"warn",children:["Report URL contains unfilled placeholders ",B]}):null,Ct(),(ce||ke||W&&(w||R))&&(w||R)?t.jsx(he,{renderSlot:d,showMethodologyButton:a,showPrintButton:i,datasetConfigs:r,datasets:Q,isPaginated:C,rowsPerPage:p,offset:M.offset,setOffset:oe,setPageNumber:ie,onDownloadError:y,headerVariant:b,titleVariant:x,isLoading:ue}):null]})},Mr=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"}));export{$s as I,Mr as M,he as R};

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.