PageSourceSearch

https://static.nyse.com/cms/41.10.13/chunks/cms-components/clearly-erroneous-execution/Main-CH7JQqfW.js

js nyse.com collected 2026-09-24 15:20:05 UTC 17,486 bytes, 1 lines download raw bytes

1var te=Object.defineProperty;var se=(s,r,t)=>r in s?te(s,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[r]=t;var p=(s,r,t)=>se(s,typeof r!="symbol"?r+"":r,t);import{j as e,f as re,D as ie,a as Y,A as q,F as l,n as M,h as B}from"../../__generated__/components/demos-BWJdxTKc.js";import{D as ne}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/controls/form/DateTime-BR6WHZP_.js";import{T as ae}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/controls/form/TextArea-CQyvuX6V.js";import{T as x}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/controls/form/Textbox-BBBKGwC5.js";import{F as oe}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/controls/form/FileUpload-DoMZGidS.js";import{R as le}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/integrations/recaptcha2/Recaptcha2-DpqmMS-f.js";import{B as ce,b as ue}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/feedback/Spinner-DUsTxTNV.js";import{M as me}from"../../node_modules/-pnpm/@meronex-icons@4-0-0_react@18-3-1/node_modules/@meronex/icons/vsc/VscChevronRight-js-commonjs-es-import-CEDQAU_Y.js";import{T as he}from"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/controls/form/TypeAhead-DCNouvcT.js";import{x as W,o as de}from"../../node_modules/-pnpm/@theice-pushpop@3-5-0_@types-express@4-17-25/node_modules/@theice/pushpop/build/array/replace-CrA0QeSp.js";import{r as h}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{p as u}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-ry0S_voM.js";import{n as I}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/numeric-BE7ABp0x.js";import{e as pe}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/email-EUpQy3vD.js";import{d as y}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-BZz12OKW.js";import{c as xe}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-D7WHQFPw.js";import{c as f}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 U,r as K}from"../../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/react-router@6-30-1_react@18-3-1/node_modules/react-router/dist/index-js-commonjs-proxy-MJ4LALBs.js";import"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/navigation/Menu-GGQ54aVN.js";import"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/components/navigation/MenuButton-c9u2E3uM.js";import"../../var/opt/jenkins/workspace/ont-end-monorepo_release_2026-38/packages/website-components/build/hooks/useIsMounted-BZmvc66K.js";const z={},g=({children:s})=>e.jsx("div",{className:"flex flex-col gap-4 sm:flex-row",children:s}),m=({sm:s,children:r})=>e.jsx("div",{className:re({"sm:flex-1":s===1,"sm:flex-2":s===2,"sm:flex-3":s===3,"sm:flex-4":s===4,"sm:flex-5":s===5,"sm:flex-6":s===6,"sm:flex-7":s===7,"sm:flex-8":s===8,"sm:flex-9":s===9,"sm:flex-10":s===10,"sm:flex-11":s===11,"sm:flex-12":s===12}),children:r}),A=W(s=>(r,t="Value")=>r!=null&&r!==""&&!s.includes(r)?["".concat(t," must be one of the following: ").concat(s.join(", "),".")]:null),fe="C
1all",Se="Put",G=[fe,Se],Ee="Buy",ge="Sell",be="Sell-short",J=[Ee,ge,be],S="AMEX Options",D="Arca Equities",E="NYSE Arca Options",V="NYSE Equities",$="NYSE American Equities",w="NYSE National Equities",L="NYSE Texas",je=[V,$,D,w,L],_e=[S,E],Pe=[S,D,E,V,$,w,L],X={[S]:"NYSE American Options",[D]:"NYSE Arca Equities",[E]:"NYSE Arca Options",[V]:"NYSE",[$]:"NYSE American Equities",[w]:"NYSE National",[L]:"NYSE Texas"},C=(s,r,t)=>t&&(t.market===E||t.market===S)?h(s,r):[],Z=0,ee=999999999,_=0,v=1e-4,k=s=>(r,t=String(r))=>{if(r===""||r===null||r===void 0)return null;const i=typeof r=="number"?r:Number(r);return Number.isNaN(i)?null:i<s?['The value of "'.concat(t,'" must be greater than or equal to ').concat(s,".")]:null},Ne=(s,r)=>(t,i=String(t))=>{if(t===""||t===null||t===void 0)return null;const a=typeof t=="number"?t:Number(t);return Number.isNaN(a)?null:a<s?['The value of "'.concat(i,'" must be greater than or equal to ').concat(s,".")]:a>r?['The value of "'.concat(i,'" must be less than or equal to ').concat(r,".")]:null},Te=(s,r,t)=>t&&t.market!==E&&t.market!==S?h(s,r):null,Ie=(s,r,t)=>{const{executionStartTime:i}=t||{};if(!i||typeof i!="string")return null;const a="HH:mm:ss",c=U(i,a,0),d=U(s,a,0);return K(c)&&K(d)&&d<c?["".concat(r||"Execution End Time"," must not be before Execution Start Time (").concat(i,").")]:null},Me=(s,r,t)=>{const i=(t==null?void 0:t.market)===E||(t==null?void 0:t.market)===S?"Contracts":"Shares Executed";return f(h,I,Ne(Z,ee))(s,i,t)},ye=(s,r)=>{if(!s||typeof s!="string")return null;const t=s.length;return t<4||t>5?['The value of "'.concat(r||"MPID",'" must be 4 or 5 characters.')]:null},R=xe({authorizedTraderContact:()=>null,companyName:()=>null,contactEmail:u("Email",f(h,pe)),contactName:u("Contact Person",h),contactPhone:u("Telephone",h),mpid:u("MPID",f(h,ye)),executionClass:u("Call / Put",f(C,A(G))),executionEndPrice:u("Execution End Price",f(Te,I,k(_))),executionEndTime:u("Execution End Time",f(h,Ie,y("HH:mm:ss"))),executionSide:u("Execution Side",f(h,A(J))),executionStartPrice:u("Execution Start Price",f(h,I,k(_))),executionStartTime:u("Execution Start Time",f(h,y("HH:mm:ss"))),instrument:u("Stock Symbol",h),market:u("Market",f(h,A(Pe))),memberFirmName:()=>null,reasonForFiling:u("Reason",h),sharesExecuted:Me,strikeDate:u("Stike Date",f(C,y(ie["iso:date"]))),strikePrice:u("Strike Price",f(C,I,k(_)))}),O=1024,Q=O*1024;function Ae(s){return s<O?"".concat(s," bytes"):s<Q?"".concat(Math.round(s/O*100)/100,"KB"):"".concat(Math.round(s/Q*100)/100,"MB")}const Ce=W(s=>(r,t="File")=>!r||!r.length?null:Array.prototype.slice.call(r).some(i=>i.size>s)?["".concat(t," must not be larger than ").concat(Ae(s),".")]:null),ve=s=>s.slice(s.lastIndexOf(".")),ke=1024*1024,Re=(s,r)=>s.filter(t=>!r.includes(t)),Fe=(...s)=>(r,t)=>{const i=[...r!=null?r:[]].map(a=>ve(a.name));return Re(i,s).length?["".concat(t||"File Upload"," must have one of the following extensions: ").concat(s.join(", "))]:null},Oe=f(Ce(2*ke),Fe(".xls",".xlsx",".csv")),F=s=>String(s).padStart(2,"0"),De=s=>(r,t)=>{if(s&&t===2&&r.length!==2)return F(Number(F(r))%59);if(r.length===2){const i=t===0?23:59;return F(Number(r)%(i+1))}return r},T=(s="",r="",t=!1)=>{const i=s>r,a=s<r,c=s.endsWith(":");let d=s.replace(/[^\d:]/,"").replace(/:+/,":").split(":").map(De(t)).filter(Boolean).join(":");const j=d.length===2||d.length===5;
1return(i&&j||a&&c)&&(d+=":"),d};class Ve extends Y.Component{constructor(){super(...arguments);p(this,"formRef",Y.createRef());p(this,"state",{values:z,touched:{},caseNumber:null,isSubmitAttempted:!1,isSubmitting:!1,isSubmitSucceeded:null,submitErrors:null,validationErrors:R(z),recaptchaVerified:!1});p(this,"_handleBlur",t=>()=>this._touch(t));p(this,"_preventExponentialNotation",t=>{(t.key==="e"||t.key==="E"||t.key==="+"||t.key==="-")&&t.preventDefault()});p(this,"_preventExponentialNotationPaste",t=>{/[+Ee\-]/.test(t.clipboardData.getData("text"))&&t.preventDefault()});p(this,"_handleChange",t=>i=>{this._setValue(t,this._getValue(i)),this._touch(t)});p(this,"_handleInstrumentSelect",(t,i)=>{this._setValue("instrument",t);const a=i?i.companyName:t?"Symbol Not Found":"";this._setValue("companyName",a)});p(this,"_fetchInstrumentResults",async t=>{if(!t)return[];const i="?symbol=".concat(encodeURIComponent(t)),a=await fetch("/api/servicenow/cee/filter".concat(i));return B(a),(await a.json()).slice(0,5)});p(this,"_handleRecaptchaVerified",()=>this.setState({recaptchaVerified:!0}));p(this,"_handleRecaptchaExpired",()=>this.setState({recaptchaVerified:!1}));p(this,"_submit",t=>{t.preventDefault();const{values:i,recaptchaVerified:a}=this.state;this.setState({isSubmitting:!0,isSubmitAttempted:!0,isSubmitSucceeded:null,submitErrors:null,validationErrors:null,caseNumber:null});const c=this.formRef.current,d=R(i);if(d){this.setState({validationErrors:d,isSubmitting:!1,isSubmitSucceeded:!1});return}if(!c)throw new Error("No form!?");const j=c.querySelector('[name="file"]');if(j){const o=Oe(j.files,"File Upload");if(o&&o.length>0){this.setState({submitErrors:o,isSubmitting:!1,isSubmitSucceeded:!1});return}}if(!a){this.setState({submitErrors:["Recaptcha is required."],isSubmitting:!1,isSubmitSucceeded:!1});return}const b=new FormData(c),P=b.get("file");P!=null&&P.size||b.delete("file"),fetch(c.action,{method:"POST",body:b}).then(o=>(B(o),o)).then(o=>o.json()).then(o=>{this.setState({isSubmitting:!1,isSubmitSucceeded:!0,caseNumber:o["SNOW Ticket Number"]})},o=>{var N;if("response"in o&&((N=o.response)==null?void 0:N.status)===401){this.setState({submitErrors:["Error validating recaptcha field. Please try refreshing the recaptcha image and resubmitting the form."],isSubmitting:!1,isSubmitSucceeded:!1});return}this.setState({isSubmitting:!1,isSubmitSucceeded:!1,submitErrors:["An error occurred and your form could not be submitted. Please try again later."]})})})}render(){const{props:{reCaptchaPublicKey:t},state:{values:i,submitErrors:a,caseNumber:c,isSubmitting:d,isSubmitSucceeded:j,validationErrors:b,isSubmitAttempted:P}}=this,{market:o}=i,N=o===E||o===S;return t?j===!0?e.jsxs(e.Fragment,{children:[e.jsxs(q,{intent:"good",children:["Your report has been submitted.",c!=null&&" For reference, your case number is ".concat(c,".")]}),e.jsx("div",{className:"mb-4"})]}):e.jsxs("form",{method:"POST",encType:"multipart/form-data",action:"/api/servicenow/cee/submit",onSubmit:this._submit,ref:this.formRef,className:"cms--submittable-form flex flex-col gap-4",noValidate:!0,children:[e.jsx(g,{children:e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("market"),label:"Market",children:e.jsxs(M,{...this._getInputProps("market"),children:[e.jsx("option",{}),e.jsx("optgroup",{label:"Equity Markets",children:je.map(n=>e.jsx("option",{value:n,children:X[n]},n))}),e.jsx("optgroup",{label:"Option Markets",children:_e.map(n=>e.jsx("option",{value:n,children:X[n]},n))})]})})})}),o?e.jsxs(g,{children:[e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("instrument"),label:"Stock Symbol",children:e.jsx(he,{...this._getInputProps("instrument"),required:!0,fetchResults:this._fetchInstrumentResults,parseResult:n=>({id:n.id,value:n.symbol}),onSelect:this._handleInstrumentSelect,debounceTime:500})})}),e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("companyName"),label:"Company Name",children:e.jsx(x,{...this._getInputProps("companyName"),maxLength:100,readOnly:!0})})})]}):null,o?e.jsx(g,{children:e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("mpid"),label:"MPID",children:e.jsx(x,{...this._getInputProps("mpid")})})})}):null,e.jsxs(g,{children:[e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("executionSide"),label:"Execution Side",children:e.jsxs(M,{...this._getInputProps("executionSide"),children:[e.jsx("option",{}),J.map(n=>e.jsx("option",{children:n},n))]})})}),o?e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("sharesExecuted"),label:o===E||o===S?"Contracts":"Shares Executed",children:e.jsx(x,{...this._getInputProps("sharesExecuted"),type:"number",min:Z,max:ee,onKeyDown:this._preventExponentialNotation,onPaste:this._preventExponentialNotationPaste})})}):null]}),e.jsxs(g,{children:[e.jsx(m,{sm:6,children:e.jsx(l,{label:"Execution Price",children:e.jsxs("div",{className:"flex w-full items-center gap-4",children:[e.jsx("div",{className:"flex-1",children:e.jsx(l,{...this._getMetaProps("executionStartPrice"),children:e.jsx(x,{...this._getInputProps("executionStartPrice"),type:"number",min:_,step:v,placeholder:"0.0000",onKeyDown:this._preventExponentialNotation,onPaste:this._preventExponentialNotationPaste})})}),!N&&e.jsx("span",{children:"TO"}),!N&&e.jsx("div",{className:"flex-1",children:e.jsx(l,{...this._getMetaProps("executionEndPrice"),children:e.jsx(x,{...this._getInputProps("executionEndPrice"),type:"number",min:_,step:v,placeholder:"0.0000",onKeyDown:this._preventExponentialNotation,onPaste:this._preventExponentialNotationPaste})})})]})})}),e.jsx(m,{sm:6,children:e.jsx(l,{label:"Execution Time",shortHelpText:"24Hr, Eastern Standard Time, HH:mm:ss",children:e.jsxs("div",{className:"flex w-full items-center gap-4",children:[e.jsx("div",{className:"flex-1",children:e.jsx(l,{...this._getMetaProps("executionStartTime"),children:e.jsx(x,{...this._getInputProps("executionStartTime"),onBlur:n=>this._handleChange("executionStartTime")(T(n.currentTarget.value,i.executionStartTime,!0)),onChange:n=>this._handleChange("executionStartTime")(T(n.currentTarget.value,i.executionStartTime)),placeholder:"HH:mm:ss",maxLength:8})})}),e.jsx("span",{children:"TO"}),e.jsx("div",{className:"flex-1",children:e.jsx(l,{...this._getMetaProps("executionEndTime"),children:e.jsx(x,{...this._getInputProps("executionEndTime"),onBlur:n=>this._handleChange("executionEndTime")(T(n.currentTarget.value,i.executionEndTime,!0)),onChange:n=>this._handleChange("executionEndTime")(T(n.currentTarget.value,i.executionEndTime)),placeholder:"HH:mm:ss",maxLength:8})})})]})})})]}),(o===E||o===S)&&e.jsx(g,{children:e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("executionClass"),label:"Call / Put",children:e.jsxs(M,{...this._getInputProps("executionClass"),children:[e.jsx("option",{}),G.map(n=>e.jsx("option",{children:n},n))]})})})}),(o===E||o===S)&&e.jsxs(g,{children:[e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("strikePrice"),label:"Str
1ike Price",children:e.jsx(x,{...this._getInputProps("strikePrice"),type:"number",min:_,step:v,placeholder:"0.0000",onKeyDown:this._preventExponentialNotation,onPaste:this._preventExponentialNotationPaste})})}),e.jsx(m,{sm:6,children:e.jsx(l,{...this._getMetaProps("strikeDate"),label:"Expiration",children:e.jsx(ne,{...this._getInputProps("strikeDate")})})})]}),e.jsx(l,{...this._getMetaProps("memberFirmName"),label:"Member Firm Name",children:e.jsx(x,{...this._getInputProps("memberFirmName"),maxLength:255})}),e.jsxs(g,{children:[e.jsx(m,{sm:4,children:e.jsx(l,{...this._getMetaProps("contactName"),label:"Contact Person",children:e.jsx(x,{...this._getInputProps("contactName")})})}),e.jsx(m,{sm:4,children:e.jsx(l,{...this._getMetaProps("contactEmail"),label:"Email",children:e.jsx(x,{...this._getInputProps("contactEmail"),maxLength:255})})}),e.jsx(m,{sm:4,children:e.jsx(l,{...this._getMetaProps("contactPhone"),label:"Telephone",children:e.jsx(x,{...this._getInputProps("contactPhone"),maxLength:255})})})]}),e.jsx(l,{...this._getMetaProps("reasonForFiling"),label:"Reason for Filing",children:e.jsx(ae,{...this._getInputProps("reasonForFiling"),maxLength:255})}),e.jsx(l,{...this._getMetaProps("authorizedTraderContact"),label:"Authorized Trader Contact",children:e.jsx(x,{...this._getInputProps("authorizedTraderContact"),maxLength:255})}),e.jsx(l,{...this._getMetaProps("file"),label:"File Upload",shortHelpText:"2MB Max",children:e.jsx(oe,{...de(["value"],this._getInputProps("file")),type:"file",accept:".xls, .xlsx, .csv"})}),e.jsx(le,{publicKey:t,onVerify:this._handleRecaptchaVerified,onExpire:this._handleRecaptchaExpired}),P&&(a!=null||b!=null)?e.jsxs(q,{intent:"bad",children:["Please correct the following errors:",e.jsxs("ul",{children:[b!=null&&Object.values(b).map(n=>n.map(H=>e.jsx("li",{children:H},H))),(a!=null?a:[]).map(n=>e.jsx("li",{children:n},n))]})]}):null,e.jsx("div",{className:"!text-center",children:e.jsx(ce,{type:"submit",intent:"black",wide:!0,icon:d?e.jsx(ue,{title:"Submitting..."}):e.jsx(me,{}),disabled:d,iconPosition:"right",children:"Submit"})})]}):null}_getMetaProps(t){const{touched:i,isSubmitAttempted:a,validationErrors:c}=this.state;return{touched:a||i[t]||!1,id:t,key:t,errors:c==null?null:c[t]}}_getInputProps(t){var c;const{values:i}=this.state;return{onBlur:this._handleBlur(t),onChange:this._handleChange(t),id:t,name:t,value:t==="file"?"":(c=i[t])!=null?c:""}}_getValue(t){switch(typeof t){case"string":case"boolean":case"number":return t;default:{const{currentTarget:i}=t;return i instanceof HTMLInputElement&&(i.type==="radio"||i.type==="checkbox")?i.checked:i.value}}}_touch(t){this.setState(i=>({touched:{...i.touched,[t]:!0}}))}_setValue(t,i){this.setState(a=>({values:{...a.values,[t]:i}})),this._validate()}_validate(){this.setState(t=>({validationErrors:R(t.values)}))}}p(Ve,"displayName","ClearlyErroneousExecution");export{Ve 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.