Spaces:
Running
Running
fix: convert multi-line strings to template literals (JS syntax fix)
Browse files21 unmodified lines222324252627289 unmodified lines383940414243448 unmodified lines5354555657585915 unmodified lines7576777879808114 unmodified lines969798991001011029 unmodified lines1121131141151161171186 unmodified lines1251261271281291301318 unmodified lines140141142143144145146502 unmodified lines64965065165265365465521 unmodified lines{ id: "img_demo_3", filename: "413495119937_accident_6.jpg", blob_url: "images/demo/413495119937_accident_6.jpg" }],analyses: [{ filename: "01a252ba0708_car_8.jpg", raw_analysis: "[AI Observation]Vehicles Involved: 1Make/Model: 2018 Toyota Highlander (Silver SUV)License Plate: CA 8XYZ1239 unmodified lines- Airbag Deployment: Driver and Passenger front active. Clause 5B (Safety Systems) -> COVERED[Summary]Severe front-end deformation observed consistent with high-speed frontal impact. Airbags deployed. Vehicle is likely a total loss." }],violations: [{ rule_id: "SPEED-001", rule_title: "Excessive Speed", severity: "CRITICAL", confidence: 0.92, party_label: "Silver SUV", evidence_summary: "Long skid marks and severe front-end crush profile indicate speeds greater than safe for conditions." },8 unmodified lines{ id: "img_demo_5", filename: "e05bd82a2cfa_accident_9.jpg", blob_url: "images/demo/e05bd82a2cfa_accident_9.jpg" }],analyses: [{ filename: "a358e234c528_accident_scene_2.jpg", raw_analysis: "[AI Observation]Vehicles Involved: 2Vehicle A Make/Model: 2020 Honda Civic (Blue Sedan)Vehicle A License Plate: TX LMN-456715 unmodified lines- Front Bumper/Grille: Moderate damage (Intensity: Medium). Commercial Clause 1A (At-fault Liability) -> SUBJECT TO 000 DEDUCTIBLE[Summary]T-bone intersection collision. Blue Sedan sustained heavy side impact; White Truck shows front-end damage." }],violations: [{ rule_id: "SIGNAL-001", rule_title: "Red Light Violation", severity: "CRITICAL", confidence: 0.95, party_label: "White Truck", evidence_summary: "Point of impact and traffic cam footage suggests White Truck entered intersection after signal turned red." },14 unmodified lines{ id: "img_demo_104", filename: "car_10.jpg", blob_url: "images/demo/car_10.jpg" }],analyses: [{ filename: "car_10.jpg", raw_analysis: "[AI Observation]Vehicles Involved: 1Make/Model: 2022 Subaru Outback (Green)License Plate: NV 455-XYZ9 unmodified lines- Tire blowout: Not Covered (Mechanical wear exculsion Clause 7)[Summary]Single vehicle incident. Vehicle appears to have suffered a front right tire blowout leading to a collision with the highway barrier." }],violations: [{ rule_id: "SPEED-002", rule_title: "Too Fast for Conditions", severity: "HIGH", confidence: 0.78, party_label: "Green Subaru", evidence_summary: "Wet road surface indicates speed should have been reduced prior to loss of control." }6 unmodified lines{ id: "img_demo_105", filename: "accident_6.jpg", blob_url: "images/demo/accident_6.jpg" }],analyses: [{ filename: "accident_6.jpg", raw_analysis: "[AI Observation]Vehicles Involved: 1Make/Model: 2017 Nissan Altima (Black)License Plate: NY JKL-01238 unmodified lines- Pedestrian Injury Liability: Clause 1ABodily Injury -> COVERAGE TRIGGERED UP TO 50k LIMIT[Summary]Vehicle collided with a pedestrian on a marked crosswalk. Significant hood and windshield damage typical of a pedestrian strike at ~25-30mph." }],violations: [{ rule_id: "PEDES-003", rule_title: "Driver Failure to Stop for Pedestrian in Crosswalk", severity: "CRITICAL", confidence: 0.98, party_label: "Black Altima", evidence_summary: "Impact occurred directly on marked crosswalk paint." },502 unmodified lines});fileInput.addEventListener('change', () => {handleFiles(Array.from(fileInput.files), prvId, tnId, ctId, prefix);});}21 unmodified lines22232425262728299 unmodified lines394041424344458 unmodified lines545556575859606115 unmodified lines7778798081828314 unmodified lines98991001011021031041059 unmodified lines1151161171181191201216 unmodified lines1281291301311321331341358 unmodified lines144145146147148149150502 unmodified lines65365465565665765865921 unmodified lines{ id: "img_demo_3", filename: "413495119937_accident_6.jpg", blob_url: "images/demo/413495119937_accident_6.jpg" }],analyses: [{filename: "01a252ba0708_car_8.jpg", raw_analysis: `[AI Observation]Vehicles Involved: 1Make/Model: 2018 Toyota Highlander (Silver SUV)License Plate: CA 8XYZ1239 unmodified lines- Airbag Deployment: Driver and Passenger front active. Clause 5B (Safety Systems) -> COVERED[Summary]Severe front-end deformation observed consistent with high-speed frontal impact. Airbags deployed. Vehicle is likely a total loss.` }],violations: [{ rule_id: "SPEED-001", rule_title: "Excessive Speed", severity: "CRITICAL", confidence: 0.92, party_label: "Silver SUV", evidence_summary: "Long skid marks and severe front-end crush profile indicate speeds greater than safe for conditions." },8 unmodified lines{ id: "img_demo_5", filename: "e05bd82a2cfa_accident_9.jpg", blob_url: "images/demo/e05bd82a2cfa_accident_9.jpg" }],analyses: [{filename: "a358e234c528_accident_scene_2.jpg", raw_analysis: `[AI Observation]Vehicles Involved: 2Vehicle A Make/Model: 2020 Honda Civic (Blue Sedan)Vehicle A License Plate: TX LMN-456715 unmodified lines- Front Bumper/Grille: Moderate damage (Intensity: Medium). Commercial Clause 1A (At-fault Liability) -> SUBJECT TO 000 DEDUCTIBLE[Summary]T-bone intersection collision. Blue Sedan sustained heavy side impact; White Truck shows front-end damage.` }],violations: [{ rule_id: "SIGNAL-001", rule_title: "Red Light Violation", severity: "CRITICAL", confidence: 0.95, party_label: "White Truck", evidence_summary: "Point of impact and traffic cam footage suggests White Truck entered intersection after signal turned red." },14 unmodified lines{ id: "img_demo_104", filename: "car_10.jpg", blob_url: "images/demo/car_10.jpg" }],analyses: [{filename: "car_10.jpg", raw_analysis: `[AI Observation]Vehicles Involved: 1Make/Model: 2022 Subaru Outback (Green)License Plate: NV 455-XYZ9 unmodified lines- Tire blowout: Not Covered (Mechanical wear exculsion Clause 7)[Summary]Single vehicle incident. Vehicle appears to have suffered a front right tire blowout leading to a collision with the highway barrier.` }],violations: [{ rule_id: "SPEED-002", rule_title: "Too Fast for Conditions", severity: "HIGH", confidence: 0.78, party_label: "Green Subaru", evidence_summary: "Wet road surface indicates speed should have been reduced prior to loss of control." }6 unmodified lines{ id: "img_demo_105", filename: "accident_6.jpg", blob_url: "images/demo/accident_6.jpg" }],analyses: [{filename: "accident_6.jpg", raw_analysis: `[AI Observation]Vehicles Involved: 1Make/Model: 2017 Nissan Altima (Black)License Plate: NY JKL-01238 unmodified lines- Pedestrian Injury Liability: Clause 1ABodily Injury -> COVERAGE TRIGGERED UP TO 50k LIMIT[Summary]Vehicle collided with a pedestrian on a marked crosswalk. Significant hood and windshield damage typical of a pedestrian strike at ~25-30mph.` }],violations: [{ rule_id: "PEDES-003", rule_title: "Driver Failure to Stop for Pedestrian in Crosswalk", severity: "CRITICAL", confidence: 0.98, party_label: "Black Altima", evidence_summary: "Impact occurred directly on marked crosswalk paint." },502 unmodified lines});fileInput.addEventListener('change', () => {handleFiles(Array.from(fileInput.files), prvId, tnId, ctId, dzId.startsWith('ins') ? 'ins' : 'le');});}
js/alt_app.js+13-9