1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5782],{65782:function(e,r,a){a.d(r,{Z:function(){return ke}});var t=a(37411),i=a(9544),n=a(54964),s=a(55093),o=a(86361),c=a(19038),l=a(84845),d=a(99333),h=a(49561),u=a(32833),f=a(90267),m=a(12608),p=a(92965),g=a(65599),x=a(59499),b=a(90116),y=a(50029),v=a(52719),j=a(87794),w=a.n(j),k=a(67294),Z=a(73595),P=a(27412),S=a(34208),C=(a(33057),a(18003)),_=a(54455),H=a(52689),R=a(85893),O=(0,_.Z)({components:{MuiRating:{styleOverrides:{icon:{color:"var(--icon-color)"}},defaultProps:{icon:(0,R.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"24px",height:"24px",children:(0,R.jsx)("path",{d:"M12 2C12 2 8 6 8 10c0 2.21 1.79 4 4 4s4-1.79 4-4c0-4-4-8-4-8zm0 20c4.42 0 8-3.58 8-8 0-3.72-2.55-6.85-6-7.75.67 1.28 1 2.63 1 3.75 0 3.31-2.69 6-6 6-1.12 0-2.47-.33-3.75-1 0 3.45 3.03 7 6.75 7z"})}),emptyIcon:(0,R.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24px",height:"24px",children:(0,R.jsx)("path",{d:"M12 2C12 2 8 6 8 10c0 2.21 1.79 4 4 4s4-1.79 4-4c0-4-4-8-4-8zm0 20c4.42 0 8-3.58 8-8 0-3.72-2.55-6.85-6-7.75.67 1.28 1 2.63 1 3.75 0 3.31-2.69 6-6 6-1.12 0-2.47-.33-3.75-1 0 3.45 3.03 7 6.75 7z"})})}}}}),F=function(e){var r=e.rank;return(0,R.jsx)(H.Z,{theme:O,children:(0,R.jsx)(d.Z,{className:"p-6 bg-gray-700 rounded-xl shadow-inner border border-gray-600 h-full flex flex-col items-center justify-center text-center",sx:{width:"120px",p:2},children:(0,R.jsx)(C.Z,{name:"rating",value:r,readOnly:!0,size:"large",sx:{"--icon-color":{1:"#fcd34d",2:"#eab308",3:"#f97316",4:"#dc2626",5:"#7f1d1d"}[r],marginLeft:"-16px !important"}})})})},M=a(17674);function T(e,r){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,r){if(!e)return;if("string"===typeof e)return E(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return E(e,r)}(e))||r&&e&&"number"===typeof e.length){a&&(e=a);var t=0,i=function(){};return{s:i,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){o=!0,n=e},f:function(){try{s||null==a.return||a.return()}finally{if(o)throw n}}}}function E(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}function I(e){var r=e.children,a=e.value,t=e.index;return(0,R.jsx)("div",{role:"tabpanel",hidden:a!==t,style:{marginTop:"16px"},children:a===t&&(0,R.jsx)(p.Z,{children:r})})}var D=function(e){var r=e.city,a=e.county,t=e.rawData,s=(0,k.useState)(0),o=s[0],c=s[1],l=(0,k.useState)(null),h=l[0],u=l[1],f=(0,k.useState)(null),m=f[0],p=f[1],x=(0,k.useState)(!0),b=x[0],v=x[1],j=(0,k.useState)(null),Z=j[0],P=j[1],S=[{label:"City",value:r},{label:"County",value:a},{label:"Insurance",value:"Uninsurable"},{label:"Residential",value:a},{label:"Other",value:a}],C=function(){return{cities:function(){var e=r.toLowerCase();return m.filter((function(r){return!(!r.cities||!Array.isArray(r.cities))&&r.cities.some((function(r){return r.toLowerCase()===e}))}))}(),counties:function(){var e=a.toLowerCase();return m.filter((function(r){return!(!r.counties||!Array.isArray(r.counties))&&r.counties.some((function(r){return r.toLowerCase()===e}))}))}(),summary:{summaryFuel:t.fuel_risk.score<0?"The brush in this area is at less risk than Pacific Palisades. While your risk may be somewhat lower, it is still strongly recommended that you contact your local officials to ensure brush is cleared and your fire risk is reduced.":0===t.fuel_risk.score?"The brush in this area is at a comparable risk to Pacific Palisades. This means your community faces a similarly severe risk, and it is critical that you contact your local officials to clear brush and reduce the likelihood of fire destruction.":"The brush in this area is at a greater r
1isk than Pacific Palisades. This places your community at an even higher danger level, and it is urgently recommended that you contact your local officials to clear brush and take immediate fire risk reduction measures.",summaryFire:""}}},_=function(){C();var e={value:"At Risk",details:"This area is within an urban/ residential area in California which makes it at risk of losing insurance coverage."};return t.urban?((t.fire_risk.score>=0||t.fuel_risk.score>=0)&&(e.value="Uninsurable",e.details="This area meets the criteria for being uninsurable due to fire risk weather patterns, failure to clear brush on government owned land, and history of failures by the fire department in California."),e):(e.value="N/A",e.details="Not in an urban/ residential area.",e)},H=function(){var e,r=[],a=T(h);try{for(a.s();!(e=a.n()).done;){var i=e.value;i.zones.includes(t.code)&&r.push(i.name)}}catch(n){a.e(n)}finally{a.f()}return r},O=function(e){switch(e){case 0:return r;case 1:return a;case 2:return _().value;case 3:return t.urban?"Yes":"No";case 4:return H().length<1?"None":"Protected";default:null()}return null},F=function(e){switch(e){case 0:return function(){var e=C();return e.cities.length<1?(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)(g.Z,{variant:"body1",children:[e.summary.summaryFuel," ",(0,R.jsx)("br",{}),(0,R.jsx)("br",{}),"FireRebuild is updating recent fire information for ",r,"."]})}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(g.Z,{variant:"body1",children:[e.summary.summaryFuel," ",(0,R.jsx)("br",{}),(0,R.jsx)("br",{}),r," has been known for the following fires:"]}),e.cities.map((function(e,r){var a=e.name,t=e.year,i=e.deaths,n=e.acres,s=e.structures_destroyed;return(0,R.jsxs)(g.Z,{variant:"body1",sx:{pl:2},children:[(0,R.jsxs)("strong",{children:[t," ",a]})," with ",i," deaths, ",s," structures destroyed, and ",n," acres burned."]})}))]})}();case 1:return function(){var e=C();return e.counties.length<1?(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)(g.Z,{variant:"body1",children:[e.summary.summaryFuel," ",(0,R.jsx)("br",{}),(0,R.jsx)("br",{}),"FireRebuild is updating recent fire information for ",a,"."]})}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(g.Z,{variant:"body1",children:[e.summary.summaryFuel," ",(0,R.jsx)("br",{}),(0,R.jsx)("br",{}),a," has been known for the following fires:"]}),e.counties.map((function(e,r){var a=e.name,t=e.year,i=e.deaths,n=e.acres,s=e.structures_destroyed;return(0,R.jsxs)(g.Z,{variant:"body1",sx:{pl:2},children:[(0,R.jsxs)("strong",{children:[t," ",a]})," with ",i," deaths, ",s," structures destroyed, and ",n," acres burned."]})}))]})}();case 2:return function(){var e=_();return(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(g.Z,{variant:"body1",children:e.details})})}();case 3:return t.urban?(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(g.Z,{variant:"body1",children:"This area falls within a residential / urban zone. Insurance is a requirement."})}):(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(g.Z,{variant:"body1",children:"This area is not within a residential / urban zone."})});case 4:return function(){var e=H();return e.length<1?(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(g.Z,{variant:"body1",children:"No exceptions found."})}):(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)(g.Z,{variant:"body1",children:["Congratulations! Your location is near ",e[0],"'s home! You have a significantly less risk of a major fire in your area regardless of the overall risk."]})})}();default:null()}return(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(g.Z,{variant:"body1"})})};return(0,k.useEffect)((function(){var e=function(){var e=(0,y.Z)(w().mark((function e(){var r,a,t,i,n,s;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all([fetch("https://app.firerebuild.com/fire-risk-zone/data/exceptions.json"),fetch("https://app.firerebuild.com/fire-risk-zone/data/fire_history.json")]);case 3:if(r=e.sent,a=(0,M.Z)(r,2),t=a[0],i=a[1],t.ok){e.next=9;break}throw new Error("HTTP error! status: ".concat(t.status," for exceptions.json"));case 9:if(i.ok){e.next=11;break}throw new Error("HTTP error! status: ".concat(i.status," for fire_history.json"));case 11:return e.next=13,t.json();case 13:return n=e.sent,e.next=16,i.json();case 16:s=e.sent,u(n),p(s),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),P(e.t0.message);case 24:return e.prev=24,v(!1),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[0,21,24,27]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),b?(0,R.jsx)("div",{children:"Loading data..."}):Z?(0,R.jsxs)("div",{children:["Error: ",Z]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(i.Z,{value:o,onChange:function(e,r){c(r)},variant:"fullWidth",sx:{borderBottom:0,borderColor:"divider"},children:S.map((function(e,r){return(0,R.jsx)(n.Z,{sx:{minWidth:"20%",maxWidth:"20%",flexGrow:1,textTransform:"none",padding:0},label:(0,R.jsxs)(d.Z,{className:"p-6 bg-gray-700 rounded-xl shadow-inner border border-gray-600",sx:{width:"100%",height:"100%",p:2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"},children:[(0,R.jsx)(g.Z,{variant:"h6",className:"text-md font-bold mb-2",sx:{color:o===r?"black":"grey"},children:e.label}),(0,R.jsx)(g.Z,{variant:"body1",sx:{color:o===r?"black":"grey"},children:O(r)})]})},r)}))}),S.map((function(e,r){return(0,R.jsx)(I,{value:o,index:r,children:(0,R.jsx)(d.Z,{sx:{p:3},children:F(r)})},r)}))]})};function A(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function z(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};
1r%2?A(Object(a),!0).forEach((function(r){(0,x.Z)(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):A(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function L(e){var r=e.rawData,a=e.locationData,t=(0,k.useState)(null),i=t[0],n=t[1],s=(0,k.useState)(null),o=s[0],c=s[1],l={urban:{true:"This area is within a defined urban zone,",false:"This is a non-urban area,"},fuel:{"-2":"and has significantly less fire-prone vegetation, greatly reducing the risk of fire spreading.","-1":"and has lower fuel hazards, which helps to mitigate fire risk.",0:"and has similar vegetation hazards to Pacific Palisades, presenting a comparable risk of fire spread.",1:"and has a high concentration of hazardous vegetation, making it more susceptible to a fast-moving fire.",2:"and has an extreme abundance of fire-prone vegetation, creating a very high risk of homes being lost."},fire:{"-2":"Historical data and weather conditions indicate a much lower overall fire risk.","-1":"Historical data and weather conditions point to a lower overall fire risk.",0:"Historical data and weather conditions show a fire risk comparable to Pacific Palisades.",1:"Historical data and weather conditions suggest a higher overall fire risk.",2:"Historical data and weather conditions indicate an extreme overall fire risk."},mitigation:{high_fuel_low_fire:"However, a lower overall fire risk due to historical weather and climate patterns helps to mitigate the danger to homes.",low_fuel_high_fire:"However, a higher overall fire risk due to historical weather and climate patterns suggests that homes may still be at risk, despite the lower fuel load."},conclusion:{low:"Overall, the risk to homes in this area is considered low.",moderate:"The combined risks place this area at a moderate risk of homes being lost.",same:"The combined risks place this area at the same risk of Pacific Palisades.",high:"The combination of factors places this area at a high risk of homes being lost.",very_high:"The combined risk factors indicate a very high potential for homes to be lost in this area."}};(0,k.useEffect)((function(){if(r)try{var e=function(e){if(!e||!e.fuel_risk||"number"!==typeof e.fuel_risk.score||!e.fire_risk||"number"!==typeof e.fire_risk.score)throw new Error("Invalid data structure provided.");var r=String(e.fuel_risk.score),t=String(e.fire_risk.score),i=e.urban,n="",s="",o="",c="",d="",h=l.urban[i],u=l.fuel[r],f=l.fire[t],m=parseInt(r),p=parseInt(t),g=m+p;return m>0&&-1==p&&(g=0),g<=-2?(n="Moderate Fire Risk Zone",s="Significantly Safer Area Compared to Pacific Palisades",c=l.conclusion.low):g<0?(n="High Fire Risk Zone",s="Lower Risk Compared to Pacific Palisades",c=l.conclusion.moderate):0===g?(n="Very High Fire Risk Zone",s="Similar Risk Compared to Pacific Palisades",c=l.conclusion.same):g<=2?(n="Extreme Fire Risk Zone",s="Higher Risk Compared to Pacific Palisades",c=l.conclusion.high):(n="Maximum Fire Risk Zone",s="Significantly Higher Risk Compared to Pacific Palisades",c=l.conclusion.very_high),o+="".concat(h," ").concat(u," ").concat(f),"1"!==r&&"2"!==r||"-1"!==t&&"-2"!==t?"-1"!==r&&"-2"!==r||"1"!==t&&"2"!==t||(o+=" ".concat(l.mitigation.low_fuel_high_fire),c="This area is at a higher risk for homes because the high fire risk exacerbates the low fuel risk."):(o+=" ".concat(l.mitigation.high_fuel_low_fire),c="This area is at a lower risk for homes because the low fire risk mitigates the high fuel risk."),o+=" ".concat(c),"L
1os Angeles County"!==a.county&&"Ventura County"!==a.county||(d="Regardless of excuses about budget, weather, or resources, the fire department in your area has a proven history of failure. It is advised that you remain prepared for your residence to be destroyed by fire."),z(z({},e),{},{title:n,headline:s,summary:o,description:"In comparison to Pacific Palisades, which is a Very High Fire Hazard Severity Zone, this report highlights how local vegetation and long-term weather trends influence the fire danger profile of this location.",fire_department:d,totalScore:g})}(r);n(e),c(null)}catch(t){c(t.message),n(null)}else n(null),c(null)}),[r]);var d=function(e){return e<-2&&(e=-2),e>2&&(e=2),e},f=function(e){switch(e=d(e)){case-2:return"#fcd34d";case-1:return"#eab308";case 0:return"#f97316";case 1:return"#dc2626";case 2:return"#7f1d1d";default:return"#cbd5e1"}},m=function(e){switch(e=d(e)){case-2:return"Lower than Pacific Palisades";case-1:return"Slightly Lower than Pacific Palisades";case 0:return"Same as Pacific Palisades";case 1:return"Slightly Higher than Pacific Palisades";case 2:return"Higher than Pacific Palisades";default:return"Unknown"}},x=function(){return i?(0,R.jsxs)(h.Z,{sx:{mb:4},children:[(0,R.jsx)(p.Z,{sx:{bgcolor:f(i.totalScore),color:"white",p:2},children:(0,R.jsxs)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,R.jsxs)(g.Z,{variant:"h5",children:[(0,R.jsx)("strong",{children:"Overall Fire and Fuel Risk:"})," ",m(i.totalScore)]}),(0,R.jsx)(F,{rank:d(i.totalScore)+3})]})}),(0,R.jsx)(u.Z,{children:(0,R.jsxs)(p.Z,{children:[(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Rank:"}),(0,R.jsx)(g.Z,{variant:"body1",gutterBottom:!0,children:(0,R.jsx)("strong",{children:i.title})}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Summary:"}),(0,R.jsx)(g.Z,{variant:"body1",gutterBottom:!0,children:i.headline}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Details:"}),(0,R.jsx)(g.Z,{variant:"body1",children:i.summary}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Prevention and Mitigation:"}),(0,R.jsx)(g.Z,{variant:"body1",children:"The stated purpose of Home Hardening, Defensible Space, and Zone 0 is wildfire protection, but in practice these measures shift accountability away from fire departments and leadership when homes are destroyed. In areas where it has already been proven that the fire department cannot save homes during major fires, compliance becomes the new excuse. If your home burns, the blame will fall on you or your neighbors for not following the new rules, even though evidence shows these measures are largely ineffective. For example, during the 2025 Palisades Fire, fully compliant structures (including modern code compliant homes as well as commerical structures like Ralphs and Gelsins) were destroyed while homes surrounded by ficus survived."}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Recommendation:"}),(0,R.jsx)(g.Z,{variant:"body1",children:"Beyond standard emergency kits, it is recommended to invest in fire hydrant wrenches (if the water has not been shut off), generators (for electricty), pools (for water), pool pumps (to extinguish fires), and gas masks (to breathe) as part of your personal fire defense strategy. In some neighbors, communities have gone further by hiring private fire crews and maintaining dedicated water trucks, emphasizing the lack of confidence in public resources to provide sufficient protection during major fire events."}),i.fire_department&&(0,R.jsxs)(g.Z,{variant:"body1",children:[(0,R.jsx)("br",{}),i.fire_department]})]})}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(D,{city:a.city,county:a.county,rawData:r})]}):null};return(0,R.jsx)("div",{className:"bg-gray-100 min-h-screen p-8 font-sans antialiased text-gray-800",children:(0,R.jsx)("div",{className:"max-w-3xl mx-auto bg-white shadow-xl rounded-xl p-8",children:(0,R.jsxs)(p.Z,{sx:{pt:2},children:[o&&(0,R.jsx)(g.Z,{color:"error",children:o}),i?(0,R.jsx)(x,{}):(0,R.jsx)("p",{children:"Loading report..."})]})})})}var N=a(93997),B=a(84827),U=function(e){switch(e){case 0:default:return"gray";case 1:return"#fcd34d";case 2:return"#eab308";case 3:return"#f97316";case 4:return"#dc2626";case 5:return"#7f1d1d"}},V=function(e){var r=e.codeLocation,a=(0,k.useState)(null),t=a[0],i=a[1],n=(0,k.useState)(!0),s=n[0],o=n[1],c=(0,k.useState)(null),l=c[0],f=c[1];(0,k.useEffect)((function(){var e=function(){var e=(0,y.Z)(w().mark((function e(){var a,t,n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=4;break}return f('No "codeLocation" prop provided.'),o(!1),e.abrupt("return");case 4:return a="https://content.firerebuild.com/data/fveg/risk/".concat(r,".json?00001"),o(!0),e.prev=6,e.next=9,fetch(a);case 9:if((t=e.sent).ok){e.next=12;break}throw new Error("HTTP error! status: ".concat(t.status));case 12:return e.next=14,t.json();case 14:n=e.sent,i(n),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(6),console.error("Could not load data:",e.t0),f("Failed to load data. Please ensure the file exists at: ".concat(a));case 22:return e.prev=22,o(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[6,18,22,25]])})));return function(){return e.apply(this,arguments)}}();e()}),[r]);return(0,R.jsx)(p.Z,{sx:{p:{xs:2,sm:4},maxWidth:1200,mx:"auto",my:4},children:s?(0,R.jsxs)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"},children:[(0,R.jsx)(B.Z,{}),(0,R.jsx)(g.Z,{variant:"h6",sx:{ml:2},children:"Loading data..."})]}):l?(0,R.jsx)(p.Z,{sx:{textAlign:"center",color:"error.main",mt:4},children:(0,R.jsx)(g.Z,{variant:"body1",fontWeight:"bold",children:l})}):t&&0!==t.length?(0,R.jsx)(N.ZP,{container:!0,spacing:4,children:t.map((function(e,r){return(0,R.jsx)(N.ZP,{item:!0,xs:12,sm:6,md:6,sx:{width:"100%"},children:(0,R.jsx)(h.Z,{component:d.Z,elevation:3,sx:{height:"100%",display:"flex",flexDirection:"column",transition:"transform 0.2s","&:hover":{transform:"scale(1.01)"}},children:(0,R.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",boxSizing:"border-box"},children:[(0,R.jsxs)(p.Z,{children:[(0,R.jsxs)(p.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{sm:"center"},justifyContent:"space-between",width:"100%"},children:[(0,R.jsxs)(g.Z,{variant:"h5",component:"h2",fontWeight:"bold",sx:{mb:{xs:1,sm:0}},children:[(a=e.category,null===a||""===a?"":(a=a.toLowerCase()).charAt(0).toUpperCase()+a.slice(1)),": ",e.name]}),(0,R.jsxs)(g.Z,{variant:"h6",color:"text.secondary",sx:{flexShrink:0},children:["Distance: ",e.miles," miles"]})]}),(0,R.jsx)(g.Z,{variant:"body2",color:"text.secondary",sx:{mt:1,overflowWrap:"break-word"},children:e.desc})]}),(0,R.jsxs)(p.Z,{sx:{mt:"auto",pt:2,borderTop:1,borderColor:"divider",display:"flex",alignItems:"center",spacing:2},children:[(0,R.jsx)(p.Z,{sx:{width:24,height:24,borderRadius:"50%",backgroundColor:U(e.value),mr:2,flexShrink:0,boxSizing:"border-box"}}
1),(0,R.jsxs)(g.Z,{variant:"body2",color:"text.primary",sx:{display:"flex",alignItems:"center"},children:["Risk: ",e.risk]})]})]})})},r);var a}))}):(0,R.jsx)(p.Z,{sx:{textAlign:"center",color:"text.secondary",mt:4},children:(0,R.jsx)(g.Z,{variant:"h6",children:"No data available."})})})},W=a(80542),q=a(60390),X=a(82773),Y=a(36077),G=a(69611),K=a(23508),$=a(75503),J=a(90813);function Q(){var e=(0,k.useState)(!1),r=e[0],a=e[1],t=(0,k.useState)(!1),i=t[0],n=t[1],s=function(){a(!r)},o=function(){n(!i)};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(p.Z,{sx:{mb:1},children:(0,R.jsxs)(h.Z,{sx:{mb:1},children:[(0,R.jsx)(p.Z,{onClick:s,sx:{bgcolor:"gray",color:"white",p:2},children:(0,R.jsxs)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,R.jsx)(g.Z,{variant:"h5",children:(0,R.jsx)("strong",{children:"Executive Summary"})}),(0,R.jsx)(G.Z,{onClick:s,"aria-expanded":r,"aria-label":"toggle executive summary",sx:{color:"white"},children:r?(0,R.jsx)(J.Z,{}):(0,R.jsx)($.Z,{})})]})}),(0,R.jsx)(Y.Z,{in:r,timeout:"auto",unmountOnExit:!0,children:(0,R.jsx)(u.Z,{children:(0,R.jsxs)(g.Z,{variant:"body1",paragraph:!0,children:["If the burning of Pacific Palisades is excused because it is in a Very High Risk Fire Zone, how does your location compare?",(0,R.jsx)("br",{}),"Find out whether your home is part of the majority of California facing an even greater fire risk than Pacific Palisades."]})})})]})}),(0,R.jsx)(p.Z,{sx:{mb:1},children:(0,R.jsxs)(h.Z,{sx:{mb:1},children:[(0,R.jsx)(p.Z,{onClick:o,sx:{bgcolor:"gray",color:"white",p:2},children:(0,R.jsxs)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,R.jsx)(g.Z,{variant:"h5",children:(0,R.jsx)("strong",{children:"Detailed Summary"})}),(0,R.jsx)(G.Z,{onClick:o,"aria-expanded":i,"aria-label":"toggle detailed summary",sx:{color:"white"},children:i?(0,R.jsx)(J.Z,{}):(0,R.jsx)($.Z,{})})]})}),(0,R.jsx)(Y.Z,{in:i,timeout:"auto",unmountOnExit:!0,children:(0,R.jsxs)(u.Z,{children:[(0,R.jsxs)(g.Z,{variant:"body1",paragraph:!0,children:["Pacific Palisades is officially classified as a ",(0,R.jsx)("strong",{children:"Very High Fire Hazard Severity Zone"})," by California Department of Forestry and Fire Protection (CAL FIRE) and a ",(0,R.jsx)("strong",{children:"Very High Fire Risk Zone"})," by the California Public Utilities Commission. This assessment is made based on historical weather and fire risk conditions as well as fuel (vegetation) and terrain of the area. Communities in this range are at a significant and constant threat of being destroyed by a wildfire."]}),(0,R.jsxs)(g.Z,{variant:"body1",paragraph:!0,children:["This terrifying reality is not unique to Pacific Palisades. In fact, when Pacific Palisades is used as a benchmark for fire risk, ",(0,R.jsx)("strong",{children:"the majority of California's residential areas face an equally high or even higher risk of being destroyed by fire."})]}),(0,R.jsx)(g.Z,{variant:"body1",paragraph:!0,children:"This application was created to give residents and communities across California a clear, data-driven comparison of wildfire risk. It enables users to:"}),(0,R.jsxs)(p.Z,{component:"ul",sx:{pl:3,mb:3},children:[(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body1",children:[(0,R.jsx)("strong",{children:"Check your fire risk"})," anywhere in California."]})}),(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body1",children:[(0,R.jsx)("strong",{children:"Compare your community\u2019s conditions"})," directly to Pacific Palisades."]})}),(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body1",children:[(0,R.jsx)("strong",{children:"Understand both fire and fuel risks"})," that contribute to overall wildfire danger."]})})]}),(0,R.jsx)(g.Z,{variant:"body1",paragraph:!0,children:"By translating complex wildfire data into an accessible comparative analysis, this tool empowers individuals and communities to stay informed, plan effectively, and build resilience in the face of California\u2019s growing wildfire threat."}),(0,R.jsxs)(W.Z,{sx:{mt:4},children:[(0,R.jsx)(X.Z,{expandIcon:(0,R.jsx)(K.Z,{}),children:(0,R.jsx)(g.Z,{variant:"h6",children:"More Details (How it Works)"})}),(0,R.jsxs)(q.Z,{children:[(0,R.jsx)(g.Z,{variant:"body2",paragraph:!0,children:"The app uses a comprehensive, data-driven approach to assess risk:"}),(0,R.jsxs)(p.Z,{component:"ol",sx:{pl:3},children:[(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body2",paragraph:!0,children:[(0,R.jsx)("strong",{children:"Fire Risk Metrics"}),": Core values like the Burning Index (BI), Energy Release Component (ERC), Reference Evapotranspiration (ETR), 100 Hour Dead Fuel Moisture (FM100), 1000 Hour Dead Fuel Moisture (FM1000), Maximum Relative Humidity (RMAX), Minimum Relative Humidity (RMIN), Specific Humidity (SPH), Potential Evapotranspiration (PET), and Mean Vapor Pressure Deficit (VPD) were measured in Pacific Palisades leading up to the fire."]})}),(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body2",paragraph:!0,children:[(0,R.jsx)("strong",{children:"Historical Context"}),": These values were compared against 17,013 days of historical data for Pacific Palisades, defining the threshold of a \u201cVery High Fire Hazard Severity Zone.\u201d"]})}),(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body2",paragraph:!0,children:[(0,R.jsx)("strong",{children:"Statewide Analysis"}),": This baseline was then compared with over 24,000 locations across California to place local conditions in context."]})}),(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body2",paragraph:!0,children:[(0,R.jsx)("strong",{children:"Fuel & Brush Mapping"}),": California wide vegetation data was analyzed alongside Pacific Palisades fuel conditions."]})}),(0,R.jsx)("li",{children:(0,R.jsxs)(g.Z,{variant:"body2",paragraph:!0,children:[(0,R.jsx)("strong",{children:"Final Risk Score"}),": By combining fire risk metrics with fuel mapping, the app provides a location-specific fire and fuel risk profile relative to Pacific Palisades."]})})]}),(0,R.jsx)(g.Z,{variant:"body2",sx:{pb:0},paragraph:!0,children:(0,R.jsx)("strong",{children:"Source"})}),(0,R.jsxs)(g.Z,{variant:"body2",sx:{pl:2,mt:-1},paragraph:!0,children:["Source data for fire risk is available at: https://www.climatologylab.org/gridmet.html",(0,R.jsx)("br",{}),"Source data for fuel and vegetation is available at: https://map.dfg.ca.gov/metadata/ds1327.html"]})]})]})]})})]})})]})}var ee=["Moderate Fire Risk Zone","High Fire Risk Zone","Very High Fire Risk Zone","Extreme Fire Risk Zone","Maximum Fire Risk Zone"];function re(e,r){var a=.5;return e===r&&(a=1),a}function ae(e,r){var a=100;return e===r&&(a=600),a}function te(e){var r=e.value,a=void 0===r?0:r,t=e.height,i=void 0===t?28:t,n=e.showLabels,s=void 0===n||n,o=function(e){var r;return(e=Math.round(e))<21?r=0:e>=21&&e<40?r=1:e>=41&&e<60?r=2:e>=61&&e<80?r=3:e>=81&&e<=100&&(r=4),r}(a),c=function(e){var r=["#fcd34d","#eab308","#f97316","#dc2626","#7f1d1d"],a=r.map((function(r,a){var t=a===e?"FF":"80";return"".concat(r).concat(t)}));return e<0||e>=r.length?r.map((function(e,r){var a=0===r?"FF":"80";return"".concat(e).concat(a)}
1)):a}(o),l=function(){if(null===a||void 0===a)return 0;var e=Number(a);return Number.isNaN(e)?0:e>=0&&e<=100?e:e>=1&&e<=5?(e-1)/4*100:Math.max(0,Math.min(100,e))}(),d="".concat(l.toFixed(2),"%");return(0,R.jsxs)(p.Z,{sx:{width:"100%",height:"72px",position:"relative",userSelect:"none"},children:[(0,R.jsx)(p.Z,{sx:{display:"flex",mt:"".concat(Math.max(8,Math.round(i/4))+24,"px"),gap:0,justifyContent:"space-between",px:.25},children:ee.map((function(e,r){return(0,R.jsx)(p.Z,{sx:{flex:1,textAlign:"center"},children:(0,R.jsx)(g.Z,{variant:"caption",sx:{opacity:re(r,o),fontWeight:ae(r,o)},children:e})},e)}))}),(0,R.jsx)(p.Z,{sx:{height:"".concat(i,"px"),display:"flex",borderRadius:2,overflow:"hidden",boxShadow:1,border:"1px solid rgba(0,0,0,0.00)"},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(l),children:c.map((function(e,r){return(0,R.jsx)(p.Z,{sx:{flex:1,bgcolor:e,minWidth:0}},r)}))}),(0,R.jsxs)(p.Z,{sx:{position:"absolute",left:"".concat(l,"%"),top:"calc(".concat(i,"px + 23px)"),transform:"translateX(-50%)",display:"flex",alignItems:"center",flexDirection:"column",pointerEvents:"none"},"aria-hidden":!s,children:[(0,R.jsx)(p.Z,{sx:{width:0,height:0,borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderBottom:"0px solid transparent",borderTop:"".concat(Math.max(8,Math.round(i/4)),"px solid rgba(0,0,0,0.85)")}}),s&&(0,R.jsx)(g.Z,{variant:"caption",sx:{mt:.5,fontWeight:600,bgcolor:"transparent",whiteSpace:"nowrap"},children:d})]})]})}function ie(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function ne(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?ie(Object(a),!0).forEach((function(r){(0,x.Z)(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ie(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function se(e){var r=e.rawData,a=(e.locationData,(0,k.useState)(null)),t=a[0],i=a[1],n=(0,k.useState)(null),s=n[0],o=n[1],c={urban:{true:"This area is within a defined urban zone,",false:"This is a non-urban area,"},fuel:{"-2":"and has significantly less fire-prone vegetation, greatly reducing the risk of fire spreading.","-1":"and has lower fuel hazards, which helps to mitigate fire risk.",0:"and has similar vegetation hazards to Pacific Palisades, presenting a comparable risk of fire spread.",1:"and has a high concentration of hazardous vegetation, making it more susceptible to a fast-moving fire.",2:"and has an extreme abundance of fire-prone vegetation, creating a very high risk of homes being lost."},fire:{"-2":"Historical data and weather conditions indicate a much lower overall fire risk.","-1":"Historical data and weather conditions point to a lower overall fire risk.",0:"Historical data and weather conditions show a fire risk comparable to Pacific Palisades.",1:"Historical data and weather conditions suggest a higher overall fire risk.",2:"Historical data and weather conditions indicate an extreme overall fire risk."},mitigation:{high_fuel_low_fire:"However, a lower overall fire risk due to historical weather and climate patterns helps to mitigate the danger to homes.",low_fuel_high_fire:"However, a higher overall fire risk due to historical weather and climate patterns suggests that homes may still be at risk, despite the lower fuel load."},conclusion:{low:"Overall, the risk to homes in this area is considered low.",moderate:"The combined risks place this area at a moderate risk of homes being lost.",same:"The combined risks place this area at the same risk of Pacific Palisades.",high:"The combination of factors places this area at a high risk of homes being lost.",very_high:"The combined risk factors indicate a very high potential for homes to be lost in this area."}},l={fire_rank:{"-2":"Moderate","-1":"High",0:"Very High",1:"Extreme",2:"Maximum"},fire_summary:{"-2":"Historical data and weather conditions indicate a much lower overall fire risk than Pacific Palisades.","-1":"Historical data and weather conditions point to a lower overall fire risk than Pacific Palisades.",0:"Historical data and weather conditions show a fire risk comparable to Pacific Palisades.",1:"Historical data and weather conditions suggest a higher overall fire risk than Pacific Palisades.",2:"Historical data and weather conditions indicate an extreme overall fire risk than Pacific Palisades."},fuel_rank:{"-2":"Moderate","-1":"High",0:"Very High",1:"Extreme",2:"Maximum"},fuel_summary:{"-2":"This area has significantly less fire-prone vegetation, greatly reducing the risk of fire spreading.","-1":"This area has lower fuel hazards, which helps to mitigate fire risk.",0:"This area has similar vegetation hazards to Pacific Palisades, presenting a comparable risk of fire spread.",1:"This area has a high concentration of hazardous vegetation, making it more susceptible to a fast-moving fire.",2:"This area has an extreme abundance of fire-prone vegetation, creating a very high risk of homes being lost."}},d=function(e,r){var a=e.order/e.total*20;switch(r){case-2:a+=0;break;case-1:a+=20;break;case 0:a+=40;break;case 1:a+=60;break;case 2:a+=80}return a};(0,k.useEffect)((function(){if(r)try{var e=function(e){if(!e||!e.fuel_risk||"number"!==typeof e.fuel_risk.score||!e.fire_risk||"number"!==typeof e.fire_risk.score)throw new Error("Invalid data structure provided.");var r=String(e.fuel_risk.score),a=String(e.fire_risk.score),t=e.urban,i="",n="",s="",o="",l=c.urban[t],d=c.fuel[r],h=c.fire[a],u=parseInt(r),f=parseInt(a),m=u+f;return u>0&&-1==f&&(m=0),m<=-2?(i="Moderate Fire Risk Zone",n="Significantly Safer Area Compared to Pacific Palisades",o=c.conclusion.low):m<0?(i="High Fire Risk Zone",n="Lower Risk Compared to Pacific Palisades",o=c.conclusion.moderate):0===m?(i="Very High Fire Risk Zone",n="Similar Risk Compared to Pacific Palisades",o=c.conclusion.same):m<=2?(i="Extreme Fire Risk Zone",n="Higher Risk Compared to Pacific Palisades",o=c.conclusion.high):(i="Maximum Fire Risk Zone",n="Significantly Higher Risk Compared to Pacific Palisades",o=c.conclusion.very_high),s+="".concat(l," ").concat(d," ").concat(h),"1"!==r&&"2"!==r||"-1"!==a&&"-2"!==a?"-1"!==r&&"-2"!==r||"1"!==a&&"2"!==a||(s+=" ".concat(c.mitigation.low_fuel_high_fire),o="This area is at a higher risk for homes because the high fire risk exacerbates the low fuel risk."):(s+=" ".concat(c.mitigation.high_fuel_low_fire),o="This area is at a lower risk for homes because the low fire risk mitigates the high fuel risk."),s+=" ".concat(o),ne(ne({},e),{},{title:i,headline:n,summary:s,description:"In comparison to Pacific Palisades, which is a Very High Fire Hazard Severity Zone, this report highlights how local vegetation and long-term weather trends influence the fire danger profile of this location.",totalScore:m})}(r);i(e),o(null)}catch(a){o(a.message),i(null)}else i(null),o(null)}),[r]);var f=r,m=function(e){switch(e){case-2:return"#fcd34d";case-1:return"#eab308";case 0:return"#f97316";case 1:return"#dc2626";case 2:return"#7f1d1d";default:return"#cbd5e1"}},x=function(e){switch(e){case-2:return"Lower than Pacific Palisades";case-1:return"Slightly Lower than Pacific Palisades";case 0:return"Same as Pacific Palisades";case 1:return"Slightly Higher than Pacific Palisades";case 2:return"Higher than Pacific Palisades";default:return"Unknown"}},b=function(){return t?(0,R.jsxs)(h.Z,{sx:{mb:4},children:[(0,R.jsx)(p.Z,{sx:{bgcolor:m(t.fire_risk.score),color:"white",p:2},children:(0,R.jsxs)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,R.jsxs)(g.Z,{variant:"h5",children:[(0,R.jsx)("strong",{children:"Historical Fire Risk: "})," ",x(t.fire_risk.score)]}),(0,R.jsx)(F,{rank:t.fire_risk.score+3})]})}),(0,R.jsx)(u.Z,{children:(0,R.jsxs)(p.Z,{children:[(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Rank:"}),(0,R.jsx)(g.Z,{variant:"body1",gutterBottom:!0,children:l.fire_rank[f.fire_risk.score]}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Summary:"}),(0,R.jsx)(g.Z,{variant:"body1",gutterBottom:!0,children:l.fire_summary[t.fire_risk.score]}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Details:"}),(0,R.jsxs)(g.Z,{variant:"body1",children:["The historical fire risk rating is determined through a detailed comparative analysis of the selected location and Pacific Palisades, spanning a 46 year period. This analysis evaluates 10 fire risk metrics to assess if conditions were less than, equal to, or greater than those in Pacific Palisades over this time frame.",(0,R.jsx)("br",{}),(0,R.jsx)("br",{}),"The metrics used in this analysis are:",(0,R.jsx)("br",{}),"Burning Index (BI), Energy Release Component (ERC), Reference Evapotranspiration (ETR), 100 Hour Dead Fuel Moisture (FM100), 1000 Hour Dead Fuel Moisture (FM1000), Maximum Relative Humidity (RMAX), Minimum Relative Humidity (RMIN), Specific Humidity (SPH), Potential Evapotranspiration (PET), and Mean Vapor Pressure Deficit (VPD).",(0,R.jsx)("br",{}),(0,R.jsx)("br",{}),'The grey dotted line seen on the charts represent the "unprecedented" conditions last recorded before the 2025 Palisades Fire.']})]})}),(0,R.jsx)(u.Z,{sx:{bgcolor:"white"},children:(0,R.jsx)(te,{value:d(t.fire_risk.ranks.all,t.fire_risk.score),showLabels:!0,height:10})})]}):null};return(0,R.jsx)("div",{className:"bg-gray-100 min-h-screen p-8 font-sans antialiased text-gray-800",children:(0,R.jsx)("div",{className:"max-w-3xl mx-auto bg-white shadow-xl rounded-xl p-8",children:(0,R.jsxs)(p.Z,{sx:{pt:2},children:[s&&(0,R.jsx)(g.Z,{color:"error",children:s}),t?(0,R.jsx)(b,{}):(0,R.jsx)("p",{children:"Loading report..."})]})})})}var oe=(0,_.Z)({components:{MuiRating:{styleOverrides:{icon:{color:"var(--icon-color)"}},defaultProps:{icon:(0,R.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",fill:"currentColor",children:(0,R.jsx)("path",{d:"M16 2h-4l-2 2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6l-3-4zm-4 14a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})}),emptyIcon:(0,R.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",fill:"none",stroke:"currentColor",children:(0,R.jsx)("path",{d:"M16 2h-4l-2 2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6l-3-4zm-4 14a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})})}}}}),ce=function(e){var r=function(e){var r={};return["SHRUB","HERBACEOUS","HARDWOOD","CONIFER"].forEach((function(a){var t=e.fuel_risk.data.filter((function(e){return e.category===a})).sort((function(e,r){return r.value!==e.value?r.value-e.value:e.miles-r.miles})),i=t.reduce((function(e,r){return Math.max(e,r.value)}),0);r[a]={rank:i,details:t.map((function(e){return{name:e.name,miles:e.miles,value:e.value}}))}})),r}(e.data),a={1:"#fcd34d",2:"#eab308",3:"#f97316",4:"#dc2626",5:"#7f1d1d"},t=(0,v.Z)("(max-width:1440px)"),i=t?"48%":"24%",n=t?"0 0 48%":"0 0 24%",s=function(e){return(0,R.jsx)(N.ZP,{item:!0,sx:{flex:n,maxWidth:i,p:2},children:(0,R.jsxs)(d.Z,{className:"p-6 bg-gray-700 rounded-xl shadow-inner border border-gray-600 h-full flex flex-col items-center justify-center text-center",sx:{width:"100%",p:2},children:[(0,R.jsx)(g.Z,{variant:"h6",className:"text-md font-bold mb-2 text-orange-300",children:(t=e,null===t||""===t?"":(t=t.toLowerCase()).charAt(0).toUpperCase()+t.slice(1))}),(0,R.jsx)(C.Z,{name:"rating-".concat(e),value:r[e].rank,readOnly:!0,size:"large",sx:{"--icon-color":a[r[e].rank]}})]})},e);var t};return(0,R.jsx)(H.Z,{theme:oe,children:t?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(N.ZP,{container:!0,spacing:1,justifyContent:"left",alignItems:"stretch",className:"mt-2",children:[s("SHRUB"),s("HERBACEOUS")]}),(0,R.jsxs)(N.ZP,{container:!0,spacing:1,justifyContent:"left",alignItems:"stretch",className:"mt-2",children:[s("HARDWOOD"),s("CONIFER")]})]}):(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)(N.ZP,{container:!0,spacing:1,justifyContent:"left",alignItems:"stretch",className:"mt-2",children:[s("SHRUB"),s("HERBACEOUS"),s("HARDWOOD"),s("CONIFER")]})})})};function le(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function de(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};
1r%2?le(Object(a),!0).forEach((function(r){(0,x.Z)(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):le(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function he(e){var r=e.rawData,a=(e.locationData,(0,k.useState)(null)),t=a[0],i=a[1],n=(0,k.useState)(null),s=n[0],o=n[1],c={urban:{true:"This area is within a defined urban zone,",false:"This is a non-urban area,"},fuel:{"-2":"and has significantly less fire-prone vegetation, greatly reducing the risk of fire spreading.","-1":"and has lower fuel hazards, which helps to mitigate fire risk.",0:"and has similar vegetation hazards to Pacific Palisades, presenting a comparable risk of fire spread.",1:"and has a high concentration of hazardous vegetation, making it more susceptible to a fast-moving fire.",2:"and has an extreme abundance of fire-prone vegetation, creating a very high risk of homes being lost."},fire:{"-2":"Historical data and weather conditions indicate a much lower overall fire risk.","-1":"Historical data and weather conditions point to a lower overall fire risk.",0:"Historical data and weather conditions show a fire risk comparable to Pacific Palisades.",1:"Historical data and weather conditions suggest a higher overall fire risk.",2:"Historical data and weather conditions indicate an extreme overall fire risk."},mitigation:{high_fuel_low_fire:"However, a lower overall fire risk due to historical weather and climate patterns helps to mitigate the danger to homes.",low_fuel_high_fire:"However, a higher overall fire risk due to historical weather and climate patterns suggests that homes may still be at risk, despite the lower fuel load."},conclusion:{low:"Overall, the risk to homes in this area is considered low.",moderate:"The combined risks place this area at a moderate risk of homes being lost.",same:"The combined risks place this area at the same risk of Pacific Palisades.",high:"The combination of factors places this area at a high risk of homes being lost.",very_high:"The combined risk factors indicate a very high potential for homes to be lost in this area."}},l={fire_rank:{"-2":"Moderate","-1":"High",0:"Very High",1:"Extreme",2:"Maximum"},fire_summary:{"-2":"Historical data and weather conditions indicate a much lower overall fire risk than Pacific Palisades.","-1":"Historical data and weather conditions point to a lower overall fire risk than Pacific Palisades.",0:"Historical data and weather conditions show a fire risk comparable to Pacific Palisades.",1:"Historical data and weather conditions suggest a higher overall fire risk than Pacific Palisades.",2:"Historical data and weather conditions indicate an extreme overall fire risk than Pacific Palisades."},fuel_rank:{"-2":"Moderate","-1":"High",0:"Very High",1:"Extreme",2:"Maximum"},fuel_summary:{"-2":"This area has significantly less fire-prone vegetation, greatly reducing the risk of fire spreading.","-1":"This area has lower fuel hazards, which helps to mitigate fire risk.",0:"This area has similar vegetation hazards to Pacific Palisades, presenting a comparable risk of fire spread.",1:"This area has a high concentration of hazardous vegetation, making it more susceptible to a fast-moving fire.",2:"This area has an extreme abundance of fire-prone vegetation, creating a very high risk of homes being lost."}},d=function(e){var r={5:{label:"Very High Risk",items:[]},4:{label:"High Risk",items:[]},3:{label:"Moderate Risk",items:[]},2:{label:"Low Risk",items:[]},1:{label:"No Risk",items:[]}};e.filter((function(e){return"URBAN"!==e.category})).forEach((function(e){r[e.value]&&r[e.value].items.push(e)}));return(0,R.jsx)(p.Z,{children:[5,4,3,2,1].map((function(e){var a=r[e];if(a.items.length>0){var t=a.items.map((function(e){if("BARREN/OTHER"===e.category)return e.name;var r=e.category.charAt(0).toUpperCase()+e.category.slice(1).toLowerCase();return"".concat(e.name," (").concat(r,")")})).join(", ");return(0,R.jsx)(p.Z,{sx:{mb:0},children:(0,R.jsxs)(g.Z,{variant:"body1",children:[(0,R.jsxs)("strong",{children:[a.label,":"]}
1)," ",t]})},e)}return null}))})};(0,k.useEffect)((function(){if(r)try{var e=function(e){if(!e||!e.fuel_risk||"number"!==typeof e.fuel_risk.score||!e.fire_risk||"number"!==typeof e.fire_risk.score)throw new Error("Invalid data structure provided.");var r=String(e.fuel_risk.score),a=String(e.fire_risk.score),t=e.urban,i="",n="",s="",o="",l=c.urban[t],d=c.fuel[r],h=c.fire[a],u=parseInt(r)+parseInt(a);return u<=-2?(i="Moderate Fire Risk Zone",n="Significantly Safer Area Compared to Pacific Palisades",o=c.conclusion.low):u<0?(i="High Fire Risk Zone",n="Lower Risk Compared to Pacific Palisades",o=c.conclusion.moderate):0===u?(i="Very High Fire Risk Zone",n="Similar Risk Compared to Pacific Palisades",o=c.conclusion.same):u<=2?(i="Extreme Fire Risk Zone",n="Higher Risk Compared to Pacific Palisades",o=c.conclusion.high):(i="Maximum Fire Risk Zone",n="Significantly Higher Risk Compared to Pacific Palisades",o=c.conclusion.very_high),s+="".concat(l," ").concat(d," ").concat(h),"1"!==r&&"2"!==r||"-1"!==a&&"-2"!==a?"-1"!==r&&"-2"!==r||"1"!==a&&"2"!==a||(s+=" ".concat(c.mitigation.low_fuel_high_fire),o="This area is at a higher risk for homes because the high fire risk exacerbates the low fuel risk."):(s+=" ".concat(c.mitigation.high_fuel_low_fire),o="This area is at a lower risk for homes because the low fire risk mitigates the high fuel risk."),s+=" ".concat(o),de(de({},e),{},{title:i,headline:n,summary:s,description:"In comparison to Pacific Palisades, which is a Very High Fire Hazard Severity Zone, this report highlights how local vegetation and long-term weather trends influence the fire danger profile of this location.",totalScore:u})}(r);i(e),o(null)}catch(a){o(a.message),i(null)}else i(null),o(null)}),[r]);var f=r,m=function(e){switch(e){case-2:return"#fcd34d";case-1:return"#eab308";case 0:return"#f97316";case 1:return"#dc2626";case 2:return"#7f1d1d";default:return"#cbd5e1"}},x=function(e){switch(e){case-2:return"Lower than Pacific Palisades";case-1:return"Slightly Lower than Pacific Palisades";case 0:return"Same as Pacific Palisades";case 1:return"Slightly Higher than Pacific Palisades";case 2:return"Higher than Pacific Palisades";default:return"Unknown"}},b=function(){return t?(0,R.jsxs)(h.Z,{sx:{mb:4},children:[(0,R.jsx)(p.Z,{sx:{bgcolor:m(t.fuel_risk.score),color:"white",p:2},children:(0,R.jsxs)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,R.jsxs)(g.Z,{variant:"h5",children:[(0,R.jsx)("strong",{children:"Vegetation & Fuel Risk:"})," ",x(t.fuel_risk.score)]}),(0,R.jsx)(F,{rank:t.fuel_risk.score+3})]})}),(0,R.jsx)(u.Z,{children:(0,R.jsxs)(p.Z,{children:[(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Rank:"}),(0,R.jsx)(g.Z,{variant:"body1",gutterBottom:!0,children:l.fuel_rank[f.fuel_risk.score]}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Summary:"}),(0,R.jsx)(g.Z,{variant:"body1",gutterBottom:!0,children:l.fuel_summary[t.fuel_risk.score]}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(g.Z,{variant:"h6",color:"text.secondary",children:"Details:"}),(0,R.jsxs)(g.Z,{variant:"body1",children:["This area contains the following fuel risks:",d(t.fuel_risk.data)]})]})}),(0,R.jsx)(S.Z,{sx:{mb:2}}),(0,R.jsx)(u.Z,{sx:{bgcolor:"white"},children:(0,R.jsx)(ce,{data:f})})]}):null};return(0,R.jsx)("div",{className:"bg-gray-100 min-h-screen p-8 font-sans antialiased text-gray-800",children:(0,R.jsx)("div",{className:"max-w-3xl mx-auto bg-white shadow-xl rounded-xl p-8",children:(0,R.jsxs)(p.Z,{sx:{pt:2},children:[s&&(0,R.jsx)(g.Z,{color:"error",children:s}),t?(0,R.jsx)(b,{}):(0,R.jsx)("p",{children:"Loading report..."})]})})})}function ue(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function fe(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?ue(Object(a),!0).forEach((function(r){(0,x.Z)(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ue(Object(a)).forEac
1h((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function me(e,r){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,r){if(!e)return;if("string"===typeof e)return pe(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return pe(e,r)}(e))||r&&e&&"number"===typeof e.length){a&&(e=a);var t=0,i=function(){};return{s:i,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){o=!0,n=e},f:function(){try{s||null==a.return||a.return()}finally{if(o)throw n}}}}function pe(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var ge="AIzaSyC_j9tMBT-IjQkmPp886oU5XCYww14XNtI",xe="https://content.firerebuild.com",be="".concat(xe,"/burn-check/data/codes"),ye="".concat(xe,"/data/report/fveg-gridmet"),ve="".concat("https://app.firerebuild.com","/fire-risk-zone-embed/fire-environment-mapping/embed.html"),je=["A","B","C","D","E","F","G","H","I","J"],we=function(e,r,a,t){var i=function(e){return e*Math.PI/180},n=i(a-e),s=i(t-r),o=Math.pow(Math.sin(n/2),2)+Math.cos(i(e))*Math.cos(i(a))*Math.pow(Math.sin(s/2),2);return 12742*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},ke=function(e){var r=e.group,a=void 0===r?null:r,x=e.code,j=void 0===x?null:x,S=e.currentLocation,C=void 0===S?null:S,_=e.currentCity,H=void 0===_?null:_,O=e.currentCounty,F=void 0===O?null:O,M=(e.onRouteUpdate,(0,k.useState)("")),T=M[0],E=M[1],I=(0,k.useState)(""),D=I[0],A=I[1],z=(0,k.useState)([]),N=z[0],B=z[1],U=(0,k.useState)(null),W=U[0],q=U[1],X=(0,k.useState)(null),Y=X[0],G=X[1],K=(0,k.useState)(!1),$=(K[0],K[1]),J=(0,k.useState)(0),ee=J[0],re=J[1],ae=(0,k.useState)(null),te=ae[0],ie=ae[1],ne=(0,k.useRef)(null),oe=(0,k.useRef)(null),ce=(0,k.useRef)(null),le=(0,k.useRef)(null),de=(0,k.useRef)({user:null,circle:null,codes:[]}),ue=(0,k.useState)(null),pe=(ue[0],ue[1],(0,v.Z)("(max-width:1100px)")),xe=(0,k.useState)(!1),ke=xe[0],Ze=xe[1];(0,k.useEffect)((function(){Ze(!0)}),[]);var Pe=(0,k.useState)(""),Se=Pe[0],Ce=Pe[1],_e=(0,k.useState)(!1),He=_e[0],Re=_e[1],Oe=(0,k.useMemo)((function(){var e=Math.floor(9*Math.random())+1,r=Math.floor(9*Math.random())+1;return{q:"Solve: ".concat(e," + ").concat(r," = ?"),a:(e+r).toString()}}),[]);(0,k.useEffect)((function(){}),[]),(0,k.useEffect)((function(){var e=function(){le.current=new window.google.maps.Map(ne.current,{center:{lat:34.0321,lng:-118.7831},zoom:11,fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,zoomControl:!0});var e=new window.google.maps.LatLngBounds(new window.google.maps.LatLng(32.5343,-124.482),new window.google.maps.LatLng(42.0095,-114.1312));oe.current=new window.google.maps.places.Autocomplete(ce.current,{bounds:e,strictBounds:!0,componentRestrictions:{country:["us"]},types:["address"],fields:["address_components","formatted_address","geometry","name"]}),oe.current.addListener("place_changed",(function(){var e=oe.current.getPlace();e.geometry?(E(e.formatted_address),Fe(e),Me(e.geometry.location.lat(),e.geometry.location.lng())):A("No details for: '".concat(e.name,"'"))}))},r=document.createElement("script");r.src="https://maps.googleapis.com/maps/api/js?key=".concat(ge,"&libraries=places"),r.async=!0,r.onload=e;var t=window.location.pathname.split("/").filter(Boolean),i=t[t.length-1],n=new URLSearchParams(window.location.search).get("code");if("gavin"===i||"gavin"===n){var s=function(){var e=(0,y.Z)(w().mark((function e(){var r,a,t,i,n,s,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,E(r="224 Woodland Rd, Kentfield, CA 94904, USA"),a="https://maps.googleapis.com/ma
1ps/api/geocode/json?address=".concat(encodeURIComponent(r),"&key=").concat(ge),e.next=6,fetch(a);case 6:return t=e.sent,e.next=9,t.json();case 9:"OK"===(i=e.sent).status&&i.results.length>0?(n=i.results[0].geometry.location,s=i.results[0],E(s.formatted_address),Fe(s),Me(n.lat,n.lng),o={code:"L24B7",lat:n.lat,lon:n.lng},Te(o)):console.error("Geocoding failed for preloaded address."),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.error("Failed to preload data for gavin:",e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}();r.onload=function(){e(),s()}}if(j){var o=function(){var e=(0,y.Z)(w().mark((function e(){var r,t,i,n,s,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(be,"/").concat(a,".json"),e.next=3,fetch(r);case 3:return t=e.sent,e.next=6,t.json();case 6:i=e.sent,n=i.find((function(e){return e.code===j}));try{s=C,o={code:j,lat:n.lat,lon:n.lon},Te(o),Fe(null),E(s)}catch(c){console.error("Failed to preload data for gavin:",c)}case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();r.onload=function(){e(),o()}}return document.head.appendChild(r),function(){return document.head.removeChild(r)}}),[]);var Fe=function(){var e=(0,y.Z)(w().mark((function e(r){var a,t,i,n,s,o,c,l,d;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a="",t="",H&&F)a=H,t=F;else{i=r.address_components,n=me(i);try{for(n.s();!(s=n.n()).done;)(o=s.value).types.includes("locality")&&(a=o.long_name),o.types.includes("administrative_area_level_2")&&(t=o.long_name)}catch(h){n.e(h)}finally{n.f()}if(""===a){c=me(i);try{for(c.s();!(l=c.n()).done;)(d=l.value).types.includes("neighborhood")&&(a=d.long_name)}catch(h){c.e(h)}finally{c.f()}}""===a&&(a="Unknown")}ie({city:a,county:t});case 4:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),Me=function(){var e=(0,y.Z)(w().mark((function e(r,a){var t,i,n,s,o,c,l,d,h,u,f,m,p,g,x,v,j;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(A("Searching..."),B([]),q(null),G(null),re(0),de.current.user&&de.current.user.setMap(null),de.current.circle&&de.current.circle.setMap(null),de.current.codes.forEach((function(e){return e.setMap(null)})),de.current.codes=[],t={lat:r,lng:a},le.current.setCenter(t),le.current.setZoom(11),de.current.user=new window.google.maps.Marker({position:t,map:le.current,title:"Searched Address"}),de.current.circle=new window.google.maps.Circle({center:t,radius:200,map:le.current,strokeColor:"#FF0000",fillColor:"#FF0000",fillOpacity:.35}),i=Math.round(Math.abs(r)).toString(16).padStart(2,"0"),n=Math.round(Math.abs(a)).toString(16).padStart(2,"0"),s=parseInt(i,16),o=parseInt(n,16),c=[],l=parseInt("2172",16),d=parseInt("2A7C",16),h=-1;h<=1;h++)for(u=-1;u<=1;u++)f=(s+h).toString(16).padStart(2,"0").toUpperCase(),m=(o+u).toString(16).padStart(2,"0").toUpperCase(),p="".concat(f).concat(m),parseInt(p,16)>=l&&parseInt(p,16)<=d&&c.push(p);return e.prev=22,g=[],x=c.map(function(){var e=(0,y.Z)(w().mark((function e(r){var a,t,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(be,"/").concat(r,".json"),e.prev=1,e.next=4,fetch(a);case 4:if((t=e.sent).ok){e.next=8;break}return console.error("Error ".concat(t.status," for key ").concat(r)),e.abrupt("return",[]);case 8:return e.next=10,t.json();case 10:return i=e.sent,e.abrupt("return",i);case 14:return e.prev=14,e.t0=e.catch(1),console.error("Fetch failed for ".concat(r,":"),e.t0),e.abrupt("return",[]);case 18:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(r){return e.apply(this,arguments)}}()),e.next=27,Promise.all(x);case 27:if(e.sent.forEach((function(e){g.push.apply(g,(0,b.Z)(e))})),0!==g.length){e.next=32;break}return A("Address must be in California. Unless you would like to pay for this feature."),e.abrupt("return");case 32:(v=g.map((function(e){return fe(fe({},e),{},{distance:.621371*we(r,a,e.lat,e.lon)})}))).sort((function(e,r){return e.distance-r.distance}
1)),j=v.slice(0,10),B(j),A(""),j.forEach((function(e,r){var a=new window.google.maps.Marker({position:{lat:Number(e.lat),lng:Number(e.lon)},map:le.current,title:"Code: ".concat(e.code),label:je[r],icon:{path:window.google.maps.SymbolPath.CIRCLE,scale:10,fillColor:"yellow",fillOpacity:.8,strokeWeight:1,strokeColor:"black",labelOrigin:new window.google.maps.Point(0,0)}});a.addListener("click",(function(){return Te(e)})),de.current.codes.push(a)})),e.next=44;break;case 40:e.prev=40,e.t0=e.catch(22),console.error(e.t0),A("Error fetching burn check data for key ".concat(c));case 44:case"end":return e.stop()}}),e,null,[[22,40]])})));return function(r,a){return e.apply(this,arguments)}}(),Te=function(){var e=(0,y.Z)(w().mark((function e(r){var a,t,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(r),G(null),$(!0),e.prev=3,a="".concat(ye,"/").concat(r.code,".json"),e.next=7,fetch(a);case 7:if((t=e.sent).ok){e.next=10;break}throw new Error("Bad response");case 10:return e.next=12,t.json();case 12:i=e.sent,G(i),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(3),console.error(e.t0),G(null);case 20:return e.prev=20,$(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[3,16,20,23]])})));return function(r){return e.apply(this,arguments)}}(),Ee=W?"".concat(ve,"?00001&code=").concat(W.code):"";return(0,R.jsxs)(t.Z,{maxWidth:"lg",sx:{py:3},children:[(0,R.jsx)(Q,{}),(0,R.jsx)("div",{children:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(p.Z,{sx:{mb:1},children:(0,R.jsxs)(h.Z,{sx:{mb:1},children:[(0,R.jsx)(p.Z,{sx:{bgcolor:"gray",color:"white",p:2},children:(0,R.jsx)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,R.jsx)(g.Z,{variant:"h5",children:(0,R.jsx)("strong",{children:"Address for Comparison"})})})}),(0,R.jsx)(u.Z,{children:(0,R.jsxs)(p.Z,{sx:{display:"flex",gap:2,flexDirection:pe?"column":"row"},children:[ke&&!He&&(0,R.jsx)(f.Z,{label:Oe.q,value:Se,onChange:function(e){return r=e.target.value,Ce(r),void(r===Oe.a&&Re(!0));var r},sx:{minWidth:"200px"},InputProps:{startAdornment:(0,R.jsx)(m.Z,{position:"start",children:(0,R.jsx)(Z.Z,{})})},color:"warning",focused:!0}),(0,R.jsx)(f.Z,{inputRef:ce,value:T,onChange:function(e){return E(e.target.value)},disabled:!He,label:He?"Enter California Address":"Complete Security to Unlock",fullWidth:!0,InputProps:{startAdornment:(0,R.jsx)(m.Z,{position:"start",children:He?(0,R.jsx)(P.Z,{color:"success"}):(0,R.jsx)(Z.Z,{})})}})]})})]})}),D&&(0,R.jsx)(g.Z,{variant:"body2",color:"text.secondary",sx:{mb:0},children:D}),(0,R.jsxs)(p.Z,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:0},children:[(0,R.jsx)(d.Z,{children:N.length>0&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(d.Z,{variant:"outlined",sx:{border:"none",p:0},children:[(0,R.jsx)(p.Z,{sx:{bgcolor:"gray",color:"white",p:2},children:(0,R.jsx)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,R.jsx)(g.Z,{variant:"h5",children:(0,R.jsx)("strong",{children:"Closest Climate Data Points"})})})}),(0,R.jsx)(p.Z,{children:(0,R.jsx)(g.Z,{variant:"body2",color:"text.secondary",sx:{mt:1,ml:2,mb:2},children:"Select a data point to review the results"})})]}),(0,R.jsx)(d.Z,{variant:"outlined",sx:{p:0,height:300,overflowY:"auto"},children:(0,R.jsx)(s.Z,{children:N.map((function(e,r){return(0,R.jsx)(o.ZP,{disablePadding:!0,children:(0,R.jsx)(c.Z,{selected:W&&W.code===e.code,onClick:function(){return Te(e)},children:(0,R.jsx)(l.Z,{primary:"".concat(je[r],": Distance: ").concat(e.distance.toFixed(2)," mi"),secondary:"Latitude: ".concat(Number(e.lat).toFixed(9)," | Longitude: ").concat(Number(e.lon).toFixed(9))})})},e.code)}))})})]})}),(0,R.jsx)(d.Z,{children:(0,R.jsx)(p.Z,{ref:ne,sx:{height:400,width:"100%"}})})]}),W&&Y&&ie&&(0,R.jsx)(L,{rawData:Y,locationData:te}),W&&Y&&ie&&(0,R.jsxs)(p.Z,{sx:{mt:3},children:[(0,R.jsxs)(i.Z,{value:ee,onChange:function(e,r){re(r)},"aria-label":"fire risk tabs",sx:{fontSize:"1.25rem"},children:[(0,R.jsx)(n.Z,{label:"Historical Fire Risk",sx:{fontSize:"inherit",fontWeight:"bold","&.Mui-selected":{color:"black !important"}}}),(0,R.jsx)(n.Z,{label:"Vegetation & Fuel Risk",sx:{fontSize:"inherit",fontWeight:"bold","&.Mui-selected":{color:"black !important"}}})]}),(0,R.jsxs)(p.Z,{sx:{p:2,border:"1px solid",borderColor:"divider",borderTop:"none"},children:[0===ee&&(0,R.jsx)(p.Z,{children:W?(0,R.jsxs)(R.Fragment,{children:[W&&Y&&ie&&(0,R.jsx)(se,{rawData:Y,locationData:te}),pe?(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(p.Z,{sx:{mb:1},children:(0,R.jsxs)(h.Z,{sx:{mb:1},children:[(0,R.jsx)(p.Z,{sx:{bgcolor:"gray",color:"white",p:2},children:(0,R.jsx)(p.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,R.jsx)(g.Z,{variant:"h5",children:(0,R.jsx)("strong",{children:"Desktop Only"})})})}),(0,R.jsx)(p.Z,{sx:{mb:1,p:2},children:(0,R.jsx)(g.Z,{variant:"body1",children:"Visit this app on a computer, not a phone. This app contains detailed information which does not display correctly on mobile devices."})})]})})}):(0,R.jsx)("iframe",{src:Ee,title:"Historical Fire Risk",width:"100%",height:"2200",style:{border:"none"}})]}):(0,R.jsx)(g.Z,{variant:"body2",color:"text.secondary",children:"Select a location data point above to view the historical fire risk."})}),1===ee&&(0,R.jsx)(p.Z,{children:W?(0,R.jsxs)(R.Fragment,{children:[W&&Y&&ie&&(0,R.jsx)(he,{rawData:Y,locationData:te}),(0,R.jsx)(V,{codeLocation:W.code})]}):(0,R.jsx)(g.Z,{variant:"body2",color:"text.secondary",children:"Select a location data point above to view the vegetation and fuel data."})})]})]})]})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.