1import{h as u,a as i,j as a,A as l}from"../../__generated__/components/demos-BWJdxTKc.js";import{s as p}from"../../node_modules/-pnpm/@theice-sanitize-html@3-1-0/node_modules/@theice/sanitize-html/build/index-client-DVHHq8rK.js";import"../../node_modules/-pnpm/date-fns@2-30-0/node_modules/date-fns/addYears/index-js-commonjs-es-import-BnwbL-Tz.js";import"../../node_modules/-pnpm/@theice-pushpop@3-5-0_@types-express@4-17-25/node_modules/@theice/pushpop/build/array/replace-CrA0QeSp.js";const f=async n=>{const t="/api/regulatory/noncompliant-issuers/".concat(n,"/lookup"),s=await fetch(t);return s.status===404?console.info("NOTE: This 404 error (".concat(t,") is expected and just means that this issuer is compliant. That's a good thing :)")):u(s),await s.json()},m=n=>{const t=new RegExp("/quote/(index/)?((\\w+):)?([^/]+)").exec(n);if(!t)return"ICE";const[,s,e,,r]=[...t];return s?"".concat(e!=null?e:"").concat(r):r},E=({message:n,demo:t})=>{const[s,e]=i.useState(!1);return i.useEffect(()=>{const r=()=>m(window.location.pathname),c=async o=>{try{return await f(o),!0}catch{return!1}};(async()=>{if(t){e(!0);return}const o=r();await c(o)&&e(!0)})()},[t]),s?a.jsx(l,{intent:"info",children:a.jsx("div",{className:"text-center font-bold",dangerouslySetInnerHTML:p(n!=null?n:"")})}):null};export{E as default};
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.