PageSourceSearch

https://huntfishsport.com/_next/static/chunks/84170.c78e660309ebdce9.js

js huntfishsport.com collected 2026-10-02 14:07:14 UTC 22,723 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b581a180-6958-44e4-900a-e4d352816893",e._sentryDebugIdIdentifier="sentry-dbid-b581a180-6958-44e4-900a-e4d352816893")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84170],{5629:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(12115),i=n(29722),l=n(92798),s=n(99129),r=n(11996),o=n(672),d=n(1356);function c(e){return(0,d.Ay)("MuiTableContainer",e)}(0,o.A)("MuiTableContainer",["root"]);var u=n(95155);let x=(0,s.Ay)("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),h=a.forwardRef(function(e,t){let n=(0,r.b)({props:e,name:"MuiTableContainer"}),{className:a,component:s="div",...o}=n,d={...n,component:s},h=(e=>{let{classes:t}=e;return(0,l.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(x,{ref:t,as:s,className:(0,i.A)(h.root,a),ownerState:d,...o})})},15727:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(56264),i=n(95155);let l=(0,a.A)((0,i.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},33940:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(56264),i=n(95155);let l=(0,a.A)((0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue")},34911:(e,t,n)=>{n.d(t,{A:()=>j});var a=n(95155);n(12115);var i=n(58124),l=n(29466),s=n(23805),r=n(96641),o=n(4071),d=n(56076),c=n(80322),u=n(38699),x=n(57752),h=n(96756),p=n(48022),m=n(37721),f=n(43845),y=n(6);function j(e){let{locations:t,selectedLocationIds:n,onChange:j,variant:g="dropdown",maxSelections:v,minSelections:w=1,label:b="Locations",helperText:A,disabled:C=!1,showElevation:M=!0,multiple:L=!0,size:S="medium",showBulkActions:z=!1}=e,D=()=>{if(A)return A;let e=[];return L&&(w>0&&v?e.push("Select ".concat(w,"-").concat(v," locations")):v?e.push("Select up to ".concat(v," locations")):w>1&&e.push("Select at least ".concat(w," locations"))),n.length>0&&e.push("".concat(n.length," selected")),e.join(" • ")};return"dropdown"===g?(0,a.jsxs)(i.A,{fullWidth:!0,size:S,disabled:C||0===t.length,children:[(0,a.jsx)(l.A,{id:"location-selector-label",children:b}),(0,a.jsx)(s.A,{labelId:"location-selector-label",multiple:L,value:L?n:n[0]||"",onChange:e=>{let t=e.target.value,n="string"==typeof t?t.split(","):t;v&&n.length>v&&(n=n.slice(0,v)),j(n)},input:(0,a.jsx)(r.A,{label:b}),renderValue:e=>{if(!L){let n=t.find(t=>t.id===e);return(null==n?void 0:n.name)||""}let n=Array.isArray(e)?e:[e];return(0,a.jsx)(o.default,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:n.map(e=>{let n=t.find(t=>t.id===e);return(0,a.jsx)(d.default,{label:(null==n?void 0:n.name)||e,size:"small",icon:(0,a.jsx)(y.default,{fontSize:"small"}),sx:{maxWidth:200,"& .MuiChip-label":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},e)})})},children:t.map(e=>(0,a.jsxs)(c.A,{value:e.id,children:[L&&(0,a.jsx)(u.A,{checked:n.includes(e.id)}),(0,a.jsx)(x.A,{primary:e.name,secondary:M&&e.elevation?"".concat(e.elevation.toLocaleString()," ft"):void 0})]},e.id))}),D()&&(0,a.jsx)(h.A,{children:D()})]}):(0,a.jsxs)(o.default,{"data-sentry-element":"Box","data-sentry-component":"LocationSelector","data-sentry-source-file":"LocationSelector.tsx",children:[(0,a.jsxs)(o.default,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},"data-sentry-element":"Box","data-sentry-source-file":"LocationSelector.tsx",children:[(0,a.jsxs)(p.default,{variant:"subtitle2",color:"text.secondary","data-sentry-element":"Typography","data-sentry-source-file":"LocationSelector.tsx",children:[b,v&&" (up to ".concat(v,")")]}),z&&(0,a.jsxs)(o.default,{sx:{display:"flex",gap:1},children:[(0,a.jsx)(m.default,{size:"small",variant:"text",onClick:()=>{let e=t.map(e=>e.id);j(v?e.slice(0,v):e)},disabled:C||0===t.length,children:"Select All"}),(0,a.jsx)(m.default,{size:"small",variant:"text",onClick:()=>{j([])},disabled:C||0===n.length,children:"Clear All"})]})]}),(0,a.jsx)(f.default,{container:!0,spacing:1,"data-sentry-element":"Grid","data-sentry-source-file":"LocationSelector.tsx",children:t.map(e=>{let t=n.includes(e.id),i=C||!t&&void 0!==v&&n.length>=v;return(0,a.jsx)(f.default,{size:{xs:12,sm:6,md:4},children:(0,a.jsx)(d.default,{label:(0,a.jsxs)(o.default,{children:[(0,a.jsx)(p.default,{variant:"body2",children:e.name}),M&&e.elevation&&(0,a.jsxs)(p.default,{variant:"caption",color:"text.secondary",children:[e.elevation.toLocaleStr
1ing()," ft"]})]}),onClick:()=>{var t;return t=e.id,void(n.includes(t)?n.length>w&&j(n.filter(e=>e!==t)):(!v||n.length<v)&&j([...n,t]))},color:t?"primary":"default",variant:t?"filled":"outlined",disabled:i,sx:{width:"100%",height:"auto",py:1,justifyContent:"flex-start","& .MuiChip-label":{width:"100%",textAlign:"left"}}})},e.id)})}),D()&&(0,a.jsx)(p.default,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:D()}),0===t.length&&(0,a.jsx)(p.default,{variant:"body2",color:"text.secondary",sx:{mt:2,textAlign:"center"},children:"No locations available"})]})}},48693:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(56264),i=n(95155);let l=(0,a.A)((0,i.jsx)("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows")},56172:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(56264),i=n(95155);let l=(0,a.A)((0,i.jsx)("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}),"TrendingUp")},81047:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(56264),i=n(95155);let l=(0,a.A)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},84170:(e,t,n)=>{n.r(t),n.d(t,{default:()=>U});var a=n(95155),i=n(12115),l=n(47970),s=n(62811),r=n(4071),o=n(60192),d=n(48022),c=n(32163),u=n(13777),x=n(73321),h=n(48269),p=n(73207),m=n(67461),f=n(56076),y=n(40888),j=n(84249),g=n(58124),v=n(29466),w=n(23805),b=n(80322),A=n(43845),C=n(37721),M=n(5629),L=n(28183),S=n(88750),z=n(29277),D=n(87849),I=n(97053),_=n(48693),E=n(15727),T=n(56172),k=n(6),G=n(13549),R=n(24612),B=n(33940),F=n(73579),H=n(81047),V=n(13787),P=n(15834),W=n(34911);function N(e){let{savedLocations:t,isProUser:n,onAddLocation:x,onNavigateToDay:h}=e,N=n||!1,U=(0,l.A)(),O=(0,s.A)(U.breakpoints.down("md")),{settings:J}=(0,P.I)(),[Y,Q]=(0,i.useState)([]),[X,q]=(0,i.useState)(new Map),[K,Z]=(0,i.useState)(!1),[$,ee]=(0,i.useState)(null),[et,en]=(0,i.useState)((0,V.GP)(new Date,"yyyy-MM-dd"));i.useEffect(()=>{},[et]);let ea=(0,i.useCallback)(async()=>{if(0!==Y.length){Z(!0),ee(null);try{let e=Y.map(async e=>{var n,a,i,l,s,r,o,d,c,u;let x=t.find(t=>t.id===e);if(!x)return null;let h=await fetch("/api/solunar",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({latitude:x.latitude,longitude:x.longitude,date:et,timezone:x.timezone||"UTC",locationName:x.display_name||x.name,temperatureUnit:J.temperatureUnit,windSpeedUnit:J.windSpeedUnit,pressureUnit:J.pressureUnit,distanceUnit:J.distanceUnit,activityType:J.activityType})});if(!h.ok)throw Error("Failed to load solunar data");let p=(await h.json()).data,m=(null==(n=p.enhanced_rating)?void 0:n.final_rating)||(null==(a=p.rating)?void 0:a.stars)||3,f=p.weather&&(p.weather.daily||p.weather.current),y=null==(i=p.weather)?void 0:i.daily,j=null==(l=p.weather)?void 0:l.current;return{id:x.id,name:x.name,latitude:x.latitude,longitude:x.longitude,solunarRating:m,weatherEnhanced:f,temperatureHigh:null==y?void 0:y.temp_max,temperatureLow:null==y?void 0:y.temp_min,windSpeed:null==y?void 0:y.wind_speed,windGust:null==y?void 0:y.wind_gust,windDirection:null==j?void 0:j.wind_direction,pressure:(null==y?void 0:y.pressure)||(null==j?void 0:j.pressure),conditions:(null==j||null==(r=j.weather)||null==(s=r[0])?void 0:s.description)||(null==j||null==(d=j.weather)||null==(o=d[0])?void 0:o.main),temperatureHighDisplay:null==y?void 0:y.temp_max_display,temperatureLowDisplay:null==y?void 0:y.temp_min_display,windSpeedDisplay:null==y?void 0:y.wind_speed_display,windGustDisplay:null==y?void 0:y.wind_gust_display,pressureDisplay:(null==y?void 0:y.pressure_display)||(null==j?void 0:j.pressure_display),majorPeriods:(null==(c=p.periods)?void 0:c.major)||[],minorPeriods:(null==(u=p.periods)?void 0:u.minor)||[],timezone:x.timezone,display_name:x.display_name}}),n=(await Promise.all(e)).filter(Boolean),a=new Map;n.forEach(e=>a.set(e.id,e)),q(a)}catch(e){ee("Failed to load comparison data"),console.error("Multi-location comparison error:",e)}finally{Z(!1)}}},[Y,et,t,J]);if((0,i.useEffect)(()=>{N&&ea()},[Y,et,N,ea]),!N)return(0,a.jsx)(p.default,{sx:{mb:2},children:(0,a.jsxs)(m.default,{children:[(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",mb:2},children:[(0,a.jsx)(_.A,{sx:{mr:1,color:"primary.main"}}),(0,a.jsx)(d.default,{variant:"h6",component:"h3",children:"Multi-Location Comparison"}),(0,a.jsx)(f.default,{label:"Pro Feature",color:"secondary",size:"small",sx:{ml:2}})]}),(0,a.jsxs)(u.A,{severity:"info",sx:{mb:2},children:[(0,a.jsx)(d.default,{variant:"body2",sx:{mb:1},children:(0,a.jsx)("strong",{children:"Pro subscribers can:"})}),(0,a.jsxs)(d.default,{variant:"body2",component:"div",children:["• Compare conditions across multiple saved locations",(0,a.jsx)("br",{}),"• See side-by-side solunar ratings and weather data",(0,a.jsx)("br",{}),"• Identify the best location for any given day",(0,a.jsx)("br",{}),"• Plan trips based on comparative analysis"]})]})]})});let ei=e=>e>=4.5?U.palette.success.main:e>=3.5?U.palette.warning.main:U.palette.error.main,el=(()=>
1{if(0===X.size)return null;let e=null,t=0;return X.forEach(n=>{let a=n.solunarRating;n.weatherEnhanced&&(a+=.5),a>t&&(t=a,e=n)}),e})();return(0,a.jsx)(p.default,{sx:{mb:2},"data-sentry-element":"Card","data-sentry-component":"MultiLocationComparison","data-sentry-source-file":"MultiLocationComparison.tsx",children:(0,a.jsxs)(m.default,{"data-sentry-element":"CardContent","data-sentry-source-file":"MultiLocationComparison.tsx",children:[(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",mb:2},"data-sentry-element":"Box","data-sentry-source-file":"MultiLocationComparison.tsx",children:[(0,a.jsx)(d.default,{variant:"h6",component:"h3","data-sentry-element":"Typography","data-sentry-source-file":"MultiLocationComparison.tsx",children:"Location Comparison"}),(0,a.jsx)(f.default,{label:"Pro",color:"secondary",size:"small",sx:{ml:2},"data-sentry-element":"Chip","data-sentry-source-file":"MultiLocationComparison.tsx"}),(0,a.jsx)(y.A,{title:"Refresh comparison data","data-sentry-element":"Tooltip","data-sentry-source-file":"MultiLocationComparison.tsx",children:(0,a.jsx)(j.A,{onClick:ea,size:"small",sx:{ml:"auto"},"data-sentry-element":"IconButton","data-sentry-source-file":"MultiLocationComparison.tsx",children:(0,a.jsx)(E.A,{"data-sentry-element":"Refresh","data-sentry-source-file":"MultiLocationComparison.tsx"})})})]}),(0,a.jsx)(r.default,{sx:{mb:3},"data-sentry-element":"Box","data-sentry-source-file":"MultiLocationComparison.tsx",children:(0,a.jsxs)(g.A,{size:"small",sx:{minWidth:200},"data-sentry-element":"FormControl","data-sentry-source-file":"MultiLocationComparison.tsx",children:[(0,a.jsx)(v.A,{"data-sentry-element":"InputLabel","data-sentry-source-file":"MultiLocationComparison.tsx",children:"Compare Date"}),(0,a.jsx)(w.A,{value:et,label:"Compare Date",onChange:e=>{en(e.target.value)},"data-sentry-element":"Select","data-sentry-source-file":"MultiLocationComparison.tsx",children:Array.from({length:N?15:1},(e,t)=>{let n=new Date;n.setDate(n.getDate()+t);let i=(0,V.GP)(n,"yyyy-MM-dd"),l=(0,V.GP)(n,"EEE, MMM d");return(0,a.jsx)(b.A,{value:i,children:0===t?"Today":1===t?"Tomorrow":l},i)})})]})}),(0,a.jsx)(r.default,{sx:{mb:3},"data-sentry-element":"Box","data-sentry-source-file":"MultiLocationComparison.tsx",children:(0,a.jsx)(W.A,{locations:t,selectedLocationIds:Y,onChange:Q,variant:"dropdown",maxSelections:4,minSelections:1,label:"Select Locations to Compare",showElevation:!1,multiple:!0,"data-sentry-element":"LocationSelector","data-sentry-source-file":"MultiLocationComparison.tsx"})}),el&&(0,a.jsx)(u.A,{severity:"success",icon:(0,a.jsx)(T.A,{}),sx:{mb:2},children:(0,a.jsxs)(d.default,{variant:"body2",children:[(0,a.jsx)("strong",{children:"Best Option:"})," ",el.name," with ",el.solunarRating,"★ rating",el.weatherEnhanced&&" (weather-enhanced)"]})}),Y.length>0&&(0,a.jsx)(a.Fragment,{children:K?(0,a.jsx)(r.default,{sx:{display:"flex",justifyContent:"center",p:3},children:(0,a.jsx)(o.default,{})}):$?(0,a.jsx)(u.A,{severity:"error",sx:{mb:2},children:$}):X.size>0?(0,a.jsx)(a.Fragment,{children:O?(0,a.jsx)(A.default,{container:!0,spacing:2,children:Array.from(X.values()).sort((e,t)=>t.solunarRating-e.solunarRating).map(e=>{let n=t.find(t=>t.id===e.id);return(0,a.jsx)(A.default,{size:{xs:12},children:(0,a.jsx)(p.default,{variant:"outlined",sx:{borderColor:e.id===(null==el?void 0:el.id)?"success.main":void 0,borderWidth:e.id===(null==el?void 0:el.id)?2:1},children:(0,a.jsxs)(m.default,{children:[(0,a.jsxs)(r.default,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:2},children:[(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,a.jsx)(k.default,{fontSize:"small",color:"action"}),(0,a.jsx)(d.default,{variant:"h6",fontWeight:"bold",children:e.name})]}),e.id===(null==el?void 0:el.id)&&(0,a.jsx)(f.default,{label:"Best",color:"success",size:"small"})]}),(0,a.jsxs)(r.default,{sx:{mb:2},children:[(0,a.jsx)(d.default,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"Solunar Rating"}),(0,a.jsxs)(d.default,{variant:"h4",sx:{color:ei(e.solunarRating),fontWeight:"bold"},children:[e.solunarRating.toFixed(1),"★"]})]}
1),e.weatherEnhanced?(0,a.jsxs)(r.default,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(e.temperatureHighDisplay||void 0!==e.temperatureHigh)&&(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,a.jsx)(G.default,{fontSize:"small",color:"action"}),(0,a.jsxs)(d.default,{variant:"body2",children:[(0,a.jsx)("strong",{children:"Temp:"})," H: ",e.temperatureHighDisplay||"".concat(Math.round(e.temperatureHigh||0),"\xb0F")," "," L: ",e.temperatureLowDisplay||"".concat(Math.round(e.temperatureLow||0),"\xb0F")]})]}),(e.windSpeedDisplay||void 0!==e.windSpeed)&&(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,a.jsx)(R.A,{fontSize:"small",color:"action"}),(0,a.jsxs)(d.default,{variant:"body2",children:[(0,a.jsx)("strong",{children:"Wind:"})," ",e.windSpeedDisplay||"".concat(Math.round(e.windSpeed||0)," mph"),e.windGust&&(e.windGustDisplay||e.windGust>0)&&(0,a.jsxs)(a.Fragment,{children:[" • Gusts: ",e.windGustDisplay||"".concat(Math.round(e.windGust)," mph")]})]})]}),e.conditions&&(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,a.jsx)(B.A,{fontSize:"small",color:"action"}),(0,a.jsxs)(d.default,{variant:"body2",children:[(0,a.jsx)("strong",{children:"Conditions:"})," ",e.conditions]})]})]}):(0,a.jsx)(d.default,{variant:"caption",color:"text.disabled",children:"Basic solunar data only"}),h&&n&&(0,a.jsx)(r.default,{sx:{mt:2,textAlign:"right"},children:(0,a.jsx)(C.default,{size:"small",endIcon:(0,a.jsx)(F.A,{}),onClick:()=>h(et,n),children:"View Day"})})]})})},e.id)})}):(0,a.jsx)(M.A,{component:c.A,variant:"outlined",children:(0,a.jsxs)(L.A,{size:"small",children:[(0,a.jsx)(S.A,{children:(0,a.jsxs)(z.A,{children:[(0,a.jsx)(D.A,{children:(0,a.jsx)("strong",{children:"Location"})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)("strong",{children:"Rating"})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)("strong",{children:"Weather"})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)("strong",{children:"Temp"})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)("strong",{children:"Wind"})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)("strong",{children:"Conditions"})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)("strong",{children:"Actions"})})]})}),(0,a.jsx)(I.A,{children:Array.from(X.values()).sort((e,t)=>t.solunarRating-e.solunarRating).map(e=>{let n=t.find(t=>t.id===e.id);return(0,a.jsxs)(z.A,{sx:{backgroundColor:e.id===(null==el?void 0:el.id)?U.palette.success.light+"20":void 0},children:[(0,a.jsx)(D.A,{children:(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center"},children:[(0,a.jsx)(k.default,{fontSize:"small",sx:{mr:1}}),(0,a.jsx)(d.default,{variant:"body2",noWrap:!0,children:e.name}),e.id===(null==el?void 0:el.id)&&(0,a.jsx)(f.default,{label:"Best",color:"success",size:"small",sx:{ml:1}})]})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,a.jsxs)(d.default,{variant:"body2",sx:{color:ei(e.solunarRating),fontWeight:"bold"},children:[e.solunarRating.toFixed(1),"★"]})})}),(0,a.jsx)(D.A,{align:"center",children:e.weatherEnhanced?(0,a.jsx)(B.A,{color:"primary",fontSize:"small"}):(0,a.jsx)(d.default,{variant:"caption",color:"text.disabled",children:"Basic"})}),(0,a.jsx)(D.A,{align:"center",children:e.temperatureHighDisplay||void 0!==e.temperatureHigh?(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,a.jsx)(G.default,{fontSize:"small",sx:{mr:.5}}),(0,a.jsxs)(d.default,{variant:"body2",children:["H: ",e.temperatureHighDisplay||"".concat(Math.round(e.temperatureHigh||0),"\xb0F")," ","L: ",e.temperatureLowDisplay||"".concat(Math.round(e.temperatureLow||0),"\xb0F")]})]}):(0,a.jsx)(d.default,{variant:"caption",color:"text.disabled",children:"-"})}),(0,a.jsx)(D.A,{align:"center",children:e.windSpeedDisplay||void 0!==e.windSpeed?(0,a.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,a.jsx)(R.A,{fontSize:"small",sx:{mr:.5}}),(0,a.jsxs)(d.default,{variant:"body2",children:[e.windSpeedDisplay||"".concat(Math.round(e.windSpeed||0)," mph"),e.windGust&&(e.windGustDisplay||e.windGust>0)&&(0,a.jsxs)(a.Fragment,{children:[" • Gusts: ",e.windGustDisplay||"".concat(Math.round(e.windGust)," mp
1h")]}),e.windDirection&&(0,a.jsxs)(a.Fragment,{children:[" • ",e.windDirection]})]})]}):(0,a.jsx)(d.default,{variant:"caption",color:"text.disabled",children:"-"})}),(0,a.jsx)(D.A,{align:"center",children:(0,a.jsx)(d.default,{variant:"caption",children:e.conditions||"-"})}),(0,a.jsx)(D.A,{align:"center",children:h&&n&&(0,a.jsx)(y.A,{title:"View this day",children:(0,a.jsx)(j.A,{size:"small",onClick:()=>h(et,n),sx:{color:"primary.main"},children:(0,a.jsx)(F.A,{})})})})]},e.id)})})]})})}):null}),0===Y.length&&(0,a.jsx)(u.A,{severity:"info",children:(0,a.jsxs)(d.default,{variant:"body2",children:["Select 2 or more locations above to see a detailed comparison of conditions, ratings, and weather data for ",(0,V.GP)(new Date(et),"EEEE, MMMM d"),"."]})}),0===t.length&&x&&(0,a.jsxs)(r.default,{sx:{textAlign:"center",mt:2},children:[(0,a.jsx)(d.default,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"You need saved locations to use this feature"}),(0,a.jsx)(C.default,{variant:"outlined",startIcon:(0,a.jsx)(H.A,{}),onClick:x,children:"Add Location"})]})]})})}function U(){var e,t;let n=(0,l.A)(),p=(0,s.A)(n.breakpoints.down("md")),m=(0,x.useRouter)(),{user:f}=(0,h.A)(),[y,j]=(0,i.useState)([]),[g,v]=(0,i.useState)(!0),[w,b]=(0,i.useState)(null),A=(null==f||null==(e=f.subscription)?void 0:e.plan)==="pro"&&(null==f||null==(t=f.subscription)?void 0:t.isActive);return((0,i.useEffect)(()=>{(async()=>{if(!(null==f?void 0:f.id)||!A)return v(!1);v(!0),b(null);try{let e=await fetch("/api/user/locations");if(e.ok){let t=await e.json();if(t.success&&t.locations){let e=t.locations.map(e=>({id:e.id,name:e.name,latitude:e.latitude,longitude:e.longitude,timezone:e.timezone}));j(e)}}else console.error("Failed to load saved locations:",e.status,e.statusText),b("Failed to load saved locations")}catch(e){console.error("Error loading saved locations:",e),b("Error loading saved locations")}finally{v(!1)}})()},[null==f?void 0:f.id,A]),g)?(0,a.jsxs)(r.default,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",gap:2},children:[(0,a.jsx)(o.default,{size:48}),(0,a.jsx)(d.default,{variant:"body1",color:"text.secondary",children:"Loading your saved locations..."})]}):(0,a.jsxs)(r.default,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},"data-sentry-element":"Box","data-sentry-component":"MultiLocationComparisonView","data-sentry-source-file":"MultiLocationComparisonView.tsx",children:[(0,a.jsxs)(c.A,{elevation:0,sx:{p:p?2:3,borderBottom:"1px solid",borderColor:"divider",backgroundColor:"background.paper"},"data-sentry-element":"Paper","data-sentry-source-file":"MultiLocationComparisonView.tsx",children:[(0,a.jsxs)(d.default,{color:"primary",variant:p?"h5":"h4",fontWeight:"bold",gutterBottom:!0,"data-sentry-element":"Typography","data-sentry-source-file":"MultiLocationComparisonView.tsx",children:[(0,a.jsx)(_.A,{color:"primary",sx:{fontSize:32},"data-sentry-element":"CompareArrows","data-sentry-source-file":"MultiLocationComparisonView.tsx"}),"Multi-Location Comparison"]}),(0,a.jsx)(d.default,{variant:"body2",color:"text.secondary","data-sentry-element":"Typography","data-sentry-source-file":"MultiLocationComparisonView.tsx",children:"Compare weather, solunar ratings, and conditions side-by-side across multiple saved locations"}),w&&(0,a.jsx)(u.A,{severity:"error",sx:{mt:2},children:w}),0===y.length&&!w&&(0,a.jsx)(u.A,{severity:"info",sx:{mt:2},children:(0,a.jsx)(d.default,{variant:"body2",children:"No saved locations found. Add locations to your profile to start comparing conditions."})}),1===y.length&&!w&&(0,a.jsx)(u.A,{severity:"warning",sx:{mt:2},children:(0,a.jsx)(d.default,{variant:"body2",children:"You have only 1 saved location. Add more locations to enable comparison features."})})]}),(0,a.jsx)(r.default,{sx:{flex:1,p:p?2:3},"data-sentry-element":"Box","data-sentry-source-file":"MultiLocationComparisonView.tsx",children:(0,a.jsx)(N,{savedLocations:y,isProUser:A,onNavigateToDay:(e,t)=>{localStorage.setItem("pendingNavigationDate",e),localStorage.setItem("pendingNavigationLocation",JSON.stringify({latitude:t.latitude,longitude:t.longitude,name:t.name,timezone:t.timezone})),m.push("/")},"data-sentry-element":"MultiLocationComparison","data-sentry-source-file":"MultiLocationComparisonView.tsx"})})]})}}}]);

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.