PageSourceSearch

https://www.uberhealth.com/_static/client-730-02ab6a9365314f2c.js

js uberhealth.com collected 2026-09-24 10:08:27 UTC 14,318 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkFusion=self.webpackChunkFusion||[]).push([[730],{9439:(e,t,o)=>{o.d(t,{L:()=>n});var a=o(55994);const n=e=>({payload:{type:e},type:a.k.PLACE_DETAILS_CLEAR})},27962:(e,t,o)=>{o.d(t,{Ay:()=>E,Vx:()=>D,Oh:()=>h,SH:()=>P});var a=o(90417),n=o(38292),i=o(93136),r=o(81971),l=o(84661),s=o(93760),c=o(31639),d=o(98732),u=o(97997),p=o(94957),g=o(40082),m=o(36674),L=o(9439),f=o(55994),C=o(56654);const y=(0,i.m)("loadMapCurrentLocation",{failure:function(e){const t=e||C.k;return{...t,mapPlaceDetails:{...t.mapPlaceDetails,errors:{...t.mapPlaceDetails.errors,pickup:!0},isLoadingCurrentLocation:!1,loadingState:{...t.mapPlaceDetails.loadingState,pickup:!1}}}},start:function(e){const t=e||C.k;return{...t,mapPlaceDetails:{...t.mapPlaceDetails,errors:{},isLoadingCurrentLocation:!0,loadingState:{...t.mapPlaceDetails.loadingState,pickup:!0}}}},success:function(e,t){const o=e||C.k,{address:a,position:n}=t.payload;let i;const r=o.mapPlaceDetails.pickup||{};return a&&a.location&&(i={...r,addressLine1:a.location.fullAddress,addressLine2:"",fullAddress:a.location.fullAddress,id:a.location.id,isCurrentLocation:!0,lat:n.lat,long:n.lng,provider:a.location.provider,title:a.location.addressLine1}),{...o,mapPlaceDetails:{...o.mapPlaceDetails,errors:{...o.mapPlaceDetails.errors,pickup:!a||!a.location},isLoadingCurrentLocation:!1,loadingState:{...o.mapPlaceDetails.loadingState,pickup:!1},pickup:i}}}});var k=o(40014);const v=e=>async(t,o)=>{"function"==typeof e&&await e(f.f,{body:JSON.stringify(t),headers:{"content-type":"application/json"},method:"POST"}).then((e=>e.json())).then((e=>{let t;t=Array.isArray(e)?e:[e],o(t)}))};function P(e){return function(t){const o=(0,d.X)();return(0,k.Y)(e,{...t,sessionId:o})}}function h(e){return function(t){const o=(0,r.Am)(l.El.optional),a=v(o);return(0,k.Y)(e,{...t,fetchRoutes:a})}}function D(e){return function(t){const{data:o}=(0,g.W)(),{localeCode:a=u.Xn,countryCode:n=u.jC}=(null==o?void 0:o.best)||{};return(0,k.Y)(e,{...t,countryCode:n,localeCode:a})}}const A={clearAllMapReducers:m.w,clearMapPlaceDetails:L.L},E=(0,s.Zz)((0,i.W)("loadMapSuggestions"),(0,i.W)("loadMapGeolocation"),(0,i.W)("loadMapPlaceDetails"),y,(0,n.Ng)((function(e){let{mapPlaceDetails:t,mapGeolocation:o,mapSuggestions:a}=e;return{currentLocationError:t.errors.pickup,defaultMapCenter:o.territoryGeoPoint,defaultMapGeoJson:o.territoryGeoJson,destinationDetails:t.destination,hasGeolocationLoaded:o.hasLoaded,isLoading:o.isLoading,isLoadingCurrentLocation:t.isLoadingCurrentLocation,isLoadingSuggestions:a.isLoading,isPickupUsingCurrentLocation:!!t.pickup&&!!t.pickup.isCurrentLocation,pickupDetails:t.pickup,placeDetailsLoading:t.loadingState,showCommonError:t.errors.pickup||t.errors.destination||o.error||a.error,suggestions:a.suggestions}}),A),p.V5,P,h,D,(function(e){return function(t){let{hasGeolocationLoaded:o,loadMapGeolocation:n,...i}=t;return(0,a.useEffect)((()=>{o||n()}),[o,n]),(0,k.Y)(e,{...i,mapClientId:c.YC})}}))},36674:(e,t,o)=>{o.d(t,{w:()=>n});var a=o(55994);const n=()=>({type:a.k.CLEAR_ALL_MAP_REDUCERS})},55994:(e,t,o)=>{o.d(t,{f:()=>n,k:()=>a});const a={CLEAR_ALL_MAP_REDUCERS:"MAP_CLEAR_ALL_REDUCERS",DIRECTIONS_CLEAR:"MAP_DIRECTIONS_CLEAR",PLACE_DETAILS_CLEAR:"MAP_PLACE_DETAILS_CLEAR"},n="/custom-api/navigation/route"},56654:(e,t,o)=>{o.d(t,{k:()=>f,w:()=>C});var a=o(44436),n=o(35083),i=o(55994);const r={error:!1,hasLoaded:!1,isLoading:!1,territoryGeoJson:null,territoryGeoPoint:{latitude:37.774955,longitude:-122.419579},territoryId:null,territoryName:null};const l=(0,a.QD)("loadMapGeolocation",{failure:function(e){return{...e||r,error:!0,hasLoaded:!0,isLoading:!1}},start:function(e){return{...e||r,error:!1,isLoading:!0}},success:function(e,t){const o=e||r,a=t.payload,{territoryGeoPoint:n,territoryGeoJson:i,territoryName:l,territoryId:s}=a.best.territoryGeoPoint?a.best:a.user;return{...o,hasLoaded:!0,isLoading:!1,territoryGeoJson:i,territoryGeoPoint:n||o.territoryGeoPoint,territoryId:s,territoryName:l}}}),s=(0,n.A)((e=>e||r),l,((e,t)=>{const o=e||r;return t.type===i.k.CLEAR_ALL_MAP_REDUCERS?r:o}));var c=o(9638);const d={destination:null,errors:{destination:!1,pickup:!1},isLoadingCurrentLocation:!1,loadingState:{destination:!1,pickup:!1},pickup:null};const u=(0,a.QD)("loadMapPlaceDetails",{failure:function(e,t){const o=e||d,a=(0,c.A)(t,"payload.meta.type");return{...o,errors:{...o.errors,[a]:!0},loadingState:{...o.loadingState,[a]:!1}}},start:function(e,t){const o=e||d;return{...o,errors:{},loadingState:{...o.loadingState,[t.payload.type]:!0}}},success:function(e,t){const o=e||d,{type:a,...n}=t.payload;return{...o,loadingState:{...o.loadingState,[a]:!1},[a]:n}}}),p=(0,n.A)((e=>e||d),u,((e,t)=>
1{const o=e||d;switch(t.type){case i.k.PLACE_DETAILS_CLEAR:return{...o,[t.payload.type]:null};case i.k.CLEAR_ALL_MAP_REDUCERS:return d;default:return o}})),g={error:!1,isLoading:!1,suggestions:{destination:null,pickup:null},type:""};const m=(0,a.QD)("loadMapSuggestions",{failure:function(e){return{...e||g,error:!0,isLoading:!1,type:""}},start:function(e,t){const o=e||g;if(!t.payload.q){const e={...o.suggestions},{type:a}=t.payload;return e[a]=null,{...o,error:!1,isLoading:!1,suggestions:e,type:t.payload.type}}return{...o,error:!1,isLoading:!0,type:t.payload.type}},success:function(e,t){const o=e||g;if(!t.payload||!t.payload.type)return o;const a={...o.suggestions},{type:n,candidates:i}=t.payload;return a[n]=i,{...o,error:!1,isLoading:!1,suggestions:a}}}),L=(0,n.A)((e=>e||g),m,((e,t)=>{const o=e||g;return t.type===i.k.CLEAR_ALL_MAP_REDUCERS?g:o})),f={mapGeolocation:r,mapPlaceDetails:d,mapSuggestions:g},C={mapGeolocation:s,mapPlaceDetails:p,mapSuggestions:L}},98732:(e,t,o)=>{o.d(t,{X:()=>l});var a=o(90417),n=o(81971),i=o(17368),r=o(86399);function l(){const[e,t]=a.useState(null),o=(0,n.Am)(i.Gb),l=a.useContext(n.E1),s=a.useCallback((e=>{t((null==e?void 0:e.session_id)||null)}),[]),c=a.useCallback((()=>{const e=(null==o?void 0:o.from(l))||{};t((null==e?void 0:e.session_id)||null)}),[o,l]);return(0,r.rr)({callbackIfDisabled:c,callbackIfEnabled:s}),e}},__fusion__a84e04fbe4:(e,t,o)=>{o.r(t),o.d(t,{default:()=>S,mapStateToProps:()=>E});var a=o(38292),n=o(93760),i=o(97556),r=o.n(i),l=o(64489),s=o(56654),c=o("__fusion__95b4ba69e5"),d=o(87395),u=o(90417),p=o(17070),g=o(86850),m=o.n(g),L=o(11696),f=o(31792);var C=o(3647);function y(e){if("string"!=typeof e)return!1;const t=e.split(",").map(Number),[o,a]=t;return 2===t.length&&function(e){return Boolean(e&&[e.latitude,e.longitude].every(isFinite)&&e.latitude>-90&&e.latitude<90&&e.longitude>-180&&e.longitude<180)}({latitude:o,longitude:a})}var k=o(40014);const v={anchor:{x:10,y:11},fillColor:"#000000",fillOpacity:1,height:"22",path:"M9.475 0C11.875 0 14.375 0.9 16.175 2.8C19.875 6.5 19.875 12.6 16.175 16.2L9.475 23L2.775 16.3C-0.925 12.6 -0.925 6.5 2.775 2.8C4.575 0.9 7.075 0 9.475 0ZM9.475 18.8L14.075 14.2C16.575 11.6 16.575 7.5 14.075 4.9C12.875 3.7 11.175 3 9.475 3C7.775 3 6.075 3.7 4.875 4.9C2.375 7.5 2.375 11.6 4.875 14.2L9.475 18.8ZM11.475 9.5C11.475 10.6046 10.5795 11.5 9.47498 11.5C8.37041 11.5 7.47498 10.6046 7.47498 9.5C7.47498 8.39543 8.37041 7.5 9.47498 7.5C10.5795 7.5 11.475 8.39543 11.475 9.5Z",scale:1,strokeColor:"#000000",strokeWeight:.5,viewBox:"0 0 20 22",width:"20"},P=e=>{let{activeLanguage:t,mapCenter:o,mapGeoJson:a,startLocation:n,endLocation:i,clientId:r,fetchRoutes:l,removePaddingBottom:s,removePaddingSides:d,removePaddingTop:g,marginBottom:P,marginTop:h,sessionId:D,routesInputProps:A,zoomLevel:E}=e;const{getSuggestions:S=null,loadPlaceDetails:b=null}=null!=A?A:{},[R,_]=(0,u.useState)(!0),[M,I]=(0,u.useState)([]),[G,T]=(0,u.useState)(),[w,B]=(0,u.useState)(),[N,J]=(0,u.useState)({}),[x,F]=(0,u.useState)({}),[U,Y]=(0,u.useState)({}),z=(e=>{let{fetchRoutes:t,pickupDetails:o,destinationDetails:a,onRouteFetchComplete:n,onRouteFetchError:i}=e;const[r,l]=c.useState([]),[s,d]=c.useState(null),u="function"==typeof t?m()(t,500):()=>{};return c.useEffect((()=>{o&&a&&(null!=o&&o.lat||null!=a&&a.lat)&&d("".concat(o.id,":").concat(o.provider,":").concat(a.id,":").concat(a.provider))}),[a,o]),c.useEffect((()=>{if(!s||null==o||!o.lat||null==a||!a.lat)return;let e=[];const t={latitude:o.lat,longitude:o.long},r={destinations:[{latitude:a.lat,longitude:a.long}],mode:f.vi.vehicle,origin:t};try{u(r,(t=>{if(null!=t&&t.length&&(t.map((t=>{const{polyline:o}=t,a=(0,L.l)(o);e.push(a)})),null!=e&&e.length)){const t=e[0],o=(null==t?void 0:t.map((e=>({lat:e[0],lng:e[1]}))))||[];l(o),null==n||n()}}))}catch(e){null==i||i(e)}}),[s]),r})({destinationDetails:U,fetchRoutes:l,onRouteFetchComplete:()=>_(!1),onRouteFetchError:()=>_(!1),pickupDetails:x}),O=(0,u.useCallback)((async(e,o)=>{if(null!=e&&e.id&&b){var a,n;const i=await b({id:e.id,locale:null!==(a=null==t?void 0:t.locale)&&void 0!==a?a:"en",provider:null==e?void 0:e.provider,type:o});i&&null!==(n=Object.keys(i))&&void 0!==n&&n.length&&("pickup"===o?F(i):Y(i))}}),[null==t?void 0:t.locale,b]),Z=(0,u.useCallback)((async(e,a)=>{if(S&&null!=o&&o.latitude&&null!=o&&o.longitude){var n;const i=await S({lat:o.latitude,locale:null!==(n=null==t?void 0:t.locale)&&void 0!==n?n:"en",long:o.longitude,q:"".concat(e.title," ").concat(e.address),type:a});i&&null!=i&&i.candidates&&J((e=>
1({...e,[a]:i.candidates.filter(Boolean)})))}}),[o,null==t?void 0:t.locale,S]);(0,u.useEffect)((()=>{n&&!y(null==n?void 0:n.address)&&Z(n,"pickup"),i&&!y(null==i?void 0:i.address)&&Z(i,"destination")}),[n,i,Z]),(0,u.useEffect)((()=>{var e,t,o,a;null!=N&&null!==(e=N.pickup)&&void 0!==e&&e.length&&(null==G?void 0:G.id)!==(null===(t=N.pickup[0])||void 0===t?void 0:t.id)&&T(N.pickup[0]),null!=N&&null!==(o=N.destination)&&void 0!==o&&o.length&&(null==w?void 0:w.id)!==(null===(a=N.destination[0])||void 0===a?void 0:a.id)&&B(N.destination[0])}),[N,null==w?void 0:w.id,null==G?void 0:G.id]),(0,u.useEffect)((()=>{null!=G&&G.id&&null!=w&&w.id&&(O(G,"pickup"),O(w,"destination"))}),[G,w,O]),(0,u.useEffect)((()=>{const e=[];null!=x&&x.lat&&e.push({icon:v,point:{lat:x.lat,lng:x.long},title:x.title}),null!=U&&U.lat&&e.push({icon:v,point:{lat:U.lat,lng:U.long},title:U.title}),I(e)}),[U,x]),(0,u.useEffect)((()=>{if(null!=n&&n.address&&y(n.address)){var e,t;const o=n.address.split(",").map(Number);F({addressLine1:"",addressLine2:"",fullAddress:"",id:null!==(e=n.title)&&void 0!==e?e:"pickup",lat:o[0],long:o[1],provider:"uber",title:null!==(t=n.title)&&void 0!==t?t:""})}if(null!=i&&i.address&&y(i.address)){var o,a;const e=i.address.split(",").map(Number);Y({addressLine1:"",addressLine2:"",fullAddress:"",id:null!==(o=i.title)&&void 0!==o?o:"destination",lat:e[0],long:e[1],provider:"uber",title:null!==(a=i.title)&&void 0!==a?a:""})}}),[n,i]);const W={clientId:r,isLoadingDirections:R,mapCenter:o,mapGeoJson:a||[],markers:M,points:z,zoomLevel:null!=E?E:12};return(0,k.Y)(p.A,{height:"100%",maxHeight:"720px",children:(0,k.Y)(C.T,{fetchRoutes:l,mapProps:W,marginBottom:P,marginTop:h,removePaddingBottom:s,removePaddingSides:d,removePaddingTop:g,routesInputProps:{destinationDetails:U,pickupDetails:x},sessionId:D})})};var h=o(27962);class D extends c.Component{render(){const{activeLanguage:e,anchorName:t,isLoading:o,error:a,translate:n,mapClientId:i,mapCenter:r,defaultMapGeoJson:l,clearAllMapReducers:s,startLocation:c,endLocation:d,showCommonError:u,rtl:p,backgroundColor:g,textColor:m,locations:L,geofence:f,heading:C,eyebrow:y,body:v,cta:h,hideCTA:D,currentBreakpoint:A,sessionId:E,fetchRoutes:S,loadMapSuggestions:b,loadMapPlaceDetails:R,destinationDetails:_,pickupDetails:M,countryCode:I,localeCode:G,removePaddingBottom:T,removePaddingSides:w,removePaddingTop:B,marginBottom:N,marginTop:J,containerBackgroundColor:x,containerBackgroundTransparent:F,isLoadingSuggestions:U,defaultMapLat:Y,defaultMapLng:z,placeDetailsLoading:O,suggestions:Z,clearMapDirections:W,clearMapPlaceDetails:j,currentLocationError:q,isLoadingCurrentLocation:Q,currentLanguage:X,loadMapCurrentLocation:H,isPickupUsingCurrentLocation:V,loadMapDirections:K}=this.props;if(o||a)return(0,k.Y)("noscript",{});const $={clearDestinationAriaLabel:n("fare-estimate.clear-destination-aria-label"),clearPickupAriaLabel:n("fare-estimate.clear-pickup-aria-label"),commonDetectLocationError:n("fare-estimate.error.common-detect-location"),commonError:n("fare-estimate.error.common-request"),destinationAriaLabel:n("fare-estimate.destination-aria-label"),destinationPlaceholder:n("fare-estimate.destination-placeholder"),locationLabel:n("fare-estimate.location-aria-label"),noDetectLocationPermissionError:n("fare-estimate.error.no-detect-location-permission"),pickupAriaLabel:n("fare-estimate.pickup-aria-label"),pickupPlaceholder:n("fare-estimate.pickup-placeholder")},ee={activeLanguage:e,anchorName:t,backgroundColor:g,body:v,clearAllMapReducers:s,clientId:i,containerBackgroundColor:x,containerBackgroundTransparent:F,countryCode:I,cta:h,currentBreakpoint:A,endLocation:d,eyebrow:y,fetchRoutes:S,geofence:f,heading:C,hideCTA:D,localeCode:G,localization:$,locations:L,mapCenter:r,mapGeoJson:l,marginBottom:N,marginTop:J,removePaddingBottom:T,removePaddingSides:w,removePaddingTop:B,routesInputProps:{clearFEDirections:W,clearFEPlaceDetails:j,currentLocationError:q,destinationDetails:_,errors:{destination:"",pickup:""},fetchCurrentLocation:H,getSuggestions:b,isLoadingCurrentLocation:Q,isLoadingSuggestions:U,isPickupUsingCurrentLocation:V,loadMapDirections:K,loadPlaceDetails:R,locale:X,localization:$,mapCenter:{latitude:Y,longitude:z}
1,pickupDetails:M,placeDetailsLoading:O,suggestions:Z},rtl:p,sessionId:E,showCommonError:u,startLocation:c,textColor:m};return(0,k.Y)(P,{...ee})}}const A=(0,n.Zz)((0,d.J)(["fare-estimate.location-aria-label","fare-estimate.pickup-aria-label","fare-estimate.clear-destination-aria-label","fare-estimate.clear-pickup-aria-label","fare-estimate.pickup-placeholder","fare-estimate.destination-aria-label","fare-estimate.destination-placeholder","fare-estimate.error.no-detect-location-permission","fare-estimate.error.common-detect-location","fare-estimate.error.common-request"]),h.Ay)(D),E=e=>{let{languages:t}=e;const{currentLanguage:o}=t;return{currentLanguage:o,rtl:r().isRtlLang(o)}},S=(0,n.Zz)((0,a.Ng)(E),(0,l.D)({initialState:s.k,name:"Dynamic Map Store",reducers:s.w}))(A)}}]);
2//# sourceMappingURL=https://sourcemaps.uberinternal.com/raw/uber-sites/client-730-02ab6a9365314f2c.js.map

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.