PageSourceSearch

https://www.enrutate.com/_next/static/chunks/18gljmksptsq5.js?dpl=dpl_59fkVNiLVNxuxs6wwN2VGXDnRrqt

js enrutate.com collected 2026-09-25 03:34:25 UTC 15,407 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="746e17f3-b7e6-c757-629a-8d4b5b643839")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16787,96640,63876,31092,49576,22554,17612,e=>{"use strict";e.i(59544),e.i(29417);var t=e.i(5730),r=e.i(45060);e.s(["Badge",0,function({tone:e="soft",className:a,...l}){return(0,t.jsx)("span",{className:(0,r.cn)("badge","brand"===e?"badge-brand":"badge-soft",a),...l})},"LineBadge",0,function({code:e,color:a,className:l}){return(0,t.jsx)("span",{className:(0,r.cn)("line-badge",l),style:{background:a??"var(--ink-700)"},children:e})}],96640),e.s(["Chip",0,function({active:e,brand:a,className:l,type:s="button",...n}){return(0,t.jsx)("button",{type:s,className:(0,r.cn)("chip",e&&"is-active",a&&"is-brand",l),...n})}],63876);var a=e.i(41595),l=e.i(31338),s=e.i(14984);function n({url:e,className:a,icon:l,top:s,name:o,comingSoonTop:i,comingSoonAria:c}){return e?(0,t.jsxs)("a",{className:a,href:e,target:"_blank",rel:"noopener","aria-label":`${s} ${o}`,children:[l,(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"s-top block",children:s}),(0,t.jsx)("span",{className:"s-big block",children:o})]})]}):(0,t.jsxs)("span",{className:(0,r.cn)(a,"cursor-default opacity-55"),"aria-disabled":"true","aria-label":c,children:[l,(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"s-top block",children:i}),(0,t.jsx)("span",{className:"s-big block",children:o})]})]})}e.s(["StoreBadges",0,function({stack:e=!1,className:o}){let i=(0,a.useTranslations)("store"),c=(0,r.cn)("store w-full justify-center",!e&&"sm:w-auto sm:justify-start");return(0,t.jsxs)("div",{className:(0,r.cn)("flex gap-2.5",e?"flex-col":"w-full flex-col sm:w-auto sm:flex-row sm:flex-wrap",o),children:[(0,t.jsx)(n,{url:l.IOS_APP_URL,className:c,icon:(0,t.jsx)(s.IconApple,{}),top:i("downloadOn"),name:"App Store",comingSoonTop:i("comingSoonOn"),comingSoonAria:i("comingSoonAria",{name:"App Store"})}),(0,t.jsx)(n,{url:l.ANDROID_APP_URL,className:c,icon:(0,t.jsx)(s.IconPlay,{}),top:i("availableOn"),name:"Google Play",comingSoonTop:i("comingSoonOn"),comingSoonAria:i("comingSoonAria",{name:"Google Play"})})]})}],31092);let o={info:"bg-ink-100 text-ink-700 border-border-strong",warning:"bg-amber-50 text-brand-ink border-amber-200",critical:"bg-[color-mix(in_oklch,var(--danger)_12%,white)] text-[var(--danger)] border-[color-mix(in_oklch,var(--danger)_28%,white)]"};e.s(["Alert",0,function({severity:e="info",title:l,body:s,className:n}){let i=(0,a.useTranslations)("alert");return(0,t.jsxs)("div",{role:"critical"===e?"alert":"status","aria-live":"critical"===e?"assertive":"polite",className:(0,r.cn)("flex flex-col gap-1 rounded-md border px-4 py-3 text-sm",o[e],n),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider opacity-80",children:i(e)}),(0,t.jsx)("span",{className:"font-bold",children:l})]}),s?(0,t.jsx)("p",{className:"leading-snug opacity-90",children:s}):null]})}],49576);let i={high:{label:"Dato confirmado",className:"text-[var(--ok)] bg-[color-mix(in_oklch,var(--ok)_14%,white)]"},medium:{label:"Tiempo estimado",className:"text-brand-ink bg-amber-50"},low:{label:"Tiempo aproximado",className:"text-brand-ink bg-amber-50"},unknown:{label:"Sin datos de tiempo",className:"text-ink-700 bg-ink-100"},stale:{label:"Desactualizado",className:"text-[var(--danger)] bg-[color-mix(in_oklch,var(--danger)_12%,white)]"}};e.s(["ConfidenceBadge",0,function({level:e,className:a}){let l=i[e]??i.unknown;return(0,t.jsxs)("span",{className:(0,r.cn)("inline-flex items-center gap-1.5 rounded-pill px-2.5 py-1 text-[11px] font-bold uppercase tracking-wider",l.className,a),children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-current","aria-hidden":"true"}),l.label]})}],22554),e.s(["EmptyState",0,function({title:e,message:l,action:s,className:n}){let o=(0,a.useTranslations)("states");return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col items-center gap-1 py-8 text-center",n),children:[(0,t.jsx)("p",{className:"t-h3 text-ink-900",children:e??o("empty")}),l?(0,t.jsx)("p",{className:"t-small text-text-mute max-w-xs",children:l}):null,s?(0,t.jsx)("div",{className:"mt-3",children:s}):null]})},"ErrorState",0,function({title:e,message:l,onRetry:s,className:n}){let o=(0,a.useTranslations)("states");return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col items-center gap-2 py-8 text-center",n),children:[(0,t.jsx)("p",{className:"t-h3 text-ink-900",children:e??o("errorTitle")}),(0,t.jsx)("p",{className:"t-small text-text-mute max-w-xs",children:l??o("errorMessage")}),s?(0,t.jsx)("button",{type:"button",className:"btn btn-ghost mt-1",onClick:s,children:o("retry")}):null]})}
2,"Skeleton",0,function({className:e}){return(0,t.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-ink-100",e),"aria-hidden":"true"})}],17612),e.i(25616),e.s([],16787)},74024,e=>{"use strict";var t=e.i(5730),r=e.i(91460),a=e.i(11257),l=e.i(41595),s=e.i(60130);e.i(16787);var n=e.i(49576),o=e.i(59544),i=e.i(14984);let c="image/jpeg";async function d(e,t=1600,r=.8){let a;try{a=await new Promise((t,r)=>{let a=URL.createObjectURL(e),l=new Image;l.onload=()=>{URL.revokeObjectURL(a),t(l)},l.onerror=()=>{URL.revokeObjectURL(a),r(Error("Could not decode the selected image"))},l.src=a})}catch{return e}let l=Math.max(a.naturalWidth,a.naturalHeight);if(l<=t)return e;let s=t/l,n=document.createElement("canvas");n.width=Math.round(a.naturalWidth*s),n.height=Math.round(a.naturalHeight*s);let o=n.getContext("2d");if(!o)return e;o.drawImage(a,0,0,n.width,n.height);let i=await new Promise(e=>n.toBlob(e,c,r));return i?new File([i],e.name.replace(/\.[^.]+$/,"")+".jpg",{type:c}):e}let u={route:"route",stop:"stop",vehicle:"vehicle"},m={route:["no-longer-runs","wrong-path","schedule","safety","other"],stop:["does-not-exist","wrong-location","wrong-name","removed","other"],vehicle:["not-tracking","wrong-position","wrong-route","other"]},p=(0,r.createContext)(null),x="var(--ease-smooth-out)";function h({label:e,children:r}){return(0,t.jsxs)("label",{className:"grid gap-1.5",children:[(0,t.jsx)("span",{className:"t-tiny",style:{color:"var(--ink-700)"},children:e}),r]})}function b({label:e,open:r,onToggle:a,children:l}){return(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:a,"aria-expanded":r,className:"t-small flex items-center gap-1.5 justify-self-start",style:{color:"var(--ink-700)",fontWeight:500},children:[r?(0,t.jsx)(i.IconMinus,{size:16}):(0,t.jsx)(i.IconPlus,{size:16}),e]}),r?l:null]})}function g({values:e,labelFor:r,selected:a,onSelect:l}){let s=Math.max(e.indexOf(a),0);return(0,t.jsx)("div",{role:"radiogroup",className:"grid gap-1.5",children:e.map((n,o)=>{let c=n===a;return(0,t.jsxs)("div",{role:"radio","aria-checked":c,tabIndex:o===s?0:-1,onClick:()=>l(n),onKeyDown:t=>{if(" "===t.key||"Enter"===t.key){t.preventDefault(),l(n);return}((t,r)=>{let a="ArrowDown"===t.key?1:"ArrowUp"===t.key?-1:0;if(!a)return;t.preventDefault();let s=(r+a+e.length)%e.length;l(e[s]);let n=t.currentTarget.parentElement?.querySelectorAll('[role="radio"]');n?.[s]?.focus()})(t,o)},className:"flex cursor-pointer items-center gap-2.5 px-3 py-2.5",style:{borderRadius:"var(--r-md)",border:`1.5px solid ${c?"var(--amber-400)":"var(--border)"}`,background:c?"color-mix(in srgb, var(--amber-400) 12%, var(--paper))":"var(--paper)",color:"var(--ink-900)",fontWeight:500,transition:"border-color var(--duration-quick) var(--ease-smooth-out), background var(--duration-quick) var(--ease-smooth-out)"},children:[(0,t.jsx)("span",{className:"min-w-0 flex-1",children:r(n)}),c?(0,t.jsx)(i.IconCheck,{size:18,sw:2,style:{color:"var(--amber-600)"}}):null]},n)})})}function f({value:e,onChange:r,...a}){let l=1e3-e.length,s=l<=250;return(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("div",{className:"field",style:{alignItems:"stretch"},children:(0,t.jsx)("textarea",{rows:3,maxLength:1e3,value:e,onChange:e=>r(e.target.value),style:{resize:"vertical",width:"100%",border:0,outline:0,background:"transparent",font:"inherit",color:"inherit"},...a})}),s?(0,t.jsx)("span",{className:"t-tiny justify-self-end",style:{color:"var(--text-mute)"},children:l}):null]})}function j({target:e,onClose:c}){let p=(0,l.useTranslations)("report"),v=(0,s.useReportProblem)(),y=(0,s.useUploadReportPhoto)(),k=m[e.subject],[w,N]=(0,r.useState)(e.reason&&k.includes(e.reason)?e.reason:k[0]),[R,I]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1),[P,L]=(0,r.useState)(""),[T,A]=(0,r.useState)(null),U="other"===w,E=(0,r.useRef)(null),O=(0,r.useRef)(null);(0,r.useEffect)(()=>{U&&O.current?.scrollIntoView?.({block:"center"})},[U]);let[_,B]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=requestAnimationFrame(()=>B(!0));return()=>cancelAnimationFrame(e)},[]);let D=(0,r.useCallback)(()=>{B(!1),window.setTimeout(c,250)},[c]),z=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=document.activeElement;return z.current?.focus(),()=>e?.focus?.()},[]),(0,r.useEffect)(()=>{let e=e=>"Escape"===e.key&&D();return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[D]);let M=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>
2{M.current&&URL.revokeObjectURL(M.current)},[]);let F=e=>{M.current&&URL.revokeObjectURL(M.current),M.current=e},$=async t=>{let r=t.target.files?.[0];if(t.target.value="",!r)return;let a=URL.createObjectURL(r);F(a),A({previewUrl:a,uploadId:null,failed:!1});try{let t=await d(r),l=await y.mutateAsync({file:t,subject:e.subject,subjectId:e.subjectId});A({previewUrl:a,uploadId:l.id,failed:!1})}catch{A({previewUrl:a,uploadId:null,failed:!0})}},q=null!==T&&null===T.uploadId&&!T.failed;return(0,a.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-[90] grid place-items-center p-4 sm:p-6",style:{fontFamily:"var(--font-sans)"},children:[(0,t.jsx)("button",{type:"button","aria-label":p("close"),onClick:D,className:"absolute inset-0 cursor-default",style:{background:"color-mix(in srgb, var(--ink-900) 50%, transparent)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",transition:"opacity 250ms ease",opacity:+!!_}}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":p("title"),className:"surface relative max-h-[90dvh] w-full max-w-[420px] overflow-y-auto",style:{transition:`opacity 250ms ${x}, transform 250ms ${x}`,opacity:+!!_,transform:_?"none":"translateY(12px) scale(.98)"},children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 p-4",style:{borderBottom:"1px solid var(--border)"},children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"t-h3",style:{color:"var(--ink-900)"},children:p("title")}),(0,t.jsx)("p",{className:"t-small mt-1",style:{color:"var(--text-soft)"},children:p.rich("about",{subject:p(`subject.${u[e.subject]}`),label:e.subjectLabel,strong:e=>(0,t.jsx)("strong",{style:{color:"var(--ink-900)"},children:e})})})]}),(0,t.jsx)("button",{ref:z,type:"button",onClick:D,"aria-label":p("close"),className:"btn btn-quiet btn-icon",children:(0,t.jsx)(i.IconClose,{size:20})})]}),v.isSuccess?(0,t.jsxs)("div",{className:"grid justify-items-center gap-2 p-6 text-center",children:[(0,t.jsx)("span",{className:"grid h-12 w-12 place-items-center",style:{borderRadius:"var(--r-pill)",background:"color-mix(in srgb, var(--ok) 14%, var(--paper))",color:"var(--ok)"},children:(0,t.jsx)(i.IconCheck,{size:24,sw:2})}),(0,t.jsx)("div",{className:"t-h3",style:{color:"var(--ink-900)"},children:p("successTitle")}),(0,t.jsx)("p",{className:"t-small max-w-[34ch]",style:{color:"var(--text-soft)"},children:p("successMessage")}),(0,t.jsx)(o.Button,{variant:"primary",block:!0,onClick:D,className:"mt-2",children:p("close")})]}):(0,t.jsxs)("form",{onSubmit:t=>{t.preventDefault();let r=String(new FormData(t.currentTarget).get("email")??"").trim(),a=P.trim(),l={subject:e.subject,subjectId:e.subjectId,reason:w,...r?{email:r}:{},...a?{details:a}:{},...T?.uploadId?{uploadId:T.uploadId}:{},...e.contextRouteId?{contextRouteId:e.contextRouteId}:{}};v.mutate(l)},className:"grid gap-3 px-4 pt-4",children:[(0,t.jsx)(h,{label:p("reasonLabel"),children:(0,t.jsx)(g,{values:k,labelFor:t=>p(`reasons.${u[e.subject]}.${t}`),selected:w,onSelect:N})}),(0,t.jsx)("input",{ref:E,type:"file",accept:"image/*",capture:"environment",hidden:!0,onChange:$}),T?(0,t.jsxs)("div",{className:"flex items-center gap-3 p-2.5",style:{border:"1.5px solid var(--border)",borderRadius:"var(--r-md)"},children:[(0,t.jsx)("img",{src:T.previewUrl,alt:p("photoAlt"),className:"h-14 w-14 object-cover",style:{borderRadius:"var(--r-sm)"}}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"t-small",style:{color:"var(--ink-900)",fontWeight:500},children:q?p("photoUploading"):T.failed?p("photoError"):p("photoReady")}),T.failed?(0,t.jsx)("button",{type:"button",onClick:()=>E.current?.click(),className:"t-tiny underline",style:{color:"var(--danger-strong)"},children:p("photoRetry")}):null]}),(0,t.jsx)("button",{type:"button",onClick:()=>{F(null),A(null),y.reset()},"aria-label":p("photoRemove"),className:"btn btn-quiet btn-icon",children:(0,t.jsx)(i.IconClose,{size:18})})]}):(0,t.jsxs)(o.Button,{type:"button",variant:"ghost",block:!0,onClick:()=>E.current?.click(),children:[(0,t.jsx)(i.IconCamera,{size:18}),p("photoTake")]}),U?(0,t.jsx)("div",{ref:O,children:(0,t.jsx)(h,{label:p("otherLabel"),children:(0,t.jsx)(f,{value:P,onChange:L,required:!0,autoFocus:!0,placeholder:p("otherPlaceholder")})})}):(0,t.jsx)(b,{label:p("addDetails"),open:C,onToggle:()=>S(e=>(e&&L(""),!e)),children:(0,t.jsx)(f,{value:P,onChange:L,"aria-label":p("detailsLabel"),placeholder:p("detailsPlaceholder")})}),(0,t.jsx)(b,{label:p("followUpToggle"),open:R,onToggle:()=>I(e=>!e),children:(0,t.jsx)("div",{className:"field",children:(0,t.jsx)("input",{name:"email",type:"email",autoComplete:"email","aria-label":p("emailLabel"),placeholder:p("emailPlaceholder")})})}),v.isError?(0,t.jsx)(n.Alert,{severity:"critical",title:p("errorMessage")}):null,(0,t.jsxs)("div",{className:"sticky bottom-0 -mx-4 grid gap-2 px-4 pt-2 pb-4",style:{background:"var(--paper)"},children:[(0,t.jsx)(o.Button,{type:"submit",variant:"primary",block:!0,disabled:q||v.isPending,children:v.isPending?p("submitting"):p("submit")}),(0,t.jsx)("p",{className:"t-tiny text-center",style:{color:"var(--text-mute)",fontWeight:500},children:p.rich("terms",{link:e=>(0,t.jsx)("a",{href:"/terminos",target:"_blank",rel:"noopener noreferrer",style:{color:"var(--ink-700)",textDecoration:"underline"},children:e})})})]})]})]})]}),document.body)}e.s(["ReportProvider",0,function({children:e}){let[a,l]=(0,r.useState)(null),s=(0,r.useCallback)(e=>l(e),[]);return(0,t.jsxs)(p.Provider,{value:s,children:[e,a?(0,t.jsx)(j,{target:a,onClose:()=>l(null)}):null]})},"useReportModal",0,function(){let e=(0,r.useContext)(p);if(!e)throw Error("useReportModal must be used within <ReportProvider>");return e}],74024)},51927,e=>{"use strict";var t=e.i(24688),r=e.i(5730);e.s(["default",0,function({locale:e,...a}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...a})}])}]);
3
4//# debugId=746e17f3-b7e6-c757-629a-8d4b5b643839

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.