PageSourceSearch

https://geovelo.app/ed7c17207bfd6eb5dfa2a5ea38bb9b789bb6456f-5c6b4e20a00a30ad94fe.js

js geovelo.app collected 2026-09-24 09:53:01 UTC 26,292 bytes, 52 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d38ce358-d9d0-422b-a291-4b95ac62f9bc",e._sentryDebugIdIdentifier="sentry-dbid-d38ce358-d9d0-422b-a291-4b95ac62f9bc")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"1a8adf42d44ed541b19a17a483e7c1104aabf013"}}catch(e){}}(),(self.webpackChunk_geovelo_frontends_geovelo=self.webpackChunk_geovelo_frontends_geovelo||[]).push([[2859],{8272:function(e,r,o){var t=o(27026),n=o(85502),a=o(88581),i=o(83589),s=o(15428);r.A=function(e){let{color:r,bgColor:o,Icon:l,label:c,value:d,info:u,progression:p}=e;return(0,s.jsx)(t.A,{borderRadius:2,display:"flex",flexDirection:"column",gap:1,height:"100%",justifyContent:"flex-end",padding:2,sx:{backgroundColor:o||(0,i.a)(r,.8)},width:"100%"},l&&(0,s.jsx)(l,{sx:{color:r}}),(0,s.jsx)(t.A,{display:"flex",flexDirection:"column"},(0,s.jsx)(a.A,{color:"textSecondary",variant:"body2"},c),(0,s.jsx)(a.A,{fontWeight:700,variant:"h6"},void 0!==d?d:(0,s.jsx)(n.A,{sx:{display:"inline-block"},variant:"text",width:100})," ",u&&(0,s.jsx)(a.A,{noWrap:!0,color:"textSecondary",fontWeight:400,variant:"caption"},u)),void 0!==d&&void 0!==p&&(0,s.jsx)(a.A,{color:"textSecondary",fontWeight:400,variant:"caption"},p)))}},25771:function(e,r,o){o.d(r,{w:function(){return i}});var t=o(66395),n=o(89575),a=o(15428);function i(e){return(0,a.jsx)(t.A,(0,n.A)({viewBox:"0 0 24 24"},e),(0,a.jsx)("path",{d:"M12 20C12.5523 20 13 19.5523 13 19C13 18.4477 12.5523 18 12 18C11.4477 18 11 18.4477 11 19C11 19.5523 11.4477 20 12 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,a.jsx)("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,a.jsx)("path",{d:"M12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}))}},32931:function(e,r,o){o.d(r,{A:function(){return C}});var t=o(72998),n=o(42173),a=o(78373),i=o(74253),s=o(89575),l=o(14121),c=o(33153),d=o(85502),u=o(27026),p=o(68917),f=o(70505),g=o(4129),x=o(15428);var m=function(e){let{url:r,...o}=e;const{t:t}=(0,i.useTranslation)();return(0,a.useEffect)((()=>{o.open&&r&&async function(e){try{const r=await fetch(e,{method:"GET",headers:{"Content-Type":"image/png"}}),o=await r.blob();await navigator.share({files:[new File([o],"activity.png")]})}catch(r){console.error(r)}o.onClose()}(r)}),[o.open,r]),(0,x.jsx)(g.A,(0,s.A)({fullWidth:!0,maxWidth:"xs"},o),(0,x.jsx)(p.A,null,t("geovelo.share_dialog.title")),(0,x.jsx)(c.A,{dividers:!0},(0,x.jsx)(u.A,{paddingTop:"100%",position:"relative"},r?(0,x.jsx)(u.A,{bottom:0,left:0,position:"absolute",right:0,sx:{backgroundImage:`url(${r})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"contain"},top:0}):(0,x.jsx)(u.A,{bottom:0,left:0,position:"absolute",right:0,top:0},(0,x.jsx)(d.A,{height:"100%",variant:"rectangular",width:"100%"})))),(0,x.jsx)(l.A,null,(0,x.jsx)(f.A,{onClick:()=>o.onClose()},t("commons.actions.close"))))},h=o(56617);const v=t.userStats.reduce(((e,r)=>(e[r.type]=r,e)),{}),b=v[t.StatsTypes.Distance],y=v[t.StatsTypes.Duration],j=v[t.StatsTypes.VerticalGain],A=v[t.StatsTypes.AverageSpeed];var C=function(e){let{trace:r,shareDialogOpened:o,shareImageDialogOpened:s,openShareDialog:l,openShareImageDialog:c,onClose:d}=e;const{0:u,1:p}=(0,a.useState)(null),{t:f,i18n:{language:g}}=(0,i.useTranslation)(),{enqueueSnackbar:v}=(0,n.useSnackbar)(),{cancellablePromise:C,cancelPromises:w}=(0,t.useCancellablePromise)();return(0,a.useEffect)((()=>(r&&"canShare"in navigator&&navigator.canShare({files:[]})&&async function(e){let{id:r}=e;p(void 0);try{const e=await C(t.UserService.getTracePreviewUrl({traceId:r}));p(e)}
1catch(o){o instanceof Error&&"CancelledPromiseError"===(null==o?void 0:o.name)||(console.error(o),v(f("geovelo.share_dialog.server_error_image_generation")),p(null))}}(r),()=>{w(),p(null)})),[r]),(0,x.jsx)(a.Fragment,null,(0,x.jsx)(h.A,{disablePoorSharings:!0,maxWidth:"sm",onClose:()=>{l(!1),null==d||d()},open:o,shareText:`${f("geovelo.profile.traces.share_dialog.share_text")}\n${[`${null==b?void 0:b.transform(r.distance)} 🚲`,`${null==y?void 0:y.transform(r.duration)} ⏱`,`${null==j?void 0:j.transform(r.verticalGain)} 🗻`,`${null==A?void 0:A.transform(r.averageSpeed)} 🚀`].filter((e=>e)).join(" | ")}\n`,url:`${t.prodFrontendUrl}/${g}`}),(0,x.jsx)(m,{maxWidth:"sm",onClose:()=>{c(!1),null==d||d()},open:s,url:u}))}},51374:function(e,r,o){o.d(r,{i:function(){return i}});var t=o(66395),n=o(89575),a=o(15428);function i(e){return(0,a.jsx)(t.A,(0,n.A)({viewBox:"0 0 24 24"},e),(0,a.jsx)("path",{d:"M12 16C11.8022 16 11.6089 16.0587 11.4444 16.1686C11.28 16.2784 11.1518 16.4346 11.0761 16.6173C11.0004 16.8001 10.9806 17.0011 11.0192 17.1951C11.0578 17.3891 11.153 17.5673 11.2929 17.7071C11.4327 17.847 11.6109 17.9422 11.8049 17.9808C11.9989 18.0194 12.2 17.9996 12.3827 17.9239C12.5654 17.8482 12.7216 17.72 12.8315 17.5556C12.9413 17.3911 13 17.1978 13 17C13 16.7348 12.8946 16.4805 12.7071 16.2929C12.5196 16.1054 12.2652 16 12 16ZM22.67 17.47L14.62 3.47003C14.3598 3.00354 13.9798 2.61498 13.5192 2.3445C13.0586 2.07401 12.5341 1.9314 12 1.9314C11.4659 1.9314 10.9414 2.07401 10.4808 2.3445C10.0202 2.61498 9.64019 3.00354 9.38 3.47003L1.38 17.47C1.11079 17.924 0.966141 18.441 0.960643 18.9688C0.955144 19.4966 1.089 20.0166 1.34868 20.4761C1.60837 20.9356 1.9847 21.3185 2.43968 21.5861C2.89466 21.8536 3.41218 21.9964 3.94 22H20.06C20.5921 22.0053 21.1159 21.8689 21.5779 21.6049C22.0399 21.341 22.4234 20.9589 22.689 20.4978C22.9546 20.0368 23.0928 19.5134 23.0895 18.9814C23.0862 18.4493 22.9414 17.9277 22.67 17.47ZM20.94 19.47C20.8523 19.626 20.7245 19.7556 20.5697 19.8453C20.4149 19.935 20.2389 19.9815 20.06 19.98H3.94C3.76111 19.9815 3.5851 19.935 3.43032 19.8453C3.27553 19.7556 3.14765 19.626 3.06 19.47C2.97223 19.318 2.92602 19.1456 2.92602 18.97C2.92602 18.7945 2.97223 18.622 3.06 18.47L11.06 4.47003C11.1439 4.30623 11.2714 4.16876 11.4284 4.07277C11.5855 3.97678 11.766 3.92599 11.95 3.92599C12.134 3.92599 12.3145 3.97678 12.4716 4.07277C12.6286 4.16876 12.7561 4.30623 12.84 4.47003L20.89 18.47C20.9892 18.6199 21.0462 18.7937 21.055 18.9732C21.0638 19.1527 21.0241 19.3312 20.94 19.49V19.47ZM12 8.00003C11.7348 8.00003 11.4804 8.10538 11.2929 8.29292C11.1054 8.48046 11 8.73481 11 9.00003V13C11 13.2652 11.1054 13.5196 11.2929 13.7071C11.4804 13.8947 11.7348 14 12 14C12.2652 14 12.5196 13.8947 12.7071 13.7071C12.8946 13.5196 13 13.2652 13 13V9.00003C13 8.73481 12.8946 8.48046 12.7071 8.29292C12.5196 8.10538 12.2652 8.00003 12 8.00003Z",fill:"currentColor"}))}},54023:function(e,r,o){var t=o(23523),n=o(6369);r.A=(0,t.A)((0,n.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},56617:function(e,r,o){o.d(r,{A:function(){return T}});var t=o(89575),n=o(14121),a=o(33153),i=o(23523),s=o(6369),l=(0,i.A)((0,s.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),c=o(88581),d=o(27026),u=o(85502),p=o(45120),f=o(68917),g=o(72998),x=o(28317),m=o.n(x),h=o(42173),v=o(78373),b=o(74253),y=o(75735),j=o(51046),A=o(35819),C=o(70505),w=o(4129),k=o(27676),_=o(15428);const S=A.styled.div.withConfig({displayName:"share-dialog__ButtonsWrapper",componentId:"sc-8isrca-0"})(["display:flex;flex-wrap:1;gap:8px;button{height:32px;}"]);var T=function(e){let{disablePoorSharings:r,disableLinkCopy:o,disableQRCode:i,url:s,shareText:x,enableDownload:A,downloadTitle:T,code:I,...D}=e;const{0:B,1:E}=(0,v.useState)(!1),P=(0,v.useRef)(null),{t:W}=(0,b.useTranslation)(),{enqueueSnackbar:$}=(0,h.useSnackbar)(),{copy:R}=(0,g.useClipboard)((()=>{$(W("commons.copied_to_clipboard",{context:L.current?"code":void 0})),L.current=!1}),(()=>{$(W("commons.not_copied_to_clipboard",{context:L.current?"code":void 0})),L.current=!1})),{downloadBlob:F}=(0,g.useFileSaver)(),L=(0,v.useRef)(!1);return(0,_.jsx)(w.A,(0,t.A)({fullWidth:!0,maxWidth:"xs"},D),(0,_.jsx)(f.A,null,W("geovelo.share_dialog.title")),(0,_.jsx)(a.A,{dividers:!0,sx:{display:"flex",flexDirection:"column",gap:3}},(0,_.jsx)(S,null,s?(0,_.jsx)(v.Fragment,null,(0,_.jsx)(p.A,{disableRipple:!0,href:`https://bsky.app/intent/compose?text=${encodeURIComponent([x,s].join(" "))}`,rel:"noreferrer",sx:{bgcolor:"#208bfe",color:"#fff",height:32,width:32},target:"_blank"},(0,_.jsx)(g.BlueskyIcon,null)),(0,_.jsx)(j.r6,{hashtags:["geovelo"],title:x,url:s},(0,_.jsx)(j.uv,{round:!0,size:32})),!r&&(0,_.jsx)(v.Fragment,null,(0,_.jsx)(j.uI,{hashtag:"geovelo",url:s},(0,_.jsx)(j.ik,{round:!0,size:32})),(0,_.jsx)(j.wk,{source:"Geovelo",title:x,url:s},(0,_.jsx)(j._z,{round:!0,size:32}))),A&&s&&(0,_.jsx)(p.A,{disableRipple:!0,download:T||!0,href:s,sx:{bgcolor:"#ddd",color:"#333",height:32,width:32},target:"_blank"},(0,_.jsx)(k.s,null))):(0,_.jsx)(v.Fragment,null,(0,_.jsx)(u.A,{height:32,variant:"circular",width:32}),!r&&(0,_.jsx)(v.Fragment,null,(0,_.jsx)(u.A,{height:32,variant:"circular",width:32}),(0,_.jsx)(u.A,{height:32,variant:"circular",width:32})))),!r&&(!i||!i)&&(0,_.jsx)(v.Fragment,null,(0,_.jsx)(d.A,{alignItems:"flex-start",display:"flex",gap:2},!i&&(0,_.jsx)(d.A,{flexShrink:0,height:128,ref:P,width:128}
1,s?(0,_.jsx)(y.Ay,{fgColor:"#212121",size:128,style:{height:"auto",maxWidth:"100%",width:"100%"},value:s,viewBox:"0 0 128 128"}):(0,_.jsx)(u.A,{height:"100%",variant:"rounded",width:"100%"})),(0,_.jsx)(d.A,{display:"flex",flexDirection:"column",flexGrow:1,gap:1},!i&&(0,_.jsx)(C.A,{fullWidth:!0,color:"primary",disabled:B,onClick:()=>async function(){if(E(!0),P.current){const e=await m()(P.current,{scale:3,width:P.current.clientWidth,height:P.current.clientHeight,useCORS:!0}),r=await new Promise(((r,o)=>{try{e.toBlob((e=>{if(!e)throw new Error("no blob");r(e)}),"image/png",1)}catch(t){o(t)}}));F("qr_code.png",r)}E(!1)}(),startIcon:(0,_.jsx)(k.s,null),variant:"outlined"},(0,_.jsx)(b.Trans,{i18nKey:"commons.actions.download_qr_code"})),!o&&(0,_.jsx)(C.A,{fullWidth:!0,color:"primary",disabled:!s,onClick:()=>s&&R(s),startIcon:(0,_.jsx)(g.LinkIcon,null),variant:"outlined"},W("commons.actions.copy_link")))),I&&(0,_.jsx)(d.A,{alignItems:"center",display:"flex",flexDirection:"row",gap:2},(0,_.jsx)(c.A,null,(0,_.jsx)(b.Trans,{i18nKey:"geovelo.communities.invitation_link_dialog.code"})),(0,_.jsx)(C.A,{color:"primary",endIcon:(0,_.jsx)(l,null),onClick:()=>{R(I)},variant:"outlined"},I)))),(0,_.jsx)(n.A,null,(0,_.jsx)(C.A,{onClick:()=>D.onClose()},W("commons.actions.close"))))}},59141:function(e,r,o){o.d(r,{y:function(){return j}});var t=o(13687),n=o(88581),a=o(85502),i=o(14121),s=o(54890),l=o(33153),c=o(27026),d=o(68103),u=o(94866),p=o(10699),f=o(68917),g=o(72998),x=o(78373),m=o(74253),h=o(70505),v=o(4129),b=o(65517),y=o(15428);function j(e){var r,o;let{directBadgeBgColor:i,commutingTrip:s}=e;const{t:l}=(0,m.useTranslation)(),{toDistance:d}=(0,g.useUnits)();return(0,y.jsx)(t.A,{sx:{alignItems:"center",display:"flex",flexDirection:"row",flexGrow:1,gap:3}},(0,y.jsx)(c.A,{display:"flex",flexDirection:"column",gap:2},(0,y.jsx)(c.A,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1},(0,y.jsx)(n.A,{fontWeight:700,variant:"body1"},s?s.title:(0,y.jsx)(a.A,{variant:"text",width:200})," ",(0,y.jsx)(n.A,{color:"textSecondary",component:"span",variant:"body2"},s?(0,y.jsx)(x.Fragment,null,"(",d(s.bicycleDistance),")"):(0,y.jsx)(a.A,{variant:"text",width:50}))),s?1===s.bicyclePortions.length?(0,y.jsx)(c.A,{alignItems:"center",bgcolor:i||"#ECFBF4",borderRadius:2,display:"flex",height:24,paddingX:1},(0,y.jsx)(n.A,{color:"#005A44",lineHeight:1,variant:"caption"},l("geovelo.profile.traces.potentially_home_work_direct_route"))):(0,y.jsx)(c.A,{alignItems:"center",bgcolor:"#EEE8FD",borderRadius:2,display:"flex",height:24,paddingX:1},(0,y.jsx)(n.A,{color:"#6236BD",lineHeight:1,variant:"caption"},l("geovelo.profile.traces.potentially_home_work_bicycle_portions",{count:s.bicyclePortions.length}))):(0,y.jsx)(a.A,{height:24,sx:{borderRadius:2},variant:"rounded",width:100})),(0,y.jsx)(c.A,{display:"flex",flexDirection:"column",gap:1},(0,y.jsx)(c.A,{alignItems:"center",display:"flex",gap:1},(0,y.jsx)(g.PlaceIcon,{sx:{height:16,width:16}}),(0,y.jsx)(n.A,{variant:"body2"},s?(null===(r=s.bicyclePortions[0])||void 0===r?void 0:r.start.address)||s.home.address:(0,y.jsx)(a.A,{variant:"text",width:200}))),(0,y.jsx)(c.A,{alignItems:"center",display:"flex",gap:1},(0,y.jsx)(g.FlagIcon,{sx:{height:16,width:16}}),(0,y.jsx)(n.A,{variant:"body2"},s?(null===(o=s.bicyclePortions[s.bicyclePortions.length-1])||void 0===o?void 0:o.end.address)||s.work.address:(0,y.jsx)(a.A,{variant:"text",width:200}))))))}function A(e){var r,o,a,i;let{directBadgeBgColor:s,direction:l,referenceTrip:d}=e;const{t:u}=(0,m.useTranslation)(),{toDistance:p}=(0,g.useUnits)();return(0,y.jsx)(t.A,{sx:{alignItems:"center",display:"flex",flexDirection:"row",flexGrow:1,gap:3}},(0,y.jsx)(c.A,{display:"flex",flexDirection:"column",gap:2},(0,y.jsx)(c.A,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1},(0,y.jsx)(n.A,{fontWeight:700,variant:"body1"},d.title||u("geovelo.profile.traces.is_work_home")," ",(0,y.jsx)(n.A,{color:"textSecondary",component:"span",variant:"body2"},p("return"===l?d.distanceWorkHome:d.distanceHomeWork))),(0,y.jsx)(c.A,{alignItems:"center",bgcolor:s||"#ECFBF4",borderRadius:2,display:"flex",height:24,paddingX:1},(0,y.jsx)(n.A,{color:"#005A44",lineHeight:1,variant:"caption"},u("geovelo.profile.traces.potentially_home_work_direct_route")))),(0,y.jsx)(c.A,{display:"flex",flexDirection:"column",gap:1},(0,y.jsx)(c.A,{alignItems:"center",display:"flex",gap:1},(0,y.jsx)(g.PlaceIcon,{sx:{height:16,width:16}}),(0,y.jsx)(n.A,{variant:"body2"},"return"===l?null===(r=d.work)||void 0===r?void 0:r.address:null===(o=d.home)||void 0===o?void 0:o.address)),(0,y.jsx)(c.A,{alignItems:"center",display:"flex",gap:1},(0,y.jsx)(g.FlagIcon,{sx:{height:16,width:16}}),(0,y.jsx)(n.A,{variant:"body2"},"return"===l?null===(a=d.home)||void 0===a?void 0:a.address:null===(i=d.work)||void 0===i?void 0:i.address)))))}r.A=function(e){let{open:r,trace:o,onClose:t}=e;const{user:{commutingTrips:n}}=(0,x.useContext)(b.BR),a=[],C=o.referenceTripOccurrences.reduce(((e,r)=>(r.id&&(r.commutingTrip||r.referenceTrip)&&!a[r.id]&&e.push(r),e)),[]),{
10:w,1:k}=(0,x.useState)(1===C.length?C[0]:void 0),{0:_,1:S}=(0,x.useState)(!1),{0:T,1:I}=(0,x.useState)(!1),{t:D}=(0,m.useTranslation)();if((0,x.useEffect)((()=>(r&&k(1===C.length?C[0]:void 0),()=>{k(void 0),S(!1),I(!1)})),[r]),!n)return(0,y.jsx)(x.Fragment,null);const B=_||T;return(0,y.jsx)(v.A,{maxWidth:!1,onClose:()=>!B&&t(),open:r,slotProps:{paper:{sx:{width:680}}}},(0,y.jsx)(f.A,{sx:{fontWeight:700,padding:{xs:3,md:5}}},D("geovelo.profile.traces.potentially_home_work_choose")),(0,y.jsx)(l.A,{sx:{display:"flex",flexDirection:"column",gap:3,padding:{xs:3,md:5}}},1===C.length?C[0].commutingTrip?(0,y.jsx)(p.A,{sx:{borderRadius:4},variant:"outlined"},(0,y.jsx)(j,{commutingTrip:null==n?void 0:n.find((e=>{var r;let{id:o}=e;return(null===(r=C[0].commutingTrip)||void 0===r?void 0:r.id)===o}))})):C[0].referenceTrip&&(0,y.jsx)(p.A,{sx:{borderRadius:4},variant:"outlined"},(0,y.jsx)(A,{direction:C[0].direction,referenceTrip:C[0].referenceTrip})):C.map((e=>{const r=w&&w.id===e.id,o=e.commutingTrip?null==n?void 0:n.find((r=>{var o;let{id:t}=r;return(null===(o=e.commutingTrip)||void 0===o?void 0:o.id)===t})):null;return o||e.referenceTrip?(0,y.jsx)(p.A,{key:e.id,sx:{borderRadius:4,position:"relative",...r?{bgcolor:"#ECFBF4",borderColor:"#2AC682"}:{}},variant:"outlined"},(0,y.jsx)(u.A,{onClick:()=>k(e)},o?(0,y.jsx)(j,{commutingTrip:o,directBadgeBgColor:r?"#CDF5E3":void 0}):e.referenceTrip&&(0,y.jsx)(A,{directBadgeBgColor:r?"#CDF5E3":void 0,direction:e.direction,referenceTrip:e.referenceTrip})),r&&(0,y.jsx)(c.A,{position:"absolute",right:12,top:12},(0,y.jsx)(d.A,{fontSize:"small",sx:{color:"#2AC682"}}))):(0,y.jsx)(x.Fragment,{key:e.id})}))),(0,y.jsx)(i.A,{sx:{flexWrap:"wrap",gap:1,paddingBottom:{xs:3,md:5},paddingTop:0,paddingX:{xs:3,md:5}}},(0,y.jsx)(h.A,{disabled:B,onClick:()=>t(),variant:"outlined"},D("commons.actions.cancel")),(0,y.jsx)(h.A,{color:"primary",disabled:B||!w,onClick:async function(){if(w){S(!0);try{o.isPotentiallyBike&&await g.UserService.tagTraceAsBike({userTrace:o}),await g.UserService.tagTraceAsHomeWork({userTraceId:w.traceId,referenceTripOccurrenceId:w.id}),t(!0)}catch(e){console.error(e)}S(!1)}},startIcon:_&&(0,y.jsx)(s.A,{color:"inherit",size:16,thickness:4}),variant:"contained"},D("commons.actions.validate"))))}},80130:function(e,r,o){o.d(r,{A:function(){return T}});var t=o(78373),n=o(54357),a=o(31593),i=o(37570),s=o(15428),l=o(96674),c=o(42014),d=o(22162),u=o(63360),p=o(38216),f=o(42395),g=o(3807);function x(e){return(0,g.Ay)("MuiLinearProgress",e)}(0,f.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var m=o(6369);const h=s.keyframes`
2  0% {
3    left: -35%;
4    right: 100%;
5  }
6
7  60% {
8    left: 100%;
9    right: -90%;
10  }
11
12  100% {
13    left: 100%;
14    right: -90%;
15  }
16`,v="string"!=typeof h?s.css`
17        animation: ${h} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
18      `:null,b=s.keyframes`
19  0% {
20    left: -200%;
21    right: 100%;
22  }
23
24  60% {
25    left: 107%;
26    right: -8%;
27  }
28
29  100% {
30    left: 107%;
31    right: -8%;
32  }
33`,y="string"!=typeof b?s.css`
34        animation: ${b} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
35      `:null,j=s.keyframes`
36  0% {
37    opacity: 1;
38    background-position: 0 -23px;
39  }
40
41  60% {
42    opacity: 0;
43    background-position: 0 -23px;
44  }
45
46  100% {
47    opacity: 1;
48    background-position: -200px -23px;
49  }
50`,A="string"!=typeof j?s.css`
51        animation: ${j} 3s infinite linear;
52      `:null,C=(e,r)=>e.vars?e.vars.palette.LinearProgress[`${r}Bg`]:"light"===e.palette.mode?e.lighten(e.palette[r].main,.62):e.darken(e.palette[r].main,.5),w=(0,l.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[`color${(0,p.A)(o.color)}`],r[o.variant]]}})((0,c.A)((({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter((0,d.A)()).map((([r])=>({props:{color:r},style:{backgroundColor:C(e,r)}}))),{props:({ownerState:e})=>"inherit"===e.color&&"buffer"!==e.variant,style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]})))),k=(0,l.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.dashed,r[`dashedColor${(0,p.A)(o.color)}`]]}})((0,c.A)((({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter((0,d.A)()).map((([r])=>{const o=C(e,r);return{props:{color:r},style:{backgroundImage:`radial-gradient(${o} 0%, ${o} 16%, transparent 42%)`}}}))]}))),A||{animation:`${j} 3s infinite linear`}),_=(0,l.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.bar,r.bar1,r[`barColor${(0,p.A)(o.color)}`],("indeterminate"===o.variant||"query"===o.variant)&&r.bar1Indeterminate,"determinate"===o.variant&&r.bar1Determinate,"buffer"===o.variant&&r.bar1Buffer]}})((0,c.A)((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter((0,d.A)()).map((([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main}}))),{props:{variant:"determinate"},style:{transition:"transform .4s linear"}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .4s linear"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:v||{animation:`${h} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]})))),S=(0,l.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.bar,r.bar2,r[`barColor${(0,p.A)(o.color)}`],("indeterminate"===o.variant||"query"===o.variant)&&r.bar2Indeterminate,"buffer"===o.variant&&r.bar2Buffer]}})((0,c.A)((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter((0,d.A)()).map((([r])=>({props:{color:r},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[r].main}}))),{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"!==e.color,style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"===e.color,style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter((0,d.A)()).map((([r])=>({props:{color:r,variant:"buffer"},style:{backgroundColor:C(e,r),transition:"transform .4s linear"}}))),{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:y||{animation:`${b} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))));var T=t.forwardRef((function(e,r){const o=(0,u.b)({props:e,name:"MuiLinearProgress"}),{className:t,color:s="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=o,g={...o,color:s,variant:d},h=(e=>{const{classes:r,variant:o,color:t}=e,n={root:["root",`color${(0,p.A)(t)}`,o],dashed:["dashed",`dashedColor${(0,p.A)(t)}`],bar1:["bar","bar1",`barColor${(0,p.A)(t)}`,("indeterminate"===o||"query"===o)&&"bar1Indeterminate","determinate"===o&&"bar1Determinate","buffer"===o&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==o&&`barColor${(0,p.A)(t)}`,"buffer"===o&&`color${(0,p.A)(t)}`,("indeterminate"===o||"query"===o)&&"bar2Indeterminate","buffer"===o&&"bar2Buffer"]};return(0,a.A)(n,x,r)})(g),v=(0,i.I)(),b={},y={bar1:{},bar2:{}};if("determinate"===d||"buffer"===d)if(void 0!==l){b["aria-valuenow"]=Math.round(l),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let e=l-100;v&&(e=-e),y.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===d)if(void 0!==c){let e=(c||0)-100;v&&(e=-e),y.bar2.transform=`translateX(${e}%)`}else 0;return(0,m.jsxs)(w,{className:(0,n.A)(h.root,t),ownerState:g,role:"progressbar",...b,ref:r,...f,children:["buffer"===d?(0,m.jsx)(k,{className:h.dashed,ownerState:g}):null,(0,m.jsx)(_,{className:h.bar1,ownerState:g,style:y.bar1}),"determinate"===d?null:(0,m.jsx)(S,{className:h.bar2,ownerState:g,style:y.bar2})]})}))},90005:function(e,r,o){var t=o(14121),n=o(54890),a=o(33153),i=o(99511),s=o(68103),l=o(27026),c=o(45120),d=o(86203),u=o(88581),p=o(72998),f=o(42173),g=o(78373),x=o(74253),m=o(70505),h=o(4129),v=o(15428);const b={DUPLICATE:"geovelo.profile.traces.remove_dialog.reasons.duplicate",GEOMETRY_NOT_EXACT:"geovelo.profile.traces.remove_dialog.reasons.geometry_not_exact",NOT_BIKE:"geovelo.profile.traces.remove_dialog.reasons.not_bike",OTHER:"geovelo.profile.traces.remove_dialog.reasons.other"};r.A=function(e){let{open:r,trace:o,onClose:y}=e;const{0:j,1:A}=(0,g.useState)("NOT_BIKE"),{0:C,1:w}=(0,g.useState)(""),{0:k,1:_}=(0,g.useState)(!1),{t:S}=(0,x.useTranslation)(),{enqueueSnackbar:T}=(0,f.useSnackbar)();return(0,g.useEffect)((()=>{r&&(A("NOT_BIKE"),w(""),_(!1))}),[r]),(0,v.jsx)(h.A,{fullWidth:!0,disableEscapeKeyDown:k,maxWidth:"sm",onClose:(e,r)=>(!k||"backdropClick"!==r)&&y(),open:r},(0,v.jsx)(a.A,{sx:{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:3}},(0,v.jsx)(l.A,{alignItems:"center",display:"flex",gap:2,justifyContent:"space-between",width:"100%"},(0,v.jsx)(u.A,{fontWeight:700,variant:"h6"},S("geovelo.profile.traces.remove_dialog.title")),(0,v.jsx)(c.A,{disabled:k,onClick:()=>y()},(0,v.jsx)(d.A,null))),(0,v.jsx)(l.A,{display:"flex",flexDirection:"column",gap:1},(0,v.jsx)(u.A,null,S("geovelo.profile.traces.remove_dialog.description")),(0,v.jsx)(l.A,{display:"flex",flexWrap:"wrap",gap:1},p.userTraceDeletionReasons.map((e=>{const r=j===e;return(0,v.jsx)(m.A,{color:"primary",disabled:k,endIcon:r&&(0,v.jsx)(s.A,{sx:{color:"#2AC682"}}),key:e,onClick:()=>A(e),size:"medium",sx:{bgcolor:r?"#ECFBF4":void 0,borderColor:r?"#2AC682":"#DDE0E7",color:"#212121"},variant:"outlined"},S(b[e]))}))),(0,v.jsx)(i.A,{fullWidth:!0,multiline:!0,disabled:k,margin:"dense",onChange:e=>{let{target:{value:r}}=e;return w(r)},placeholder:S("geovelo.profile.traces.remove_dialog.comment"),rows:3,size:"small",value:C,variant:"outlined"}))),(0,v.jsx)(t.A,null,(0,v.jsx)(m.A,{color:"primary",disabled:k,onClick:async function(){if(o){_(!0);try{await p.UserService.removeUserTrace(o.id,{deletionReason:j,deletionComment:C}),T(S("geovelo.profile.traces.remove_dialog.success")),y(!0)}catch(e){console.error(e),T(S("geovelo.profile.traces.remove_dialog.server_error"),{variant:"error"}),_(!1)}}},size:"medium",startIcon:k&&(0,v.jsx)(n.A,{color:"inherit",size:16,thickness:4}),variant:"contained"},S("commons.actions.validate"))))}}}]);

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.