1import{r as o,g as m,j as d}from"./chunk-LFPYN7LY-BYCOceFh.js";const p={id:"default",name:"Default",displayName:"Transit",customerId:"default",coordinates:{lat:37.9577,lng:-121.2908},description:"Default transit portal (customer determined by domain/API key)"};function l(t){return p}const v={};function f(){return(typeof import.meta<"u"&&v&&void 0)==="production"?"production":"test"}const r=[{name:"Test",value:"test",apiBaseUrl:"https://tst-api.syncromatics.com/portal",description:"Test API",color:"orange"},{name:"Production",value:"production",apiBaseUrl:"https://api.syncromatics.com/portal",description:"Production API",color:"green"}];function E(){const t=f(),n=l(),e=`${t==="test"?"Test":"Production"} - ${n.displayName}`;return{type:t,customer:n,displayName:e}}const i=o.createContext(void 0);function _({children:t}){const[n]=o.useState(E),e=m("root"),s=!!(e!=null&&e.isDevelopmentHost),a=r.find(u=>u.value===n.type)??r[0],c={currentEnvironment:n,environmentConfig:a,isDevelopment:s};return d.jsx(i.Provider,{value:c,children:t})}function g(){const t=o.useContext(i);if(t===void 0)throw new Error("useEnvironment must be used within an EnvironmentProvider");return t}export{_ as E,g as u};
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.