PageSourceSearch

https://citymapper.com/_next/static/chunks/pages/nextcity-0bfbcf9b74960033.js

js citymapper.com collected 2026-09-24 08:37:02 UTC 18,820 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[258],{6038:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/nextcity",function(){return n(89750)}])},24497:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}(n(75834)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(77569));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u="Select...",h=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(e){var t,a;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return(t=(a=l(n).call(this,e))&&("object"===o(a)||"function"==typeof a)?a:c(this)).state={selected:t.parseValue(e.value,e.options)||{label:void 0===e.placeholder?u:e.placeholder,value:""},isOpen:!1},t.dropdownRef=(0,r.createRef)(),t.mounted=!0,t.handleDocumentClick=t.handleDocumentClick.bind(c(t)),t.fireChangeEvent=t.fireChangeEvent.bind(c(t)),t}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&d(n,e),t=[{key:"componentDidUpdate",value:function(e){if(this.props.value!==e.value)if(this.props.value){var t=this.parseValue(this.props.value,this.props.options);t!==this.state.selected&&this.setState({selected:t})}else this.setState({selected:{label:void 0===this.props.placeholder?u:this.props.placeholder,value:""}})}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(e){this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus(this.state.isOpen),("mousedown"!==e.type||0===e.button)&&(e.stopPropagation(),e.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))}},{key:"parseValue",value:function(e,t){var n;if("string"==typeof e)for(var r=0,a=t.length;r<a;r++)if("group"===t[r].type){var s=t[r].items.filter(function(t){return t.value===e});s.length&&(n=s[0])}else void 0!==t[r].value&&t[r].value===e&&(n=t[r]);return n||e}},{key:"setValue",value:function(e,t){var n={selected:{value:e,label:t},isOpen:!1};this.fireChangeEvent(n),this.setState(n)}},{key:"fireChangeEvent",value:function(e){e.selected!==this.state.selected&&this.props.onChange&&this.props.onChange(e.selected)}},{key:"renderOption",value:function(e){var t,n=e.value;void 0===n&&(n=e.label||e);var s=e.label||e.value||e,o=n===this.state.selected.value||n===this.state.selected,l=(i(t={},"".concat(this.props.baseClassName,"-option"),!0),i(t,e.className,!!e.className),i(t,"is-selected",o),t),c=(0,a.default)(l);return r.default.createElement("div",{key:n,className:c,onMouseDown:this.setValue.bind(this,n,s),onClick:this.setValue.bind(this,n,s),role:"option","aria-selected":o?"true":"false"},s)}},{key:"buildMenu",value:function(){var e=this,t=this.props,n=t.options,a=t.baseClassName,s=n.map(function(t){if("group"!==t.type)return e.renderOption(t);var n=r.default.createElement("div",{className:"".concat(a,"-title")},t.name),s=t.items.map(function(t){return e.renderOption(t)});return r.default.createElement("div",{className:"".concat(a,"-group"),key:t.name,role:"listbox",tabIndex:"-1"},n,s)});return s.length?s:r.default.createElement("div",{className:"".concat(a,"-noresults")}
1,"No options found")}},{key:"handleDocumentClick",value:function(e){this.mounted&&!this.dropdownRef.current.contains(e.target)&&this.state.isOpen&&this.setState({isOpen:!1})}},{key:"isValueSelected",value:function(){return"string"==typeof this.state.selected||""!==this.state.selected.value}},{key:"render",value:function(){var e,t,n,s,o,l=this.props,c=l.baseClassName,d=l.controlClassName,u=l.placeholderClassName,h=l.menuClassName,p=l.arrowClassName,m=l.arrowClosed,g=l.arrowOpen,b=l.className,f=this.props.disabled?"Dropdown-disabled":"",y="string"==typeof this.state.selected?this.state.selected:this.state.selected.label,x=(0,a.default)((i(e={},"".concat(c,"-root"),!0),i(e,b,!!b),i(e,"is-open",this.state.isOpen),e)),v=(0,a.default)((i(t={},"".concat(c,"-control"),!0),i(t,d,!!d),i(t,f,!!f),t)),w=(0,a.default)((i(n={},"".concat(c,"-placeholder"),!0),i(n,u,!!u),i(n,"is-selected",this.isValueSelected()),n)),j=(0,a.default)((i(s={},"".concat(c,"-menu"),!0),i(s,h,!!h),s)),A=(0,a.default)((i(o={},"".concat(c,"-arrow"),!0),i(o,p,!!p),o)),_=r.default.createElement("div",{className:w},y),N=this.state.isOpen?r.default.createElement("div",{className:j,"aria-expanded":"true"},this.buildMenu()):null;return r.default.createElement("div",{ref:this.dropdownRef,className:x},r.default.createElement("div",{className:v,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},_,r.default.createElement("div",{className:"".concat(c,"-arrow-wrapper")},g&&m?this.state.isOpen?g:m:r.default.createElement("span",{className:A}))),N)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(r.Component);h.defaultProps={baseClassName:"Dropdown"},t.A=h},29263:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(26514);n(75834);var a=n(68208),s=n.n(a),o=n(77569),i=n.n(o),l=n(2111),c=n(78653),d=n(99349),u=n(28294),h=n(27419),p=n(56748),m=n(24889),g=n(30376);let b={green:i()(l.A.bg_green),blue:i()(l.A.bg_blue),purple:i()(l.A.bg_purple),white:i()(l.A.bg_white),midGreen:i()((0,c.merge)({backgroundColor:"#075D00"}).toString()),darkGreen:i()((0,c.merge)({backgroundColor:"#25741F"}).toString())},f=e=>{let{forceGreen:t,blue:n,isClient:r,white:a,darkGreen:s,midGreen:o}=e;return t?"green":n?"blue":o?"midGreen":r||a?"white":s?"darkGreen":"green"},y=(0,u.eQ)({NEXT_POWERED:s().bool},()=>({NEXT_POWERED:!0})),x=(0,u.Zz)(y,(0,d.connect)(e=>{let{env:{isClient:t}}=e;return{isClient:t}}))(e=>{let{fullWidth:t,noMargin:n,children:a,location:s,store:o,uriConfig:c,isClient:d,blue:u,forceGreen:y,white:x,noHeaderOrFooter:v,darkGreen:w,midGreen:j,noFooter:A}=e;return(0,r.jsx)(h.A,{store:o,uriConfig:c,children:(0,r.jsxs)("div",{className:b[f({forceGreen:y,blue:u,isClient:d,white:x,darkGreen:w,midGreen:j})],children:[d||v?(0,r.jsx)(g.A,{}):(0,r.jsx)(p.A,{theme:f({forceGreen:y,blue:u,isClient:d,white:x,darkGreen:w,midGreen:j}),disableRouter:!0,location:s}),(0,r.jsx)("div",{className:i()(l.A.mla,l.A.mra,t?[l.A.w100]:[l.A.mw2,l.A.mw3_m,l.A.mbxl,l.A.pbxl],d?[l.A.h100v]:[n?null:l.A.mtm]),children:a}),!d&&!v&&!A&&(0,r.jsx)(m.A,{location:s})]})})})},89750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var r=n(26514),a=n(75834),s=n(1707),o=n(28294),i=n(8511),l=n(81733),c=n(19536),d=n(77569),u=n.n(d),h=n(78653),p=n(85491),m=n(24497),g=n(7953);let b={form:u()(i.Ay.bg_white,i.Ay.fg_greyDark,i.Ay.br4,i.Ay.pam,i.Ay.alignl,(0,h.css)({padding:"2.5em",margin:"auto",marginBottom:"5em",width:"90%",maxWidth:"40em"}).toString()),title:(0,h.css)({marginLeft:"auto",marginRight:"auto",width:"60%",textAlign:"center",fontSize:"3.5em",marginBottom:"-0.5em"}).toString(),voteImgSub:(0,h.css)({margin:"1em auto",display:"flex",width:"90%",maxWidth:"40em",flexDirection:"row",alignItems:"center",justifyContent:"center"}).toString(),voteImg:(0,h.css)({height:"7em"}).toString(),sub:u()(i.Ay.n,(0,h.css)({marginLeft:"auto",marginRight:"auto",padding:"1em",textAlign:"center",fontSize:"1.3em",maxWidth:"30em"}).toString()),dropdown:u()(i.Ay.b_greyMedium),label:u()(i.Ay.db,i.Ay.f4,i.Ay.b,i.Ay.lh0,(0,h.css)({marginTop:"2.3em"})).toString(),labelGreen:u()(i.Ay.db,i.Ay.f4,i.Ay.b,i.Ay.lh0,(0,h.css)({color:"#37ab2e",marginTop:"2.3em"}
1)).toString(),input:u()(i.Ay.inputReset,i.Ay.w100,i.Ay.ba,i.Ay.bw1,i.Ay.b_greyMedium,i.Ay.br2,i.Ay.bg_white,i.Ay.pas,i.Ay.lhs,(0,h.css)({border:"solid #cccccc 1px",color:"#777777","::placeholder":{opacity:.5}}).toString()),textBox:u()(i.Ay.inputReset,i.Ay.w100,i.Ay.ba,i.Ay.bw1,i.Ay.b_greyMedium,i.Ay.br2,i.Ay.bg_white,i.Ay.pas,i.Ay.lhs,(0,h.css)({border:"solid #cccccc 1px",color:"#777777","::placeholder":{opacity:.5},height:"6em",marginBottom:"-1em"}).toString()),checkbox:(0,h.css)({marginLeft:"-12.5em",marginRight:"15px"}).toString(),heading:(0,h.css)({textAlign:"center"}).toString(),radioGroup:u()(i.Ay.lhl,(0,h.css)({fontSize:"0.8em",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"}).toString()),error:i.Ay.fg_disruptionOrange,radio:i.Ay.mrs,radioLabel:i.Ay.n,formattedMessage:(0,h.css)({color:"#37ab2e",margin:"200px"}).toString(),submit:u()(i.Ay.buttonReset,i.Ay.fontReset,i.Ay.bg_green,i.Ay.fg_white,i.Ay.b,i.Ay.pas,i.Ay.br2,i.Ay.cp,(0,h.css)({width:"5.5em",marginTop:"3em",display:"block",":disabled":{opacity:.6},":active":{background:l.greenLight},borderRadius:"30px"}).toString()),success:u()((0,h.css)({background:"white",borderRadius:"4px",display:"flex",flexDirection:"column",alignItems:"center",width:"90%",maxWidth:"40em",margin:"1em auto 17em",padding:"0 2em"}).toString()),thanksImg:(0,h.css)({height:"13em",margin:"auto"}).toString(),thanksTitle:(0,h.css)({color:"#5AA843",textAlign:"center",fontSize:"2.5em",marginTop:"-0,8em"}).toString(),thanksSub:(0,h.css)({color:"#5AA843",textAlign:"center",fontSize:"1em",margin:"-1.5em auto 2em"}).toString(),confetti:(0,h.css)({height:"40em",width:"90%",maxWidth:"30em",margin:"20em auto"}).toString(),hiring:u()(i.Ay.w100,(0,h.css)({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",backgroundColor:"rgb(55, 171, 47, 0.15)",borderRadius:"10px",margin:"2em auto",height:"6em"}).toString()),hiringImg:(0,h.css)({width:"30%",maxWidth:"6em",margin:"2em"}).toString(),hiringMessage:(0,h.css)({fontSize:"1.2em",color:"#37ab2e",width:"100%"}).toString(),sucessHiringMessage:(0,h.css)({color:"#37ab2e",width:"100%",margin:"2em"}).toString(),block:(0,h.css)({display:"block"}),underline:(0,h.css)({fontWeight:"bold"}).toString()},f=(0,s.injectIntl)(e=>{let{next_cities:t}=e,[n,s]=(0,a.useState)(!1),[o,i]=(0,a.useState)(!1),[l,d]=(0,a.useState)({city_slug:"",email:"",why_this_city:"",name:"",become_hero_message:"",local_or_traveller:""}),[u,h]=(0,a.useState)({city_slug:"",email:"",why_this_city:"",name:"",become_hero_message:"",local_or_traveller:"",unspecified_errors:""});function f(e){let t=null,n=null;e.target?(t=e.target.name,n=e.target.value):(t="city_slug",n=e.value);let r={...l,[t]:n},a={...u,[t]:""};d(r),h(a)}return n?(0,r.jsxs)("div",{children:[(0,r.jsxs)("article",{className:b.header,children:[(0,r.jsx)("h1",{className:b.title,children:"Vote for our next city"}),(0,r.jsxs)("div",{className:b.voteImgSub,children:[(0,r.jsx)("img",{className:b.voteImg,src:(0,g.E)("citiesVoteDude"),alt:"vote-for-our-next-city"}),(0,r.jsx)("h2",{className:b.sub,children:"We want to focus on cities where there is demand, and we can make a difference."})]})]}),(0,r.jsxs)("article",{className:b.success,children:[(0,r.jsx)("h3",{className:b.thanksTitle,children:"Thanks for voting!"}),(0,r.jsx)("p",{className:b.thanksSub,children:"We'll be in touch..."}),(0,r.jsx)("img",{className:b.thanksImg,src:(0,g.E)("citiesThanksDude"),alt:" "}),(0,r.jsx)(p.A,{className:b.hiring,style:{textDecoration:"none"},href:"/jobs",children:(0,r.jsxs)("article",{className:b.hiring,children:[(0,r.jsx)("img",{className:b.hiringImg,src:(0,g.E)("citiesHiringDudes"),alt:" "}),(0,r.jsxs)("p",{className:b.hiringMessage,children:["We're also hiring!",(0,r.jsx)("br",{})," Have a look at our"," ",(0,r.jsx)("u",{className:b.underline,children:"current roles"})]})]})})]})]}):(0,r.jsxs)("div",{children:[(0,r.jsxs)("article",{className:b.header,children:[(0,r.jsx)("h1",{className:b.title,children:"Vote for our next city"}),(0,r.jsxs)("div",{className:b.voteImgSub,children:[(0,r.jsx)("img",{className:b.voteImg,src:(0,g.E)("citiesVoteDude"),alt:" "}),(0,r.jsx)("h2",{className:b.sub,children:"We want to focus on cities where there is demand, and we can make a difference."})]})]}),(0,r.jsxs)("form",{className:b.form,children:[(0,r.jsx)("h4",{className:b.label,children:"Which City? *"}),u.unspecified_errors&&(0,r.jsx)("p",{style:{color:"orange"},children:u.city_slug}),(0,r.jsx)(m.A,{className:b.dropdown,options:t.map(e=>{let{name:t}=e;return t}),name:"city_slug",placeholder:"Choose your city...",onChange:f,value:l.city_slug}),u.city_slug&&(0,r.jsx)("p",{style:{color:"orange"},children:u.city_slug}),(0,r.jsxs)("style",{children:[" jsx","\n.Dropdown-root {\n  position: relative;\n}\n\n.Dropdown-control {\n  position: relative;\n  overflow: hidden;\n  background-color: white;\n  border: 1px solid #ccc;\n  border-radius: 4px;\n  box-sizing: border-box;\n  color: rgb(119, 119, 119, 0.5);\n  cursor: default;\n  outline: none;\n  padding: 8px 52px 8px 10px;\n  transition: all 200ms ease;\n}\n\n.Dropdown-control:hover {\n  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n}\n\n.Dropdown-arrow {\n  border-color: #999 transparent transparent;\n  border-style: solid;\n  border-width: 5px 5px 0;\n  content: ' ';\n  display: block;\n  height: 0;\n  margin-top: -ceil(2.5);\n  position: absolute;\n  right: 10px;\n  top: 14px;\n  width: 0\n}\n\n.is-open .Dropdown-arrow {\n  border-color: transparent transparent #999;\n  border-width: 0 5px 5px;\n}\n\n.Dropdown-menu {\n  background-color: white;\n  border: 1px solid #ccc;\n  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n  box-sizing: border-box;
1\n  margin-top: -1px;\n  max-height: 200px;\n  overflow-y: auto;\n  -webkit-overflow-scrolling: touch;\n}\n\n.Dropdown-menu .Dropdown-group > .Dropdown-title{\n  padding: 8px 10px;\n  color: rgba(51, 51, 51, 1);\n  font-weight: bold;\n  text-transform: capitalize;\n}\n\n.Dropdown-option {\n  box-sizing: border-box;\n  color: rgba(51, 51, 51, 0.8);\n  cursor: pointer;\n  display: block;\n  padding: 8px 10px;\n}\n\n.Dropdown-option:last-child {\n  border-bottom-right-radius: 2px;\n   border-bottom-left-radius: 2px;\n}\n\n.Dropdown-option:hover {\n  background-color: #f2f9fc;\n  color: #777777;\n}\n\n.Dropdown-option.is-selected {\n  background-color: #f2f9fc;\n  color: #777777;\n}\n\n.Dropdown-noresults {\n  box-sizing: border-box;\n  color: #777777;\n  cursor: default;\n  display: block;\n  padding: 8px 10px;\n}\n"]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("h4",{className:b.label,children:"Your Email *"}),(0,r.jsx)("input",{className:b.input,placeholder:"[email protected]",type:"text",onChange:f,name:"email",value:l.email}),u.email&&(0,r.jsx)("p",{style:{color:"orange"},children:u.email})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("h4",{className:b.label,children:"Why?"}),(0,r.jsx)("textarea",{className:b.textBox,placeholder:"What good can we do?",type:"text",onChange:f,name:"why_this_city",value:l.why_this_city})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("label",{className:b.label,children:[(0,r.jsx)("h4",{children:"You are:"}),(0,r.jsxs)("div",{className:b.radioGroup,children:[(0,r.jsx)("input",{className:b.radio,type:"radio",onChange:f,name:"local_or_traveller",value:"local"}),(0,r.jsx)("label",{className:b.radioLabel,children:"A local"})]}),(0,r.jsxs)("div",{className:b.radioGroup,children:[(0,r.jsx)("input",{className:b.radio,type:"radio",onChange:f,name:"local_or_traveller",value:"ex-local"}),(0,r.jsx)("label",{className:b.radioLabel,children:"An ex-local"})]}),(0,r.jsxs)("div",{className:b.radioGroup,children:[(0,r.jsx)("input",{className:b.radio,type:"radio",onChange:f,name:"local_or_traveller",value:"traveller"}),(0,r.jsx)("label",{className:b.radioLabel,children:"A traveller"})]})]})}),(0,r.jsxs)("label",{children:[(0,r.jsx)("h4",{className:b.labelGreen,children:"Be a hero? (Optional)"}),(0,r.jsxs)("label",{className:b.formattedMessage,children:[(0,r.jsx)("input",{className:b.checkbox,type:"checkbox",onChange:e=>{i(!o)},checked:o}),"Yes I want to help!"]})]}),o?(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{children:[(0,r.jsx)("h4",{className:b.labelGreen,children:"Your name"}),(0,r.jsx)("input",{className:b.input,placeholder:"eg. Bruce Wayne",type:"text",onChange:f,name:"name"})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("h4",{className:b.labelGreen,children:"How can you help?"}),(0,r.jsx)("input",{className:b.input,placeholder:"eg. Will fight for justice and punctual trains.",type:"text",onChange:f,name:"become_hero_message"})]}),(0,r.jsx)(p.A,{style:{textDecoration:"none"},href:"/jobs",children:(0,r.jsxs)("article",{className:b.hiring,children:[(0,r.jsx)("img",{className:b.hiringImg,src:(0,g.E)("citiesHiringDudes"),alt:" "}),(0,r.jsxs)("p",{className:b.hiringMessage,children:["We're also hiring!",(0,r.jsx)("br",{})," Have a look at our"," ",(0,r.jsx)("u",{className:b.underline,children:"current roles"})]})]})})]}):null,(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),window.scrollTo(0,0);try{c.A.cityVote({city_slug:l.city_slug,email:l.email,csrfToken:"csrftoken",...l}).then(()=>{s(!0)})}catch(e){l.email&&"string"==typeof l.email?l.city_slug&&"string"==typeof l.city_slug?h({...u,unspecified_errors:"Oops!. Someting went wrong, please try again!"}):h({...u,city_slug:"Please select a city."}):h({...u,email:"Please enter a valid email address"}),s(!0)}},className:b.submit,disabled:!l.city_slug||!l.email,children:"Submit"})]})]})});var y=n(94270),x=n(29263),v=n(99349);let w=(0,o.Zz)(s.injectIntl,(0,v.connect)(e=>{let{next_cities:t}=e;return{next_cities:t}}))(f),j=(0,y.A)()(e=>{let{location:t,store:n,uriConfig:a}=e;return(0,r.jsx)(x.A,{location:t,store:n,uriConfig:a,children:(0,r.jsx)(w,{})})})}},e=>{e.O(0,[235,293,213,6,28,441,73,478,636,593,792],()=>e(e.s=6038)),_N_E=e.O()}]);

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.