dcms-external.s3.amazonaws.com
Open in
urlscan Pro
16.182.67.25
Public Scan
URL:
https://dcms-external.s3.amazonaws.com/static/js/main.7b0f7cb3.chunk.js
Submission Tags: falconsandbox
Submission: On December 02 via api from US — Scanned from US
Submission Tags: falconsandbox
Submission: On December 02 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
(this["webpackJsonpdcms_e-filing"]=this["webpackJsonpdcms_e-filing"]||[]).push([[0],{113:function(e,a,t){e.exports=t.p+"static/media/west-region-states-sm.92ce780a.png"},114:function(e,a,t){e.exports=t.p+"static/media/east-region-states-sm.7b89a28e.png"},115:function(e,a,t){e.exports=t.p+"static/media/central-region-states-sm.696e8cb6.png"},116:function(e,a,t){e.exports=t.p+"static/media/south-region-states-sm.446ca49d.png"},117:function(e,a,t){e.exports=t.p+"static/media/ak-hi-sm.4e99ff51.png"},121:function(e,a){e.exports="data:image/gif;base64,R0lGODlhagAyAOf/AP////Dw8OgYAODg4NgYAOjo6NjY2OAYAJiYmHh4eNAYAPAwEMjIyMDAwNBYQNDQ0PCAePDo6PB4aPCIgGgIAKgQALgQAOhQQPBwYPB4cPCQiPCYkPCgmPDg4Pjg4Pjw8HAIAJgQAKAQALCwsLiAgMhQQMiIgNCwsNhYQOC4sOgYEOjQyOjY2PA4IPBIOPBgWPBwcPCIiPCQkPCYiPCYmPCooPC4uPDIyPDw6PjIyPjQ0PjY2Pjo6IAIAKhgWLAQALCAcLhIOLhgWLiQiLi4uMAYAMCAcMCIgMggCMiAcNCAcNCAeNCooNCoqNi4sOBYQOCwqODAwODIwODQyODQ0OgQAOgYCOggCOgoGOgoIOgwGOg4MOg4OOhAMOhAOOhYUOjQ0PAYAPAoGPAwGPBAMPBQOPBYSPBoWPBoYPCAaPCIePCgoPComPCoqPCwqPCwsPC4sPDAuPDAwPDIwPDQyPDQ0PDY0PDY2PDo4PiwqPjg2Pjo4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAagAyAEAI/wABCBxIsKDBgwgTKlzIsKHDhw8DCJhIcSIKAE3AfNASYQoTADMuniAhpGLFAQUGDBAYoGVKiDBjLgygoKbNmzhz6rw5oKXPny0NyBxKVKEBoEh9SggwJk7SnwWFFp1K9ejTlgJfbBH4Ac2ErxAybPiAUCrVszLNoo26tq3bt3CLClhAt67du3jz0hVQoG/Pl3EDByBAuDBhBwCA9PhBIMIKNwCMIDYhoohhwygLXC0QuPNAA31Di+57tfRPtZ7hWjUdoIMADUAZok7tdrbANRB4dPlC1DZttL6B/44bQKXx48hVjhZtYOXwthJNSp9O3SRKlQBcOn9eNMCB7+C/I/+GsgIHkggpDkTpgFjgjPDhrzNg8KD+g+bbucMcfJmwBQoVFAYCBSCEQMB/IvSHmWnB6afQVQ8kJ+GEpJXWoIMwgcZaAEuVcceGAQh0IYYPrWbaHC60cFVZJJ5lYmlkYEAHBBCN2KJsC+lxQRYy7ECQHDC0sQMMKrB4Y1G2xQAAByrkgOSRTwZmI5RlIZDAlVhmqeWWXGaJwJRUHjQhhcuFFmZbKjWg5ppsttmmaNedGVF1dNY5UWYrFZefnAhFJ90FAnkggQB7AMADG1cAKlAe1F2XZ0vY8dknfOAhlsQRADwRgRMhUFHHZBVYQOl31+F3nAFgtujdqO2x4ENj6bHyIAViIwUx6gGZafaUpAXx118JAChRWAQA4DFEBcAuoWBhKJW2p6S+LivttIT1ZCGvBBWH6rbbEjHft+CGKy59ul6VKp+glbkciEidK2e66wLFAQZLsQuAu2e+eFUaAbhgw4afYduQvk+pcUMYHZRmEL5hEvxUCxgkZZTAsoGogRhn4IDVwBQv5DBQNwhgw5I1lNixUUgZZIcVE2yQAQQ1aEDDQBtwYeTJBwXnQQZmVPEGQjnIEIMON+PMlkE0wAEABFh40JvROR8EwQteEB0l1AQx7JDWUHKNI9ZZd+b1jQOMgMDZaKet9tpspz3Cs2BjHRAAOw=="},123:function(e,a,t){e.exports=t.p+"static/media/error.d358cd29.svg"},131:function(e,a,t){e.exports=t(228)},198:function(e,a,t){},223:function(e,a,t){},228:function(e,a,t){"use strict";t.r(a);t(132);var n=t(0),r=t.n(n),l=t(29),i=t.n(l),s=(t(198),t(50),t(199),t(33)),o=t(231);const c="".concat("/recents","/decisions"),d="".concat("/recents","/filings"),m="".concat("/enhanced_search","/decisions"),h="".concat("/enhanced_search","/filings"),u="".concat("/enhanced_search","/recordations"),p="".concat(u,"/rail"),g="".concat(u,"/water"),f="".concat("/enhanced_search","/dockets"),E="".concat("/enhanced_search","/environmental_comments"),b="https://www.pay.gov/public/form/start/550880926",v=["AB","AM","ARB","ASC","CNO","CU","DOP","DSO","EP","EPM","FD","FSA","IS","ISM","MC","MCC","MCF","MXC","NOM","NOR","PTO","RER","RR","S5A","S5M","S5R","SAI","SDM","SO","STA","SUB","SUS","WB","WC","WCC"],y=["","A","B","C","D","E","F","G","H","I","J","K","L","M","N","P","S","TA","U","X"],C=["Amended Application","Amended Complaint","Answer","Appeal","Appeal Arbitration Decision","Application","Arbitration Answer","Arbitration Complaint","Arbitration Joint Notice","Argument","Brief","Certificate Of Compliance With 49 CFR 1150.32(e) or 1150.42(e)","Certificate Of Compliance With Condition","Certificate Of Publication","Certificate Of Service","Comments","Complaint","Confidential Material Filed Under Seal","Consummation Notice","Discovery","Environmental Comment","Environmental Materials","Errata/Correction","Evidence","Ex Parte Meeting Summary","Exhibit(s)","Fee Waiver Request","Interrogatories","Letter","Miscellaneous","Modify/Supplement Prior Filing Or The Record","Motion For Protective Order","Motion To Compel","Motion To Dismiss Or Discontinue","Motion To Strike","Motion To Withdraw","Motion/Petition/Request","Motion/Request To Vacate Trail Use Agreement","Nomination","Notice","Notice of Arbitration Decision","Notice Of Exemption","Notice Of Intent To Initiate Case","Notice Of Intent To Participate (With Comment)","Notice Of Intent To Participate (Without Comment)","Notice Of Intent To Participate In Oral Argument/Hearing","Notice Of Modified Certificate Of Public Convenience & Necessity - 49 CFR 1150.21","Objection to Request for Waybill Data","OFA - Agreement Reached/Terms Of Sale Accepted","OFA - Notice Of Intent To File OFA","OFA - Offer Of Financial Assistance","OFA - Request To Set Terms","OFA - Terms Of Sale Rejected","OFA - Withdraw Offer Of Financial Assistance","Opening Statement","Oral Argument Exhibits","Oral Argument/Hearing Request","Petition","Petition For Declaratory Order","Petition For Exemption","Petition For Reconsideration","Petition For Rulemaking","Petition For Stay","Petition For Waiver","Petition To Intervene","Petition to Reject","Petition To Reopen","Petition To Revoke Exemption","Petition To Substitute Applicant","Petition To Substitute Trail User","Petition To Suspend And Investigate","Protest/Opposition Statement","Public Use Condition Request","Rebuttal","Reply","Reply Comments","Reply To Appeal","Request For Extension Of Time","Request For Informal Opinion","Request For Merger Condition(s)","Request for Waybill Data","Responsive Or Inconsistent Application","Roster Of Arbitrators","Safety Implementation Plan","Schedule 13D (And Supplements) - 49 CFR 1013.3(c)","Section 5 Summary","Settlement/Agreement/Amendment","Status Report","Stipulation","Substitution/Withdrawal Of Counsel","Support Statement","System Diagram Map","Trail Use Agreement Reached","Trail Use Extension","Trail Use Request","Transcript Of Discovery Conference","Transcript Of Hearing/Conference","Transcript Of Oral Argument","Verified Statement","Voting Trust Agreement","Waybill Access","Workpapers","Written Testimony"],A=["Amtrak or Passenger Rail Issue","Canadian or Mexican Rail Regulatory Issue","Household Goods Moving Issue","Information-Economic Data","Information-Non Economic Request","Meeting Request","Motor Carrier (Trucking) Issue","Passenger Bus Issue","Pipeline Issue","Railroad Agricultural Contract Filing","Railroad Blocked Crossings","Railroad Car Supply","Railroad Claims","Railroad Commercial or Billing Issue","Railroad Common Carrier Obligation","Railroad Competition Issues","Railroad Demurrage Charges","Railroad Denial of Rail Service","Railroad Embargo","Railroad Environmental Issues","Railroad Freight Car Repair or Dispo","Railroad Fuel Surcharge","Railroad Hazardous Waste/Radioactive Waste","Railroad Inter-carrier disputes","Railroad Interchange Issue","Railroad Intermodal Service","Railroad Labor Issues","Railroad Lease of track or equipment","Railroad Liability Issues","Railroad Maintenance Issue","Railroad Miscellaneous Charges","Railroad Noise - Airhorn, Safety, etc","Railroad Operating Authority Issue","Railroad Paper Barriers","Railroad Preemption","Railroad Rate Levels/Increases","Railroad Reciprocal Switching","Railroad Service Issue","Railroad Side Track Agreement","Railroad Stored Freight Cars","Railroad Tariff Issue","Rails to Trails","Real Estate Matter","STB Authority Question","STB Fees","STB Jurisdictional Question","STB or ICC Records Assistance","STB Procedural Assistance","STB Recordations or Security Interests on Rail Cars","STB Webpage/Downloading Assistance","Water Carrier Issue (Non-contiguous Domestic Trade)","Wrong Agency Calls","Other"],N=["Agricultural Products","Aggregates","Automobile","Chemicals","Coal","Construction Debris","Construction Materials","Empty Freight Cars","Forest Products","Hazardous Waste/Radioactive Waste","High/Wide Loads","Household Goods","Industrial Products","Intermodal","Metals and Minerals","Municipal Waste","Not Specified by Shipper","Passenger","Other","Toxic By Inhalation","N/A"],k=[{name:"Northeast",hint:"Connecticut, Maine, Massachusetts, New Hampshire, New Jersey, New York, Pennsylvania, Rhode Island, and Vermont",color:"#dc3545"},{name:"South",hint:"Alabama, Arkansas, Delaware, Florida, Georgia, Kentucky, Louisiana, Maryland, Mississippi, North Carolina, Oklahoma, South Carolina, Tennessee, Texas, Virginia, and West Virginia",color:"#9e7700"},{name:"Midwest",hint:"Illinois, Indiana, Iowa, Kansas, Michigan, Minnesota, Missouri, Nebraska, North Dakota, Ohio, South Dakota, and Wisconsin",color:"#23903c"},{name:"West",hint:"Montana, Idaho, Wyoming, Colorado, New Mexico, Arizona, Utah, Nevada, California, Oregon, Washington, Alaska, and Hawaii",color:"#0071bc"},{name:"US Territory",hint:"US Territory",color:"#000"},{name:"International",hint:"International",color:"#000"}],S=[{name:"Alabama",abbrv:"AL"},{name:"Alaska",abbrv:"AK"},{name:"American Samoa",abbrv:"AS"},{name:"Arizona",abbrv:"AZ"},{name:"Arkansas",abbrv:"AR"},{name:"California",abbrv:"CA"},{name:"Colorado",abbrv:"CO"},{name:"Connecticut",abbrv:"CT"},{name:"Delaware",abbrv:"DE"},{name:"District of Columbia",abbrv:"DC"},{name:"Federated States of Micronesia",abbrv:"FM"},{name:"Florida",abbrv:"FL"},{name:"Georgia",abbrv:"GA"},{name:"Guam",abbrv:"GU"},{name:"Hawaii",abbrv:"HI"},{name:"Idaho",abbrv:"ID"},{name:"Illinois",abbrv:"IL"},{name:"Indiana",abbrv:"IN"},{name:"Iowa",abbrv:"IA"},{name:"Kansas",abbrv:"KS"},{name:"Kentucky",abbrv:"KY"},{name:"Louisiana",abbrv:"LA"},{name:"Maine",abbrv:"ME"},{name:"Marshall Islands",abbrv:"MH"},{name:"Maryland",abbrv:"MD"},{name:"Massachusetts",abbrv:"MA"},{name:"Michigan",abbrv:"MI"},{name:"Minnesota",abbrv:"MN"},{name:"Mississippi",abbrv:"MS"},{name:"Missouri",abbrv:"MO"},{name:"Montana",abbrv:"MT"},{name:"Nebraska",abbrv:"NE"},{name:"Nevada",abbrv:"NV"},{name:"New Hampshire",abbrv:"NH"},{name:"New Jersey",abbrv:"NJ"},{name:"New Mexico",abbrv:"NM"},{name:"New York",abbrv:"NY"},{name:"North Carolina",abbrv:"NC"},{name:"North Dakota",abbrv:"ND"},{name:"Northern Mariana Islands",abbrv:"MP"},{name:"Ohio",abbrv:"OH"},{name:"Oklahoma",abbrv:"OK"},{name:"Oregon",abbrv:"OR"},{name:"Palau",abbrv:"PW"},{name:"Pennsylvania",abbrv:"PA"},{name:"Puerto Rico",abbrv:"PR"},{name:"Rhode Island",abbrv:"RI"},{name:"South Carolina",abbrv:"SC"},{name:"South Dakota",abbrv:"SD"},{name:"Tennessee",abbrv:"TN"},{name:"Texas",abbrv:"TX"},{name:"Utah",abbrv:"UT"},{name:"Vermont",abbrv:"VT"},{name:"Virgin Islands",abbrv:"VI"},{name:"Virginia",abbrv:"VA"},{name:"Washington",abbrv:"WA"},{name:"West Virginia",abbrv:"WV"},{name:"Wisconsin",abbrv:"WI"},{name:"Wyoming",abbrv:"WY"}],x=[{label:"Fee required (no waiver requested)",value:"Fee required (no waiver requested)"},{label:"Fee required (waiver requested)",value:"Fee required (waiver requested)"},{label:"No Fee Required",value:"No Fee Required"}],I=["United States","Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],F=["Yes","No","N/A"],D=["Corrected Decision","Corrected Environmental Review","Corrected Notice","Decision","Environmental Review","Notice","Notice Of Court Action","Notice of Exemption","Policy Statement"],T=["Accounting Board","Administrative Law Judge","Chairman","Director Of Proceedings","Director, Office Of Economics","Director, Office Of Environmental Analysis","Director, Office Of Passenger Rail","Entire Board"],w=[{label:"Rail",value:"Rail"},{label:"Water",value:"Water"}],B=["Assignee","Assignor","Bailee","Bailor","Borrower","Creditor","Debtor","Grantee","Grantor","Lender","Lessee","Lessor","Mortgagee","Mortgagor","Secured Party","Trustee","Vendee","Vendor","Other"],R=[{label:"All",value:-1},{label:"Incoming",value:18},{label:"Outgoing",value:19}],P=["OEA/Unknown","Roslyn Anderson","Adam Assenza","Danielle Gosselin","Andrea Poole","Karen Stevens","Alan Tabachnick","Diana Wood"],O=["Self/Individual","Applicant","Citizens Group","Congressional","Environmental Organization","Federal Agency","Local Interest","Local Government","State Agency","State Government Official","Tribal Official","Tribal Member"],M="Dockets (Including Service Lists)",L=[50,500,1e3],z=["Decisions","Filings",M,"Recordations","Environmental Comments","By Date"],q=["Decisions","Filings","Recordations","Environmental Comments"],V=["Decisions","Filings","Recordations","Environmental Comments"],G=[{searchFor:"Decisions",fields:null},{searchFor:"Filings",fields:null},{searchFor:"Recordations",fields:{recordationCategory:w[0].value}},{searchFor:"Recordations",fields:{recordationCategory:w[1].value}},{searchFor:"Environmental Comments",fields:null}];var _={Decisions:"decision",Filings:"filing",[M]:"docket",Recordations:"recordation","Service List":"serviceList","Environmental Comments":"environmentalComment","Combined Filings/Decisions":"document"},W={decision:"Decisions",filing:"Filings",docket:M,recordation:"Recordations",serviceList:"Service List",environmentalComment:"Environmental Comments",document:"Combined Filings/Decisions"};const j=(e,a)=>{var t=!1;switch(e){case Ce:for(let e in w)a===w[e].value&&(t=!0)}return t},Y="".concat("https://7xq2ugsfyk.execute-api.us-east-1.amazonaws.com","/").concat("prod"),Q="".concat(Y,"/upload/file"),H="".concat(Y,"/upload/metadata"),U="".concat(Y,"/search"),K="".concat(U,"/decisions"),J="".concat(U,"/filings"),Z=("".concat(U,"/news"),"".concat(U,"/transcripts"),"".concat(U,"/dockets")),X="".concat(U,"/recordations"),$="".concat(U,"/recordationParty"),ee="".concat(U,"/byDate"),ae="".concat(U,"/serviceList"),te="".concat(U,"/environmentalComments"),ne="".concat(U,"/documents"),re=r.a.createElement("span",null,"In order for the Office of Proceedings to process your submission, please fill out the following information. An asterisk (*) indicates a required field. ",r.a.createElement("br",null),"PLEASE NOTE:",r.a.createElement("ul",null,r.a.createElement("li",null,"By submitting your document as a public filing, you consent to have your document shared publicly. If you include business or personal contact information when entering party or submitter information, this information will be publicly available on the Board\u2019s website."),r.a.createElement("li",null,"Publicly available personal contact information includes, but is not limited to, the filer\u2019s name, home address, telephone number and email address. For any issues regarding e-filing, please call (202) 245-0350."),r.a.createElement("li",null,"We encourage you to provide business contact information where possible."))),le="File Formats/Documents that we Accept",ie=["Microsoft Word (doc, docx)","Microsoft Excel (xls, xlsx)","Adobe Acrobat (pdf)","Media Files (gif, jpg, png, mpg, etc.)","Zip files containing no .exe files"],se=["Microsoft Word (doc, docx)","Microsoft Excel (xls, xlsx)","Adobe Acrobat (pdf)","Media Files (gif, jpg, png, mpg, etc.)","Map Files (kml and kmz)","Shapefiles (cpg, dbf, prj, shp, shx)","Zip files containing no .exe files"],oe=["Microsoft Word (doc, docx)","Microsoft Excel (xls, xlsx)","Adobe Acrobat (pdf)","Media Files (gif, jpg, png, mpg, etc.)","Map Files (kml and kmz)","Zip files containing no .exe files"],ce=r.a.createElement("span",null,r.a.createElement("strong",null,"File names can ",r.a.createElement("u",null,"only")," have letters, numbers, and underscores. Spaces and special characters are ",r.a.createElement("u",null,"not")," compatible with the e-filing system and their use will result in e-filing failure."),r.a.createElement("ul",null,r.a.createElement("li",null,"Example: \u201cSTB_ReplytoComment.pdf\u201d (Acceptable)"),r.a.createElement("li",null,"Example: \u201cSTB Reply*to*Comment.pdf\u201d (Not Acceptable due to space and special characters)"))),de=["File names are limited to 150 characters","Each file must be no larger than 100 MB","Use the correct file name extension",ce],me=["File names are limited to 150 characters","Each file must be no larger than 500 MB","Use the correct file name extension",ce],he=["The file must be a PDF",...de],ue=["File names are limited to 150 characters","Each file must be no larger than 500 MB","Use the correct file name extension","A maximum of 4 attachments are allowed (If you have more than 4 attachments, consider combining files into a PDF and images, shapefiles, or other file types into a zip file)",ce],pe=(r.a.Fragment,r.a.Fragment,r.a.createElement("span",null,"Thank you for your submission to the Surface Transportation Board\u2019s Rail Customer and Public Assistance (RCPA) office. If you have requested informal assistance from RCPA, a staff member will contact you shortly. RCPA can be reached at (202) 245-0238 or ",r.a.createElement("a",{href:"mailto:rcpa@stb.gov"},"rcpa@stb.gov"),".")),ge=r.a.createElement("span",null,"Documents received after 5:00 p.m. Eastern Time may not be processed until the next business day. Once your filing has been formally accepted by the Board, the public version of the filing will be placed on the ",r.a.createElement("a",{href:"https://prod.stb.gov/proceedings-actions/filings/",target:"_parent"},"Filings")," page of the Board\u2019s website."),fe=r.a.createElement("span",null,"Please add the email address ",r.a.createElement("strong",null,"eservice@stb.gov")," to the email contact information for any email address at which you expect to receive e-service of Board decisions. This will help prevent emails from those addresses being sent to junk mail folders."),Ee=r.a.createElement("span",null,"Formal service upon all parties of record on the service list must be made in accordance with 49 C.F.R. \xa7 1104.12. A sample certificate of service is provided at 49 C.F.R. \xa7 1104.12(c).",r.a.createElement(Nn,null)),be="recordation",ve="rcpa",ye="environmentalComment",Ce="recordationCategory",Ae=r.a.createElement("span",{style:{whiteSpace:"nowrap"}},"Recordation #"),Ne=[{label:"Yes",value:"true"},{label:"No",value:"false"}],ke="State/Province:",Se="Zip/Postal Code:",xe=[{label:"Water",value:"water"},{label:"Rail",value:"rail"}],Ie=[{label:"Primary",value:"Primary"},{label:"Secondary",value:"Secondary"}],Fe=["documentName","docketTitle","decisionType","decidingBody","decisionSummary","filingType","filingName","filedFor","recordationWaterOrRail",Ce,"party","typeOfAgreement","equipmentDescription","partyType","filedBy","submitter","company","address1","address2","addressCity","addressState","addressZip","addressCountry","addressTel","addressFax","email","submitterRecipient","organization","comments","letterRecipient","by","attachment"],De=["docketPrefix","sequenceNumber","subSequenceNumber","docketSuffix"],Te=["serviceStartDate","serviceEndDate","filingStartDate","filingEndDate","dateToView","startDate","endDate"],we=["filedFor","filedBy","partyType","otherPartyType","company","address1","address2","city","state","zip","country","phone","fax","email","additionalEmails"],Be={formal:["filedFor","filedBy","company","address1","city","state","zip","country","phone","email","additionalEmails"],other:["filedFor","filedBy","company","address1","city","state","zip","country","phone","email","additionalEmails"],[be]:["partyType","company","address1","city","state","zip","country"]},Re={decision:["Service Date","Decision ID","Docket Number","Docket Title","Decision Type","Deciding Body","Decision Summary","Attachment"],filing:["Official Filing Date","Docket Number","Filing ID","Filed For","Filing Type","Docket Title","Attachment"],docket:["Docket Number","Docket Title","Service List"],recordation:["Official Filing Date",Ae,"Type of Agreement","HAC?","Equipment Description","Party","Attachment"],serviceList:["Party Type","Filed By","Address","Email Address","Filed For"],environmentalComment:["Date Received or Sent","Comment ID","Docket Number","Submitter or Recipient","Organization","Environmental Comments","Location","Attachment"],document:["Date","ID","Type","Docket Number","Docket Title","By","Decision Summary","Attachment"]},Pe={decision:["Decision ID","Docket Number","Docket Title","Decision Type","Deciding Body","Decision Summary","Attachment"],filing:["Docket Number","Filing ID","Filed For","Filing Type","Docket Title","Attachment"],recordation:["Official Filing Date",Ae,"Type of Agreement","HAC?","Equipment Description","Party","Cross References","Attachment"],environmentalComment:["Date Received or Sent","Comment ID","Docket Number","Submitter or Recipient","Organization","Environmental Comments","Location","Attachment"]},Oe={decision:["serviceDate","decisionNumber","docketNum","docketTitle","decisionType","decidingBody","decisionSummary","decisionAttachment"],filing:["filingDate","docketNum","filingName","filedFor","filingType","docketTitle","filingAttachment"],docket:["docketNum","docketTitle","serviceList"],recordation:["officialFilingDate","recordationNumber","typeOfAgreement","hac","equipmentDescription","party","documentName"],serviceList:["partyType","filedBy","address","email","filedFor"],environmentalComment:["date","enviroCommentNumber","docketNum","submitterRecipient","organization","comments","location","enviroCommentAttachment"],document:["sortDate","displayId","docType","docketNum","docketTitle","by","decisionSummary","attachment"]},Me={decision:["decisionNumber","docketNum","docketTitle","decisionType","decidingBody","decisionSummary","decisionAttachment"],filing:["docketNum","filingName","filedFor","filingType","docketTitle","filingAttachment"],recordation:["officialFilingDate","recordationNumber","typeOfAgreement","hac","equipmentDescription","party","crossReferenceNumbers","recordationAttachment"],environmentalComment:["date","enviroCommentNumber","docketNum","submitterRecipient","organization","comments","location","enviroCommentAttachment"]},Le=["serviceDate","decisionNumber","decisionAttachment","filingDate","filingName","filingAttachment","Service Date","Decision ID","Docket Number","Official Filing Date","Docket Number","Filing ID","Service List","Decision Type","Deciding Body",Ae,"HAC?"],ze=["Decisions","Filings","Rail Recordations","Water Recordations","Environmental Comments"],qe=["Combined Filings/Decisions","".concat("Associated"," ").concat("Decisions"),"".concat("Associated"," ").concat("Filings"),"Environmental Comments"],Ve=["sortDate","displayId","docType","docketNum","docketTitle","by"];function Ge(){return r.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("g",null,r.a.createElement("rect",{id:"svg_1",height:"22",width:"4",y:"1",x:"10",strokeWidth:"0",stroke:"#000",fill:"#0071bc"}),r.a.createElement("rect",{id:"svg_3",height:"4",width:"22",y:"10",x:"1",strokeWidth:"0",stroke:"#000",fill:"#0071bc"})))}function _e(){return r.a.createElement("svg",{viewBox:"0 0 875 1000",height:"20",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("path",{style:{fill:"#d00000"},d:"M0 281.296l0 -68.355q1.953 -37.107 29.295 -62.496t64.449 -25.389l93.744 0l0 -31.248q0 -39.06 27.342 -66.402t66.402 -27.342l312.48 0q39.06 0 66.402 27.342t27.342 66.402l0 31.248l93.744 0q37.107 0 64.449 25.389t29.295 62.496l0 68.355q0 25.389 -18.553 43.943t-43.943 18.553l0 531.216q0 52.731 -36.13 88.862t-88.862 36.13l-499.968 0q-52.731 0 -88.862 -36.13t-36.13 -88.862l0 -531.216q-25.389 0 -43.943 -18.553t-18.553 -43.943zm62.496 0l749.952 0l0 -62.496q0 -13.671 -8.789 -22.46t-22.46 -8.789l-687.456 0q-13.671 0 -22.46 8.789t-8.789 22.46l0 62.496zm62.496 593.712q0 25.389 18.553 43.943t43.943 18.553l499.968 0q25.389 0 43.943 -18.553t18.553 -43.943l0 -531.216l-624.96 0l0 531.216zm62.496 -31.248l0 -406.224q0 -13.671 8.789 -22.46t22.46 -8.789l62.496 0q13.671 0 22.46 8.789t8.789 22.46l0 406.224q0 13.671 -8.789 22.46t-22.46 8.789l-62.496 0q-13.671 0 -22.46 -8.789t-8.789 -22.46zm31.248 0l62.496 0l0 -406.224l-62.496 0l0 406.224zm31.248 -718.704l374.976 0l0 -31.248q0 -13.671 -8.789 -22.46t-22.46 -8.789l-312.48 0q-13.671 0 -22.46 8.789t-8.789 22.46l0 31.248zm124.992 718.704l0 -406.224q0 -13.671 8.789 -22.46t22.46 -8.789l62.496 0q13.671 0 22.46 8.789t8.789 22.46l0 406.224q0 13.671 -8.789 22.46t-22.46 8.789l-62.496 0q-13.671 0 -22.46 -8.789t-8.789 -22.46zm31.248 0l62.496 0l0 -406.224l-62.496 0l0 406.224zm156.24 0l0 -406.224q0 -13.671 8.789 -22.46t22.46 -8.789l62.496 0q13.671 0 22.46 8.789t8.789 22.46l0 406.224q0 13.671 -8.789 22.46t-22.46 8.789l-62.496 0q-13.671 0 -22.46 -8.789t-8.789 -22.46zm31.248 0l62.496 0l0 -406.224l-62.496 0l0 406.224z"}))}var We=t(127),je=t(230),Ye=t(119);const Qe="Network Error: The server encountered an error and was unable to complete your request.",He="This field is required",Ue=(e,a)=>"Please enter a maximum of ".concat(e," characters. You have entered ").concat(a," characters"),Ke="File names can only contain letters, numbers and underscores.",Je="At least one of the files must be a PDF",Ze="This field must be a number",Xe=e=>r.a.createElement("span",{className:"invalid-info",title:e},"?"),$e=[null,void 0,""],ea=e=>!$e.includes(e),aa={formal:{max:6,min:1},other:{max:6,min:1},[be]:{max:12,min:1}},ta=!!window.MSInputMethodContext&&!!document.documentMode,na=["sequenceNumber","subSequenceNumber"],ra=["phone","fax"],la=["docketPrefix","sequenceNumber","feeOption","confirmationNumber"],ia=["docketPrefix","sequenceNumber","generalFilingType"],sa=["recordationOption","primaryRecordationNumber","confirmationNumber","submitter","company","address1","city","state","zip","country","phone","email","dateOfAgreement","typeOfAgreement","equipmentDescription"],oa=["submitter","phone","email","issue","commodityGroup","region","issueSummary","contactPermission"],ca={phone:255,fax:100,railroadsInvolved:500,problemLocation:500,industryLocation:500,problemDates:500,issueSummary:2e3},da=["haveDocketNumbers","docketPrefix","sequenceNumber","project","attention","name","affiliation","address1","city","state","zip","country","email"],ma={project:255,name:255,organization:255,address1:255,address2:255,city:255,state:100,zip:10,phone:255,email:255,comments:2e3},ha=["doc","docx","xls","xlsx","pdf","gif","jpg","jpeg","png","mpg","mpeg","avi","mov","zip","csv"],ua=[...ha,"kml","kmz","cpg","dbf","prj","shp","shx"],pa=[...ha,"kml","kmz"];function ga(e){let a=[];if(e.includes("-")?a=e.split("-"):e.includes("/")&&(a=e.split("/")),3===a.length&&ya(e)){let e=a[1]<10?"0"+Number(a[1]):Number(a[1]),t=a[0]<9?"0"+Number(a[0]):Number(a[0]);return[Number(a[2]),t,e].join("-")}return null}function fa(e){let a=[];if(e.includes("-")?a=e.split("-"):e.includes("/")&&(a=e.split("/")),3===a.length&&Ca(e)){let e=a[2]<10?"0"+Number(a[2]):Number(a[2]);return[a[1]<9?"0"+Number(a[1]):Number(a[1]),e,Number(a[0])].join("/")}return null}function Ea(e){var a=e;let t,n,r,l;return a&&(l=a.split(" ")[0].split("-"),l.length>=3&&(r=l[0],n=l[1]-1,t=l[2],a=new Date(Date.UTC(r,n,t,12,0,0)))),a}const ba=e=>{if(Aa(e)){let a=Ea(ga(e)||e).toString().split(" ");return"".concat(a[1]," ").concat(Number(a[2]),", ").concat(a[3])}return e},va=(e,a)=>{if(e){let t=e;a&&(t=Ea(e));let n=[Number(t.getMonth()+1),Number(t.getDate()),t.getFullYear()].join("/");return n.includes(",")?n.split(",")[0]:n.split(" ")[0]}return""},ya=e=>{let a=(new Date).getFullYear();if(e.includes("/")){let t=e.split("/");if(3===t.length&&t[0]>=1&&t[0]<=12&&t[0].length<=2&&t[1]>=1&&t[1]<=31&&t[1].length<=2&&t[2]>=a-100&&t[2]<=a+100&&4===t[2].length)return!0}return!1},Ca=e=>{let a=(new Date).getFullYear();if(e.includes("-")){let t=e.split("-");if(3===t.length&&t[1]>=1&&t[1]<=12&&t[1].length<=2&&t[2]>=1&&t[2]<=31&&t[2].length<=2&&t[0]>=a-100&&t[0]<=a+100&&4===t[0].length)return!0}return!1},Aa=e=>{let a=!1,t=!!window.MSInputMethodContext&&!!document.documentMode;return e.includes("-")&&!t?a=Ca(e):e.includes("/")&&(a=ya(e)),a},Na=e=>{if(Aa(e)){let a=ya(e)?e:fa(e);if(new Date(a).getMonth()+1!==Number(a.split("/")[0]))return!1}return!0},ka=e=>{if(e){if(e.includes("T")){let a=e.split("T"),t=va(a[0],!0),n=a[1].split(":");n[0]=Number(n[0]);let r="AM";0===n[0]?n[0]=12:n[0]>=12&&(n[0]>12&&(n[0]-=12),r="PM");let l="".concat(n[0],":").concat(n[1].padStart(2,"0")," ").concat(r);return"".concat(t," ").concat(l)}return va(e,!0)}return null},Sa=({errors:e,networkErrors:a})=>{if(e.length){let a=[];return e.map(e=>(e.errorMsg===He?a.includes("Fill in all required fields")||a.push("Fill in all required fields"):e.errorMsg.toUpperCase().includes("PDF")&&!a.includes(Je)?a.push(Je):e.errorMsg.includes("Attach at least one file")&&!a.includes("Attach at least one file")?a.push("Attach at least one file"):a.includes("Correct any invalid inputs")||a.push("Correct any invalid inputs"),!0)),r.a.createElement(r.a.Fragment,null,a.join(", "))}if(a.length)return r.a.createElement("p",{key:"network-error",className:"shortLine"},Qe)},xa=(e,a,t)=>ea(t)?e.filter(e=>e.fieldId==="".concat(a,"-").concat(t)&&e.errorMsg!==He).reduce((e,a)=>[...e,a.errorMsg+"\n"],[]):e.filter(e=>e.fieldId===a&&e.errorMsg!==He).reduce((e,a)=>[...e,a.errorMsg+"\n"],[]),Ia=(e,a)=>{let t={...e};return t.form.errors=t.form.errors.filter(e=>!e.fieldId.includes(a)),t},Fa=(e,a)=>{let t={...e},n=document.getElementsByName(a)[0];return n&&(ta?e.data[a]&&Aa(e.data[a])&&Na(e.data[a])?(n.classList.remove("date-invalid"),t=Ia(t,a)):(n.classList.add("date-invalid"),t=Ia(t,a),t.form.errors.push({errorMsg:"Invalid Date",fieldId:a})):e.data[a]&&Aa(e.data[a])&&n.checkValidity()?(n.classList.remove("date-invalid"),t=Ia(t,a)):(n.classList.add("date-invalid"),t=Ia(t,a),t.form.errors.push({errorMsg:"Invalid Date",fieldId:a}))),t},Da=e=>/^[a-zA-Z0-9]+$/.test(e),Ta=(e,a)=>{let t=[...e.form.errors];if(a.forEach(a=>{var n=e.data[a];if(ea(n))if(na.includes(a))La(n)?ea(n)&&!za(n)&&t.push({errorMsg:"Number out of range",fieldId:a}):t.push({errorMsg:Ze,fieldId:a});else if(ra.includes(a)){if(!qa(n))switch(a){case"phone":t.push({errorMsg:"Please enter a valid phone number",fieldId:a});break;case"fax":t.push({errorMsg:"Please enter a valid fax number",fieldId:a})}}else"equipmentDescription"!==a||ja(n,25e3)||t.push({errorMsg:Ue(25e3,String(n).length),fieldId:a});else t.push({errorMsg:He,fieldId:a})}),"docketNumbers"in e.data){let a={docketNumbers:e.data.docketNumbers,errors:[...t]};t=Ga(a,!0)}return t},wa=e=>{let a=!1,t=[];for(var n=0;n<e.data.attachments.length;n++)if(!0===Wa(e.data.attachments[n].state.file,["pdf"])){a=!0;break}return!1===a&&t.push({errorMsg:Je,fieldId:"attachments-root"}),t},Ba=e=>{let a=!1,t=[];for(var n=0;n<e.data.attachments.length;n++){let t=e.data.attachments[n].state.file;if(ea(t)&&ea(t.name)){a=!0;break}}return!1===a&&t.push({errorMsg:"Attach at least one file",fieldId:"attachments-root"}),t},Ra=e=>{switch(e){case ye:return pa;case"formal":return ua;default:return ha}},Pa=(e,a,t,n,r,l)=>{let i=a.substring(a.lastIndexOf("-")+1),s=t.filter(e=>e.fieldId!==a&&"attachments-root"!==e.fieldId);if(ea(e)){let t=n.reduce((e,a)=>[...e,a.state.file],[]),o=t.slice(0,i),c=t.slice(i+1,t.length);t=[...o,...c];let d=Ya(e);!1===Ua(e,t)&&(s=[...s,{errorMsg:"Duplicate file name.",fieldId:a,targetValue:e.name}]),r?!1===Wa(e,["pdf"])&&(s=[...s,{errorMsg:"The file must be a PDF",fieldId:a,targetValue:e.name}]):!1===Wa(e,Ra(l))&&(s=[...s,{errorMsg:"Invalid file extension.",fieldId:a,targetValue:e.name}]),!1===Qa(e)&&(s=[...s,{errorMsg:Ke,fieldId:a,targetValue:e.name}]),1===d?s=[...s,{errorMsg:"File name exceeds 150-character limit.",fieldId:a,targetValue:e.name}]:-1===d&&(s=[...s,{errorMsg:"File name must have a minimum of 1 character.",fieldId:a,targetValue:e.name}]),!1===Ha(e,l)&&(s=[...s,{errorMsg:"File size too large.",fieldId:a,targetValue:e.name}])}return s},Oa=(e,a,t)=>{let n=e.errors.filter(e=>!we.some(a=>e.fieldId.includes(a)));return a.forEach((a,r)=>{let l=((e,a)=>"Other"===a.state.partyType?[...Be[e],"otherPartyType"]:Be[e])(e.type,a);for(var i in a.state){let e=a.state[i];ea(e)?"phone"!==i||qa(e)?"fax"!==i||qa(e)?"email"===i?!1===Va(e)&&n.push({errorMsg:"Invalid email entered for party",fieldId:"".concat("email","-").concat(r)}):"additionalEmails"===i&&e.forEach((e,a)=>{ea(e)?!1===Va(e)&&n.push({errorMsg:"Invalid email address",fieldId:"".concat("additionalEmails","-").concat(r,"-").concat(a)}):t&&n.push({errorMsg:He,fieldId:"".concat("additionalEmails","-").concat(r,"-").concat(a)})}):n.push({errorMsg:"Please enter a valid fax number",fieldId:"".concat("fax","-").concat(r)}):n.push({errorMsg:"Please enter a valid phone number",fieldId:"".concat("phone","-").concat(r)}):t&&l.includes(i)&&n.push({errorMsg:He,fieldId:"".concat(i,"-").concat(r)})}}),n},Ma=(e,a,t)=>{let n=e.filter(e=>!e.fieldId.includes("attachment")&&"attachments-root"!==e.fieldId);for(var r=0;r<a.length;r++){let e="".concat("attachment","-").concat(r),l=a[r].state.file;if(ea(l)){let i=a.reduce((e,a)=>[...e,a.state.file],[]),s=i.slice(0,r+1),o=i.slice(r+1,i.length);s.pop(),i=[...s,...o];let c=Ya(l);if(!1===Ua(l,i)){n.push({errorMsg:"Duplicate file name.",fieldId:e,targetValue:l.name});continue}if(!1===Wa(l,Ra(t))){n.push({errorMsg:"Invalid file extension.",fieldId:e,targetValue:l.name});continue}if(!1===Qa(l)){n.push({errorMsg:Ke,fieldId:e,targetValue:l.name});continue}if(1===c){n.push({errorMsg:"File name exceeds 150-character limit.",fieldId:e,targetValue:l.name});continue}if(-1===c){n.push({errorMsg:"File name must have a minimum of 1 character.",fieldId:e,targetValue:l.name});continue}if(!1===Ha(l,t)){n.push({errorMsg:"File size too large.",fieldId:e,targetValue:l.name});continue}}}return n},La=e=>{if(e){let t=String(e);for(var a in t)if(t[a]<"0"||t[a]>"9")return!1}return!0},za=(e,a,t)=>{if(e){let n=Number(null!==a&&void 0!==a?a:0),r=Number(null!==t&&void 0!==t?t:2147483647),l=Number(e);return n<=l&&l<=r}return!1},qa=e=>{if(e){let t=String(e);for(var a in t)if("-"!==t[a]&&(t[a]<"0"||t[a]>"9"))return!1}return!0};function Va(e){return ea(e)&&/^\w+(?:[.-]\w+)*@\w+(?:[.-]\w+)*(?:\.\w{2,3})+$/.test(e)}function Ga(e,a){var t=e.errors.filter(e=>{var a=e.fieldId.split("-")[0];return!De.includes(a)&&"docketNum"!==a}),n=De.filter(e=>na.includes(e));return e.docketNumbers.forEach((r,l)=>{r.sequenceNumber&&(t=_a(r,l,e.docketNumbers,t)),n.forEach(e=>{"sequenceNumber"===e&&!ea(r[e])&&a&&t.push({errorMsg:He,fieldId:"".concat(e,"-").concat(l)}),La(r[e])?ea(r[e])&&!za(r[e])&&t.push({errorMsg:"Number out of range",fieldId:"".concat(e,"-").concat(l)}):t.push({errorMsg:Ze,fieldId:"".concat(e,"-").concat(l)})})}),t}const _a=(e,a,t,n)=>{var r=[...n];return t.forEach((t,n)=>{if(a<n){var l=[];for(const a in e)e[a]===t[a]&&l.push(a);l.length===De.length&&r.push({errorMsg:"Duplicate Docket Number entered.",fieldId:"".concat("docketNum","-").concat(n)})}}),r};function Wa(e,a){if(ea(e)&&ea(e.name)){for(var t=!1,n=e.name.lastIndexOf(".")+1,r=0;r<a.length;r++){var l=a[r];if(n>0&&e.name.substring(n).toLowerCase()===l.toLowerCase()){t=!0;break}}return t}return!1}function ja(e,a){return String(e).length<=a}function Ya(e){if(ea(e)&&ea(e.name)){if(e.name.length>150)return 1;if(e.name.length<=150&&e.name.length>0)return 0}return-1}function Qa(e){return ea(e)&&ea(e.name)&&!e.name.substring(0,e.name.lastIndexOf(".")).match("[^0-9A-Za-z_]+")}function Ha(e,a){return ea(e)&&ea(e.name)&&e.size<=function(e){switch(e){case"formal":case ye:return 524288e3;default:return 104857600}}(a)}function Ua(e,a){for(var t=0;t<a.length;t++)if(void 0!==a[t]&&null!==a[t]&&""!==a[t]&&ea(a[t])&&a[t].name.toUpperCase()===e.name.toUpperCase())return!1;return!0}const Ka=e=>{let a=[];return!1===e.data.eFilingSubmitCheckbox&&a.push({errorMsg:He,fieldId:["eFilingSubmitCheckbox"]}),a};function Ja(){return r.a.createElement("svg",{width:"18",height:"20",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("g",{transform:"rotate(45 10 10)"},r.a.createElement("rect",{id:"svg_1",height:"18",width:"2",y:"1",x:"9",strokeWidth:"0",stroke:"#000",fill:"#ffffff"}),r.a.createElement("rect",{id:"svg_3",height:"2",width:"18",y:"9",x:"1",strokeWidth:"0",stroke:"#000",fill:"#ffffff"})))}var Za=t(113),Xa=t.n(Za),$a=t(114),et=t.n($a),at=t(115),tt=t.n(at),nt=t(116),rt=t.n(nt),lt=t(117),it=t.n(lt);const st=(e,a,t,n)=>{var l=t>1||n,i=e.data.docketNumbers.length<t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(dn,{index:0,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},dispatch:a,errors:e.form.errors,docketNumbers:e.data.docketNumbers,optional:n}),l?r.a.createElement(fn,null,r.a.createElement("div",{className:"center"},i?r.a.createElement(s.a,{className:"add-docket__btn",variant:"link",onClick:()=>{a({type:"addDocketNumber"})}},r.a.createElement(Ge,null),r.a.createElement("strong",{className:"add-title"}," ","Add Docket Number")):r.a.createElement(r.a.Fragment,null,"You have reached the maximum allowed number of docket numbers."))):null)},ot=(e,a)=>r.a.createElement(En,null,r.a.createElement("h3",null,r.a.createElement("strong",null,e)),r.a.createElement("p",null,a));var ct=t(51),dt=t.n(ct);class mt extends r.a.Component{render(){return r.a.createElement(We.a.Control,{disabled:this.props.disabled,as:"select",name:this.props.name,value:this.props.value,onChange:this.props.handleChange},this.props.options)}}class ht extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(We.a.Control,{name:this.props.name,className:"invalid-padding",defaultValue:this.props.value,onChange:this.props.handleChange,isInvalid:!!this.props.number&&!La(this.props.value)}),r.a.createElement(We.a.Control.Feedback,{type:"invalid",className:"invalid-box"},Xe(Ze)))}}class ut extends r.a.Component{constructor(e){super(e),this.clearValue=this.clearValue.bind(this)}clearValue(){document.getElementsByName(this.props.name)[0].value=""}render(){return r.a.createElement(Yt,{label:this.props.label,labelSize:this.props.labelSize},r.a.createElement(je.a,{className:"date-row"},r.a.createElement(Ye.a,null,r.a.createElement(We.a.Control,{type:"date",name:this.props.name,value:this.props.value||"",onChange:this.props.handleChange,placeholder:"mm/dd/yyyy",className:""})),"undefined"===typeof InstallTrigger?r.a.createElement(s.a,{className:"clear_date__btn",variant:"link",onClick:()=>{this.props.clearFieldsByName([this.props.name]),this.clearValue()}},r.a.createElement(Ja,null)):null))}}class pt extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(Qt,{label:r.a.createElement("h5",null,"Search For: ")},r.a.createElement(mt,{name:"searchFor",value:this.props.searchFor,handleChange:this.props.handleChange,options:z.map(e=>r.a.createElement("option",{key:e},e))})))}}class gt extends r.a.Component{constructor(e){super(e),this.state={expanded:e.fields.documentSearchAll||e.fields.documentSearchAny||e.fields.documentSearchExact||e.fields.documentSearchNone},this.expandSearch=this.expandSearch.bind(this)}expandSearch(){this.state.expanded?this.setState({expanded:!1}):this.setState({expanded:!0})}render(){var e=this.state.expanded?"active":"",a=this.state.expanded?"Click to collapse":"Click to expand";return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"center document-text-search"},r.a.createElement(s.a,{variant:"link",onClick:this.expandSearch,title:a},"Document Text Search",r.a.createElement("img",{src:dt.a,alt:"Document Text Search",className:"document-text-search__chevron ".concat(e)}))),this.state.expanded?r.a.createElement(r.a.Fragment,null,r.a.createElement(ft,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Et,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(bt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(vt,{fields:this.props.fields,handleChange:this.props.handleChange})):null)}}class ft extends r.a.Component{render(){return r.a.createElement(Yt,{label:"All of these words:",labelSize:2},r.a.createElement(ht,{name:"documentSearchAll",value:this.props.fields.documentSearchAll,handleChange:this.props.handleChange}))}}class Et extends r.a.Component{render(){return r.a.createElement(Yt,{label:"This exact phrase:",labelSize:2},r.a.createElement(ht,{name:"documentSearchExact",value:this.props.fields.documentSearchExact,handleChange:this.props.handleChange}))}}class bt extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Any of these words:",labelSize:2},r.a.createElement(ht,{name:"documentSearchAny",value:this.props.fields.documentSearchAny,handleChange:this.props.handleChange}))}}class vt extends r.a.Component{render(){return r.a.createElement(Yt,{label:"None of these words:",labelSize:2},r.a.createElement(ht,{name:"documentSearchNone",value:this.props.fields.documentSearchNone,handleChange:this.props.handleChange}))}}class yt extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Docket Number: "},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{as:"select",name:"docketNum_one",className:"right-corners--sharp",value:this.props.fields.docketNum_one,onChange:this.props.handleChange},[r.a.createElement("option",{key:""}),...v.map((e,a)=>r.a.createElement("option",{key:"".concat(a,"-").concat(e)},e))])),r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{type:"text",name:"docketNum_two",className:"invalid-padding no-border-radius",defaultValue:this.props.fields.docketNum_two,onChange:this.props.handleChange,isInvalid:!La(this.props.fields.docketNum_two)}),r.a.createElement(We.a.Control.Feedback,{type:"invalid",className:"invalid-box"},Xe(Ze))),r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{type:"text",name:"docketNum_three",className:"invalid-padding no-border-radius",defaultValue:this.props.fields.docketNum_three,onChange:this.props.handleChange,isInvalid:!La(this.props.fields.docketNum_three)}),r.a.createElement(We.a.Control.Feedback,{type:"invalid",className:"invalid-box"},Xe(Ze))),r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{as:"select",name:"docketNum_four",className:"left-corners--sharp",value:this.props.fields.docketNum_four,onChange:this.props.handleChange},[...y.map((e,a)=>r.a.createElement("option",{key:"".concat(a,"-").concat(e)},e))]))))}}class Ct extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Docket Title: "},r.a.createElement(ht,{name:"docketTitle",value:this.props.fields.docketTitle,handleChange:this.props.handleChange}))}}class At extends r.a.Component{render(){return r.a.createElement(jt,{className:"date-range"},r.a.createElement(We.a.Label,{className:"vert-center pad-left",size:2},this.props.dateRangeLabel),r.a.createElement(ut,{size:4,label:this.props.dateRangeStartLabel,labelSize:3,name:this.props.dateRangeStartName,value:this.props.fields[this.props.dateRangeStartName],handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}),r.a.createElement(ut,{size:6,label:this.props.dateRangeEndLabel,labelSize:4,name:this.props.dateRangeEndName,value:this.props.fields[this.props.dateRangeEndName],handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}))}}class Nt extends r.a.Component{render(){return r.a.createElement(At,{dateRangeLabel:"Service Date:",dateRangeStartLabel:"Start: ",dateRangeStartName:"serviceStartDate",dateRangeEndLabel:"End: ",dateRangeEndName:"serviceEndDate",fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName})}}class kt extends r.a.Component{render(){return r.a.createElement(At,{dateRangeLabel:"Official Filing Date:",dateRangeStartLabel:"Start: ",dateRangeStartName:"officialFilingStartDate",dateRangeEndLabel:"End: ",dateRangeEndName:"officialFilingEndDate",fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName})}}class St extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Decision Type: "},r.a.createElement(mt,{label:"Decision Type: ",name:"decisionType",value:this.props.fields.decisionType,handleChange:this.props.handleChange,options:[r.a.createElement("option",{key:""}),...D.map((e,a)=>r.a.createElement("option",{key:"".concat(a,"-").concat(e)},e))]}))}}class xt extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Decision ID: "},r.a.createElement(ht,{number:!0,name:"decisionNumber",value:this.props.fields.decisionNumber,handleChange:this.props.handleChange}))}}class It extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Deciding Body: "},r.a.createElement(mt,{name:"decidingBody",value:this.props.fields.decidingBody,handleChange:this.props.handleChange,options:[r.a.createElement("option",{key:""}),...T.map((e,a)=>r.a.createElement("option",{key:"".concat(a,"-").concat(e)},e))]}))}}class Ft extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Decision Summary: "},r.a.createElement(ht,{name:"decisionSummary",value:this.props.fields.decisionSummary,handleChange:this.props.handleChange}))}}class Dt extends r.a.Component{render(){return r.a.createElement(At,{dateRangeLabel:"Official Filing Date:",dateRangeStartLabel:"Start: ",dateRangeStartName:"filingStartDate",dateRangeEndLabel:"End: ",dateRangeEndName:"filingEndDate",fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName})}}class Tt extends r.a.Component{render(){return r.a.createElement(Qt,{label:"Filing Type: "},r.a.createElement(mt,{name:"filingType",value:this.props.fields.filingType,handleChange:this.props.handleChange,options:[r.a.createElement("option",{key:""}),...C.map((e,a)=>r.a.createElement("option",{key:"".concat(a,"-").concat(e)},e))]}))}}class wt extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Filed For: "},r.a.createElement(ht,{name:"filedFor",value:this.props.fields.filedFor,handleChange:this.props.handleChange}))}}class Bt extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Filing ID: "},r.a.createElement(ht,{number:!0,name:"filingName",value:this.props.fields.filingName,handleChange:this.props.handleChange}))}}r.a.Component;class Rt extends r.a.Component{render(){return r.a.createElement(Yt,{label:"Recordation No: ",labelSize:this.props.labelSize},r.a.createElement(ht,{label:"Recordation No: ",name:"recordationNumber",value:this.props.fields.recordationNumber,handleChange:this.props.handleChange}))}}class Pt extends r.a.Component{render(){return r.a.createElement(jt,{className:"form-group"},r.a.createElement(We.a.Label,{size:6,className:"vert-center pad-left"},"Suffix: "),r.a.createElement(ht,{size:6,label:"Suffix: ",name:"recordationSuffix",value:this.props.fields.recordationSuffix,handleChange:this.props.handleChange}))}}class Ot extends r.a.Component{render(){return r.a.createElement(jt,{className:"form-group"},r.a.createElement(We.a.Label,{size:3,className:"vert-center pad-left"},"Party: "),r.a.createElement(ht,{size:9,label:"Party: ",name:"party",value:this.props.fields.party,handleChange:this.props.handleChange}))}}class Mt extends r.a.Component{render(){return r.a.createElement(jt,{className:"form-group"},r.a.createElement(We.a.Label,{size:3,className:"vert-center pad-left"},"Type of Agreement: "),r.a.createElement(ht,{size:9,label:"Type of Agreement: ",name:"typeOfAgreement",value:this.props.fields.typeOfAgreement,handleChange:this.props.handleChange}))}}class Lt extends r.a.Component{render(){return r.a.createElement(jt,{className:"form-group"},r.a.createElement(We.a.Label,{size:3,className:"vert-center pad-left"},"Equipment Description: "),r.a.createElement(ht,{size:9,label:"Equipment Description: ",name:"equipmentDescription",value:this.props.fields.equipmentDescription,handleChange:this.props.handleChange}))}}class zt extends r.a.Component{render(){let e=Number(this.props.fields.enviroCommentTypeId),a=e&&-1===e?"EI/EO-":e&&18===e?"EI-":e&&19===e?"EO-":"";return r.a.createElement(Yt,{label:"Comment ID:",labelSize:this.props.labelSize},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Label,{className:"vert-center pad-left"},a)),r.a.createElement(Ye.a,{sm:9},r.a.createElement(We.a.Control,{type:"text",name:"enviroCommentNumber",className:"invalid-padding no-border-radius",defaultValue:this.props.fields.enviroCommentNumber,onChange:this.props.handleChange,isInvalid:!La(this.props.fields.enviroCommentNumber)}),r.a.createElement(We.a.Control.Feedback,{type:"invalid",className:"invalid-box"},Xe(Ze)))))}}class qt extends r.a.Component{render(){return r.a.createElement(At,{dateRangeLabel:"Date Received or Sent:",dateRangeStartLabel:"Start:",dateRangeStartName:"startDate",dateRangeEndLabel:"End:",dateRangeEndName:"endDate",fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName})}}class Vt extends r.a.Component{render(){return r.a.createElement(Qt,{label:"Organization:"},r.a.createElement(ht,{name:"organization",value:this.props.fields.organization,handleChange:this.props.handleChange}))}}class Gt extends r.a.Component{render(){return r.a.createElement(Qt,{label:"Submitter or Recipient:"},r.a.createElement(ht,{name:"submitterRecipient",value:this.props.fields.submitterRecipient,handleChange:this.props.handleChange}))}}class _t extends r.a.Component{constructor(e){super(e),this.clearValue=this.clearValue.bind(this)}clearValue(){document.getElementsByName("dateToView")[0].value=""}render(){return r.a.createElement(Qt,{label:"Date to View: "},r.a.createElement(je.a,{className:"date-row"},r.a.createElement(Ye.a,null,r.a.createElement(We.a.Control,{type:"date",name:"dateToView",defaultValue:this.props.fields.dateToView||"",onChange:this.props.handleChange,placeholder:"mm/dd/yyyy",className:"vert-center"})),"undefined"===typeof InstallTrigger?r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,{className:"clear_date__btn",variant:"link",onClick:()=>{this.props.clearFieldsByName(["dateToView"]),this.clearValue()}},r.a.createElement(Ja,null))):null))}}function Wt(e){return void 0===e.isVisible||!0===e.isVisible?r.a.createElement(je.a,{className:e.className},r.a.createElement(Ye.a,{md:6},e.children[0]),r.a.createElement(Ye.a,{md:6},e.children[1])):null}function jt(e){return void 0===e.isVisible||!0===e.isVisible?r.a.createElement(je.a,{className:e.className},e.children.map((a,t)=>r.a.createElement(Ye.a,{key:t,md:e.children[t].props.size},e.children[t]))):null}function Yt(e){return r.a.createElement(je.a,{className:"form-group"},r.a.createElement(Ye.a,{md:e.labelSize||4},r.a.createElement(We.a.Label,{className:"vert-center pad-left"},e.label)),r.a.createElement(Ye.a,{md:e.labelSize?12-e.labelSize:8},e.children))}function Qt(e){return r.a.createElement(je.a,{className:"form-group"},r.a.createElement(Ye.a,{md:2},r.a.createElement(We.a.Label,{className:"vert-center pad-left"},e.label)),r.a.createElement(Ye.a,{md:10},e.children))}const Ht=e=>!0===e||"true"===e?" red-text":"";function Ut(e){return r.a.createElement("label",{htmlFor:e.for},e.text)}function Kt(e){const a=[...Ie];return r.a.createElement("div",{className:"vert-center"},a.map((t,n)=>r.a.createElement(rn,{id:"".concat("recordationOption","-").concat(n),name:"recordationOption",className:"recordationOption",checked:e.value===a[n].value,value:a[n].value,label:a[n].label,key:"".concat(a[n].value,"-").concat(n),handleChange:e.handleChange,inline:e.inline,isInvalid:e.isInvalid})))}function Jt(e){const a=[...xe];return r.a.createElement("div",{className:"vert-center"},a.map((t,n)=>r.a.createElement(rn,{id:"".concat("recordationWaterOrRail","-").concat(n),name:"recordationWaterOrRail",className:"recordationWaterOrRail",checked:e.value===a[n].value,value:a[n].value,label:a[n].label,key:"".concat(a[n].value,"-").concat(n),handleChange:e.handleChange,inline:e.inline,isInvalid:e.isInvalid})))}function Zt(e){const a=[...Ne];return r.a.createElement("div",{className:"vert-center"},a.map((t,n)=>r.a.createElement(rn,{id:"".concat("hasHac","-").concat(n),name:"hasHac",className:"hasHac",checked:e.value===a[n].value,value:a[n].value,label:a[n].label,key:"".concat(a[n].value,"-").concat(n),handleChange:e.handleChange,inline:e.inline})))}function Xt(e){const a=[...k];var t="vert-center";return e.isInvalid&&(t+=" invalid-border-radio"),r.a.createElement("div",{className:t},a.map((t,n)=>r.a.createElement(rn,{id:"".concat("region","-").concat(n),name:"region",className:"region",color:a[n].color,ariaLabel:"".concat(a[n].name,": ").concat(a[n].hint),checked:e.value===a[n].name,value:a[n].name,label:a[n].name,key:"".concat(a[n].name,"-").concat(n),handleChange:e.handleChange,onMouseEnter:()=>en(a[n]),onMouseLeave:()=>an(a[n]),inline:e.inline,isInvalid:e.isInvalid})))}function $t(e){const a=[{label:"Yes",value:"true"},{label:"No",value:"false"}];return r.a.createElement("div",{className:"vert-center"},a.map((t,n)=>r.a.createElement(rn,{id:"".concat("haveDocketNumbers","-").concat(n),name:"haveDocketNumbers",className:"haveDocketNumbers",checked:e.value===a[n].value,value:a[n].value,label:a[n].label,key:"".concat(a[n].value,"-").concat(n),handleChange:e.handleChange,inline:e.inline,isInvalid:e.isInvalid})))}const en=e=>{document.getElementById("region_hint").style.display="block",document.getElementById("region_hint").style.color=e.color,document.getElementById("region_hint").style.borderColor=e.color,document.getElementById("region_hint").innerHTML=e.hint},an=e=>{document.getElementById("region_hint").style.display="none"};function tn(e){const a=[...w];var t=e.fields[Ce]?e.fields[Ce]:a[0].value;return r.a.createElement(jt,null,r.a.createElement(We.a.Label,{className:"vert-center pad-left",size:6},"Category: "),r.a.createElement("div",{size:6,className:"vert-center"},a.map((n,l)=>r.a.createElement(rn,{id:"".concat(Ce,"-").concat(l),name:Ce,className:"hasHac",checked:t===a[l].value,value:a[l].value,label:a[l].label,key:"".concat(a[l].value,"-").concat(l),handleChange:e.handleChange,inline:e.inline}))))}function nn(e){const a=[...R];var t=Number(e.fields.enviroCommentTypeId?e.fields.enviroCommentTypeId:a[0].value);return r.a.createElement(jt,null,r.a.createElement(We.a.Label,{className:"vert-center pad-left",size:4},"Type:"),r.a.createElement("div",{size:8,className:"vert-center"},a.map((n,l)=>r.a.createElement(rn,{id:"".concat("enviroCommentTypeId","-").concat(l),name:"enviroCommentTypeId",className:"hasHac",checked:t===a[l].value,value:a[l].value,label:a[l].label,key:"".concat(a[l].value,"-").concat(l),handleChange:e.handleChange,inline:e.inline}))))}function rn(e){let a=e.inline?"radio-container inline-block":"radio-container";return e.isInvalid&&(a+=" invalid-radio"),r.a.createElement("div",{className:a,title:e.title,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},r.a.createElement("label",{style:e.color?{color:e.color}:null,"aria-label":e.ariaLabel},e.label,r.a.createElement("input",{type:"radio",id:e.id,name:e.name,className:e.className,"data-id":e.index,checked:e.checked,value:e.value,onChange:e.handleChange,required:e.required}),r.a.createElement("span",{className:"radio",style:e.checked?{backgroundColor:e.color}:null,id:e.name,name:e.name})))}function ln(e){const a=[{label:"Public",value:!0},{label:"Confidential",value:!1}];return a.map((t,n)=>r.a.createElement(rn,{id:"".concat(e.id,"-").concat(n),name:"".concat(e.name,"-").concat(n),className:"isPublic",index:e.index,key:"".concat(e.index,"-").concat(n),checked:e.value===a[n].value,value:a[n].value,label:a[n].label,handleChange:e.handleChange}))}class sn extends r.a.Component{constructor(e){super(e),this.fileUpload=r.a.createRef()}render(){return r.a.createElement(We.a.Control,{type:"file",id:this.props.id,ref:this.fileUpload,name:this.props.id,"data-id":this.props.index,className:"".concat(this.props.name," ").concat(this.props.className),onChange:this.props.handleChange,onClick:this.props.onClick,required:this.props.required,isInvalid:this.props.isInvalid})}}function on(e){return e.attachments.map((a,t)=>{let n="".concat("attachment","-").concat(t),l="".concat("isPublic","-").concat(t),i=e.inline?"choose-file-btn--inline":"choose-file-btn",o=null,c=e.errors.filter(e=>e.fieldId===n).reduce((e,a)=>[...e,a.errorMsg+"\n"],[]);c.length&&(c=c[0]);let d=e.errors.filter(e=>e.fieldId===n).length>0,m="",h=a.state.file;null!==h&&void 0!==h&&""!==h&&(m=h.name.split("\\"),m=r.a.createElement("p",{className:"stb-filename"},m[m.length-1]));let u=r.a.createElement(r.a.Fragment,null,r.a.createElement("label",{className:"attachment-btn stb-btn-width attachment-box__btn--margin"},r.a.createElement(sn,{id:n,name:"attachment",className:"hide",index:t,value:a.state.file,handleChange:e.handleChange,onClick:e.onClick,isInvalid:d}),"Choose File"));return(e.attachments.length>1||e.formType&&[ve,ye].includes(e.formType))&&(o=r.a.createElement("div",{className:"stb-remove-attachment"},r.a.createElement(s.a,{id:"".concat("remove-attachment","-").concat(t),variant:"danger",onClick:()=>e.remove(t),value:t,className:"stb-remove-attachment__btn attachment-box__btn--margin transparent-btn-danger"},r.a.createElement(_e,null)))),r.a.createElement("div",{key:"attachmentDiv"+t,className:"attachment-box"},r.a.createElement("div",{className:i},m,u),e.withPublic?r.a.createElement("div",{className:""},r.a.createElement(ln,{id:l,name:l,index:t,value:e.public[t],handleChange:e.handleChange})):null,o,r.a.createElement("span",{className:"attachment-error"},r.a.createElement(We.a.Control,{isInvalid:d,className:"hide"}),r.a.createElement(We.a.Control.Feedback,{type:"invalid"},c)))})}function cn(e){let a=[];return e.options.map((e,t)=>""===e?a.push(r.a.createElement("option",{value:"",key:t,style:{display:"none"}})):"string"===typeof e?a.push(r.a.createElement("option",{key:"".concat(e,"-").concat(t),value:e},e)):"object"===typeof e?a.push(r.a.createElement("option",{key:"".concat(e.name,"-").concat(t),value:e.abbrv},"".concat(e.abbrv," - ").concat(e.name))):a.push(r.a.createElement("option",{value:"",key:t,style:{display:"none"}}))),a}function dn(e){var a=e.docketNumbers.length>1||e.optional,t=a?"field-with-button":"",n=e.errors.filter(e=>e.fieldId.includes("docketNum")),l=n.length?n[0].errorMsg:null,i=n.length?Number(n[0].fieldId.split("-")[1]):null;return e.docketNumbers.map((n,o)=>{var c=o===i,d=c?"invalid-docket-number":"",m=xa(e.errors,"docketPrefix",o),h=xa(e.errors,"sequenceNumber",o),u=xa(e.errors,"subSequenceNumber",o);return r.a.createElement(r.a.Fragment,{key:"".concat(De,"-").concat(o)},r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Docket Number: ")},r.a.createElement("div",{className:t},r.a.createElement(je.a,{className:d},r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{required:!0,as:"select",id:"".concat("docketPrefix","-").concat(o),name:"".concat("docketPrefix","-").concat(o),value:e.prefixValue||n.docketPrefix,onBlur:e.handleBlur,onChange:e.handleChange,isInvalid:e.errors.filter(e=>e.fieldId==="".concat("docketPrefix","-").concat(o)).length>0},r.a.createElement(cn,{options:v})),m.length?r.a.createElement(We.a.Control.Feedback,{type:"invalid"},m):null),r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{required:!0,type:"text",id:"".concat("sequenceNumber","-").concat(o),name:"".concat("sequenceNumber","-").concat(o),className:"invalid-padding",value:n.sequenceNumber,onBlur:e.handleBlur,onChange:e.handleChange,isInvalid:e.errors.filter(e=>e.fieldId==="".concat("sequenceNumber","-").concat(o)).length>0}),h.length?r.a.createElement(We.a.Control.Feedback,{type:"invalid",className:"invalid-box"},Xe(h)):null),r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{type:"text",id:"".concat("subSequenceNumber","-").concat(o),name:"".concat("subSequenceNumber","-").concat(o),className:"invalid-padding",value:n.subSequenceNumber,onBlur:e.handleBlur,onChange:e.handleChange,isInvalid:e.errors.filter(e=>e.fieldId==="".concat("subSequenceNumber","-").concat(o)).length>0}),u.length?r.a.createElement(We.a.Control.Feedback,{type:"invalid",className:"invalid-box"},Xe(u)):null),r.a.createElement(Ye.a,{sm:3},r.a.createElement(We.a.Control,{as:"select",id:"".concat("docketSuffix","-").concat(o),name:"".concat("docketSuffix","-").concat(o),value:n.docketSuffix,onBlur:e.handleBlur,onChange:e.handleChange},r.a.createElement(cn,{options:y}))))),a?r.a.createElement(s.a,{className:"field-btn remove-email__btn",variant:"danger",onClick:()=>{e.dispatch({type:"removeDocketNumber",index:o})}},r.a.createElement(_e,null)):null,c?r.a.createElement("div",{className:"duplicate-message--invalid"},l):null))})}const mn=(e,a,t,n,l)=>r.a.createElement(pn,{optional:l,id:t,name:t,labelText:n,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>e.fieldId===t).length>0,invalid:xa(e.form.errors,t)}),hn=(e,a,t,n,l,i,s)=>{var o=!s;return r.a.createElement(fn,{labelText:o?r.a.createElement("span",null,r.a.createElement(Nn,null),n):n},r.a.createElement(We.a.Control,{required:o,as:"select",name:t,id:t,value:i,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>e.fieldId===t).length>0,invalid:xa(e.form.errors,t)},r.a.createElement(cn,{options:l})))},un=(e,a,t,n,l,i,s)=>r.a.createElement(gn,{optional:i,id:t,name:t,labelText:n,value:e.data[t],handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},numRows:l||"5",isInvalid:e.form.errors.filter(e=>e.fieldId===t).length>0,invalid:xa(e.form.errors,t),maxChars:s});function pn(e){var a=!e.optional,t=e.invalid||[],n=e.leftPad||2,l=e.rightPad||2,i=e.labelCol||12-e.inputCol||4,s=e.inputCol||12-e.labelCol||8,o=e.labelText||e.name||"",c=!1===e.isVisible?"hide-field":"",d=e.displayLabelAsTable||!1;return r.a.createElement(We.a.Row,{className:"".concat(e.className," ").concat(c)},r.a.createElement(Ye.a,{lg:n}),r.a.createElement(We.a.Group,{as:Ye.a,lg:12-n-l},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{md:i},d?r.a.createElement(We.a.Label,{style:{display:"table"}},r.a.createElement("span",{style:{display:"table-row"}},a?r.a.createElement(Nn,null):null,o)):r.a.createElement(We.a.Label,null,r.a.createElement("span",null,a?r.a.createElement(Nn,null):null,o))),r.a.createElement(Ye.a,{md:s},r.a.createElement(We.a.Control,{required:a,id:e.id,type:"text",name:e.name,value:e.value,placeholder:e.placeholder,onBlur:e.handleBlur,onChange:e.handleChange,isValid:e.isValid,isInvalid:e.isInvalid}),t.length?r.a.createElement(We.a.Control.Feedback,{type:"invalid"},t):null))),r.a.createElement(Ye.a,{lg:l}))}function gn(e){var a=!e.optional,t=e.leftPad||2,n=e.rightPad||2,l=e.labelCol||12-e.inputCol||4,i=e.inputCol||12-e.labelCol||8,s=e.labelText||e.name||"",o=e.isVisible||void 0===e.isVisible,c=e.maxChars,d=e.value||"",m=d.length>c?{color:"#dc3545"}:null;return o&&null!=e.name&&e.name.length>0&&!e.name.includes(" ")?r.a.createElement(We.a.Row,null,r.a.createElement(Ye.a,{lg:t}),r.a.createElement(We.a.Group,{as:Ye.a,lg:12-t-n},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{md:l},r.a.createElement(We.a.Label,null,r.a.createElement("span",null,a?r.a.createElement(Nn,null):null,s))),r.a.createElement(Ye.a,{md:i},r.a.createElement(We.a.Control,{as:"textarea",rows:e.numRows||"3",required:a,id:e.id,name:e.name,onChange:e.handleChange,onBlur:e.handleBlur,isValid:e.isValid,isInvalid:e.isInvalid}),c?r.a.createElement("div",{id:"".concat(e.id,"-").concat("charCount"),className:"character-count",style:m},"".concat(d.length,"/").concat(c)):null,r.a.createElement(We.a.Control.Feedback,{type:"invalid"},e.invalid)))),r.a.createElement(Ye.a,{lg:n})):null}function fn(e){var a=e.leftPad||2,t=e.rightPad||2,n=e.labelSize||12-e.inputSize||4,l=e.inputSize||12-e.labelSize||8,i=e.labelText||e.name||"",s=e.isVisible||void 0===e.isVisible,o=e.displayLabelAsTable||!1;return s?r.a.createElement(We.a.Row,null,r.a.createElement(Ye.a,{lg:a}),r.a.createElement(We.a.Group,{as:Ye.a,lg:12-a-t},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{md:n},o?r.a.createElement(We.a.Label,{style:{display:"table"}},r.a.createElement("span",{style:{display:"table-row"}},i)):r.a.createElement(We.a.Label,null,i)),r.a.createElement(Ye.a,{md:l},e.children))),r.a.createElement(Ye.a,{lg:t})):null}function En(e){return e.isVisible||void 0===e.isVisible?r.a.createElement(je.a,{className:e.className},r.a.createElement(Ye.a,{lg:2}),r.a.createElement(We.a.Group,{as:Ye.a,lg:8,className:e.className},e.children),r.a.createElement(Ye.a,{lg:2})):null}function bn(e){let a=ie.map((e,a)=>r.a.createElement("li",{key:"file-format-".concat(a)},e)),t=de;e.pdfRequired&&(t=[Je,...de]);let n=t.map((e,a)=>r.a.createElement("li",{key:"file-req-".concat(a)},e));return r.a.createElement(En,null,r.a.createElement("h4",null,r.a.createElement("strong",null,le)),r.a.createElement("p",null,"The STB accepts electronically all documents routinely filed in paper except large evidentiary filings (over 100 MB). The STB accepts the following formats:"," "),r.a.createElement("ul",null,a),r.a.createElement("p",null,"Submission Requirements: "),r.a.createElement("ul",null,n))}function vn(e){let a=se.map((e,a)=>r.a.createElement("li",{key:"file-format-".concat(a)},e)),t=me;e.pdfRequired&&(t=[Je,...me]);let n=t.map((e,a)=>r.a.createElement("li",{key:"file-req-".concat(a)},e));return r.a.createElement(En,null,r.a.createElement("h4",null,r.a.createElement("strong",null,le)),r.a.createElement("p",null,"The STB accepts electronically all documents routinely filed in paper except large evidentiary filings (over 500 MB). The STB accepts the following formats:"," "),r.a.createElement("ul",null,a),r.a.createElement("p",null,"Submission Requirements: "),r.a.createElement("ul",null,n))}function yn(e){let a=oe.map((e,a)=>r.a.createElement("li",{key:"file-format-".concat(a)},e)),t=ue.map((e,a)=>r.a.createElement("li",{key:"file-req-".concat(a)},e));return r.a.createElement(En,null,r.a.createElement("h4",null,r.a.createElement("strong",null,le)),r.a.createElement("p",null,"The STB accepts electronically all documents routinely filed in paper except large files (over 500 MB). The STB accepts the following formats:"," "),r.a.createElement("ul",null,a),r.a.createElement("p",null,"Submission Requirements: "),r.a.createElement("ul",null,t))}function Cn(){let e=he.map((e,a)=>r.a.createElement("li",{key:"file-req-".concat(a)},e));return r.a.createElement(En,null,r.a.createElement("h4",null,r.a.createElement("strong",null,"Submission Requirements: ")),r.a.createElement("ul",null,e))}function An(){return r.a.createElement(je.a,null,r.a.createElement(Ye.a,{lg:2}),r.a.createElement(Ye.a,{lg:8},r.a.createElement("div",null,"You will receive a confirmation email acknowledging receipt of your request after submitting the form below.")),r.a.createElement(Ye.a,{lg:2}))}function Nn(){return r.a.createElement("span",{className:"required-symbol"},"* ")}class kn extends r.a.Component{render(){return r.a.createElement(s.a,{variant:"primary",id:this.props.id,onClick:this.props.onClick,className:"transparent-btn-primary"},r.a.createElement(Ge,null),r.a.createElement("strong",{className:"add-title"},this.props.children))}}const Sn=(e,a)=>{let t=r.a.createElement("div",{className:"center"},e.data.attachments.length<e.form.maxAttachments?r.a.createElement(kn,{onClick:()=>a({type:"addAttachment"})},"Add Additional Attachment"):r.a.createElement(En,null,r.a.createElement("p",{className:"center"},"You have reached the maximum allowed number of attachments.")));switch(e.form.type){case"formal":return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{id:"attachmentSection",key:"attachmentSection"},r.a.createElement(vn,{pdfRequired:!0}),r.a.createElement("br",null),r.a.createElement("div",{id:"attachments-root"})),t);case"other":return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{id:"attachmentSection",key:"attachmentSection"},r.a.createElement(bn,{pdfRequired:!0}),r.a.createElement("br",null),r.a.createElement("div",{id:"attachments-root"})),t);case be:return r.a.createElement("div",{id:"attachmentSection",key:"attachmentSection"},r.a.createElement(Cn,null),r.a.createElement("br",null),r.a.createElement("div",{id:"attachments-root"}));case ve:return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{id:"attachmentSection",key:"attachmentSection"},r.a.createElement(bn,null),r.a.createElement("br",null),r.a.createElement("div",{id:"attachments-root"})),t);case ye:return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{id:"attachmentSection",key:"attachmentSection"},r.a.createElement(yn,null),r.a.createElement("br",null),r.a.createElement("div",{id:"attachments-root"})),t);default:return null}},xn=(e,a)=>{if(!e.data.parties)return null;{let t=e.data.parties.length<aa[e.form.type].max?r.a.createElement(kn,{onClick:()=>a({type:"addParty"})},"Add Additional Party"):r.a.createElement(En,null,r.a.createElement("p",{className:"center"},"You have reached the maximum allowed number of parties."));switch(e.form.type){case"formal":case"other":return r.a.createElement("div",{id:"partySection",key:"partySection"},r.a.createElement(En,null,r.a.createElement("h3",null,r.a.createElement("strong",null,"Party Information")),r.a.createElement("p",null,"If this is a Joint Filing, add additional parties by clicking on the button below.")),r.a.createElement("div",{id:"partydiv"}),r.a.createElement("div",{className:"center"},t));case be:return r.a.createElement("div",{id:"partySection",key:"partySection"},r.a.createElement("div",{id:"partydiv"}),r.a.createElement("div",{className:"center"},t));default:return r.a.createElement(r.a.Fragment,null)}}},In=(e,a)=>"other"===e.form.type?((e,a)=>r.a.createElement(r.a.Fragment,null,ot("Filing Information"),st(e,a,5),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Filing Type: ")},r.a.createElement(We.a.Control,{required:!0,as:"select",id:"generalFilingType",name:"generalFilingType",value:e.data.generalFilingType,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"generalFilingType"===e.fieldId).length>0},r.a.createElement(cn,{options:["",...C]}))),r.a.createElement("hr",null),xn(e,a),r.a.createElement("br",null),r.a.createElement("hr",null),r.a.createElement("br",null),Sn(e,a),r.a.createElement("br",null),r.a.createElement("hr",null)))(e,a):"formal"===e.form.type?((e,a)=>r.a.createElement(r.a.Fragment,null,r.a.createElement(En,null,r.a.createElement("p",{className:"formal-filing-paragraph"},re)),ot("Filing Information"),st(e,a,5),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Select the appropriate"," ",r.a.createElement("a",{href:"https://www.stb.gov/stb/public/resources_fees.html",title:"Link to Fees help",target:"_blank",rel:"noopener noreferrer"},"Filing Fee Description"),":")},r.a.createElement(We.a.Control,{required:!0,as:"select",id:"feeOption",name:"feeOption",value:e.data.feeOption,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"feeOption"===e.fieldId).length>0},r.a.createElement(cn,{options:x.map(e=>e.value)})),r.a.createElement(We.a.Control.Feedback,{type:"invalid"},e.form.errors.filter(e=>"feeOption"===e.fieldId).reduce((e,a)=>[...e,a.errorMsg+"\n"],[]))),e.data.feeOption===x[2].value?null:r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),r.a.createElement("a",{href:b,title:"Link to Pay.gov",target:"_blank",rel:"noopener noreferrer"},"Pay.gov")," ","Confirmation Number:")},r.a.createElement(We.a.Control,{required:!0,type:"text",id:"confirmationNumber",name:"confirmationNumber",onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"confirmationNumber"===e.fieldId).length>0})),r.a.createElement("hr",null),xn(e,a),r.a.createElement("br",null),r.a.createElement("hr",null),r.a.createElement("br",null),Sn(e,a),r.a.createElement("br",null),r.a.createElement("hr",null)))(e,a):e.form.type===be?((e,a)=>r.a.createElement(r.a.Fragment,null,r.a.createElement("br",null),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Is this a Water or Rail Recordation?")},r.a.createElement(Jt,{value:e.data.recordationWaterOrRail,handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},inline:!0,isInvalid:e.form.errors.filter(e=>"recordationWaterOrRail"===e.fieldId).length>0})),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Is this a Primary Recordation or is it a Secondary Recordation?")},r.a.createElement(Kt,{value:e.data.recordationOption,handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},inline:!0,isInvalid:e.form.errors.filter(e=>"recordationOption"===e.fieldId).length>0})),r.a.createElement(pn,{id:"primaryRecordationNumber",name:"primaryRecordationNumber",value:e.data.primaryRecordationNumber,labelText:"What is the Primary Recordation # associated with this recordation?",isVisible:"Secondary"===e.data.recordationOption,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"primaryRecordationNumber"===e.fieldId).length>0,invalid:xa(e.form.errors,"primaryRecordationNumber")}),r.a.createElement("br",null),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),r.a.createElement("a",{href:b,title:"Link to Pay.gov",target:"_blank",rel:"noopener noreferrer"},"Pay.gov")," ","Confirmation Number:")},r.a.createElement(We.a.Control,{required:!0,type:"text",id:"confirmationNumber",name:"confirmationNumber",onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"confirmationNumber"===e.fieldId).length>0}),r.a.createElement(We.a.Text,null,'When entering the "Fee Type Number" field on the Pay.gov website and your submission has no prior associated recordation, then enter "Primary". When submitting a secondary Recordation, then enter the associated recordation number.')),r.a.createElement(pn,{id:"submitter",name:"submitter",labelText:"Submitter:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"submitter"===e.fieldId).length>0,invalid:xa(e.form.errors,"submitter")}),r.a.createElement(pn,{id:"company",name:"company",labelText:"Company Name:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"company"===e.fieldId).length>0,invalid:xa(e.form.errors,"company")}),r.a.createElement(pn,{id:"address1",name:"address1",labelText:"Address Line 1:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"address1"===e.fieldId).length>0,invalid:xa(e.form.errors,"address1")}),r.a.createElement(fn,{labelText:"Address Line 2:"},r.a.createElement(We.a.Control,{type:"text",id:"address2",name:"address2",onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})}})),r.a.createElement(pn,{id:"city",name:"city",labelText:"City:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"city"===e.fieldId).length>0,invalid:xa(e.form.errors,"city")}),e.data.country===I[0]?r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),ke)},r.a.createElement(We.a.Control,{required:!0,as:"select",name:"state",id:"state",value:e.data.state,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"state"===e.fieldId).length>0,invalid:xa(e.form.errors,"state")},r.a.createElement("option",{value:"",style:{display:"none"}}),S.map((e,a)=>r.a.createElement("option",{key:"".concat(e.name,"-").concat(a),value:e.abbrv},"".concat(e.abbrv," - ").concat(e.name))))):r.a.createElement(pn,{id:"state",name:"state",labelText:ke,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},value:e.data.state,isInvalid:e.form.errors.filter(e=>"state"===e.fieldId).length>0,invalid:xa(e.form.errors,"state")}),r.a.createElement(pn,{id:"zip",name:"zip",labelText:Se,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"zip"===e.fieldId).length>0,invalid:xa(e.form.errors,"zip")}),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Country:")},r.a.createElement(We.a.Control,{required:!0,as:"select",name:"country",id:"country",value:e.data.country,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"country"===e.fieldId).length>0,invalid:xa(e.form.errors,"country")},r.a.createElement(cn,{options:I}))),r.a.createElement(pn,{id:"phone",name:"phone",labelText:"Phone Number:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"phone"===e.fieldId).length>0,invalid:xa(e.form.errors,"phone")}),r.a.createElement(pn,{id:"email",name:"email",labelText:"Email Address:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"email"===e.fieldId).length>0,invalid:xa(e.form.errors,"email")}),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Date of Agreement:")},r.a.createElement(je.a,{className:"date-row"},r.a.createElement(Ye.a,null,r.a.createElement(We.a.Control,{type:"date",id:"dateOfAgreement",name:"dateOfAgreement",defaultValue:e.data.dateOfAgreement,onChange:e=>{e.persist(),a({type:"handleChange",event:e})},placeholder:"mm/dd/yyyy",className:"vert-center",isInvalid:e.form.errors.filter(e=>"dateOfAgreement"===e.fieldId).length>0}),xa(e.form.errors,"dateOfAgreement").length?r.a.createElement(We.a.Control.Feedback,{type:"invalid"},xa(e.form.errors,"dateOfAgreement")):null),"undefined"===typeof InstallTrigger?r.a.createElement(s.a,{className:"clear_date__btn",variant:"link",onClick:e=>{e.persist(),a({type:"clearDate",event:e})}},r.a.createElement(Ja,null)):null)),r.a.createElement(pn,{id:"typeOfAgreement",name:"typeOfAgreement",labelText:"Type of Agreement: (equipment trust, mortgage, assignment, etc.)",displayLabelAsTable:!0,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"typeOfAgreement"===e.fieldId).length>0,invalid:xa(e.form.errors,"typeOfAgreement")}),r.a.createElement(fn,{displayLabelAsTable:!0,labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),'Have parties identified a "hereafter acquired" clause (HAC)?')},r.a.createElement(Zt,{value:e.data.hasHac,handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},inline:!0})),r.a.createElement(gn,{id:"equipmentDescription",name:"equipmentDescription",labelText:"Equipment Description:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},numRows:"5",isInvalid:e.form.errors.filter(e=>"equipmentDescription"===e.fieldId).length>0,invalid:xa(e.form.errors,"equipmentDescription")}),r.a.createElement("br",null),xn(e,a),r.a.createElement("br",null),r.a.createElement("hr",null),r.a.createElement("br",null),Sn(e,a),r.a.createElement("br",null),r.a.createElement("hr",null)))(e,a):e.form.type===ve?((e,a)=>r.a.createElement(r.a.Fragment,null,r.a.createElement(An,null),r.a.createElement("br",null),r.a.createElement("div",{className:"panel"},r.a.createElement(En,null,r.a.createElement("h3",null,r.a.createElement("strong",null,"Submitter Information"))),r.a.createElement(pn,{id:"submitter",name:"submitter",labelText:"Submitter:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"submitter"===e.fieldId).length>0,invalid:xa(e.form.errors,"submitter")}),r.a.createElement(pn,{optional:!0,id:"company",name:"company",labelText:"Company:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"company"===e.fieldId).length>0,invalid:xa(e.form.errors,"company")}),r.a.createElement(pn,{optional:!0,id:"jobTitle",name:"jobTitle",labelText:"Job Title:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"jobTitle"===e.fieldId).length>0,invalid:xa(e.form.errors,"jobTitle")}),r.a.createElement(pn,{optional:!0,id:"address1",name:"address1",labelText:"Address Line 1:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"address1"===e.fieldId).length>0,invalid:xa(e.form.errors,"address1")}),r.a.createElement(fn,{labelText:"Address Line 2:"},r.a.createElement(We.a.Control,{type:"text",id:"address2",name:"address2",onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})}})),r.a.createElement(pn,{optional:!0,id:"city",name:"city",labelText:"City:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"city"===e.fieldId).length>0,invalid:xa(e.form.errors,"city")}),e.data.country===I[0]?r.a.createElement(fn,{labelText:r.a.createElement("span",null,ke)},r.a.createElement(We.a.Control,{as:"select",name:"state",id:"state",value:e.data.state,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"state"===e.fieldId).length>0,invalid:xa(e.form.errors,"state")},r.a.createElement("option",{value:"",style:{display:"none"}}),S.map((e,a)=>r.a.createElement("option",{key:"".concat(e.name,"-").concat(a),value:e.abbrv},"".concat(e.abbrv," - ").concat(e.name))))):r.a.createElement(pn,{optional:!0,id:"state",name:"state",labelText:ke,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},value:e.data.state,isInvalid:e.form.errors.filter(e=>"state"===e.fieldId).length>0,invalid:xa(e.form.errors,"state")}),r.a.createElement(pn,{optional:!0,id:"zip",name:"zip",labelText:Se,handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"zip"===e.fieldId).length>0,invalid:xa(e.form.errors,"zip")}),r.a.createElement(fn,{labelText:r.a.createElement("span",null,"Country:")},r.a.createElement(We.a.Control,{as:"select",name:"country",id:"country",value:e.data.country,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"country"===e.fieldId).length>0,invalid:xa(e.form.errors,"country")},r.a.createElement(cn,{options:I}))),r.a.createElement(pn,{id:"email",name:"email",labelText:"Email Address:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"email"===e.fieldId).length>0,invalid:xa(e.form.errors,"email")}),r.a.createElement(pn,{id:"phone",name:"phone",labelText:"Phone Number:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"phone"===e.fieldId).length>0,invalid:xa(e.form.errors,"phone")}),r.a.createElement(pn,{optional:!0,id:"fax",name:"fax",labelText:"Fax Number:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"fax"===e.fieldId).length>0,invalid:xa(e.form.errors,"fax")})),r.a.createElement("div",{className:"panel"},r.a.createElement(En,null,r.a.createElement("h3",null,r.a.createElement("strong",null,"Railroad Information"))),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Issue:")},r.a.createElement(We.a.Control,{required:!0,as:"select",name:"issue",id:"issue",value:e.data.issue,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"issue"===e.fieldId).length>0,invalid:xa(e.form.errors,"issue")},r.a.createElement(cn,{options:["",...A]}))),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Commodity Group:")},r.a.createElement(We.a.Control,{required:!0,as:"select",name:"commodityGroup",id:"commodityGroup",value:e.data.commodityGroup,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"commodityGroup"===e.fieldId).length>0,invalid:xa(e.form.errors,"commodityGroup")},r.a.createElement(cn,{options:["",...N]}))),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Region:")},r.a.createElement(Xt,{value:e.data.region,handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},inline:!0,isInvalid:e.form.errors.filter(e=>"region"===e.fieldId).length>0})),r.a.createElement(je.a,null,r.a.createElement(Ye.a,{lg:2}),r.a.createElement(Ye.a,{lg:8},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{md:5}),r.a.createElement(Ye.a,{md:7},r.a.createElement("div",{className:"region-box"},r.a.createElement("div",{className:"region-info",id:"region_hint"}),r.a.createElement("div",{className:"region region-west"},r.a.createElement("img",{src:Xa.a,alt:k[3],className:e.data.region===k[3].name?"active":null})),r.a.createElement("div",{className:"region region-east"},r.a.createElement("img",{src:et.a,alt:k[0],className:e.data.region===k[0].name?"active":null})),r.a.createElement("div",{className:"region region-central"},r.a.createElement("img",{src:tt.a,alt:k[2],className:e.data.region===k[2].name?"active":null})),r.a.createElement("div",{className:"region region-south"},r.a.createElement("img",{src:rt.a,alt:k[1],className:e.data.region===k[1].name?"active":null})),r.a.createElement("div",{className:"region region-ak-hi"},r.a.createElement("img",{src:it.a,alt:k[3],className:e.data.region===k[3].name?"active":null})))))),r.a.createElement(Ye.a,{lg:2})),r.a.createElement(gn,{optional:!0,id:"railroadsInvolved",name:"railroadsInvolved",labelText:"Railroads Involved:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},numRows:"2",isInvalid:e.form.errors.filter(e=>"railroadsInvolved"===e.fieldId).length>0,invalid:xa(e.form.errors,"railroadsInvolved")}),r.a.createElement(gn,{optional:!0,id:"problemLocation",name:"problemLocation",labelText:"Problem Location:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},numRows:"2",isInvalid:e.form.errors.filter(e=>"problemLocation"===e.fieldId).length>0,invalid:xa(e.form.errors,"problemLocation")}),r.a.createElement(gn,{optional:!0,id:"industryLocation",name:"industryLocation",labelText:"Industry Location:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},numRows:"2",isInvalid:e.form.errors.filter(e=>"industryLocation"===e.fieldId).length>0,invalid:xa(e.form.errors,"industryLocation")}),r.a.createElement(gn,{optional:!0,id:"problemDates",name:"problemDates",labelText:"Problem Dates:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},numRows:"2",isInvalid:e.form.errors.filter(e=>"problemDates"===e.fieldId).length>0,invalid:xa(e.form.errors,"problemDates")}),r.a.createElement(gn,{id:"issueSummary",name:"issueSummary",labelText:"Summary of Issue:",handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},numRows:"5",isInvalid:e.form.errors.filter(e=>"issueSummary"===e.fieldId).length>0,invalid:xa(e.form.errors,"issueSummary")}),r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"May we contact the rail carrier(s) on your behalf as part of our effort to resolve the issue?")},r.a.createElement(We.a.Control,{required:!0,as:"select",name:"contactPermission",id:"contactPermission",value:e.data.contactPermission,onBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},onChange:e=>{e.persist(),a({type:"handleChange",event:e})},isInvalid:e.form.errors.filter(e=>"contactPermission"===e.fieldId).length>0,invalid:xa(e.form.errors,"contactPermission")},r.a.createElement(cn,{options:["",...F]})))),r.a.createElement("div",{className:"panel"},r.a.createElement(En,null,r.a.createElement("h3",null,r.a.createElement("strong",null,"Attachment(s)"))),Sn(e,a))))(e,a):e.form.type===ye?((e,a)=>r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"panel"},r.a.createElement(fn,{labelSize:4,labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Do you know the related docket number(s) for this environmental comment?")},r.a.createElement($t,{value:e.data.haveDocketNumbers,handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},inline:!0,isInvalid:e.form.errors.filter(e=>"haveDocketNumbers"===e.fieldId).length>0})),e.data.haveDocketNumbers&&"true"===e.data.haveDocketNumbers?r.a.createElement(r.a.Fragment,null,st(e,a,5)):null,mn(e,a,"project","Project Name and/or Location:"),hn(e,a,"attention","Attention of:",P,e.data.attention),mn(e,a,"name","Submitter:"),mn(e,a,"organization","Organization (if applicable):",!0),hn(e,a,"affiliation","Affiliation:",O,e.data.affiliation),mn(e,a,"address1","Address Line 1:"),mn(e,a,"address2","Address Line 2:",!0),mn(e,a,"city","City:"),e.data.country===I[0]?hn(e,a,"state",ke,["",...S],e.data.state):mn(e,a,"state",ke),mn(e,a,"zip",Se),hn(e,a,"country","Country:",I,e.data.country),mn(e,a,"phone","Phone Number:",!0),mn(e,a,"email","Email Address:"),un(e,a,"comments","Environmental Comments:","5",!0,ma.comments)),r.a.createElement("div",{className:"panel"},Sn(e,a)),r.a.createElement("br",null)))(e,a):void 0,Fn=e=>{switch(e.form.type){case ye:return"I understand that business or personal information (e.g., address, telephone number and email address) that is provided within my document or in the \u201cEnvironmental Comments\u201d field will be published and publicly available on the Board\u2019s website with the posting of the submission.";default:return"I understand that business or personal information (e.g., address, telephone number and email address) that is provided within my submitted document or as contact information will be published and publicly available on the Board\u2019s website with the posting of the submission."}};class Dn extends r.a.Component{constructor(e){super(e),this.state={},this.handleChange=e=>{e.target.checked?this.setState({mandatorySelection:e.target.checked}):this.setState({[e.target.name]:e.target.value})},this.handleSubmit=e=>{e.preventDefault()},this.yesClick=e=>{e.preventDefault(),this.props.history.push("/efiling")},this.state={mandatorySelection:!1},this.handleChange=this.handleChange.bind(this),this.handleSubmit=this.handleSubmit.bind(this)}render(){return r.a.createElement("div",{id:"EfilingQuestion",key:"EfilingQuestion"},r.a.createElement("form",{id:"mainForm",key:"mainForm",onSubmit:this.handleSubmit},r.a.createElement(Ut,{text:"Formal filings require service on parties. Prepare your submission in the same manner as you would if filing by paper. All documents in a formal filing must include the docket number(s) applicable to the submission, as well as the name and address of the person responsible for the filing. In addition, formal filings must be submitted as a PDF document and, if available, in the\u202foriginal electronic document format."}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(Ut,{text:"Please note that unless the parties agree otherwise, you may not serve your filing by email; service of paper copies is required, and service must be accomplished in the manner prescribed by applicable regulations."}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(Ut,{text:"Files up to 500 MB in size can be accepted as attachments. Attachments over 500 MB cannot be e-filed. "}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(Ut,{text:ge}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(Ut,{text:"By utilizing the e-filing system, you are consenting to e-service of Board decisions and communications. On the following page you will be required to list the email address(es) to be used for e-service. "}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(Ut,{text:fe}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("div",{className:"efiling-question-box"},r.a.createElement(o.a,null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(Ut,{text:r.a.createElement("strong",null,Ee)}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement("label",null,r.a.createElement("input",{type:"checkbox",checked:this.state.mandatorySelection,onChange:this.handleChange})),r.a.createElement(Ut,{text:"Yes, I have complied with the Board's service requirements."})))))),r.a.createElement("br",null),r.a.createElement("div",{className:"center"},r.a.createElement(s.a,{className:"stb-button right-margin",onClick:this.yesClick,disabled:!0!==this.state.mandatorySelection},"Continue")),r.a.createElement("br",null)))}}var Tn=Dn;class wn extends n.Component{constructor(e){super(e),this.state={filedFor:"",filedBy:"",partyType:"",otherPartyType:"",company:"",address1:"",address2:"",city:"",state:"",zip:"",country:I[0],phone:"",fax:"",email:"",additionalEmails:[],errors:[]}}render(){let e=this.props.total,a=this.props.index,t=null;return e>aa[this.props.type].min&&(t=r.a.createElement(s.a,{variant:"danger",onClick:()=>this.props.remove(a),className:"float-right"},"Remove")),r.a.createElement("div",{key:"".concat("Party","-").concat(a),className:"panel"},r.a.createElement(En,{className:"party-title gray-text"},r.a.createElement("h5",{className:"party-title__text inline-block"},"(".concat("Party"," ").concat(a+1,"/").concat(e,")")),t),Bn(this.props))}}const Bn=e=>{switch(e.type){case"formal":case"other":return r.a.createElement(r.a.Fragment,null,r.a.createElement(Rn,e),r.a.createElement(Pn,e),r.a.createElement(Ln,e),r.a.createElement(qn,e),r.a.createElement(Vn,e),r.a.createElement(Gn,e),r.a.createElement(_n,e),r.a.createElement(Wn,e),r.a.createElement(jn,e),r.a.createElement(Yn,e),r.a.createElement(Qn,e),r.a.createElement(Hn,e),r.a.createElement(Un,e));case be:return r.a.createElement(r.a.Fragment,null,r.a.createElement(On,e),r.a.createElement(Mn,e),r.a.createElement(zn,e),r.a.createElement(qn,e),r.a.createElement(Vn,e),r.a.createElement(Gn,e),r.a.createElement(_n,e),r.a.createElement(Wn,e),r.a.createElement(jn,e));default:return r.a.createElement(r.a.Fragment,null)}},Rn=e=>r.a.createElement(pn,{id:"".concat("filedFor","-").concat(e.index),name:"filedFor",className:"filed-for-field",labelText:r.a.createElement("strong",null,"Filed For: "),handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.filedFor,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("filedFor","-").concat(e.index)).length>0,invalid:xa(e.errors,"filedFor",e.index)}),Pn=e=>r.a.createElement(pn,{id:"".concat("filedBy","-").concat(e.index),name:"filedBy",labelText:r.a.createElement("strong",null,"Filed By:"),placeholder:"(i.e. the individual who signed document)",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.filedBy,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("filedBy","-").concat(e.index)).length>0,invalid:xa(e.errors,"filedBy",e.index)}),On=e=>r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Party Type: ")},r.a.createElement(We.a.Control,{required:!0,as:"select",id:"".concat("partyType","-").concat(e.index),name:"partyType",value:e.party.state.partyType,onBlur:e.handleBlur,onChange:e.handleChange,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("partyType","-").concat(e.index)).length>0,invalid:xa(e.errors,"partyType",e.index)},r.a.createElement("option",{value:"",style:{display:"none"}}),B.map((e,a)=>r.a.createElement("option",{key:"".concat(e,"-").concat(a),value:e},e)))),Mn=e=>e.party.state.partyType===B[B.length-1]?r.a.createElement(pn,{id:"".concat("otherPartyType","-").concat(e.index),name:"otherPartyType",labelText:"Other:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.otherPartyType,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("otherPartyType","-").concat(e.index)).length>0,invalid:xa(e.errors,"otherPartyType",e.index)}):r.a.createElement(r.a.Fragment,null),Ln=e=>r.a.createElement(pn,{id:"".concat("company","-").concat(e.index),name:"company",labelText:"Firm/Company:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.company,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("company","-").concat(e.index)).length>0,invalid:xa(e.errors,"company",e.index)}),zn=e=>r.a.createElement(pn,{id:"".concat("company","-").concat(e.index),name:"company",labelText:"Company Name:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.company,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("company","-").concat(e.index)).length>0,invalid:xa(e.errors,"company",e.index)}),qn=e=>r.a.createElement(pn,{id:"".concat("address1","-").concat(e.index),name:"address1",labelText:"Address Line 1:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.address1,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("address1","-").concat(e.index)).length>0,invalid:xa(e.errors,"address1",e.index)}),Vn=e=>r.a.createElement(We.a.Row,null,r.a.createElement(Ye.a,{lg:2}),r.a.createElement(We.a.Group,{as:Ye.a,lg:8},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{md:4},r.a.createElement(We.a.Label,null,"Address Line 2:")),r.a.createElement(Ye.a,{md:8},r.a.createElement(We.a.Control,{id:"".concat("address2","-").concat(e.index),type:"text",name:"address2",value:e.party.state.address2,onBlur:e.handleBlur,onChange:e.handleChange})))),r.a.createElement(Ye.a,{lg:2})),Gn=e=>r.a.createElement(pn,{id:"".concat("city","-").concat(e.index),name:"city",labelText:"City:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.city,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("city","-").concat(e.index)).length>0,invalid:xa(e.errors,"city",e.index)}),_n=e=>e.party.state.country===I[0]?r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),ke)},r.a.createElement(We.a.Control,{required:!0,as:"select",id:"".concat("state","-").concat(e.index),name:"state",value:e.party.state.state,onBlur:e.handleBlur,onChange:e.handleChange,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("state","-").concat(e.index)).length>0,invalid:xa(e.errors,"state",e.index)},r.a.createElement("option",{value:"",style:{display:"none"}}),S.map((e,a)=>r.a.createElement("option",{key:"".concat(e.name,"-").concat(a),value:e.abbrv},"".concat(e.abbrv," - ").concat(e.name))))):r.a.createElement(pn,{id:"".concat("state","-").concat(e.index),name:"state",labelText:ke,handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.state,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("state","-").concat(e.index)).length>0,invalid:xa(e.errors,"state",e.index)}),Wn=e=>r.a.createElement(pn,{id:"".concat("zip","-").concat(e.index),name:"zip",labelText:Se,handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.zip,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("zip","-").concat(e.index)).length>0,invalid:xa(e.errors,"zip",e.index)}),jn=e=>r.a.createElement(fn,{labelText:r.a.createElement("span",null,r.a.createElement(Nn,null),"Country:")},r.a.createElement(We.a.Control,{required:!0,as:"select",name:"country",id:"".concat("country","-").concat(e.index),value:e.party.state.country,onBlur:e.handleBlur,onChange:e.handleChange,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("country","-").concat(e.index)).length>0,invalid:xa(e.errors,"country",e.index)},r.a.createElement(cn,{options:I}))),Yn=e=>r.a.createElement(pn,{id:"".concat("phone","-").concat(e.index),name:"phone",labelText:"Phone Number:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.phone,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("phone","-").concat(e.index)).length>0,invalid:xa(e.errors,"phone",e.index)}),Qn=e=>r.a.createElement(pn,{optional:!0,id:"".concat("fax","-").concat(e.index),name:"fax",labelText:"Fax Number:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.fax,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("fax","-").concat(e.index)).length>0,invalid:xa(e.errors,"fax",e.index)}),Hn=e=>r.a.createElement(pn,{id:"".concat("email","-").concat(e.index),name:"email",labelText:"Email Address:",handleBlur:e.handleBlur,handleChange:e.handleChange,value:e.party.state.email,isInvalid:e.errors.filter(a=>a.fieldId==="".concat("email","-").concat(e.index)).length>0,invalid:xa(e.errors,"email",e.index)}),Un=e=>r.a.createElement(r.a.Fragment,null,r.a.createElement("br",null),r.a.createElement("div",{className:"center addtional-email-label"},"Additional email address(es) to be used for E-Service communication"),e.party.state.additionalEmails.length>0?r.a.createElement(r.a.Fragment,null,e.party.state.additionalEmails.map((a,t)=>{let n="".concat("additionalEmails","-").concat(e.index,"-").concat(t),l="".concat("Email Address"," ").concat(t+1,":");return r.a.createElement("div",{key:n},r.a.createElement(fn,{labelText:l},r.a.createElement("div",{className:"field-with-button"},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{className:"additional-email-field"},r.a.createElement(We.a.Control,{required:!0,id:n,type:"text",name:n,value:a,onBlur:e.handleBlur,onChange:e.handleChange,isInvalid:e.errors.filter(e=>e.fieldId===n).length>0}),r.a.createElement(We.a.Control.Feedback,{type:"invalid"},e.errors.filter(e=>e.fieldId===n&&e.errorMsg!==He).reduce((e,a)=>[...e,a.errorMsg+"\n"],[]))))),r.a.createElement(s.a,{className:"field-btn remove-email__btn",variant:"danger",onClick:()=>{e.removeEmail(e.index,t)}},r.a.createElement(_e,null))))})):r.a.createElement("div",null),r.a.createElement("div",{className:"center"},r.a.createElement("div",{key:"".concat("additionalEmails","-party").concat(e.index,"-add-email")},e.party.state.additionalEmails.length<10?r.a.createElement(s.a,{variant:"primary",onClick:()=>e.addEmail(e.index),className:"transparent-btn-primary"},r.a.createElement(Ge,null),r.a.createElement("strong",{className:"add-title"},"Add Email")):r.a.createElement(En,null,r.a.createElement("p",{className:"center"},"Maximum of 10 Additional Email Addresses Allowed per Party")))));var Kn=wn;class Jn extends n.Component{constructor(e){super(e),this.handleChange=e=>{this.setState({[e.target.name]:e.target.value})},this.state={attachmentId:"",file:null,isPublic:!0,url:"",errors:[],isPdf:!1},this.handleChange=this.handleChange.bind(this)}}var Zn=Jn;const Xn=e=>{let a={...e};return document.getElementsByName("dateOfAgreement")[0].value=null,a=Fa(e,"dateOfAgreement"),a},$n=e=>{let a={...e};return a.data.docketNumbers=[...e.data.docketNumbers,{docketPrefix:v[0],sequenceNumber:"",subSequenceNumber:"",docketSuffix:""}],a},er=(e,a)=>{var t={...e};let n=[...e.data.docketNumbers],r=n.slice(0,a),l=n.slice(a+1,n.length);return n=[...r,...l],t.data.docketNumbers=n,t.form.errors=Ga({docketNumbers:n,errors:e.form.errors},!1),t},ar=e=>{let a={...e};return e.data.parties.length<aa[e.form.type].max&&a.data.parties.push(new Kn),a},tr=(e,a)=>{let t={...e};return e.data.parties.length>aa[e.form.type].min&&(t.data.parties=t.data.parties.filter((e,t)=>t!==Number(a)),t.form.errors=Oa(t.form,t.data.parties,!1)),t},nr=(e,a)=>{let t={...e},n=[...t.data.parties],r=n[a],l=[...r.state.additionalEmails,""];return r.state.additionalEmails=l,n[a]=r,t.data.parties=n,t},rr=(e,a,t)=>{let n={...e},r=[...n.data.parties],l=r[a],i=l.state.additionalEmails.slice(0,t+1),s=l.state.additionalEmails.slice(t+1,l.state.additionalEmails.length);i.pop(),l.state.additionalEmails=[...i,...s],r[a]=l,n.data.parties=r;let o="".concat("additionalEmails","-").concat(a);for(var c in n.form.errors=n.form.errors.filter(e=>!e.fieldId.includes(o)),l.state.additionalEmails){let e=l.state.additionalEmails[c];ea(e)&&!1===Va(l.state.additionalEmails[c])&&n.form.errors.push({errorMsg:"Invalid email address",fieldId:"".concat("additionalEmails","-").concat(a,"-").concat(c)})}return n},lr=(e,a)=>{let t={...e};t.form.networkErrors=[];let n,r,l=a.target.id.split("-"),i=l[0];l.length>1&&(n=l[1],l.length>2&&(r=l[2]));let s=a.target.value;if(we.includes(i)){let e,a=t.data.parties&&ea(n);if(e=a?t.data.parties[n].state:t.data,"country"===i){let a=s===I[0],t=e.country===I[0];(a||t)&&(e.state="")}"partyType"===i&&(e.otherPartyType=""),"additionalEmails"===i&&ea(n)&&ea(r)?t.data.parties[n].state.additionalEmails[r]=s:e[i]=s,a?t.data.parties[n].state=e:t.data=e}else if(De.includes(i))t.data.docketNumbers[n][i]=s;else if("isPublic"===a.target.className){let e="true"===s;t.data.isPublic[n]=e}else if("attachment"===i){let e=a.target.files[0];t.data.attachments[n].state.file=e,t.form.type===be?t.form.errors=Pa(e,a.target.id,t.form.errors,t.data.attachments,!0):t.form.type===ye?t.form.errors=Pa(e,a.target.id,t.form.errors,t.data.attachments,null,ye):"formal"===t.form.type?t.form.errors=Pa(e,a.target.id,t.form.errors,t.data.attachments,null,"formal"):t.form.errors=Pa(e,a.target.id,t.form.errors,t.data.attachments)}else if("dateOfAgreement"===i)t.data[i]=s,t=Fa(t,"dateOfAgreement");else if("primaryRecordationNumber"===i)t.data[i]=s,t=((e,a)=>{let t={...e},n=document.getElementsByName(a)[0];return n&&(Da(e.data[a])?(n.classList.remove("date-invalid"),t=Ia(t,a)):(n.classList.add("date-invalid"),t=Ia(t,a),t.form.errors.push({errorMsg:"Please only enter the Primary Recordation # (e.g. W123 or 30124)",fieldId:a}))),t})(t,"primaryRecordationNumber");else if("recordationOption"===i){let e=Ie[0].value;t=Ia(t,"recordationOption"),s===e&&(t=Ia(t,"primaryRecordationNumber"),t.data.primaryRecordationNumber=""),t.data[i]=s}else if("feeOption"===i){s===x[2].value&&(t=Ia(t,"confirmationNumber"),t.data.confirmationNumber=""),t.data[i]=s}else"region"===i?(t=Ia(t,"region"),t.data[i]=s):"haveDocketNumbers"===i?(t=Ia(t,"haveDocketNumbers"),t.data[i]=s,"true"===s?t.data.docketNumbers&&0!==t.data.docketNumbers.length||$n(t):t.data.docketNumbers&&t.data.docketNumbers.length>0&&(t.data.docketNumbers=[],t.form.errors=Ga({docketNumbers:t.data.docketNumbers,errors:t.form.errors},!1))):"eFilingSubmitCheckbox"===i?(t=Ia(t,"eFilingSubmitCheckbox"),t.data[i]=a.target.checked):t.data[i]=s;return"region"===i&&(document.getElementById("region_hint").style.display="none"),t},ir=(e,a)=>{let t={...e},n=a.target.id,r=n.split("-")[0],l=a.target.value,i=ea(l),s="",o=t.form.errors;return o=o.filter(e=>e.fieldId!==n),i&&("phone"!==r||qa(l)?"primaryRecordationNumber"!==r||Da(l)?"fax"!==r||qa(l)?"email"===r&&!1===Va(l)?[be,ye].includes(e.form.type)?o.push({errorMsg:"Invalid email address",fieldId:n,targetValue:l}):o.push({errorMsg:"Invalid email entered for party",fieldId:n,targetValue:l}):"additionalEmails"===r&&!1===Va(l)?o.push({errorMsg:"Invalid email address",fieldId:n,targetValue:l}):De.includes(r)?o=Ga({docketNumbers:e.data.docketNumbers,errors:o},!1):"equipmentDescription"!==r||ja(l,25e3)||(s=Ue(25e3,String(l).length),o.push({errorMsg:s,fieldId:n})):o.push({errorMsg:"Please enter a valid fax number",fieldId:n,targetValue:l}):o.push({errorMsg:"Please only enter the Primary Recordation # (e.g. W123 or 30124)",fieldId:n,targetValue:l}):o.push({errorMsg:"Please enter a valid phone number",fieldId:n,targetValue:l}),ca[r]?ja(l,ca[r])||(s=Ue(ca[r],String(l).length),o.push({errorMsg:s,fieldId:n})):ma[r]&&(ja(l,ma[r])||(s=Ue(ma[r],String(l).length),o.push({errorMsg:s,fieldId:n})))),t.form.errors=o,t},sr=e=>{e.target.value=""},or=e=>{let a={...e};return a.data.attachments=[...a.data.attachments,new Zn],a.data.isPublic=[...a.data.isPublic,!0],a},cr=(e,a)=>{let t={...e},n=t.data.attachments.slice(0,a),r=t.data.attachments.slice(a+1,t.data.attachments.length);return n=[...n,...r],t.data.attachments=n,n=t.data.isPublic.slice(0,a),r=t.data.isPublic.slice(a+1,t.data.isPublic.length),n=[...n,...r],t.data.isPublic=n,t.form.errors=Ma(e.form.errors,e.data.attachments,e.form.type),t};var dr=(e,a)=>{switch(a.type){case"setState":return{...e,...a.newState};case"handleChange":return lr(e,a.event);case"handleBlur":return ir(e,a.event);case"clearDate":return Xn(e);case"addDocketNumber":return $n(e);case"removeDocketNumber":return er(e,a.index);case"addParty":return ar(e);case"removeParty":return tr(e,a.partyIndex);case"addEmail":return nr(e,a.partyIndex);case"removeEmail":return rr(e,a.partyIndex,a.emailIndex);case"clickAttachment":return sr(a.event),e;case"addAttachment":return or(e);case"removeAttachment":return cr(e,a.index);default:return e}},mr=t(34),hr=t.n(mr);const ur=async(e,a,t)=>{var n={...e};let r=[],l=!1;for(let i=0;i<e.data.attachments.length;i++)null!==e.data.attachments[i].state.file&&await pr(e.data.attachments[i].state.file,e=>{n.data.attachmentStrings.push(e)}).then(e=>{e||(r.push({errorMsg:"Error uploading attachment",fieldId:"".concat("uploadAttachmentError","-").concat(i)}),a({type:"setState",newState:{data:{...n.data,attachmentStrings:[]}}}))});return await async function(e,a){var t=!1;const n=new Date;var r={};switch(e){case"formal":case"other":r={filing:{isEFiling:!0,filingDt:"".concat(n.getMonth()+1,"/").concat(n.getDate(),"/").concat(n.getFullYear())},parties:a.parties.map(e=>({filedFor:e.state.filedFor,filedBy:e.state.filedBy,company:e.state.company,address1:e.state.address1,address2:e.state.address2,city:e.state.city,state:e.state.state,zip:e.state.zip,phone:fr(e.state.phone),fax:fr(e.state.fax),email:e.state.email,country:null===e.state.country||""===e.state.country?I[0]:e.state.country})),additionalPartyEmails:a.parties.map(e=>({email:[...e.state.additionalEmails]})),attachmentStrings:a.attachmentStrings.reduce((e,a)=>[...e,gr(a)],[]),isPublic:a.isPublic,docketNumbers:a.docketNumbers.map(e=>({docketPrefix:e.docketPrefix,railroadCode:"AB"===e.docketPrefix?e.sequenceNumber:null,seqNo:"AB"===e.docketPrefix?null:e.sequenceNumber,subSeqNo:e.subSequenceNumber,docketSuffix:e.docketSuffix})),confirmationNumber:a.confirmationNumber||null,isOtherFiling:a.isOtherFiling,generalFilingType:a.generalFilingType||null,feeStatus:a.feeOption||null};break;case be:r={attachmentStrings:a.attachmentStrings.reduce((e,a)=>[...e,gr(a)],[]),isPublic:a.isPublic,eRecordation:{waterOrRailRecordation:a.recordationWaterOrRail,primaryRecordation:a.primaryRecordationNumber||null,confirmationNumber:a.confirmationNumber,submitter:a.submitter,company:a.company,address1:a.address1,address2:a.address2,city:a.city,state:a.state,zip:a.zip,country:a.country,phone:fr(a.phone),email:a.email,dateOfAgreement:fa(a.dateOfAgreement),typeOfAgreement:a.typeOfAgreement,hasIdentifiedHac:a.hasHac,equipmentDescription:a.equipmentDescription},eRecordationParties:a.parties.map(e=>({partyType:e.state.partyType,otherPartyType:e.state.otherPartyType,company:e.state.company,address1:e.state.address1,address2:e.state.address2,city:e.state.city,state:e.state.state,zip:e.state.zip,country:null===e.state.country||""===e.state.country?I[0]:e.state.country}))};break;case ve:r={attachmentStrings:a.attachmentStrings.reduce((e,a)=>[...e,gr(a)],[]),eRcpaRequest:{submitter:a.submitter,company:a.company,jobTitle:a.jobTitle,address1:a.address1,address2:a.address2,city:a.city,state:a.state,zip:a.zip,country:a.country,email:a.email,phone:fr(a.phone),fax:fr(a.fax),issue:a.issue,commodityGroup:a.commodityGroup,region:a.region,railroadsInvolved:a.railroadsInvolved,problemLocation:a.problemLocation,industryLocation:a.industryLocation,problemDates:a.problemDates,issueSummary:a.issueSummary,canContact:a.contactPermission}};break;case ye:r={attachmentStrings:a.attachmentStrings.reduce((e,a)=>[...e,gr(a)],[]),dockets:a.docketNumbers.map(e=>({docketPrefix:e.docketPrefix,railroadCode:"AB"===e.docketPrefix?e.sequenceNumber:null,seqNo:"AB"===e.docketPrefix?null:e.sequenceNumber,subSeqNo:e.subSequenceNumber,docketSuffix:e.docketSuffix})),eEnviroComment:{projectName:a.project,attentionOf:a.attention,submitter:a.name,organization:a.organization,affiliation:a.affiliation,address1:a.address1,address2:a.address2,city:a.city,state:a.state,zip:a.zip,country:a.country,phone:a.phone,email:a.email,receivedDt:"".concat(n.getMonth()+1,"/").concat(n.getDate(),"/").concat(n.getFullYear()),comments:a.comments}};break;default:return console.log("Efiling error"),!1}return await hr.a.put(H,{type:e,data:r}).then(e=>{200===e.status&&console.log("Submission Successful!"),t=!0}).catch(e=>{console.log("Efiling error: "),console.log(e),t=!1}),console.log("Submission Successful!"),t}(n.form.type,n.data).then(e=>(e||(r.push({errorMsg:"Error uploading filing",fieldId:"uploadFilingError"}),l=!0),!0)),r.length&&a({type:"setState",newState:{form:{...n.form,networkErrors:r,loading:!1}}}),!l&&(t.preventDefault(),a({type:"setState",newState:{form:{...n.form,success:!0,loading:!1}}}),!0)};async function pr(e,a){if(null===e||void 0===e||""===e)return console.log("Tried to upload a NULL file!"),!1;const t="".concat(Date.now(),"/").concat(e.name);return await hr.a.get(Q,{params:{filename:t,filetype:e.type}}).then(async t=>{var n=t.data.signedUrl;const r={headers:{"Content-Type":e.type}};try{const t=await hr.a.put(n,e,r);return a(n),t}catch(l){return console.log(l),!1}}).catch(e=>(console.log(e),!1)),!0}function gr(e){if(e.includes("?")){let a=e.split("?").shift().split("/");if(a.length<2)return e;let t=a[a.length-2],n=a[a.length-1];return"".concat(t,"/").concat(n)}return e}const fr=e=>e.replace(/[^0-9]/g,"");t(222);class Er extends n.Component{constructor(e){super(e),this.state={filingType:e.filingType}}render(){return r.a.createElement(We.a,{noValidate:!0},r.a.createElement("div",null,r.a.createElement("center",null,r.a.createElement("h1",null,"Thank you for your submission")),r.a.createElement("br",null),r.a.createElement("hr",null),r.a.createElement("br",null),r.a.createElement("p",null,this.state.filingType&&this.state.filingType===ve?pe:this.state.filingType&&this.state.filingType===ye?"Your environmental comment has been submitted. For any issues regarding environmental comments, please call (202) 245-0301.":"Submissions that will appear on the Surface Transportation Board\u2019s website will be posted after they are processed during regular business hours. If you have any questions, please contact us at (202) 245-0350."),r.a.createElement("br",null)))}}var br=Er;t(223);function vr(e){let a=e.className?e.className:"";return r.a.createElement("div",{className:"loader ".concat(a)},r.a.createElement("div",null),r.a.createElement("div",null),r.a.createElement("div",null),r.a.createElement("div",null),r.a.createElement("div",null),r.a.createElement("div",null))}class yr extends n.Component{render(){return r.a.createElement("div",{className:"modal display-block"},r.a.createElement("div",{className:"modal-main center"},r.a.createElement("h2",null,"Upload in Progress"),r.a.createElement(vr,null),r.a.createElement("p",{class:"content"},"Please ",r.a.createElement("b",null,"do not")," close this window while the upload is in progress. Submissions with large attachments can take a significant amount of time to upload."),r.a.createElement("div",{className:"footer"})))}}const Cr=r.a.createContext(),Ar=({reducer:e,initialState:a,children:t})=>r.a.createElement(Cr.Provider,{value:Object(n.useReducer)(e,a)},t),Nr=()=>Object(n.useContext)(Cr),kr=async(e,a,t,n)=>{a({type:"setState",newState:{form:{...e.form,loading:!0,networkErrors:[],formSubmitted:!0}}});if(!1===t.currentTarget.checkValidity())a({type:"setState",newState:{form:{...e.form,loading:!1,networkErrors:[],formSubmitted:!0}}}),t.preventDefault(),t.stopPropagation(),window.scrollTo(0,0);else{let n=(e=>{let a=[];switch(e.form.type){case"formal":return a=[...la],e.data.feeOption===x[2].value&&(a=la.filter(e=>"confirmationNumber"!==e)),[...Ta(e,a),...Oa(e.form,e.data.parties,!0),...wa(e),...Ma(e.form.errors,e.data.attachments,"formal"),...Ka(e)];case"other":return[...Ta(e,ia),...Oa(e.form,e.data.parties,!0),...wa(e),...Ma(e.form.errors,e.data.attachments),...Ka(e)];case be:return a=[...sa],e.data.recordationOption===Ie[0].value&&(a=sa.filter(e=>"primaryRecordationNumber"!==e)),[...Ta(e,a),...Oa(e.form,e.data.parties,!0),...Ba(e),...Ma(e.form.errors,e.data.attachments),...Ka(e)];case ve:return[...Ta(e,oa),...Ma(e.form.errors,e.data.attachments)];case ye:return[...Ta(e,da),...Ma(e.form.errors,e.data.attachments,ye),...Ka(e)];default:return[]}})(e);n.length?(a({type:"setState",newState:{form:{...e.form,errors:n,loading:!1,networkErrors:[],formSubmitted:!0}}}),t.preventDefault(),t.stopPropagation(),window.scrollTo(0,0)):await ur(e,a,t)}},Sr=e=>{var[a,t]=Nr();return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{id:"Efiling",key:"Efiling"},r.a.createElement(We.a,{noValidate:!0,validated:a.form.validated,onSubmit:kr},a.form.errors.length>0&&a.form.formSubmitted?r.a.createElement("div",{className:"invalid-feedback invalid-feedback--large show "},r.a.createElement("span",{className:"error-title"},r.a.createElement("strong",null,"Please correct the following error(s): "),Sa(a.form))):"",In(a,t),r.a.createElement("br",null),((e,a)=>{switch(e.form.type){case ve:return r.a.createElement(r.a.Fragment,null);default:return r.a.createElement("div",{className:"center efiling-checkbox"},r.a.createElement("label",null,r.a.createElement("input",{type:"checkbox",id:"eFilingSubmitCheckbox",name:"eFilingSubmitCheckbox",checked:e.data.eFilingSubmitCheckbox,onChange:e=>{e.persist(),a({type:"handleChange",event:e})}}),r.a.createElement(Ut,{text:Fn(e)})))}})(a,t),r.a.createElement("br",null),r.a.createElement("div",null,r.a.createElement(s.a,{className:"stb-button-submit auto-margin",onClick:n=>{n.persist(),kr(a,t,n,e.parentHistory)},disabled:a.form.errors.length>0||a.form.loading},(e=>{switch(e.form.type){case"formal":return"Submit Formal Filing";case"other":default:return"Submit"}})(a)),a.form.networkErrors.length>0?r.a.createElement("div",{className:"center invalid-feedback show"},a.form.networkErrors?Sa(a.form):null):""),r.a.createElement("br",null),a.form.loading?r.a.createElement(yr,null):"")))},xr=e=>{var[a,t]=Nr();return Object(n.useEffect)(()=>(Ir(a,t),Fr(a,t),()=>{})),a.form.success?r.a.createElement(br,{filingType:a.form.type}):r.a.createElement(Sr,{parentHistory:e.parentHistory})},Ir=(e,a)=>{let t=document.getElementById("partydiv");e&&e.data.parties&&t&&i.a.render(e.data.parties.map((t,n)=>r.a.createElement(Kn,{index:n,key:"".concat("Party","-").concat(n),total:e.data.parties.length,remove:e=>{a({type:"removeParty",partyIndex:e})},addEmail:e=>{a({type:"addEmail",partyIndex:e})},removeEmail:(e,t)=>{a({type:"removeEmail",partyIndex:e,emailIndex:t})},party:{state:t.state},type:e.form.type,handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},handleBlur:e=>{e.persist(),a({type:"handleBlur",event:e})},errors:e.form.errors})),t)},Fr=(e,a)=>{let t=document.getElementById("attachments-root");e&&e.data.attachments&&t&&i.a.render(r.a.createElement(on,Object.assign({attachments:e.data.attachments,total:e.data.attachments.length,handleChange:e=>{e.persist(),a({type:"handleChange",event:e})},onClick:e=>{e.persist(),a({type:"clickAttachment",event:e})},public:e.data.isPublic,remove:e=>{a({type:"removeAttachment",index:e})},errors:e.form.errors,valid:!e.form.validated,formType:e.form.type},e.form.attachmentProps)),t)};var Dr=e=>{var a={form:{type:e.filingType,validated:!1,formSubmitted:!1,errors:[],networkErrors:[],uniqueErrors:[],loading:!1,success:!1}};return"other"===e.filingType?(a.data={docketNumbers:[{docketPrefix:v[0],sequenceNumber:"",subSequenceNumber:"",docketSuffix:""}],isOtherFiling:!0,parties:[new Kn],attachments:[new Zn],isPublic:[!0],attachmentStrings:[],eFilingSubmitCheckbox:!1},a.form.maxAttachments=10,a.form.attachmentProps={inline:!1,withPublic:!0}):"formal"===e.filingType?(a.data={docketNumbers:[{docketPrefix:v[0],sequenceNumber:"",subSequenceNumber:"",docketSuffix:""}],feeOption:x[0].value,confirmationNumber:"",isOtherFiling:!1,parties:[new Kn],attachments:[new Zn],isPublic:[!0],attachmentStrings:[],eFilingSubmitCheckbox:!1},a.form.maxAttachments=10,a.form.attachmentProps={inline:!1,withPublic:!0}):e.filingType===be?(a.data={recordationOption:null,primaryRecordationNumber:"",confirmationNumber:"",submitter:"",company:"",address1:"",address2:"",city:"",state:"",zip:"",country:I[0],phone:"",email:"",dateOfAgreement:"",typeOfAgreement:"",hasHac:"false",equipmentDescription:"",file:"",parties:[new Kn],isPublic:[!0],attachmentStrings:[],attachments:[new Zn],eFilingSubmitCheckbox:!1},a.form.maxAttachments=1,a.form.attachmentProps={inline:!0,withPublic:!1}):e.filingType===ve?(a.data={submitter:"",company:"",jobTitle:"",address1:"",address2:"",city:"",state:"",zip:"",country:I[0],email:"",phone:"",fax:"",issue:"",commodityGroup:"",region:"",railroadsInvolved:"",problemLocation:"",industryLocation:"",problemDates:"",issueSummary:"",contactPermission:"",file:"",parties:[new Kn],isPublic:[!0],attachmentStrings:[],attachments:[new Zn]},a.form.maxAttachments=5,a.form.attachmentProps={inline:!0,withPublic:!1}):e.filingType===ye&&(a.data={haveDocketNumbers:null,docketNumbers:[],project:"",attention:P[0],name:"",organization:"",affiliation:O[0],address1:"",address2:"",city:"",state:"",zip:"",country:I[0],phone:"",email:"",comments:"",file:"",parties:[new Kn],isPublic:[!0],attachmentStrings:[],attachments:[new Zn],eFilingSubmitCheckbox:!1},a.form.maxAttachments=4,a.form.attachmentProps={inline:!0,withPublic:!1}),r.a.createElement(Ar,{initialState:a,reducer:dr},r.a.createElement(xr,{parentHistory:e.history}))};class Tr extends r.a.Component{getCentered(){return this.props.centered?"vertical-center-flex":"top-center-flex"}render(){return r.a.createElement("div",{className:"full-screen"},r.a.createElement("div",{className:"full-screen__container ".concat(this.getCentered())},this.props.children))}}class wr extends n.Component{render(){return r.a.createElement(Tr,{centered:!0},r.a.createElement("h1",{className:"loading-title"},"Loading"),r.a.createElement(vr,{className:"loading__loader"}))}}var Br=t(120),Rr=t.n(Br);function Pr(e){var a=null;return e&&function(e){var a=!1;return e&&"status"in e&&e.status>=200&&e.status<300&&(a=!0),a}(e.response)&&function(e){var a=!1;return"data"in e&&"object"===typeof e.data&&"dataSubset"in e.data&&(a=!0),a}(e.response)&&function(e){return!(!("searchFor"in e)||!e.searchFor)}(e)&&(a={searchFor:e.searchFor,data:e.response.data}),a}const Or=async({searchFor:e,fields:a,batchSize:t,startIndex:n},r)=>{const l=(e=>{let a;switch(e){case"Decisions":a=K;break;case"Filings":a=J;break;case M:a=Z;break;case"Recordations":a=X;break;case"Recordation Parties":a=$;break;case"By Date":a=ee;break;case"Service List":a=ae;break;case"Environmental Comments":a=te;break;case"Combined Filings/Decisions":a=ne;break;default:a=null}return a})(e),i=(e=>{var a={};for(var t in e)if(e[t])if(Te.includes(t)){let n=ga(e[t]),r=new Date(n||e[t]);isNaN(r)||(a[t]=r)}else a[t]=e[t];return JSON.stringify(a)})(a),s={};var o;return 0!==t&&(s.limit=t),n&&(s.startIndex=n),i.length&&(s.searchCriteria=i),o=await Object(mr.get)(l,{params:s}).then(e=>{if(e.data&&e.data.dataSubset){let a=e.data.dataSubset;a.forEach((e,t)=>{Object.entries(e).forEach(([a,t])=>{null!==t&&void 0!==t&&Fe.includes(a)&&(e[a]=Rr.a.decode(t))}),a[t]=e}),e.data.dataSubset=a}return e}).catch(e=>(console.log("Error getting search results:"),console.log(e),e)),r&&r(o),o},Mr=async({searchFor:e,fields:a,batchSize:t,startIndex:n},r)=>{let l=[],i=await Or({searchFor:e,fields:a,batchSize:t,startIndex:n},r);return l.push({searchFor:e,response:i}),l},Lr=(e,a)=>{var t=zr(),n="Decisions";if(e)n=e;else{var r=t.get("searchFor");r in W&&(n=W[r])}var l={...a},i=(e=>{var a=[];switch(e){case"Recordations":a.push(Ce)}return a})(n);for(let s in i){let e=i[s],a=t.get(e);a&&!l[e]&&j(e,a)&&(l[e]=a)}return[n,l]},zr=()=>new URLSearchParams(window.location.href.substring(window.location.href.lastIndexOf("?")+1,window.location.href.length));class qr extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(Wt,null,r.a.createElement(yt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Ct,{fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(Nt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}),r.a.createElement(Wt,null,r.a.createElement(St,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(xt,{fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(Wt,null,r.a.createElement(It,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Ft,{fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(gt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}))}}class Vr extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(Wt,null,r.a.createElement(yt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Ct,{fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(Dt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}),r.a.createElement(Tt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Wt,null,r.a.createElement(wt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Bt,{fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(gt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}))}}class Gr extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(Wt,null,r.a.createElement(yt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Ct,{fields:this.props.fields,handleChange:this.props.handleChange})))}}class _r extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(jt,null,r.a.createElement(tn,{size:6,inline:!0,fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Rt,{size:4,labelSize:6,fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Pt,{size:2,fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(kt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}),r.a.createElement(Ot,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Mt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Lt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(gt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}))}}class Wr extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(jt,null,r.a.createElement(nn,{size:6,inline:!0,fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(zt,{fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(Wt,null,r.a.createElement(yt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Ct,{fields:this.props.fields,handleChange:this.props.handleChange})),r.a.createElement(qt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}),r.a.createElement(Vt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(Gt,{fields:this.props.fields,handleChange:this.props.handleChange}),r.a.createElement(gt,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}))}}class jr extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(_t,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName}))}}class Yr extends r.a.Component{render(){return(()=>{switch(this.props.searchFor){case"Decisions":return r.a.createElement(qr,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName});case"Filings":return r.a.createElement(Vr,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName});case M:return r.a.createElement(Gr,{fields:this.props.fields,handleChange:this.props.handleChange});case"Recordations":return r.a.createElement(_r,{fields:this.props.fields,handleChange:this.props.handleChange,lockedTo:this.props.lockedTo,clearFieldsByName:this.props.clearFieldsByName});case"Environmental Comments":return r.a.createElement(Wr,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName});case"By Date":return r.a.createElement(jr,{fields:this.props.fields,handleChange:this.props.handleChange,clearFieldsByName:this.props.clearFieldsByName});default:return null}})()}}var Qr=t(232),Hr=t(121),Ur=t.n(Hr),Kr=t(233);class Jr extends r.a.Component{constructor(e){super(e),this.state={showSpinner:!1},this.changePageSize=this.changePageSize.bind(this),this.getPageItems=this.getPageItems.bind(this),this.loadPage=this.loadPage.bind(this)}async changePageSize(e){this.state.showSpinner||(this.setState({showSpinner:!0,batchSize:e}),await this.props.setBatchSize(e),this.setState({showSpinner:!1},()=>this.loadPage(1)))}async loadPage(e){this.state.showSpinner||(this.setState({showSpinner:!0}),await this.props.getDataForPage(e),this.setState({showSpinner:!1}))}getPageItems({startIndex:e,totalCount:a,batchSize:t,keyVal:n}){const l=[],i=Math.trunc(e/t)+1,s=Math.min(a,1e4),o=a>=1e4?"".concat(1e4.toLocaleString(),"+"):a.toLocaleString(),c=Math.min(a,e+t-1),d=e===c?r.a.createElement("span",null,r.a.createElement("strong",null,e.toLocaleString())," of ".concat(o)):r.a.createElement("span",null,r.a.createElement("strong",null,"".concat(e.toLocaleString(),"-").concat(c.toLocaleString()))," of ".concat(o));var m=Math.trunc(s%t>0?s/t+1:s/t),h=1e4/t;m>h&&(m=Math.trunc(1e4%t)>0?h+1:h);const u=1===e,p=i===m;return l.push(r.a.createElement("li",{className:u?"page-item disabled":"page-item",title:"First Page",key:"".concat(n,"-first")},u?r.a.createElement("span",{className:"page-link navigation-item",disabled:!0},r.a.createElement("span",{"aria-hidden":"true"},"\xab"),r.a.createElement("span",{className:"sr-only"},"First")):r.a.createElement("button",{className:"page-link navigation-item",onClick:()=>this.loadPage(1),type:"button"},r.a.createElement("span",{"aria-hidden":"true"},"\xab"),r.a.createElement("span",{className:"sr-only"},"Next")))),l.push(r.a.createElement("li",{className:u?"page-item disabled":"page-item",title:"Previous Page",key:"".concat(n,"-prev")},u?r.a.createElement("span",{className:"page-link navigation-item",disabled:!0},r.a.createElement("span",{"aria-hidden":"true"},"\u2039"),r.a.createElement("span",{className:"sr-only"},"Previous")):r.a.createElement("button",{className:"page-link navigation-item",onClick:()=>this.loadPage(i-1),type:"button"},r.a.createElement("span",{"aria-hidden":"true"},"\u2039"),r.a.createElement("span",{className:"sr-only"},"Previous")))),l.push(r.a.createElement("div",{className:"current-page-box vertical-center-flex",key:"".concat(n,"-currentpage"),id:"current_page_item"},d)),l.push(r.a.createElement("li",{className:p?"page-item disabled":"page-item",title:"Next Page",key:"".concat(n,"-next")},p?r.a.createElement("span",{className:"page-link navigation-item",disabled:!0},r.a.createElement("span",{"aria-hidden":"true"},"\u203a"),r.a.createElement("span",{className:"sr-only"},"Next")):r.a.createElement("button",{className:"page-link navigation-item",onClick:()=>this.loadPage(i+1),type:"button"},r.a.createElement("span",{"aria-hidden":"true"},"\u203a"),r.a.createElement("span",{className:"sr-only"},"Next")))),l.push(r.a.createElement("li",{className:p?"page-item disabled":"page-item",title:"Last Page",key:"".concat(n,"-last")},p?r.a.createElement("span",{className:"page-link navigation-item",disabled:!0},r.a.createElement("span",{"aria-hidden":"true"},"\xbb"),r.a.createElement("span",{className:"sr-only"},"Last")):r.a.createElement("button",{className:"page-link navigation-item",onClick:()=>this.loadPage(m),type:"button"},r.a.createElement("span",{"aria-hidden":"true"},"\xbb"),r.a.createElement("span",{className:"sr-only"},"Last")))),l}render(){return this.props.totalCount>0?r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"relative-box"},r.a.createElement("div",{className:""},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{sm:3},r.a.createElement("div",{className:"pager-loader"},this.state.showSpinner?r.a.createElement(vr,null):null)),r.a.createElement(Ye.a,{sm:6},r.a.createElement("div",{className:"auto-margin"},r.a.createElement(Kr.a,{className:"stb-pager",key:this.props.keyVal||"pager"},this.getPageItems(this.props)))),r.a.createElement(Ye.a,{sm:3},this.props.showPageSize?r.a.createElement(je.a,{className:"vert-center"},r.a.createElement(Ye.a,{sm:8},r.a.createElement(We.a.Label,{size:1,className:"pad-left",for:"batchSize"},r.a.createElement("strong",null,"Records per page"))),r.a.createElement(Ye.a,{className:"pad-right-10",sm:4},r.a.createElement(We.a.Control,{as:"select",id:"batchSize",name:"batchSize",className:"right-corners--sharp",value:this.props.batchSize||50,onChange:e=>this.changePageSize(e.target.value)},L.map((e,a)=>r.a.createElement("option",{key:"".concat(a,"-").concat(e),selected:this.props.batchSize===e},e))))):r.a.createElement(r.a.Fragment,null)))))):null}}class Zr extends r.a.Component{render(){const e=((e,a)=>a?Pe[e]:Re[e])(_[this.props.searchFor],this.props.isByDateSearch);return r.a.createElement("thead",null,r.a.createElement("tr",null,e.map((e,a)=>{var t="";return Le.includes(e)&&(t="centered"),r.a.createElement("th",{className:t,key:"".concat(a,"-").concat(e)},e)})))}}const Xr=e=>(e=>{var a=[];return e.docketNum_one&&a.push(e.docketNum_one),parseInt(e.docketNum_two)>-1&&a.push(parseInt(e.docketNum_two)),parseInt(e.docketNum_three)>-1&&a.push(parseInt(e.docketNum_three)),e.docketNum_four&&a.push(e.docketNum_four),a})(e).join("_"),$r=e=>(e=>e.includes("/"))(e)?decodeURIComponent(e.split("/").pop()):"Attachment",el=(e,a)=>{var t=[];e.filedBy&&!a&&t.push(e.filedBy),e.addressLineOne&&t.push(e.addressLineOne),e.addressLineTwo&&t.push(e.addressLineTwo);var n=[];return e.addressCity&&n.push("".concat(e.addressCity,",")),e.addressState&&n.push(e.addressState),e.addressZip&&n.push(e.addressZip),t.push(n.join(" ")),e.addressCountry&&t.push(e.addressCountry),e.addressTel&&a&&t.push("Tel: ".concat(e.addressTel)),e.addressFax&&a&&t.push("Fax: ".concat(e.addressFax)),t.map((e,a)=>r.a.createElement(r.a.Fragment,{key:"address-line-".concat(a)},e,r.a.createElement("br",null)))};class al extends r.a.Component{render(){var e,a="";Le.includes(this.props.field)&&(a="centered");let t="document"===this.props.dataEntry.dataType&&"Decision"===this.props.dataEntry.documentType&&Ve.includes(this.props.field);t&&(a+=Ht(t));const n=(()=>{switch(this.props.field){case"docketNum":a=" centered",t&&(a+=Ht(t));var n=Xr(this.props.dataEntry);return"docket"===this.props.dataEntry.dataType?r.a.createElement(s.a,{variant:"link",value:JSON.stringify(this.props.dataEntry),onClick:this.props.handleDocketNumClickin,key:"docket-row-".concat(this.props.row,"-column-").concat(this.props.column)},n):n;case"serviceList":return a="centered",r.a.createElement(s.a,{variant:"link",value:JSON.stringify(this.props.dataEntry),onClick:this.props.handleGenerateServiceListClickIn,key:"service-list-row-".concat(this.props.row,"-column-").concat(this.props.column),className:"service-list-btn"},"Generate Service List");case"recordationNumber":return a="centered",r.a.createElement(s.a,{variant:"link",title:"Open Recordation",value:JSON.stringify(this.props.dataEntry),onClick:this.props.handleGenerateRecordationClickIn,key:"service-list-row-".concat(this.props.row,"-column-").concat(this.props.column),className:"service-list-btn"},this.props.dataEntry.recordationSuffix?"".concat(this.props.dataEntry[this.props.field],"-").concat(this.props.dataEntry.recordationSuffix):this.props.dataEntry[this.props.field]);case"equipmentDescription":return a+=" equipment-desc-col",r.a.createElement("div",{className:"expandable-col"},this.props.dataEntry[this.props.field]);case"party":return a+=" party-col",r.a.createElement("div",{className:" expandable-col"},this.props.dataEntry[this.props.field]);case"hac":return a+=" centered",["YES","TRUE"].includes((""+this.props.dataEntry[this.props.field]).toUpperCase())?"Yes":"";case"submitterRecipient":return this.props.dataEntry.submitter||this.props.dataEntry.letterRecipient||"";case"comments":let c=this.props.dataEntry[this.props.field],d="".concat(this.props.row,"-").concat(this.props.column),m=null;return c&&c.length>=100&&(this.props.expanded.includes(d)?m=r.a.createElement(s.a,{variant:"link",name:"less",value:"".concat(this.props.row,"-").concat(this.props.column),className:"column-more-btn",onClick:this.props.expandColumn},"Show Less"):(m=r.a.createElement(s.a,{variant:"link",name:"more",value:"".concat(this.props.row,"-").concat(this.props.column),className:"column-more-btn",onClick:this.props.expandColumn},"Show More"),c=c.substring(0,100).trim()+"..."),c=r.a.createElement(r.a.Fragment,null,c,m)),a+=" env-comment-col",r.a.createElement("div",{className:"expandable-col"},c);case"address":return el(this.props.dataEntry,!0);case"location":var l=this.props.dataEntry.addressCity,i=this.props.dataEntry.addressState;return l?i?"".concat(l,", ").concat(i):l:i||"";case"organization":return a+=" organization-col",this.props.dataEntry.organization;case"decisionAttachment":return(e=this.props.dataEntry.decisionAttachment)?r.a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},$r(e)):"";case"filingAttachment":return(e=this.props.dataEntry.filingAttachment)?r.a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},$r(e)):"";case"recordationAttachment":return(e=this.props.dataEntry.recordationAttachment)?r.a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},$r(e)):"";case"enviroCommentAttachment":return(e=this.props.dataEntry.enviroCommentAttachment)?r.a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},$r(e)):"";case"attachment":return(e=this.props.dataEntry.attachment)?r.a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},$r(e)):"";case"documentName":a+=" word-break",e=this.props.dataEntry.recordationAttachment;let h=this.props.dataEntry[this.props.field]||$r(e);return e?r.a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},h):"";case"crossReferenceIds":return this.props.dataEntry.crossReferenceNumbers.split(",").join(", ");case"serviceDate":return va(this.props.dataEntry.serviceDate,!0);case"filingDate":return va(this.props.dataEntry.filingDate,!0);case"officialFilingDate":return a+=" nowrap","recordation"===this.props.dataEntry.dataType?ka(this.props.dataEntry.officialFilingDate):va(this.props.dataEntry.officialFilingDate,!0);case"date":case"eiDateReceived":case"eoDateOfLetter":var o=this.props.dataEntry.eiDateReceived||this.props.dataEntry.eoDateOfLetter||"";return va(o,!0);case"sortDate":return va(this.props.dataEntry.sortDate,!0);default:if("object"!=typeof this.props.dataEntry[this.props.field])return this.props.dataEntry[this.props.field]||""}})();return n?r.a.createElement("td",{className:a,key:"row-".concat(this.props.row,"-column-").concat(this.props.column)},n):r.a.createElement("td",{key:"row-".concat(this.props.row,"-column-").concat(this.props.column)})}}class tl extends r.a.Component{render(){return(this.props.isByDateSearch?Me[this.props.dataEntry.dataType]:Oe[this.props.dataEntry.dataType]).map((e,a)=>r.a.createElement(r.a.Fragment,{key:"row-data-row-".concat(this.props.row,"-column-").concat(a)},r.a.createElement(al,{dataEntry:this.props.dataEntry,field:e,row:this.props.row,column:a,handleDocketNumClickin:this.props.handleDocketNumClickin,handleGenerateServiceListClickIn:this.props.handleGenerateServiceListClickIn,handleGenerateRecordationClickIn:this.props.handleGenerateRecordationClickIn,expandColumn:this.props.expandColumn,expanded:this.props.expanded})))}}class nl extends r.a.Component{render(){return r.a.createElement("tr",{key:"row-tr-".concat(this.props.row)},r.a.createElement(tl,{dataEntry:this.props.dataEntry,isByDateSearch:this.props.isByDateSearch,row:this.props.row,handleDocketNumClickin:this.props.handleDocketNumClickin,handleGenerateServiceListClickIn:this.props.handleGenerateServiceListClickIn,handleGenerateRecordationClickIn:this.props.handleGenerateRecordationClickIn,expandColumn:this.props.expandColumn,expanded:this.props.expanded}))}}class rl extends r.a.Component{render(){return r.a.createElement("tbody",null,((e,a,t,n,l,i,s)=>{if(e)return e.map((e,o)=>r.a.createElement(nl,{key:"row-".concat(o),row:o,dataEntry:e,isByDateSearch:a,handleDocketNumClickin:t,handleGenerateServiceListClickIn:n,handleGenerateRecordationClickIn:l,expandColumn:i,expanded:s}))})(this.props.data.dataSubset,this.props.isByDateSearch,this.props.handleDocketNumClickin,this.props.handleGenerateServiceListClickIn,this.props.handleGenerateRecordationClickIn,this.props.expandColumn,this.props.expanded))}}const ll=(e,a)=>{var t=e,n="";return t===M&&(t="Dockets"),a&&a.totalCount?(n=a.totalCount>=1e4?"".concat(1e4.toLocaleString(),"+"):a.totalCount.toLocaleString(),"".concat(n," ").concat(t)):"0 ".concat(t)},il=e=>e.length?e.length>1?"".concat(e.join(", ")):"".concat(e[0]):"";class sl extends r.a.Component{render(){return(({dataType:e,isDocketAssociatedSearch:a})=>"Service List"!==e&&!a)(this.props)?r.a.createElement(r.a.Fragment,null,r.a.createElement("div",null,this.props.hideReturnBtn?null:r.a.createElement(s.a,{variant:"primary",onClick:()=>this.props.handleReturnToSearch(M),className:"return-btn return-btn--top"},"Return to Search")),r.a.createElement("div",{id:"grid_title",className:"d-flex justify-content-between grid-title"},r.a.createElement("span",null,r.a.createElement("h4",{className:"inline-block"},(({dataType:e,date:a,fields:t})=>a?"Results For ".concat(ba(a),":"):"Recordations"===e?"".concat(t[Ce]," ").concat(e," ").concat("Results:"):"".concat(e," ").concat("Results:"))(this.props)),r.a.createElement("h5",{className:"gray-text indent inline-block"},this.props.dataCounts)),this.props.hideReturnBtn?null:r.a.createElement(s.a,{variant:"primary",onClick:()=>this.props.handleReturnToSearch(M),className:"return-btn return-btn--bottom"},"Return to Search"))):null}}class ol extends r.a.Component{constructor(e){super(e),this.scrollToResults=()=>{window.scrollTo(0,0)},this.isPagingInfoInData=({data:e})=>"startIndex"in e&&"batchSize"in e&&"totalCount"in e,this.getCurrentPage=({data:e})=>Math.trunc((e.startIndex+e.batchSize)/e.batchSize),this.getNextStartIndex=({data:e},a,t)=>e.startIndex+e.batchSize*(a-t),this.isLastPage=({data:e},a)=>a>e.totalCount,this.setBatchSize=async e=>(e&&Number(e)>0&&this.setState({batchSize:e}),!0),this.getDataForPage=async e=>{if(this.isPagingInfoInData(this.state)){let a=this.getCurrentPage(this.state),t=this.getNextStartIndex(this.state,e,a),n={};this.isLastPage(this.state,t)||(this.setState({startIndex:t}),n={searchFor:this.props.dataType,fields:this.props.fields,startIndex:t,batchSize:this.state.batchSize},await Mr(n,this.handleResponseData),this.scrollToResults())}return!0},this.isValidResponse=e=>200===e.status&&"data"in e,this.handleResponseData=e=>{this.isValidResponse(e)&&this.setState({data:e.data})},this.expandColumn=e=>{if("more"===e.target.name)this.setState({expanded:[...this.state.expanded,e.target.value]});else if("less"===e.target.name){let a=this.state.expanded.filter(a=>a!==e.target.value);this.setState({expanded:a})}},this.state={id:"dataTypeResults-".concat(e.dataType),index:e.index||1,startIndex:1,batchSize:50,data:e.data,expanded:[]},this.scrollToResults=this.scrollToResults.bind(this),this.handleResponseData=this.handleResponseData.bind(this),this.setBatchSize=this.setBatchSize.bind(this),this.getDataForPage=this.getDataForPage.bind(this),this.isPagingInfoInData=this.isPagingInfoInData.bind(this),this.getCurrentPage=this.getCurrentPage.bind(this),this.getNextStartIndex=this.getNextStartIndex.bind(this),this.isLastPage=this.isLastPage.bind(this),this.isValidResponse=this.isValidResponse.bind(this),this.expandColumn=this.expandColumn.bind(this)}render(){const e=r.a.createElement("div",{key:"".concat(this.state.id,"-").concat(this.state.index)},r.a.createElement(Qr.a,{variant:"dark"},"No results found")),a=r.a.createElement("div",{key:"".concat(this.state.id,"-").concat(this.state.index)},r.a.createElement(Qr.a,{variant:"danger"},"Error: Cannot display results"));return this.props.data&&this.props.data.dataSubset&&this.props.data.dataSubset.length?r.a.createElement("div",{id:this.state.id,key:"".concat(this.state.id,"-").concat(this.state.index)},r.a.createElement("div",{className:"table-container"},r.a.createElement(Jr,{keyVal:"pager-top",current:1,showPageSize:this.state.id.endsWith("Recordations"),setBatchSize:this.setBatchSize,getDataForPage:this.getDataForPage,totalCount:this.state.data.totalCount,startIndex:this.state.data.startIndex,batchSize:this.state.data.batchSize}),r.a.createElement(o.a,{striped:!0,hover:!0},r.a.createElement(Zr,{data:this.state.data,searchFor:this.props.dataType,isByDateSearch:this.props.isByDateSearch}),r.a.createElement(rl,{data:this.state.data,searchFor:this.props.dataType,isByDateSearch:this.props.isByDateSearch,handleDocketNumClickin:this.props.handleDocketNumClickin,handleGenerateServiceListClickIn:this.props.handleGenerateServiceListClickIn,handleGenerateRecordationClickIn:this.props.handleGenerateRecordationClickIn,expandColumn:this.expandColumn,expanded:this.state.expanded})),r.a.createElement(Jr,{keyVal:"pager-bottom",current:1,showPageSize:this.state.id.endsWith("Recordations"),setBatchSize:this.setBatchSize,getDataForPage:this.getDataForPage,totalCount:this.state.data.totalCount,startIndex:this.state.data.startIndex,batchSize:this.state.data.batchSize}))):this.props.data?e:a}}class cl extends r.a.Component{constructor(e){super(e),this.state={showSearch:this.props.showSearch||!1}}render(){var e=[],a=[],t=[];if(this.state.showSearch&&this.props.data)for(let n in this.props.data){let l="";l="By Date"===this.props.searchFor?ze[n]:this.props.data[n].searchFor,t.push(this.props.isDocketAssociatedSearch?qe[n]:l);let i="data"in this.props.data[n]?this.props.data[n].data:null;a.push(ll(l,i)),e.push(r.a.createElement(r.a.Fragment,{key:"data-grid-".concat(n)},r.a.createElement(ol,{data:i,dataType:this.props.data[n].searchFor,isByDateSearch:this.props.isByDateSearch,fields:this.props.fields,index:n,searchFor:this.props.searchFor,handleDocketNumClickin:this.props.handleDocketNumClickin,handleGenerateServiceListClickIn:this.props.handleGenerateServiceListClickIn,handleGenerateRecordationClickIn:this.props.handleGenerateRecordationClickIn,handleReturnToSearch:this.props.handleReturnToSearch,handleMailingLabelsClick:this.props.handleMailingLabelsClick,isDocketAssociatedSearch:this.props.isDocketAssociatedSearch})))}return e.length>1?r.a.createElement(r.a.Fragment,null,this.props.isDocketAssociatedSearch?null:r.a.createElement(sl,{dataType:this.props.searchFor,lockedTo:this.props.lockedTo,fields:this.props.fields,dataCounts:il(a),hideReturnBtn:this.props.hideReturnBtn,isByDateSearch:this.props.isByDateSearch,date:this.props.fields.dateToView?this.props.fields.dateToView:null,isDocketAssociatedSearch:this.props.isDocketAssociatedSearch,handleReturnToSearch:this.props.handleReturnToSearch,index:0}),r.a.createElement(ul,{labels:t},e)):r.a.createElement(r.a.Fragment,null,r.a.createElement(sl,{dataType:this.props.searchFor,lockedTo:this.props.lockedTo,fields:this.props.fields,dataCounts:il(a),hideReturnBtn:this.props.hideReturnBtn,isByDateSearch:this.props.isByDateSearch,date:this.props.fields.dateToView?this.props.fields.dateToView:null,isDocketAssociatedSearch:this.props.isDocketAssociatedSearch,handleReturnToSearch:this.props.handleReturnToSearch,index:0}),e)}}class dl extends r.a.Component{render(){const e=JSON.parse(this.props.docketClickIn).docketTitle;return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",null,r.a.createElement(s.a,{variant:"primary",onClick:()=>this.props.handleReturnToSearch(M),className:"return-btn return-btn--top"},"Return to Search")),r.a.createElement("div",{id:"grid_title",className:"d-flex justify-content-between grid-title"},r.a.createElement("h3",null,"".concat("Docket Actions of"," ").concat(this.props.docketNum)),r.a.createElement(s.a,{variant:"primary",onClick:()=>this.props.handleReturnToSearch(M),className:"return-btn return-btn--bottom"},"Return to Search")),r.a.createElement("h4",{className:"indent italic"},"".concat(e)),r.a.createElement("h5",{className:"gray-text indent"},this.props.dataCounts))}}class ml extends r.a.Component{constructor(e){super(e),this.handleSaveAssociatedData=e=>{var a=[],t=[];for(var n in e){var r=Pr(e[n]);r?(a.push(r),t.push(ll(r.searchFor,r.data))):a.push({searchFor:e[n].searchFor,error:Qe})}this.setState({dataCounts:t,data:a,networkError:!1})},this.componentDidMount=async()=>{const e={searchFor:"Decisions",fields:this.docketNumFields},a={searchFor:"Filings",fields:this.docketNumFields},t={searchFor:"Environmental Comments",fields:this.docketNumFields},n={searchFor:"Combined Filings/Decisions",fields:this.docketNumFields};var r=await Mr(e),l=await Mr(a),i=await Mr(t),s=await Mr(n);this.handleSaveAssociatedData([...s,...r,...l,...i])},this.docketNum=Xr(JSON.parse(this.props.docketClickIn)),this.docketNumFields=(e=>{var a={};return e.docketId&&(a.docketId=e.docketId),a})(JSON.parse(this.props.docketClickIn)),this.state={associatedDecisionsData:null,decisionsCount:null,associatedFilingsData:null,filingsCount:null,dataCounts:null,data:null,networkError:!1},this.handleSaveAssociatedData=this.handleSaveAssociatedData.bind(this)}render(){return this.state.data?r.a.createElement(r.a.Fragment,null,r.a.createElement(dl,{dataCounts:il(this.state.dataCounts),docketNum:this.docketNum,docketClickIn:this.props.docketClickIn,handleReturnToSearch:this.props.handleReturnToSearch}),r.a.createElement("br",null),r.a.createElement(cl,{showSearch:!0,data:this.state.data,searchFor:this.state.searchFor,fields:this.docketNumFields,handleReturnToSearch:this.props.handleReturnToSearch,isDocketAssociatedSearch:!0})):r.a.createElement(wr,null)}}class hl extends r.a.Component{render(){const e=JSON.parse(this.props.serviceListClickIn),a=Xr(e),t=e.docketTitle;return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",null,r.a.createElement(s.a,{variant:"primary",onClick:this.props.handleReturnToSearch,className:"return-btn return-btn--top"},"Return to Search")),r.a.createElement("div",{id:"grid_title",className:"d-flex justify-content-between grid-title"},r.a.createElement("h3",null,"Docket Number: ",a),r.a.createElement(s.a,{variant:"primary",onClick:this.props.handleReturnToSearch,className:"return-btn return-btn--bottom"},"Return to Search")),r.a.createElement("h4",{className:"indent italic"},t))}}class ul extends r.a.Component{constructor(e){super(e),this.state={activeIndex:0,tabPages:[]},this.changeActiveTo=this.changeActiveTo.bind(this),this.getTabHeader=this.getTabHeader.bind(this),this.getTabContent=this.getTabContent.bind(this)}changeActiveTo(e){this.setState({activeIndex:e})}getTabHeader(){return this.props.children.map((e,a)=>{var t=e.props.data&&"totalCount"in e.props.data,n="props"in e&&"children"in e.props&&e.props.children&&"props"in e.props.children&&e.props.children.props&&"data"in e.props.children.props&&e.props.children.props.data&&"totalCount"in e.props.children.props.data,l=0;t?l=e.props.data.totalCount:n&&(l=e.props.children.props.data.totalCount);var i=l>0?r.a.createElement("span",{className:"badge badge-primary"},Number(l).toLocaleString()):r.a.createElement("span",{className:"badge badge-secondary"},Number(l).toLocaleString());let o=a<this.props.labels.length?this.props.labels[a]:"Tab ".concat(a+1),c="Mailing Labels"===o;return r.a.createElement(s.a,{key:"button-tab-".concat(a),className:"mailing-labels-button-tab",variant:"link",disabled:this.state.activeIndex===a,onClick:()=>this.changeActiveTo(a)},r.a.createElement("strong",null,o),c?null:i)})}getTabContent(){return r.a.createElement(r.a.Fragment,null,this.props.children.map((e,a)=>r.a.createElement("div",{key:"tab-content-".concat(a),id:"tab-content-".concat(a),className:this.state.activeIndex===a?"":"hide"},e)))}render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"mailing-labels-button"},this.getTabHeader()),r.a.createElement("div",null,this.getTabContent()))}}class pl extends r.a.Component{constructor(e){super(e),this.componentDidMount=()=>{this.getDataForPage()},this.getDataForPage=async()=>{this.setState({loading:!0});let e={};return e={searchFor:this.props.dataType,fields:this.props.fields,batchSize:6e3},await Mr(e,this.handleResponseData),this.setState({loading:!1}),!0},this.isValidResponse=e=>200===e.status&&"data"in e,this.handleResponseData=e=>{this.isValidResponse(e)&&this.setState({data:e.data})},this.state={data:null,loading:!1},this.getDataForPage=this.getDataForPage.bind(this),this.isValidResponse=this.isValidResponse.bind(this),this.handleResponseData=this.handleResponseData.bind(this)}render(){return this.state.loading?r.a.createElement("div",{className:"center"},r.a.createElement("br",null),r.a.createElement(vr,null)):this.state.data&&this.state.data.dataSubset&&this.state.data.dataSubset.length?r.a.createElement("table",null,r.a.createElement("tbody",null,this.state.data.dataSubset.map((e,a)=>r.a.createElement(r.a.Fragment,{key:"mailing-list-row-".concat(a)},r.a.createElement("tr",{className:"top-margin",valign:"TOP"},r.a.createElement("td",{key:"mailing-list-row-".concat(a,"-party-type")},"".concat(e.partyType,": "),"\xa0\xa0\xa0\xa0\xa0\xa0"),r.a.createElement("td",{key:"mailing-list-row-".concat(a,"-address")},el(e,!1),r.a.createElement("br",null))),r.a.createElement("tr",null))))):r.a.createElement("p",null,"No mailing list to display.")}}class gl extends r.a.Component{constructor(e){super(e),this.handleSaveServiceList=e=>{var a=[],t=[];for(var n in e){var r=Pr(e[n]);r?(a.push(r),t.push(ll("Parties",r.data))):a.push({searchFor:e[n].searchFor,error:Qe})}this.setState({dataCounts:t,serviceListData:a,networkError:!1})},this.handleMailingLabelsClick=()=>{this.setState({isMailingLabels:!this.state.isMailingLabels})},this.componentDidMount=async()=>{const e={searchFor:"Service List",fields:{docketId:this.state.docketId}};let a=await Mr(e);this.handleSaveServiceList(a)},this.state={docketId:JSON.parse(this.props.serviceListClickIn).docketId,serviceListData:null,isMailingLabels:!1,networkError:!1,dataCounts:null},this.handleSaveServiceList=this.handleSaveServiceList.bind(this),this.handleMailingLabelsClick=this.handleMailingLabelsClick.bind(this)}render(){return this.state.serviceListData?r.a.createElement(r.a.Fragment,null,r.a.createElement(hl,{serviceListClickIn:this.props.serviceListClickIn,handleReturnToSearch:()=>this.props.handleReturnToSearch(M)}),r.a.createElement("div",{className:"d-flex justify-content-left grid-title"},r.a.createElement("h4",null,"Service List"),r.a.createElement("h5",{className:"gray-text indent vert-bottom"},il(this.state.dataCounts))),r.a.createElement(ul,{labels:["Data Table","Mailing Labels"]},r.a.createElement(ol,{data:this.state.serviceListData[0].data,dataType:this.state.serviceListData[0].searchFor,fields:{docketId:this.state.docketId},searchFor:this.state.serviceListData[0].searchFor}),r.a.createElement(pl,{dataType:this.state.serviceListData[0].searchFor,fields:{docketId:this.state.docketId},searchFor:this.state.serviceListData[0].searchFor}))):r.a.createElement(wr,null)}}class fl extends r.a.Component{constructor(e){super(e),this.handleSaveRecordationData=(e,a)=>{var t=null,n=null;for(var r in e){var l=Pr(e[r]);l&&l.data.dataSubset.length?t=l.data.dataSubset[0]:n="Error Loading Recordation"}var i=[],s=[];for(var o in a){var c=Pr(a[o]);c&&c.data&&c.data.dataSubset&&c.data.dataSubset.length&&("recordationParty"===c.data.dataSubset[0].dataType?(i=[...c.data.dataSubset],s.push(ll("Parties",c.data))):n="Error Loading Recordation")}this.setState({dataCounts:s,recordationData:t,recordationParties:i,networkError:n})},this.searchRecordationId=async e=>{this.setState({recordationData:null});const a={searchFor:"Recordations",fields:{recordationId:Number(e)}},t={searchFor:"Recordation Parties",fields:{recordationId:Number(e)}};let n=await Mr(a),r=await Mr(t);this.handleSaveRecordationData(n,r)},this.updateRecordation=e=>{this.searchRecordationId(e)},this.componentDidMount=()=>{this.searchRecordationId(JSON.parse(this.props.recordationClickIn).recordationId)},this.state={recordationData:null,recordationPartiesData:null,networkError:null,dataCounts:null},this.handleSaveRecordationData=this.handleSaveRecordationData.bind(this),this.updateRecordation=this.updateRecordation.bind(this),this.searchRecordationId=this.searchRecordationId.bind(this)}render(){if(window.scrollTo(0,0),this.state.networkError)throw this.state.networkError;if(this.state.recordationData){var e=this.state.recordationData[Ce].toLowerCase();return e=e.replace(e[0],e[0].toUpperCase()),r.a.createElement(r.a.Fragment,null,r.a.createElement(Al,{handleReturnToSearch:()=>this.props.handleReturnToSearch("Recordations"),lockedTo:this.props.lockedTo,title:"Surface Transportation Board ".concat(e," Recordations")}),r.a.createElement(El,{title:"Recordation Information"},bl(this.state.recordationData)),r.a.createElement(El,{title:"Equipment Description"},vl(this.state.recordationData)),r.a.createElement(El,{title:"Cross References"},yl(this.state.recordationData,this.updateRecordation)),r.a.createElement(El,{title:"Recordation Parties"},Cl(this.state.recordationParties)))}return r.a.createElement(wr,null)}}class El extends r.a.Component{constructor(e){super(e),this.state={expanded:e.expanded||!0},this.expandSection=this.expandSection.bind(this)}expandSection(){this.state.expanded?this.setState({expanded:!1}):this.setState({expanded:!0})}render(){var e=this.state.expanded?"active":"",a=this.state.expanded?"Click to collapse":"Click to expand";return r.a.createElement("div",null,r.a.createElement(s.a,{variant:"link",onClick:this.expandSection,title:a,className:"collapse-btn"},r.a.createElement("div",{className:"recordation-section-title"},r.a.createElement("strong",null,r.a.createElement("img",{src:dt.a,alt:a,className:"collapse-chevron ".concat(e)}),this.props.title))),this.state.expanded?r.a.createElement("div",{className:"recordation-box"},this.props.children):null)}}const bl=e=>{var a=e.recordationNumber;e.recordationSuffix&&(a+="-".concat(e.recordationSuffix));var t=r.a.createElement("div",{className:"recordation-info-data"},a),n=r.a.createElement("div",{className:"recordation-info-data"},va(e.dateOfAgreement,!0)),l=r.a.createElement("div",{className:"recordation-info-data"},ka(e.officialFilingDate)),i=r.a.createElement("div",{className:"recordation-info-data"},e.typeOfAgreement),s=r.a.createElement("div",{className:"recordation-info-data"},e.hac),o=[[{labelSize:6,label:"Recordation Number: ",field:t},{labelSize:6,label:"Type of Agreement: ",field:i}],[{labelSize:6,label:"Date of Agreement:",field:n},{labelSize:6,label:"Official Filing Date:",field:l}]],c={labelSize:6,label:'Have parties identified a "hereafter acquired" clause (HAC)?',field:"TRUE"===(""+s).toUpperCase()?"Yes":"FALSE"===(""+s).toUpperCase()?"No":s};return r.a.createElement(je.a,null,o.map((e,a)=>r.a.createElement(Ye.a,{lg:6,key:"row-".concat(a)}," ",e.map((e,a)=>r.a.createElement(je.a,{key:"".concat(e.label,"-").concat(a)},r.a.createElement(Ye.a,{lg:e.labelSize,md:e.labelSize-2,sm:e.labelSize,className:"recordation-info-col"},r.a.createElement("div",{className:"recordation-info-label vert-center"},e.label)),r.a.createElement(Ye.a,{lg:12-e.labelSize,md:10-e.labelSize,sm:12-e.labelSize,className:"recordation-info-col"},r.a.createElement("div",{className:"vert-center"},e.field)))))),r.a.createElement(Ye.a,{lg:12},r.a.createElement(je.a,{key:c.label},r.a.createElement(Ye.a,{lg:c.labelSize,md:c.labelSize-2,sm:c.labelSize,className:"recordation-info-col"},r.a.createElement("div",{className:"recordation-info-label vert-center"},c.label)),r.a.createElement(Ye.a,{lg:12-c.labelSize,md:10-c.labelSize,sm:12-c.labelSize,className:"recordation-info-col"},r.a.createElement("div",{className:"vert-center"},c.field)))))},vl=e=>{var a=r.a.createElement("div",{className:"equipment-description-data"},e.equipmentDescription),t=e.recordationAttachment?r.a.createElement("div",{className:"recordation-document-link"},r.a.createElement("a",{href:e.recordationAttachment},r.a.createElement("img",{src:Ur.a,alt:"PDF",className:"pdf-img"}),e.documentName||$r(e.recordationAttachment))):null;return r.a.createElement(je.a,null,r.a.createElement(Ye.a,{lg:3},r.a.createElement("div",{className:"equipment-description-label"},"Equipment Description: ")),r.a.createElement(Ye.a,{lg:9},a),r.a.createElement(Ye.a,{lg:3},r.a.createElement("div",{className:"equipment-description-label"},"Document: ")),r.a.createElement(Ye.a,{lg:9},t))},yl=(e,a)=>{if(e.crossReferenceNumbers.length&&e.crossReferenceIds.length){var t=e.crossReferenceNumbers.split(","),n=e.crossReferenceIds.split(",");return r.a.createElement(je.a,null,t.map((t,l)=>r.a.createElement(Ye.a,{xs:3,sm:3,md:2,lg:1,key:"".concat(t,"-").concat(l)},r.a.createElement("div",null,r.a.createElement(s.a,{variant:"link",title:"Open Recordation",value:JSON.stringify(e),onClick:()=>a(n[l]),key:"cross-reference-".concat(l),className:"service-list-btn"},t)))))}return r.a.createElement(je.a,null,r.a.createElement(Ye.a,{key:"noreferences"},"There are no cross references for this Recordation"))},Cl=e=>{var a=[],t=[];e.map(e=>(0===Number(e.partyId)?a.push(r.a.createElement("div",{className:"recordation-party"},r.a.createElement("div",null,r.a.createElement("strong",null,"Submitter")),r.a.createElement("div",null,e.submitter),r.a.createElement("div",null,e.company),r.a.createElement("div",null,e.addressLineOne),r.a.createElement("div",null,e.addressLineTwo),r.a.createElement("div",null,(e.addressCity?"".concat(e.addressCity,", "):"")+"".concat(e.addressState," ").concat(e.addressZip)),r.a.createElement("div",null,e.addressCountry))):t.push(r.a.createElement("div",{className:"recordation-party"},r.a.createElement("strong",null,e.partyType?r.a.createElement("div",null,e.partyType):r.a.createElement("div",null,e.otherPartyType)),r.a.createElement("div",null,e.company),r.a.createElement("div",null,e.addressLineOne),r.a.createElement("div",null,e.addressLineTwo),r.a.createElement("div",null,(e.addressCity?"".concat(e.addressCity,", "):"")+"".concat(e.addressState," ").concat(e.addressZip)),r.a.createElement("div",null,e.addressCountry))),null));var n=[...a,...t];return n.length?r.a.createElement(je.a,null,n.map((e,a)=>r.a.createElement(Ye.a,{md:6,lg:4,key:"party-".concat(a)},e))):r.a.createElement(je.a,null,r.a.createElement(Ye.a,{key:"noparty"},"There are no parties for this Recordation"))};class Al extends r.a.Component{render(){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",null,r.a.createElement(s.a,{variant:"primary",onClick:()=>this.props.handleReturnToSearch("Recordations"),className:"return-btn return-btn--top"},this.props.lockedTo?"Return to Results":"Return to Search")),r.a.createElement("div",{id:"grid_title",className:"d-flex justify-content-between grid-title"},r.a.createElement("span",null,r.a.createElement("h4",{className:"inline-block"},this.props.title)),r.a.createElement(s.a,{variant:"primary",onClick:()=>this.props.handleReturnToSearch("Recordations"),className:"return-btn return-btn--bottom"},this.props.lockedTo?"Return to Results":"Return to Search")))}}class Nl extends r.a.Component{render(){return this.props.searchFor?r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,{variant:"primary",type:"submit",onClick:this.props.handleSubmit,size:"lg",className:"search-button auto-margin",disabled:this.props.disabled},"Search"),this.props.loading?r.a.createElement(vr,null):r.a.createElement(r.a.Fragment,null)):null}}class kl extends r.a.Component{constructor(e){super(e),this.componentDidMount=()=>{q.includes(this.props.lockedTo)&&this.getLockedToResults(this.props.lockedTo)},this.scrollToResults=()=>{document.getElementById(this.state.resultsElementId)&&document.getElementById(this.state.resultsElementId).scrollIntoView()},this.handleSearchForChange=e=>{var a={};"By Date"===e.target.value?a.dateToView=ta?va((new Date).toISOString().slice(0,10),!0):(new Date).toISOString().slice(0,10):"Recordations"===e.target.value?a.recordationCategory=w[0].value:"Environmental Comments"===e.target.value&&(a.enviroCommentTypeId=R[0].value),this.setState({[e.target.name]:e.target.value,fields:a,data:null}),this.props.handleDefaultFieldsOverride()},this.handleFieldsChange=e=>{var a={...this.state.fields};Te.includes(e.target.name)&&(Aa(e.target.value)&&Na(e.target.value)?e.target.classList.remove("date-invalid"):e.target.classList.add("date-invalid")),a[e.target.name]=e.target.value,this.setState({fields:a,data:null}),this.props.handleDefaultFieldsOverride(a)},this.clearFieldsByName=e=>{var a={...this.state.fields};for(var t in e)a[e[t]]="";this.setState({fields:a})},this.handleSaveData=e=>{var a=[],t=0;for(var n in e){var r=Pr(e[n]);r?(a.push(r),t++):a.push({searchFor:e[n].searchFor,error:Qe})}t?this.setState({data:a,networkError:!1,loading:!1,showSearch:!1}):this.setState({data:null,networkError:!0,loading:!1,showSearch:!0})},this.handleSearchSubmit=e=>{let a=!0;for(var t in(document.getElementsByClassName("is-invalid").length>0||document.getElementsByClassName("date-invalid").length>0||"By Date"===this.state.searchFor&&""===this.state.fields.dateToView)&&(this.setState({disableSearch:!0}),a=!1),Te){let e=document.getElementsByName(Te[t])[0];e&&!e.checkValidity()&&(this.setState({disableSearch:!0}),a=!1)}a&&(this.state.loading||(e.preventDefault(),this.searchByField(this.state)))},this.searchByField=async e=>{var a;this.setState({loading:!0,networkError:!1}),a="By Date"===e.searchFor?await(async({fields:e,batchSize:a,startIndex:t},n)=>{var r=[];for(let l in n){let i=n[l].searchFor,s={...e,...n[l].fields},o=await Or({searchFor:i,fields:s,batchSize:a,startIndex:t});r.push({searchFor:i,response:o})}return r})(e,G):await Mr(e),this.handleSaveData(a)},this.getLockedToResults=e=>{var a={searchFor:e,fields:this.state.fields};this.searchByField(a)},this.setSearchVisible=()=>{this.setState({showSearch:!0})},this.getErrors=e=>{if(this.state.networkError)return r.a.createElement("div",{className:"center invalid-feedback show"},r.a.createElement("p",{className:"shortLine"},Qe))},this.state={searchFor:e.searchFor,fields:{...e.defaultFields},data:e.defaultData,loading:!1,networkError:!1,showSearch:!0,disableSearch:!1},this.handleSearchForChange=this.handleSearchForChange.bind(this),this.handleFieldsChange=this.handleFieldsChange.bind(this),this.handleSearchSubmit=this.handleSearchSubmit.bind(this),this.handleSaveData=this.handleSaveData.bind(this),this.searchByField=this.searchByField.bind(this),this.setSearchVisible=this.setSearchVisible.bind(this),this.clearFieldsByName=this.clearFieldsByName.bind(this)}componentDidUpdate(){for(var e in Te){let a=document.getElementsByName(Te[e])[0];a&&!a.value&&("dateToView"===Te[e]?a.classList.add("date-invalid"):a.checkValidity()&&a.classList.remove("date-invalid"))}!this.state.disableSearch&&(document.getElementsByClassName("is-invalid").length>0||document.getElementsByClassName("date-invalid").length>0||"By Date"===this.state.searchFor&&""===this.state.fields.dateToView)?this.setState({disableSearch:!0}):!this.state.disableSearch||0!==document.getElementsByClassName("is-invalid").length||0!==document.getElementsByClassName("date-invalid").length||"By Date"===this.state.searchFor&&""===this.state.fields.dateToView||this.setState({disableSearch:!1})}render(){var e=q.includes(this.props.lockedTo),a=V.includes(this.props.lockedTo),t=e&&this.state.loading;return r.a.createElement(We.a,{id:"enhanced_search",className:"enhancedSearchForm"},this.state.showSearch?r.a.createElement(r.a.Fragment,null,r.a.createElement(pt,{handleChange:this.handleSearchForChange,searchFor:this.state.searchFor,lockedTo:this.props.lockedTo,defaultFields:this.props.defaultFields}),r.a.createElement("br",null),r.a.createElement(Yr,{handleChange:this.handleFieldsChange,clearFieldsByName:this.clearFieldsByName,searchFor:this.state.searchFor,fields:this.state.fields,lockedTo:this.props.lockedTo}),r.a.createElement(Nl,{disabled:this.state.disableSearch,searchFor:this.state.searchFor,handleSubmit:this.handleSearchSubmit,loading:this.state.loading}),this.getErrors()):null,this.state.showSearch?t?r.a.createElement(wr,null):null:r.a.createElement(cl,{showSearch:!this.state.showSearch,data:this.state.data,isByDateSearch:"By Date"===this.state.searchFor,hideReturnBtn:a,searchFor:this.state.searchFor,lockedTo:this.props.lockedTo,fields:this.state.fields,handleDocketNumClickin:this.props.handleDocketNumClickin,handleGenerateServiceListClickIn:this.props.handleGenerateServiceListClickIn,handleGenerateRecordationClickIn:this.props.handleGenerateRecordationClickIn,handleReturnToSearch:this.setSearchVisible}))}}class Sl extends r.a.Component{constructor(e){super(e),this.handleDocketNumClickin=e=>{this.setState({docketClickIn:e.target.value})},this.handleGenerateServiceListClickIn=e=>{this.setState({serviceListClickIn:e.target.value})},this.handleGenerateRecordationClickIn=e=>{this.setState({recordationClickIn:e.target.value})},this.handleDefaultFieldsOverride=e=>{this.setState({defaultFields:e})},this.handleDefaultDataOverride=e=>{this.setState({defaultData:e})},this.handleReturnToSearch=e=>{var a={};"Recordations"===e?this.state.defaultFields&&this.state.defaultFields.recordationCategory?a=this.state.defaultFields:a[Ce]=w[0].value:"Environmental Comments"===e&&(this.state.defaultFields&&this.state.defaultFields.enviroCommentTypeId?a=this.state.defaultFields:a.enviroCommentTypeId=R[0].value),this.setState({defaultFields:a,docketClickIn:null,serviceListClickIn:null,serviceListData:null,recordationClickIn:null,searchFor:e||"Decisions"})};var[a,t]=Lr(e.lockedTo,e.defaultFields);this.state={defaultFields:t,defaultData:null,searchFor:a,docketClickIn:null,serviceListClickIn:null,recordationClickIn:null},this.handleDocketNumClickin=this.handleDocketNumClickin.bind(this),this.handleDefaultFieldsOverride=this.handleDefaultFieldsOverride.bind(this),this.handleGenerateRecordationClickIn=this.handleGenerateRecordationClickIn.bind(this),this.handleDefaultDataOverride=this.handleDefaultDataOverride.bind(this),this.handleReturnToSearch=this.handleReturnToSearch.bind(this)}render(){return this.state.docketClickIn?r.a.createElement(ml,{docketClickIn:this.state.docketClickIn,handleReturnToSearch:this.handleReturnToSearch}):this.state.serviceListClickIn?r.a.createElement(gl,{serviceListClickIn:this.state.serviceListClickIn,handleReturnToSearch:this.handleReturnToSearch}):this.state.recordationClickIn?r.a.createElement(fl,{recordationClickIn:this.state.recordationClickIn,handleReturnToSearch:this.handleReturnToSearch,lockedTo:this.props.lockedTo}):r.a.createElement(kl,{searchFor:this.state.searchFor,lockedTo:this.props.lockedTo,defaultFields:this.state.defaultFields,defaultData:this.state.defaultData,handleDefaultFieldsOverride:this.handleDefaultFieldsOverride,handleDefaultDataOverride:this.handleDefaultDataOverride,handleDocketNumClickin:this.handleDocketNumClickin,handleGenerateServiceListClickIn:this.handleGenerateServiceListClickIn,handleGenerateRecordationClickIn:this.handleGenerateRecordationClickIn})}}var xl=Sl;t(225);class Il extends r.a.Component{constructor(e){super(e),this.getResultFields=function(e){var a={type:"",date:"",description:"",attachment:""};return e.forEach(e=>{switch(e){case"dataType":a.type=e;break;case"decisionType":case"filingType":a.name=e;break;case"serviceDate":case"filingDate":case"officialFilingDate":a.date=e;break;case"docketTitle":a.title=e;break;case"decidingBody":case"filedFor":a.description=e;break;case"filingAttachment":case"decisionAttachment":a.attachment=e}}),a},this.getRows=function(){if(this.state.data.dataSubset)return this.state.data.dataSubset.map((e,a)=>r.a.createElement("div",{key:a,className:"recents"},r.a.createElement("p",{className:"notes-link "},e[this.state.fields.name]," -"," ",Xr(e)),r.a.createElement("p",{className:"small-date "},ba(e[this.state.fields.date])),r.a.createElement("p",{className:"notes-description "},e[this.state.fields.title]),r.a.createElement("p",{className:"notes-attachment "},"Attachment(s):"," ",e[this.state.fields.attachment]?r.a.createElement("a",{href:e[this.state.fields.attachment],title:e[this.state.fields.attachment],target:"_blank",rel:"noopener noreferrer"},$r(e[this.state.fields.attachment])):r.a.createElement("span",null,"None"))))};var a=null;"Decisions"===e.searchFor?a=this.getResultFields(Oe.decision):"Filings"===e.searchFor&&(a=this.getResultFields(Oe.filing)),this.state={searchFor:e.searchFor,fields:a,data:e.data},this.getRows=this.getRows.bind(this)}render(){return r.a.createElement("div",null,this.getRows())}}var Fl=Il;class Dl extends r.a.Component{constructor(e){super(e),this.handleSaveData=e=>{this.setState({data:e.data})},this.state={searchFor:e.searchFor||"Decisions",searchCriteria:null,batchSize:3,startIndex:1,data:null},this.handleSaveData=this.handleSaveData.bind(this),(async({searchFor:e,batchSize:a,startIndex:t},n)=>{await Or({searchFor:e,batchSize:a,startIndex:t},n)})(this.state,this.handleSaveData)}render(){return this.state.data?"dataSubset"in this.state.data?r.a.createElement(Fl,{searchFor:this.state.searchFor,data:this.state.data}):r.a.createElement("h4",{className:"red-text"},Qe):r.a.createElement(wr,null)}}var Tl=Dl;class wl extends r.a.Component{componentDidMount(){window.location.pathname.toString().includes("/404")||this.props.history.push("/404")}render(){return r.a.createElement("h1",null,"Page Not Found")}}var Bl=wl;Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var Rl=t(124),Pl=t(26),Ol=t(123),Ml=t.n(Ol);class Ll extends r.a.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}render(){return this.state.hasError?r.a.createElement(Tr,null,r.a.createElement("div",{className:"error-boundary-container"},r.a.createElement(je.a,null,r.a.createElement(Ye.a,{md:"auto"},r.a.createElement("img",{className:"error-icon",src:Ml.a,alt:"Internal Server Error"})),r.a.createElement(Ye.a,{className:"align-bottom"},r.a.createElement("h1",{className:"red-text error-boundary-container__title"},"Internal Server Error"),r.a.createElement("h3",null,"There is a problem with the page you requested. Try reloading the page, or navigate to another page to continue."))))):this.props.children}}const zl=r.a.createElement(Rl.a,null,r.a.createElement("div",null,r.a.createElement(Ll,null,r.a.createElement(Pl.c,null,r.a.createElement(Pl.a,{path:"/efiling_question",component:Tn}),r.a.createElement(Pl.a,{path:"/informal_efiling",render:()=>r.a.createElement(Dr,{filingType:"other"})}),r.a.createElement(Pl.a,{path:"/efiling",render:()=>r.a.createElement(Dr,{filingType:"formal"})}),r.a.createElement(Pl.a,{path:"/erecordation",render:()=>r.a.createElement(Dr,{filingType:be})}),r.a.createElement(Pl.a,{path:"/rcpa",render:()=>r.a.createElement(Dr,{filingType:ve})}),r.a.createElement(Pl.a,{path:"/environmental_comments",render:()=>r.a.createElement(Dr,{filingType:ye})}),r.a.createElement(Pl.a,{exact:!0,path:"/enhanced_search",component:xl}),r.a.createElement(Pl.a,{exact:!0,path:m,render:e=>r.a.createElement(xl,Object.assign({},e,{lockedTo:"Decisions"}))}),r.a.createElement(Pl.a,{exact:!0,path:h,render:e=>r.a.createElement(xl,Object.assign({},e,{lockedTo:"Filings"}))}),r.a.createElement(Pl.a,{exact:!0,path:p,render:e=>r.a.createElement(xl,Object.assign({},e,{defaultFields:{recordationCategory:w[0].value},lockedTo:"Recordations"}))}),r.a.createElement(Pl.a,{exact:!0,path:g,render:e=>r.a.createElement(xl,Object.assign({},e,{defaultFields:{recordationCategory:w[1].value},lockedTo:"Recordations"}))}),r.a.createElement(Pl.a,{exact:!0,path:f,render:e=>r.a.createElement(xl,Object.assign({},e,{lockedTo:M}))}),r.a.createElement(Pl.a,{exact:!0,path:E,render:e=>r.a.createElement(xl,Object.assign({},e,{defaultFields:{enviroCommentTypeId:R[0].value},lockedTo:"Environmental Comments"}))}),r.a.createElement(Pl.a,{exact:!0,path:d,render:()=>r.a.createElement(Tl,{searchFor:"Filings"})}),r.a.createElement(Pl.a,{exact:!0,path:c,render:()=>r.a.createElement(Tl,{searchFor:"Decisions"})}),r.a.createElement(Pl.a,{exact:!0,path:"".concat("/confirmation","/:filingType"),component:br}),r.a.createElement(Pl.a,{path:"/404",component:Bl}),r.a.createElement(Pl.a,{component:Bl})))));i.a.render(zl,document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(e=>{e.unregister()})},50:function(e,a,t){},51:function(e,a,t){e.exports=t.p+"static/media/chevron-down.bd811f94.svg"}},[[131,1,2]]]); //# sourceMappingURL=main.7b0f7cb3.chunk.js.map