@digitransit-component/digitransit-component-autosuggest 4.4.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("i18next"),require("classnames"),require("react-autosuggest"),require("lodash/debounce"),require("lodash/flatten"),require("lodash/take"),require("lodash/isString"),require("lodash/orderBy"),require("lodash/uniqWith"),require("lodash/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),require("@digitransit-component/digitransit-component-icon"),require("luxon"),require("lodash/isEmpty"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","i18next","classnames","react-autosuggest","lodash/debounce","lodash/flatten","lodash/take","lodash/isString","lodash/orderBy","lodash/uniqWith","lodash/get","@digitransit-component/digitransit-component-suggestion-item","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","@digitransit-component/digitransit-component-icon","luxon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.React,e.PropTypes,e.i18next,e.cx,e.Autosuggest,e.debounce,e.flatten,e.take,e.isString,e.orderBy,e.uniqWith,e.get,e.SuggestionItem,e.isEqual,e.memoize,e.escapeRegExp,e.cloneDeep,e.Icon,e.luxon,e.isEmpty,e.ReactModal,e.DialogModal)}(this,(function(e,t,n,o,i,s,r,a,l,u,c,d,p,h,f,g,b,m,y,v,_,S,k){"use strict";function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=w(t),O=w(n),j=w(o),M=w(i),R=w(s),P=w(r),E=w(a),C=w(l),L=w(u),I=w(c),N=w(d),z=w(p),F=w(h),A=w(f),T=w(g),q=w(b),D=w(m),V=w(y),B=w(_),H=w(S),$=w(k);function U(e){return U="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},U(e)}function W(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=U(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}function G(e,t,n){return(t=W(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t){return e&&t&&e===t}const Q=["stop","station","favouriteStop","favouriteStation"],Z=["favouriteVehicleRentalStation","bikestation"];function K(e){if(!e)return"";const t=e.split(":");return 0===t.length?"":`citybikes${t[0]}:bikestation:${t[1]}`}function X(e,t){const n=e.properties,o=t.properties;if("FutureRoute"===e.type&&"FutureRoute"===t.type){const e=n.origin,t=n.destination,i=o.origin,s=o.destination;return`${e.name}//${e.localadmin}//${t.name}//${t.localadmin}`===`${i.name}//${i.localadmin}//${s.name}//${s.localadmin}`}if("FutureRoute"===e.type||"FutureRoute"===t.type)return!1;if(Z.includes(n.layer)&&Z.includes(o.layer)){return(n.gid||K(n.labelId))===(o.gid||K(o.labelId))}if(n.gtfsId&&o.gtfsId)return n.gtfsId===o.gtfsId;if(Q.includes(n.layer)&&Q.includes(o.layer)&&n.gid&&o.gid)return n.gid===o.gid;const i=e&&e.geometry?e.geometry.coordinates:void 0,s=t&&t.geometry?t.geometry.coordinates:void 0;return!!(i&&s&&Math.abs(i[0]-s[0])<1e-6&&Math.abs(i[1]-s[1])<1e-6&&(Y(n.name,o.name)||Y(n.label,o.label)||Y(n.address,o.address)||Y(n.address,o.label)||Y(n.label,o.address)))}const J=e=>L.default(e)?e.toLowerCase():"",ee="back",te="currentPosition",ne="favouriteStop",oe="favouriteStation",ie="favouritePlace",se="favouriteRoute",re="favouriteVehicleRentalStation",ae="futureRoute",le="station",ue="selectFromMap",ce="ownLocations",de="stop",pe="bikestation",he="carpark",fe="bikepark",ge=({layer:e,type:t})=>"stop"===e||"favouriteStop"===e||"stop"===t||"favouriteStop"===t,be=(e,t)=>{switch(e){case te:return 1;case ee:return.9;case ue:return.8;case ce:return.79;case oe:case ie:case ne:case se:case re:return.45;case ae:return.44;case le:return L.default(t)&&0===t.indexOf("gtfs")?.43:.42;case he:case fe:case pe:return.38;case de:return.36;default:return.41}},me=(e,t,n="")=>{if(!Array.isArray(t))return t;const o=t=>L.default(t)&&e&&e.test(t),i=J(n),s=o(i),r=I.default(t,[e=>s&&o(J(e.properties.shortName))&&0===J(e.properties.shortName).indexOf(i)?1:0,e=>{const{confidence:t,layer:n,source:o}=e.properties;if(0===i.length)return be(n,o);if(!t)return be(n,o)+((e,t)=>L.default(e)&&0!==e.length?["name","label","address","shortName"].map((e=>t[e])).filter((e=>L.default(e)&&e.length>0)).map((t=>{const n=J(t);return 0===n.indexOf(e)?.5+e.length/n.length:.5*e.length/(e.length+1)})).reduce(((e,t)=>t>e?t:e),0):0)(i,e.properties);switch(n){case le:return t+(0===o.indexOf("gtfs")?.02:.01);case de:case he:case fe:return t-.05;case pe:return t-.04;default:return t}},"properties.shortName"],["desc","desc","asc"]);return N.default(r,X)},ye=(e,t)=>null!=t&&-1!==e.lastIndexOf(t)?e.substring(0,e.lastIndexOf(t)-1):e;function ve(e,t,n){if("string"==typeof t&&t.length>0){const o=t.toLowerCase().trim(),i=o.includes(" ")||o.includes(",");return e.filter((e=>{let t=[];n.forEach((n=>{let o=z.default(e,n);i||"properties.label"!==n&&"address"!==n||!o||(o=o.split(","),o.length>2?o.splice(o.length-2,2):o.length>1&&o.splice(o.length-1,1),o=o.join(",")),o&&(t=i?t.concat(o.toLowerCase()):t.concat(o.toLowerCase().replace(/,/g," ").split(" ")))}));for(let e=0;e<t.length;e++)if(0===t[e].indexOf(o))return!0;return!1}))}return e}function _e(e,t){return e?Object.keys(e).map((n=>{const o=t||n,i=e[n];return"object"==typeof i?_e(i,o):`${encodeURIComponent(o)}=${encodeURIComponent(i)}`})).join("&"):""}const Se=require("axios").default;function ke(e,t){return Se.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+_e(t):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((e=>e.data))}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n,o,i,s,r,a){const l=e?e.trim():null;if(null==l||l.length<1||r&&!r.test(l))return Promise.resolve([]);const u=s||"https://api.digitransit.fi/geocoding/v1/search";let c=xe(xe(xe({text:l},t),o),{},{lang:n});if(i&&(c=xe(xe({},c),{},{sources:i})),a){const e=a.toString();c=xe(xe({},c),{},{layers:e})}return ke(u,c).then((e=>e.features))}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t){if(!e||e.length<1)return Promise.resolve([]);let n="";const o=e.map((e=>{const t="stop"===e.type?"stop":"station";let o=`gtfs${e.gtfsId.split(":")[0].toLowerCase()}:${t}:GTFS:${e.gtfsId}`;return e.code&&(o+=`#${e.code}`),n+=`${o},`,Me(Me({},e),{},{gid:o})})).reduce((function(e,t){return e[t.gid]=t,e}),{});return ke(t,{ids:n.slice(0,-1)}).then((e=>e.features.map((e=>({type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:o[e.properties.gid].gid,code:o[e.properties.gid].code,gtfsId:o[e.properties.gid].gtfsId,lastUpdated:o[e.properties.gid].lastUpdated,favouriteId:o[e.properties.gid].favouriteId,address:e.properties.label,layer:ge(e.properties)?"favouriteStop":"favouriteStation"},geometry:e.geometry})))))}function Pe(e,t,n){let o=ve(e,t,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(o=o.filter((e=>!n.includes(e.properties.layer)))),Promise.resolve(C.default(o,10).map((e=>{const t=Me(Me({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t})))}const Ee=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],Ce=["venue","address","street"],Le=["carpark","bikepark"],Ie=["stop","station"];const Ne=P.default((function(e,t,n,o,i,s,{input:r},a,l,u){const{getPositions:c,getFavouriteLocations:d,getOldSearches:p,getFavouriteStops:h,parkingAreaSources:f,getLanguage:g,getStopAndStationsQuery:b,getFavouriteVehicleRentalStationsQuery:m,getFavouriteVehicleRentalStations:y,getFavouriteRoutesQuery:v,getFavouriteRoutes:_,getRoutesQuery:S,context:k,isPeliasLocationAware:w,minimalRegexp:x,lineRegexp:O,URL_PELIAS:j,URL_PELIAS_PLACE:M,feedIDs:R,geocodingSearchParams:P,geocodingSources:L,getFutureRoutes:I,cityBikeNetworks:N}=o,z=!e||0===e.length,F=!t||0===t.length,A=c(k),T=[],q={type:"all",term:r,results:[]},D=g(k),V=w&&null!=u&&u.lat&&null!=u&&u.lon?{"focus.point.lat":u.lat.toFixed(3),"focus.point.lon":u.lon.toFixed(3)}:{},B=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==A.status&&T.push(function(e,t){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:t.address,lat:t.lat,lon:t.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:t.address,lat:t.lat,lon:t.lon},geometry:{type:"Point",coordinates:[t.lon,t.lat]}}]):Promise.resolve([])}(r,A)),(z||e.includes("MapPosition"))&&T.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(r)),e.includes("FutureRoutes")){const e=I(k);T.push(C.default(e,3))}if(e.includes("SelectFromOwnLocations")&&function(e){const t=e.getFavouriteLocations(e.context);if((null==t?void 0:t.length)>0)return!0;const n=e.getFavouriteVehicleRentalStations(e.context);if((null==n?void 0:n.length)>0)return!0;const o=e.getFavouriteStops(e.context);return(null==o?void 0:o.length)>0}(o)&&T.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(r)),z||e.includes("Locations")){const n=P;if(t.includes("Favourite")){const e=d(k);T.push(function(e,t){return Promise.resolve(ve(e,t,["address","name"]).map((e=>({type:"FavouritePlace",properties:Me(Me({},e),{},{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}}))))}(e,r)),t.includes("Back")&&T.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(F||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),T.push(Oe(r,n,D,V,L.join(","),j,x,t))}if(F||t.includes("History")){const e=p(k,"endpoint"),t=["bikestation"];t.push(...Ie),t.push(...Ee),t.push(...Le),T.push(Pe(e,r,t))}}if(z||e.includes("ParkingAreas")){if(F||t.includes("Datasource")){const e=P;s&&10!==s&&(e.size=s);const t=["carpark","bikepark"],n=f?f.join(","):null;T.push(Oe(r,e,D,V,n,j,x,t).then((e=>i?i(e,B):e)))}if(F||t.includes("History")){const e=p(k),t=["bikestation"];t.push(...Ie),t.push(...Ee),t.push(...Ce),T.push(Pe(e,r,t))}}const H=e.includes("Stops"),$=e.includes("Stations");if(z||H||$){if(t.includes("Favourite")){const e=h(k);let t;t=e.every((e=>"station"===e.type))?Re(e,M).then((e=>i?i(e,B):e)):b(e).then((e=>Re(e,M))).then((e=>i?i(e,B):e)),T.push(function(e,t,n,o){return e.then((e=>ve(e.filter((e=>"stop"===e.type?n:o)),t,["properties.name","properties.name","properties.address"])))}(t,r,H,$))}if(F||t.includes("Datasource")){const t=[];H&&t.push("stop"),$&&t.push("station");const n=s&&10!==s?{size:s}:{};P&&P["boundary.country"]&&(n["boundary.country"]=P["boundary.country"]),(z||e.includes("Locations"))&&(n.dedupestops=1);const o=R.map((e=>`gtfs${e}`)).join(",");T.push(Oe(r,n,D,V,o,j,x,t).then((e=>i?i(e,B):e)))}if(F||t.includes("History")){const e=p(k).filter((e=>!e.properties.gid||e.properties.gid.includes("GTFS:"))),t=["bikestation"];t.push(...Ee),t.push(...Ce),t.push(...Le),H||t.push("stop"),$||t.push("station"),n?T.push(Pe(e,r,t).then((e=>i?i(e,B):e))):T.push(Pe(e,r,t))}}if(z||e.includes("Routes")){if(t.includes("Favourite")){const e=_(k);T.push(v(e,r,B,l).then((e=>i?i(e,B,"Routes"):e)))}if(T.push(S(r,R,n,l).then((e=>i?i(e,B,"Routes"):e))),F||t.includes("History")){const e=p(k),t=["bikestation"];n&&t.push(...Ee.filter((e=>!(e===n)))),t.push(...Ie),t.push(...Ce),t.push(...Le),T.push(Pe(e,r,t).then((e=>i?i(e,B,"Routes"):e)))}}if(z||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=y(k);T.push(m(e,r))}if(F||t.includes("Datasource")){const e=["bikestation"],t=s&&10!==s?{size:s}:{};T.push(Oe(r,t,D,V,N.join(","),j,x,e).then((e=>i?i(e,B,"VehicleRentalStations"):e)))}if(F||t.includes("History")){const e=p(k),t=[...Ie];t.push(...Ee),t.push(...Ce),t.push(...Le),T.push(Pe(e,r,t))}}Promise.all(T).then(E.default).then((e=>{q.results=e})).catch((e=>{q.error=e})).then((()=>{a(Me(Me({},q),{},{results:me(O,q.results,r)}))}))}),300,{leading:!0}),ze=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",Fe=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),Ae=T.default(((e,t=!1)=>{switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return n=e.name,o=e.address,[n||o&&o.split(",")[0],"string"==typeof o?o.replace(new RegExp(`${q.default(n)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!t&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp(`${q.default(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],ze(e)]:[e.name,e.id,Fe(e),ze(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],ze(e)]}var n,o}),((e,t)=>{const n=D.default(e);return n.plain=t,n}));const Te={de:{address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft","add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel","give-origin":"Start eingeben.","give-destination":"Ziel eingeben.",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",loading:"Laden...","minute-short":"min",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-button-label":"Suche","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Aktuelle Auswahl: {{selection}}",street:"Straße",subway:"U-Bahn",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?",place:"Ort"},en:{address:"Address","address-place-or-business":"Address, place or business","add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flight",arrival:"Arrival",back:"Back",bikepark:"Park & Ride for bikes",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel",carpark:"Park & Ride","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination","give-origin":"Enter your origin.","give-destination":"Enter your destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",loading:"Loading...","minute-short":"m",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-button-label":"Search","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Current selection: {{selection}}",street:"Street",subway:"Metro",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bus":"Search bus routes or stops","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search","today-at":"today at","tomorrow-at":"tomorrow at",tram:"Tram",track:"Track","use-own-position":"Use current location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",venue:"Venue","via-point":"Via point",where:"Where to?",place:"Location"},fi:{address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys","add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",vehiclerentalstation:"Pyöräasema",bikepark:"Liityntäpysäköinti",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäköinti","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-origin":"Lähtöpaikka","give-destination":"Määränpää",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",loading:"Ladataan...","minute-short":"min",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-button-label":"Hae","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-autosuggest-label":"Paikka, linja ja pysäkkihaku.","search-autosuggest-label-instructions-desktop":"Navigoi listassa nuolinäppäimillä ja valitse enterillä.","search-autosuggest-label-instructions-mobile":"Syötä sijainti ja navigoi listassa pyyhkäisemällä.","search-autosuggest-label-move-to-destination":"Valittuasi lähtöpaikan siirrytään suoraan määränpää-kenttään.","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-position":"Paikanna",street:"Katu",subway:"Metro",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku","today-at":"tänään klo","tomorrow-at":"huomenna klo",tram:"Raitiovaunu",track:"Raide","use-own-position":"Käytä nykyistä sijaintia","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?",place:"Paikka"},pl:{address:"Adres","address-place-or-business":"Adres, miejsce lub firma","add-via-button-label":"Dodaj punkt pośredni","add-via-duration-button-label":"Wybierz czas postoju dla punktu {{index}}","add-via-duration-button-label-close":"Zamknij wybornik czasu postoju w punkcie {{index}}","add-via-duration-button-label-open":"Otwórz wybornik czasu postoju w punkcie {{index}}",airplane:"Lot",arrival:"Przyjazd",back:"Wróć",bikepark:"Parkuj i Jedź dla rowerów",bikerentalstation:"Stacja rowerowa",bus:"autobus",cancel:"Anuluj",carpark:"Parkuj i Jedź","clear-button-label":"Wyczyść","clear-search-history":"Wyczyść historię wyszukiwania",currentposition:"Obecne położenie",delete:"Usuń","delete-old-searches-header":"Czy na pewno chcesz wyczyścić historię wyszukiwania?",departure:"Odjazd",destination:"Cel","give-origin":"Wprowadź swój punkt początkowy.","give-destination":"Wprowadź swój cel",favourite:"Ulubione",ferry:"Prom","future-route":"Przyszła trasa",origin:"Początek","origin-stop-near-you":"Początek",ownlocations:"Własne miejsca",loading:"Ładowanie…","minute-short":"min.",platform:"Peron",rail:"Pociąg",required:"wymagane pole",search:"Szukaj","search-address-or-place":"Szukaj po adresie lub nazwie miejsca","search-button-label":"Szukaj","search-destination":"Szukaj celu, trasy lub przystanku","search-destination-index":"Wprowadź punkt docelowy","search-destination-results-but-no-search":"Wyświetl wyniki w sąsiedniej karcie „Cel”","search-no-results":"Brak lokalizacji","search-origin":"Wyszukaj początek, koniec lub punkt pośredni","search-origin-index":"Wprowadź punkt początkowy","search-position":"Wykryj lokalizację","search-autosuggest-label":"Miejsce, lokalizacja i przystanek.","search-autosuggest-label-instructions-desktop":"Nawiguj po liście używając strzałek i wybieraj klawiszem Enter.","search-autosuggest-label-instructions-mobile":"Wprowadź lokalizację i nawiguj po liście gestami przesuwania.","search-autosuggest-label-move-to-destination":"Po wybraniu lokalizacji początkowej, automatycznie przejdziesz do pola miejsca docelowego.","search-autosuggest-len":"Dostępna jest {{count}} propozycja","search-autosuggest-len_few":"Dostępne są {{count}} propozycje","search-autosuggest-len_other":"Dostępne jest {{count}} propozycji","search-current-suggestion":"Obecny wybór: {{selection}}",street:"Ulica",subway:"Metro",station:"Stacja",stop:"Przystanek","stop-near-you":"Szukaj przystanków i tras","stop-near-you-airplane":"Szukaj lotów i lotnisk","stop-near-you-bus":"Szukaj tras autobusowych i przystanków","stop-near-you-citybike":"Szukaj stacji rowerów miejskich","stop-near-you-rail":"Szukaj tras kolejowych i przystanków","stop-near-you-subway":"Szukaj tras metra i przystanków ","stop-near-you-tram":"Szukaj tras tramwajowych i przystanków","stop-route-station":"Wyszukiwanie autobusów i przystanków","today-at":"dziś o","tomorrow-at":"jutro o",tram:"Tramwaj",track:"Tor","use-own-position":"Użyj obecnej lokalizacji","select-from-map":"Wybierz miejsce na mapie","select-from-own-locations":"Wybierz z własnych miejsc",venue:"Miejsce","via-point":"Przez punkt",where:"Dokąd?",place:"Miejsce"},sv:{address:"Adress","address-place-or-business":"Adress, plats eller företag","add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikerentalstation:"Stadscykelstation",bikepark:"Anslutningsparkering för cyklar",bus:"Bussi",cancel:"Avbryt",carpark:"Infartsparkering","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",loading:"Laddar...","minute-short":"min",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-button-label":"Sök","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","search-autosuggest-label":"Plats, linje och hållplatssökning.","search-autosuggest-label-instructions-desktop":"Navigera listan med piltangenterna och välj med Enter-tangeten.","search-autosuggest-label-instructions-mobile":"Ange platsen och navigera i listan genom att svepa.","search-autosuggest-label-move-to-destination":"Efter att du valt avgångsplatsen tas du direkt till Destination-fältet.","search-autosuggest-len":"Hittade {{count}} förslag","search-current-suggestion":"Nuvarande val: {{selection}}",street:"Gata",subway:"Metro",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen","today-at":"i dag kl","tomorrow-at":"i morgon",tram:"Spårvagn",track:"Spår","use-own-position":"Använd min position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?",place:"Plats"}};function qe(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var De={container:"styles_container__KXfyb",input:"styles_input__XmNBn",favourite:"styles_favourite__sjGcX",thin:"styles_thin__y3lnY",hasValue:"styles_hasValue__tzCTr",suggestionsContainerOpen:"styles_suggestionsContainerOpen__4AZDX",suggestionsContainer:"styles_suggestionsContainer__3dsEd",suggestionsList:"styles_suggestionsList__esTtR",suggestion:"styles_suggestion__7itfO",suggestionHighlighted:"styles_suggestionHighlighted__XUxvC","autosuggest-input-container":"styles_autosuggest-input-container__ZkKGO",origin:"styles_origin__ivlHi",destination:"styles_destination__y39VH","stop-route-station":"styles_stop-route-station__FneXd","autosuggest-input-icon":"styles_autosuggest-input-icon__uhYGQ","origin-stop-near-you":"styles_origin-stop-near-you__Ekwp-","clear-input":"styles_clear-input__Vx7B4","sr-only":"styles_sr-only__ZOrQT"};qe("input[type='text'] {\n margin: 0; }\n\n.styles_container__KXfyb {\n display: flex;\n width: 100%; }\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 16px;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888;\n background-color: #fff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -moz-appearance: none;\n appearance: none; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_favourite__sjGcX {\n padding-left: 47px; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_thin__y3lnY {\n height: 34px; }\n .styles_container__KXfyb .styles_input__XmNBn:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: 0 0 2px 1px var(--hover-color); }\n @media screen and (min-width: 768px) {\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 15px;\n height: 44px;\n padding-left: 49px; } }\n .styles_container__KXfyb .styles_input__XmNBn::placeholder {\n color: #666;\n opacity: 1;\n font-size: 15px; }\n\n.styles_hasValue__tzCTr {\n color: #333; }\n\n.styles_suggestionsContainerOpen__4AZDX {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(3 * 0.875rem + 9px);\n z-index: 20; }\n\n.styles_suggestionsContainer__3dsEd {\n background-color: white;\n z-index: 20; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR li:hover {\n background: #f2f5f7; }\n\n.styles_suggestion__7itfO {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap; }\n\n.styles_suggestionHighlighted__XUxvC {\n background-color: #f2f5f7; }\n\n.styles_autosuggest-input-container__ZkKGO {\n position: relative;\n width: 100%; }\n .styles_autosuggest-input-container__ZkKGO.styles_origin__ivlHi {\n z-index: 16; }\n .styles_autosuggest-input-container__ZkKGO.styles_destination__y39VH {\n z-index: 10; }\n .styles_autosuggest-input-container__ZkKGO.styles_stop-route-station__FneXd {\n z-index: 9; }\n\n.styles_autosuggest-input-icon__uhYGQ {\n display: flex;\n position: absolute;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px; }\n .styles_autosuggest-input-icon__uhYGQ svg {\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin__ivlHi svg {\n fill: #4ea700;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_destination__y39VH svg {\n fill: #ec5188;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_stop-route-station__FneXd svg, .styles_autosuggest-input-icon__uhYGQ.styles_favourite__sjGcX svg {\n fill: #888;\n width: 16px;\n height: 16px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin-stop-near-you__Ekwp- svg {\n fill: #888;\n width: 16px;\n height: 16px; }\n\nbutton.styles_clear-input__Vx7B4 {\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.styles_clear-input__Vx7B4 svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.styles_clear-input__Vx7B4:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color; }\n button.styles_clear-input__Vx7B4:active {\n background-color: transparent;\n color: inherit; }\n button.styles_clear-input__Vx7B4:hover {\n background-color: transparent;\n color: inherit; }\n\n.styles_sr-only__ZOrQT:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px; }\n");var Ve={"fullscreen-root":"MobileSearch_fullscreen-root__WkMna","combobox-container":"MobileSearch_combobox-container__sRkYS","right-column":"MobileSearch_right-column__erBFe","combobox-icon":"MobileSearch_combobox-icon__xd0iZ","combobox-label":"MobileSearch_combobox-label__OqGpe",container:"MobileSearch_container__k-UVq",input:"MobileSearch_input__HbTUj","clear-input":"MobileSearch_clear-input__ILVwN",hasValue:"MobileSearch_hasValue__NYhZy",suggestion:"MobileSearch_suggestion__UBz5O",suggestionHighlighted:"MobileSearch_suggestionHighlighted__7ef5G",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__g7zkI",suggestionsList:"MobileSearch_suggestionsList__3pEzf","clear-search-history":"MobileSearch_clear-search-history__wblhz","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__f6Rl7","mobile-modal":"MobileSearch_mobile-modal__hNdM6","mobile-modal-content":"MobileSearch_mobile-modal-content__Yzz-V"};qe("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileSearch_fullscreen-root__WkMna {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileSearch_combobox-container__sRkYS {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileSearch_combobox-container__sRkYS .MobileSearch_right-column__erBFe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileSearch_combobox-icon__xd0iZ {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileSearch_combobox-icon__xd0iZ svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileSearch_combobox-label__OqGpe {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333; }\n\n.MobileSearch_container__k-UVq {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -moz-appearance: none;\n appearance: none; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileSearch_clear-input__ILVwN {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileSearch_clear-input__ILVwN svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileSearch_clear-input__ILVwN:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:active {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileSearch_hasValue__NYhZy {\n color: #333; }\n\n.MobileSearch_suggestion__UBz5O {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileSearch_suggestionHighlighted__7ef5G {\n background-color: #f2f5f7; }\n\n.MobileSearch_suggestionsContainerOpen__g7zkI {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileSearch_suggestionsContainerOpen__g7zkI .MobileSearch_suggestionsList__3pEzf {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7; }\n\n.MobileSearch_clear-search-history__wblhz {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileSearch_mobile-modal-overlay__f6Rl7 {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileSearch_mobile-modal__hNdM6 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileSearch_mobile-modal-content__Yzz-V {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n");var Be={"fullscreen-root":"MobileNoScroll_fullscreen-root__zQN50","combobox-container":"MobileNoScroll_combobox-container__RDEiT","right-column":"MobileNoScroll_right-column__0P3qe","combobox-icon":"MobileNoScroll_combobox-icon__LA0rD","combobox-label":"MobileNoScroll_combobox-label__-rYsj",container:"MobileNoScroll_container__CaIIv",input:"MobileNoScroll_input__Opft5","clear-input":"MobileNoScroll_clear-input__-4SQO",hasValue:"MobileNoScroll_hasValue__jR1iW",suggestion:"MobileNoScroll_suggestion__NAWcY",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__V0GuG",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__MRa5Y",suggestionsList:"MobileNoScroll_suggestionsList__NUpJE","clear-search-history":"MobileNoScroll_clear-search-history__Cjj-1","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__LbLie","mobile-modal":"MobileNoScroll_mobile-modal__-Rx-A","mobile-modal-content":"MobileNoScroll_mobile-modal-content__nfrCI"};function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}qe("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_fullscreen-root__zQN50 {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileNoScroll_combobox-container__RDEiT {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileNoScroll_combobox-container__RDEiT .MobileNoScroll_right-column__0P3qe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileNoScroll_combobox-icon__LA0rD {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileNoScroll_combobox-icon__LA0rD svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileNoScroll_combobox-label__-rYsj {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333; }\n\n.MobileNoScroll_container__CaIIv {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5 {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -moz-appearance: none;\n appearance: none; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileNoScroll_clear-input__-4SQO {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileNoScroll_clear-input__-4SQO svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileNoScroll_clear-input__-4SQO:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:active {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileNoScroll_hasValue__jR1iW {\n color: #333; }\n\n.MobileNoScroll_suggestion__NAWcY {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_suggestionHighlighted__V0GuG {\n background-color: #f2f5f7; }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y .MobileNoScroll_suggestionsList__NUpJE {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7; }\n\n.MobileNoScroll_clear-search-history__Cjj-1 {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileNoScroll_mobile-modal-overlay__LbLie {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileNoScroll_mobile-modal__-Rx-A {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileNoScroll_mobile-modal-content__nfrCI {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n scrollbar-width: none;\n /* Firefox */ }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */ }\n");class Ue extends R.default{constructor(e){super(e);const t=this;t.onSuggestionTouchMove=()=>{t.justSelectedSuggestion=!1,t.pressedSuggestion=null}}}const We=({appElement:e,id:n,closeHandle:o,clearInput:i,value:s,suggestions:r,inputProps:a,fetchFunction:l,renderSuggestion:u,getSuggestionValue:c,ariaLabel:d,label:p,onSuggestionSelected:h,clearOldSearches:f,dialogHeaderText:g,dialogPrimaryButtonText:b,dialogSecondaryButtonText:m,clearInputButtonText:y,focusInput:v,color:_,hoverColor:S,accessiblePrimaryColor:k,searchOpen:w,fontWeights:O,showScroll:j})=>{var M;const R=j?Ve:Be,P=`${n}-input`,E=`${n}-label`,[C,L]=t.useState(!1),I=x.default.useRef();t.useEffect((()=>{H.default.setAppElement(e)}),[]);const N=t.useCallback((()=>{o()})),z=(e,t)=>{"clear-search-history"===t.suggestion.type?L(!0):t.suggestion.properties.arrowClicked||h(e,t)},F=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},A=e=>"clear-search-history"===e.type?"":c(e),T=e=>"clear-search-history"===e.type?x.default.createElement("button",{type:"button",className:R["clear-search-history"]},e.labelId):u(e);return v&&null!==(M=I.current)&&void 0!==M&&M.input&&I.current.input.focus(),x.default.createElement(H.default,{isOpen:w,className:R["mobile-modal"],overlayClassName:R["mobile-modal-overlay"],onAfterClose:N,shouldCloseOnEsc:!0},x.default.createElement("div",{className:R["mobile-modal-content"],style:{"--color":`${_}`,"--accessible-primary-color":k,"--hover-color":`${S}`,"--font-weight-medium":O.medium}},x.default.createElement("div",{className:R["combobox-container"],htmlFor:P},x.default.createElement("button",{type:"button",className:R["combobox-icon"],onClick:()=>N(),onKeyDown:e=>F(e)&&N(),"aria-label":m,tabIndex:0},x.default.createElement(V.default,{img:"arrow"})),x.default.createElement("span",{className:R["right-column"]},x.default.createElement("span",{className:R["combobox-label"],id:E},p),x.default.createElement(Ue,{alwaysRenderSuggestions:!0,id:n,suggestions:r,onSuggestionsFetchRequested:l,getSuggestionValue:A,renderSuggestion:T,focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>!0,inputProps:$e($e({},a),{},{className:`${R.input} ${R[n]||""} ${a.value?R.hasValue:""}`,autoFocus:!0}),renderInputComponent:e=>x.default.createElement(x.default.Fragment,null,x.default.createElement("input",Object.assign({"aria-label":d,id:n},e)),s&&x.default.createElement("button",{type:"button",className:R["clear-input"],onClick:i,onKeyDown:e=>F(e)&&i(),"aria-label":y},x.default.createElement(V.default,{img:"close",color:_}))),theme:R,onSuggestionSelected:z,ref:I}))),x.default.createElement($.default,{appElement:e,isModalOpen:C,handleClose:()=>L(!1),headerText:g,primaryButtonText:b,secondaryButtonText:m,primaryButtonOnClick:()=>{f(),L(!1)},secondaryButtonOnClick:()=>L(!1),color:_,hoverColor:S,fontWeights:O})))};"production"!==process.env.NODE_ENV&&(We.propTypes={appElement:O.default.string.isRequired,id:O.default.string.isRequired,closeHandle:O.default.func.isRequired,clearInput:O.default.func.isRequired,value:O.default.string,clearInputButtonText:O.default.string.isRequired,suggestions:O.default.arrayOf(O.default.object).isRequired,inputProps:O.default.shape({onChange:O.default.func.isRequired,onBlur:O.default.func.isRequired,value:O.default.string.isRequired,placeholder:O.default.string.isRequired,className:O.default.string.isRequired}).isRequired,fetchFunction:O.default.func.isRequired,getSuggestionValue:O.default.func.isRequired,renderSuggestion:O.default.func.isRequired,onSuggestionSelected:O.default.func.isRequired,label:O.default.string.isRequired,clearOldSearches:O.default.func.isRequired,ariaLabel:O.default.string,dialogHeaderText:O.default.string,dialogPrimaryButtonText:O.default.string,dialogSecondaryButtonText:O.default.string,focusInput:O.default.bool,color:O.default.string,hoverColor:O.default.string,accessiblePrimaryColor:O.default.string.isRequired,searchOpen:O.default.bool.isRequired,fontWeights:O.default.shape({medium:O.default.number.isRequired}).isRequired,showScroll:O.default.bool}),We.defaultProps={value:void 0,ariaLabel:void 0,dialogHeaderText:void 0,dialogPrimaryButtonText:void 0,dialogSecondaryButtonText:void 0,focusInput:!1,color:void 0,hoverColor:void 0,showScroll:void 0};var Ge,Ye=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){var n;"undefined"!=typeof self&&self,e.exports=(n=x.default,function(){var e={888:function(e,t,n){var o,i;i=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,o=function(){return function(e){var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,(function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}})),e},o=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,i=-1,s="",r=n.charCodeAt(0);++i<o;){if(0===(t=n.charCodeAt(i)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");s+=t>=1&&t<=31||127==t||0===i&&t>=48&&t<=57||1===i&&t>=48&&t<=57&&45===r?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(i):"\\"+n.charAt(i)}return"#"+s},i=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n},r=function(t,n,o){0===t&&document.body.focus(),o||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},a=function(t,n,o,i){if(n.emitEvents&&"function"==typeof e.CustomEvent){var s=new CustomEvent(t,{bubbles:!0,detail:{anchor:o,toggle:i}});document.dispatchEvent(s)}};return function(l,u){var c,d,p,h,f={cancelScroll:function(e){cancelAnimationFrame(h),h=null,e||a("scrollCancel",c)},animateScroll:function(o,l,u){f.cancelScroll();var d=n(c||t,u||{}),g="[object Number]"===Object.prototype.toString.call(o),b=g||!o.tagName?null:o;if(g||b){var m=e.pageYOffset;d.header&&!p&&(p=document.querySelector(d.header));var y,v,_,S=s(p),k=g?o:function(t,n,o,s){var r=0;if(t.offsetParent)do{r+=t.offsetTop,t=t.offsetParent}while(t);return r=Math.max(r-n-o,0),s&&(r=Math.min(r,i()-e.innerHeight)),r}(b,S,parseInt("function"==typeof d.offset?d.offset(o,l):d.offset,10),d.clip),w=k-m,x=i(),O=0,j=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(w,d),M=function(t){y||(y=t),O+=t-y,_=m+w*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(d,v=(v=0===j?0:O/j)>1?1:v),e.scrollTo(0,Math.floor(_)),function(t,n){var i=e.pageYOffset;if(t==n||i==n||(m<n&&e.innerHeight+i)>=x)return f.cancelScroll(!0),r(o,n,g),a("scrollStop",d,o,l),y=null,h=null,!0}(_,k)||(h=e.requestAnimationFrame(M),y=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(o,g,d),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?r(o,Math.floor(k),!1):(a("scrollStart",d,o,l),f.cancelScroll(!0),e.requestAnimationFrame(M))}}},g=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(d=t.target.closest(l))&&"a"===d.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&d.hostname===e.location.hostname&&d.pathname===e.location.pathname&&/#/.test(d.href)){var n,i;try{n=o(decodeURIComponent(d.hash))}catch(e){n=o(d.hash)}if("#"===n){if(!c.topOnEmptyHash)return;i=document.documentElement}else i=document.querySelector(n);(i=i||"#top"!==n?i:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),f.animateScroll(i,d))}},b=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(o(history.state.anchor)))||f.animateScroll(t,null,{updateURL:!1})}};return f.destroy=function(){c&&(document.removeEventListener("click",g,!1),e.removeEventListener("popstate",b,!1),f.cancelScroll(),c=null,d=null,p=null,h=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";f.destroy(),c=n(t,u||{}),p=c.header?document.querySelector(c.header):null,document.addEventListener("click",g,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",b,!1)}(),f}}(i)}.apply(t,[]),void 0===o||(e.exports=o)},432:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(47),t),i(n(926),t),i(n(349),t),i(n(137),t),i(n(729),t),i(n(383),t),i(n(450),t),i(n(358),t),i(n(753),t),i(n(869),t),i(n(352),t),i(n(446),t),i(n(164),t),i(n(305),t),i(n(502),t)},349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowNavigation=void 0;var o=n(156);t.useArrowNavigation=function(e){var t=e.listItems,n=e.onArrowUpOrDown,i=(0,o.useState)(0),s=i[0],r=i[1],a=(0,o.useCallback)((function(e){r(e)}),[t]),l=function(e){var o=e.key;if(null==t?void 0:t.length)if("ArrowUp"===o)n&&n(),e.preventDefault(),a(s>0?s-1:t.length-1);else{if("ArrowDown"!==o)return;n&&n(),e.preventDefault(),s<t.length-1?a(s+1):a(0)}};return(0,o.useEffect)((function(){return window.addEventListener("keydown",l),function(){return window.removeEventListener("keydown",l)}})),(0,o.useEffect)((function(){a(0)}),[t]),{selectedIndex:s}}},446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var o=n(156);t.useDebounce=function(e,t){void 0===t&&(t=300);var n=(0,o.useState)(e),i=n[0],s=n[1];return(0,o.useEffect)((function(){var n=setTimeout((function(){s(e)}),t);return function(){clearTimeout(n)}}),[e,t]),i}},164:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementSize=void 0;var o=n(156);t.useElementSize=function(){var e,t,n=(0,o.useRef)(null);return[n,{width:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.clientWidth,height:null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.clientHeight}]},t.default=t.useElementSize},137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersectionObserver=void 0;var o=n(156);t.useIntersectionObserver=function(e){var t=(0,o.useRef)(null),n=(0,o.useState)(!1),i=n[0],s=n[1],r=function(e){var t=e[0];s(t.isIntersecting)};return(0,o.useEffect)((function(){if(window&&window.IntersectionObserver){var n=new IntersectionObserver(r,e),o=t.current;return t.current&&n.observe(t.current),function(){o&&n.unobserve(o)}}s(!1)}),[t,e]),{containerRef:t,isVisible:i}},t.default=t.useIntersectionObserver},729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsBreakpoint=void 0;var o=n(156),i=n(432),s={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};t.useIsBreakpoint=function(e){var t="string"==typeof e?s[e]:e,n=(0,o.useState)(null),r=n[0],a=n[1],l=(0,o.useCallback)((function(){a(window.innerWidth)}),[]);return(0,o.useEffect)((function(){l()}),[]),(0,i.useOnResize)(l),r>=t},t.default=t.useIsBreakpoint},450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoadingAfterError=void 0;var o=n(156);t.useIsLoadingAfterError=function(e,t){var n=(0,o.useState)(t),i=n[0],s=n[1];return(0,o.useEffect)((function(){e||s(t)}),[e,t]),e&&i}},305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var o=n(729);t.useIsMobile=function(){return!(0,o.useIsBreakpoint)("tablet")},t.default=t.useIsMobile},383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var o=n(156);t.useIsomorphicLayoutEffect="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,t.default=t.useIsomorphicLayoutEffect},753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnLoseFocusWithin=void 0;var o=n(156);t.useOnLoseFocusWithin=function(e){var t=e.ref,n=e.callback,i=e.watch;(0,o.useEffect)((function(){var e=function(){var e;if(i)return(null===(e=t.current)||void 0===e?void 0:e.matches(":focus-within"))?void 0:n()};return document.addEventListener("keyup",e),function(){return document.removeEventListener("keyup",e)}}),[n,t,i])},t.default=t.useOnLoseFocusWithin},502:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnResize=void 0;var o=n(156);t.useOnResize=function(e){(0,o.useEffect)((function(){var t=function(){e(window.innerWidth)};return window.addEventListener("resize",t,{passive:!0}),function(){return window.removeEventListener("resize",t)}}),[])},t.default=t.useOnResize},352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnWindowFocus=void 0;var o=n(156);t.useOnWindowFocus=function(e){(0,o.useEffect)((function(){var t=function(){e&&"visible"===document.visibilityState&&e()};return window.addEventListener("visibilitychange",t,!1),function(){return window.removeEventListener("visibilitychange",t)}}),[e])}},47:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOutsideReacter=void 0;var o=n(156);t.useOutsideReacter=function(e,t){function n(n){e.current&&!e.current.contains(n.target)&&t()}(0,o.useEffect)((function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}))}},869:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRunAfterUpdate=void 0;var o=n(156);t.useRunAfterUpdate=function(){var e=(0,o.useRef)(null);return(0,o.useEffect)((function(){e.current&&(e.current(),e.current=null)})),function(t){e.current=t}},t.default=t.useRunAfterUpdate},926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollLock=void 0;var o=n(156);t.useScrollLock=function(){return{lock:(0,o.useCallback)((function(){var e=window.scrollY+"px",t=document.body;t.style.position="fixed",t.style.top="-"+e}),[]),unlock:(0,o.useCallback)((function(){var e=document.body,t=e.style.top,n=-1*parseInt(t||"0");e.style.position="",e.style.top="",n&&window.scrollTo(0,-1*parseInt(t||"0"))}),[])}}},358:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSmoothScroll=void 0;var i=n(156),s=o(n(888));t.useSmoothScroll=function(e){var t=(0,i.useRef)(null),n=e.ref,o=e.offset,r=void 0===o?0:o,a=e.speed,l=void 0===a?500:a;return(0,i.useEffect)((function(){t.current=new s.default(null,{speed:l,speedAsDuration:!0})}),[]),(0,i.useCallback)((function(){n&&t.current&&t.current.animateScroll(n.current,null,{offset:function(){return r},updateURL:!1})}),[r,n])}},156:function(e){e.exports=n}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,o),s.exports}return o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o(432)}())})),Qe=(Ge=Ye)&&Ge.__esModule&&Object.prototype.hasOwnProperty.call(Ge,"default")?Ge.default:Ge;function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}v.Settings.defaultLocale="en",j.default.init({fallbackLng:"fi",defaultNS:"translation",interpolation:{escapeValue:!1}}),"production"!==process.env.NODE_ENV&&O.default.node;const Xe=e=>{if(!e||!e.GTFS.platform)return;const{modes:t,platform:n}=e.GTFS;return[t&&"RAIL"===t[0]?j.default.t("track"):j.default.t("platform"),n]};function Je(e){if("FutureRoute"!==e.type){if("SelectFromMap"===e.type)return["",j.default.t("select-from-map")];if("CurrentLocation"===e.type)return["",j.default.t("use-own-position")];if("SelectFromOwnLocations"===e.type)return["",j.default.t("select-from-own-locations")];let n,[o,i]=Ae(e.properties,!0);if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation")){n=j.default.t("vehiclerentalstation");return[n,o,void 0,e.properties.labelId]}if("bikepark"===e.properties.layer)return n=j.default.t("bikepark"),[n,o,void 0,void 0];if("carpark"===e.properties.layer)return n=j.default.t("carpark"),[n,o,void 0,void 0];if(e.properties.mode)n=j.default.t(e.properties.mode.toLowerCase().replace("favourite",""));else{const t=e.properties.layer.replace("route-","").toLowerCase().replace("favourite","");n=j.default.t(t)}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){var t;const s=Fe(e.properties),r=null===(t=e.properties.addendum)||void 0===t?void 0:t.GTFS.modes,a=Xe(e.properties.addendum);return[n,ye(o,s),i,s,r,a]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){const{address:t,code:s}=e.properties;return[n,t?ye(t.split(",")[0],s):o,i,s,void 0,Xe(e.properties.addendum)]}return[n,o,i]}const{origin:n,destination:o}=e.properties,i=n.locality?`, ${n.locality} foobar`:"",s=o.locality?`, ${o.locality}`:"",r=n.name,a=o.name;return[j.default.t("future-route"),`${j.default.t("origin")} ${r}${i} ${j.default.t("destination")} ${a}${s}`,e.translatedText]}function et(e){const t=v.DateTime.fromSeconds(Number(e.properties.time)),n=v.DateTime.now();let o=e.properties.arriveBy?j.default.t("arrival"):j.default.t("departure");return o=t.hasSame(n,"day")?`${o} ${j.default.t("today-at")}`:t.hasSame(n.plus({days:1}),"day")?`${o} ${j.default.t("tomorrow-at")}`:`${o} ${t.toFormat("ccc d.L.")}`,o=`${o} ${t.toFormat("HH:mm")}`,o}const tt=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=Ae(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return t[1]||t[0];case"favouriteVehicleRentalStation":case"favouritePlace":return t[0];default:return t.length>1&&""!==t[1]?t.join(", "):t[1]||t[0]}}(e.properties);class nt extends x.default.Component{constructor(e){super(e),G(this,"onChange",((e,{newValue:t,method:n})=>{const o={value:this.fInput||t||"",renderMobileSearch:this.props.isMobile};if(this.fInput=null,this.state.editing){if("enter"!==n||this.state.valid){if(this.state.typingTimer&&clearTimeout(this.state.typingTimer),"type"===n){const e=setTimeout((()=>{this.setState({typing:!1})}),1e3);o.typingTimer=e,o.typing=!0}this.setState(o)}}else o.editing=!0,this.setState(o,(()=>this.fetchFunction({value:t||""})))})),G(this,"onBlur",(()=>{this.state.editing&&this.input.focus(),this.setState({editing:!1,renderMobileSearch:!1,value:this.props.value}),this.props.isMobile&&this.state.renderMobileSearch&&this.closeMobileSearch()})),G(this,"onSelected",((e,t)=>{if(this.state.valid){if("SelectFromOwnLocations"===t.suggestion.type)return void this.setState({sources:["Favourite","Back"],ownPlaces:!0,pendingSelection:t.suggestion.type,value:""},(()=>{this.fetchFunction({value:""})}));if("back"===t.suggestion.type||"FutureRoute"===t.suggestion.type)return void this.setState({sources:this.props.sources,ownPlaces:!1,pendingSelection:t.suggestion.type,suggestionIndex:t.suggestionIndex},(()=>{this.fetchFunction({value:""})}));this.selectionDone=!0,this.setState({editing:!1,value:t.suggestionValue},(()=>{this.input.blur(),this.props.handleViaPoints?this.props.handleViaPoints(t.suggestion,t.suggestionIndex):this.props.onSelect(t.suggestion,this.props.id),this.setState({renderMobileSearch:!1,sources:this.props.sources,ownPlaces:!1,suggestions:[]},(()=>{this.selectionDone=!1})),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange(),this.props.isMobile&&this.state.renderMobileSearch&&this.closeMobileSearch()}))}else this.setState((e=>({pendingSelection:e.value})),(()=>this.checkPendingSelection()))})),G(this,"onSuggestionsClearRequested",(()=>{this.setState({suggestions:[],sources:this.props.sources,ownPlaces:!1,editing:!1})})),G(this,"checkPendingSelection",(()=>{"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection||!this.state.valid?this.state.pendingSelection&&this.state.valid&&this.setState({pendingSelection:null,editing:!1},(()=>{if(this.state.suggestions.length){this.input.blur();"back"!==this.state.suggestions[this.state.suggestionIndex].type&&this.props.onSelect(this.state.suggestions[this.state.suggestionIndex],this.props.id),this.props.isMobile&&this.state.renderMobileSearch&&this.closeMobileSearch(),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange()}})):this.setState({pendingSelection:null,editing:!0},(()=>{this.input.focus()}))})),G(this,"clearButton",(()=>x.default.createElement("button",{type:"button",className:De["clear-input"],onClick:this.clearInput,"aria-label":j.default.t("clear-button-label")},x.default.createElement(V.default,{img:"close",color:this.props.color})))),G(this,"fetchFunction",(({value:e,cleanExecuted:t})=>this.setState({valid:!1,cleanExecuted:t||!1},(()=>{if(this.selectionDone)return;const{targets:t}=this.props,n=B.default(t),o=B.default(t)||t.includes("Locations");let i;this.state.ownPlaces?(i=["Locations"],(n||t.includes("Stops"))&&i.push("Stops"),(n||t.includes("Stations"))&&i.push("Stations"),(n||t.includes("VehicleRentalStations"))&&i.push("VehicleRentalStations")):n||(i=[...t],o&&!this.props.isMobile&&(B.default(this.props.sources)||this.props.sources.includes("Favourite"))&&i.push("SelectFromOwnLocations"));((e,t,n,o,i,s,r,a,l,u)=>{a(null),Ne(e,t,n,o,i,s,r,a,l,u)})(i,this.state.sources&&this.state.sources.filter((e=>!(o&&"Favourite"===e&&!this.state.ownPlaces&&!this.props.isMobile))),this.props.transportMode,this.props.searchContext,this.props.filterResults,this.props.geocodingSize,{input:e||""},(t=>{if(null==t)return;const n=(t.results||[]).filter((e=>"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>v.DateTime.now().toUnixInteger())).map((e=>{if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){const t=Ke({},e);return t.properties.labelId=j.default.t(e.properties.labelId),t}return e}));e!==this.state.value&&e!==this.state.pendingSelection&&"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection&&"FutureRoute"!==this.state.pendingSelection||this.setState({valid:!0,suggestions:n},(()=>this.checkPendingSelection()))}),this.props.pathOpts,this.props.refPoint)})))),G(this,"clearInput",(()=>{const e={editing:!0,value:"",sources:this.props.sources,ownPlaces:!1,renderMobileSearch:this.props.isMobile};this.setState(e,(()=>this.fetchFunction({value:"",cleanExecuted:!0}))),this.props.onClear&&this.props.onClear(this.props.id),this.input.focus()})),G(this,"inputClicked",(e=>{if(this.input.focus(),this.clearLocationText(),this.props.isMobile&&this.props.lock(),this.state.editing)this.props.isMobile&&!this.state.renderMobileSearch&&this.setState({renderMobileSearch:!0});else{const t={editing:!0,pendingSelection:null,renderMobileSearch:this.props.isMobile},n={editing:!0,pendingSelection:null,value:e};this.state.suggestions.length?(this.fetchFunction({value:this.state.value}),this.setState(t)):"object"!=typeof e&&e?this.setState(n,(()=>this.fetchFunction({value:e}))):this.setState(t,(()=>this.fetchFunction({value:this.state.value})))}})),G(this,"storeInputReference",(e=>{null!==e&&(this.input=e.input,this.props.storeRef&&this.props.storeRef(e.input))})),G(this,"fillInput",(e=>{this.fInput=e.properties.name;const t={editing:!0,value:e.properties.name,checkPendingSelection:e,valid:!0};this.setState(t),this.fetchFunction({value:e.properties.name}),this.input.focus()})),G(this,"renderItem",(e=>{const t="FutureRoute"===e.type?Ke(Ke({},e),{},{translatedText:et(e)}):e,n=Je(e);return x.default.createElement(F.default,{item:t,content:n,loading:!this.state.valid,isMobile:this.props.isMobile,ariaFavouriteString:j.default.t("favourite"),color:this.props.color,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fillInput:this.fillInput,fontWeights:this.props.fontWeights,getAutoSuggestIcons:this.props.getAutoSuggestIcons,modeIconColors:this.props.modeIconColors,modeSet:this.props.modeSet})})),G(this,"closeMobileSearch",(()=>{this.props.unlock(),this.setState({renderMobileSearch:!1,value:this.props.value},(()=>{window.scrollTo(0,this.state.scrollY),this.onSuggestionsClearRequested()})),this.input.focus(),this.input.blur()})),G(this,"keyDown",(e=>{if(this.selectionDone)return;const t=e.key;if("Shift"!==t){if("Escape"===t&&this.onBlur(),this.state.editing)return"Enter"===t&&""!==this.state.value&&this.setState({pendingSelection:!0},(()=>{this.fetchFunction({value:this.state.value})})),void this.inputClicked();if("Enter"!==t&&"ArrowDown"!==t||""!==this.state.value){if("ArrowDown"===t&&""!==this.state.value){const e={editing:!0,value:this.state.value};this.setState(e,(()=>this.fetchFunction({value:this.state.value})))}this.state.editing||(this.setState({editing:!0}),this.clearLocationText()),"Tab"===t&&this.onBlur()}else this.clearInput()}})),G(this,"suggestionAsAriaContent",(()=>{let e=[];const t=this.state.suggestions[0];return t&&(t.type&&t.type.includes("Favourite")&&e.push(j.default.t("favourite")),e=e.concat(Je(this.state.suggestions[0]))),[...new Set(e)].join(" - ")})),G(this,"clearOldSearches",(()=>{const{context:e,clearOldSearches:t,clearFutureRoutes:n}=this.props.searchContext;e&&t&&(t(e),n&&n(e),this.fetchFunction({value:this.state.value}))})),G(this,"isOriginDestinationOrViapoint",(()=>"origin"===this.props.id||"destination"===this.props.id||"via-point"===this.props.id||"origin-stop-near-you"===this.props.id)),G(this,"clearLocationText",(()=>{["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location","Wybrane miejsce"].includes(this.state.value)&&this.clearInput()})),G(this,"onFocus",(()=>{const e=window.pageYOffset;return this.setState({scrollY:e})})),v.Settings.defaultZone=e.timeZone,v.Settings.defaultLocale=e.lang,this.state={value:e.value,suggestions:[],editing:!1,valid:!0,renderMobileSearch:!1,sources:e.sources,ownPlaces:!1,typingTimer:null,typing:!1,pendingSelection:null,suggestionIndex:0,cleanExecuted:!1,scrollY:0},Object.keys(Te).forEach((e=>{j.default.addResourceBundle(e,"translation",Te[e])}))}shouldComponentUpdate(e,t){return!A.default(t,this.state)||!A.default(e,this.props)}componentDidUpdate(){j.default.language!==this.props.lang&&j.default.changeLanguage(this.props.lang)}UNSAFE_componentWillReceiveProps(e){e.value===this.state.value||this.state.editing||this.setState({value:e.value})}render(){j.default.language!==this.props.lang&&j.default.changeLanguage(this.props.lang);const{value:e,suggestions:t,renderMobileSearch:n,cleanExecuted:o}=this.state,i={placeholder:this.props.translatedPlaceholder?this.props.translatedPlaceholder:j.default.t(this.props.placeholder),value:e,onChange:this.onChange,onBlur:this.onBlur,className:`${De.input} ${this.props.isMobile&&this.props.transportMode?De.thin:""} ${De[this.props.id]||""} ${this.state.value?De.hasValue:""} ${this.props.inputClassName}`,onKeyDown:this.keyDown,required:this.props.required},s=this.props.id.replace("searchfield-","");let r=this.props.ariaLabel||j.default.t(s);r=r.replace("searchfield-","").concat(".");const a=this.props.required?`${j.default.t("required")}.`:"",l=this.props.isMobile?j.default.t("search-autosuggest-label-instructions-mobile"):j.default.t("search-autosuggest-label-instructions-desktop"),u="origin"===this.props.id?j.default.t("search-autosuggest-label-move-to-destination"):"",c=l.concat(" ").concat(u),d=j.default.t("search-autosuggest-len",{count:t.length}),p=()=>this.suggestionAsAriaContent()||this.props.value?j.default.t("search-current-suggestion",{selection:this.suggestionAsAriaContent().toLowerCase()||this.props.value}):"";return x.default.createElement(x.default.Fragment,null,x.default.createElement("span",{className:De["sr-only"],role:"alert"},!this.state.typing&&this.state.editing&&`${d} ${p()}`),this.props.isMobile&&x.default.createElement(We,{searchOpen:n,appElement:this.props.appElement,clearOldSearches:this.clearOldSearches,id:this.props.id,clearInput:this.clearInput,value:this.state.value,suggestions:[...t,{type:"clear-search-history",labelId:j.default.t("clear-search-history")}],inputProps:Ke(Ke({},i),{},{placeholder:this.isOriginDestinationOrViapoint()?j.default.t("address-place-or-business"):i.placeholder}),fetchFunction:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:tt,renderSuggestion:this.renderItem,closeHandle:this.closeMobileSearch,ariaLabel:a.concat(" ").concat(r).concat(" ").concat(p()),label:this.props.mobileLabel?this.props.mobileLabel:j.default.t(this.props.id),onSuggestionSelected:this.onSelected,dialogHeaderText:j.default.t("delete-old-searches-header"),dialogPrimaryButtonText:j.default.t("delete"),dialogSecondaryButtonText:j.default.t("cancel"),clearInputButtonText:j.default.t("clear-button-label"),focusInput:o,color:this.props.color,hoverColor:this.props.hoverColor,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fontWeights:this.props.fontWeights,showScroll:this.props.showScroll}),!n&&x.default.createElement("div",{className:M.default(De["autosuggest-input-container"],De[this.props.id]),style:{"--color":`${this.props.color}`,"--hover-color":`${this.props.hoverColor}`}},this.props.icon&&x.default.createElement("div",{className:M.default(De["autosuggest-input-icon"],De[this.props.id],this.props.inputClassName&&`${this.props.inputClassName}-input-icon`),"aria-label":a.concat(" ").concat(r).concat(" ").concat(j.default.t("search-autosuggest-label"))},x.default.createElement(V.default,{img:`${this.props.icon}`})),x.default.createElement(R.default,{alwaysRenderSuggestions:this.state.editing,id:this.props.id,suggestions:t,onSuggestionsFetchRequested:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:tt,renderSuggestion:this.renderItem,inputProps:Ke(Ke({},i),{},{onFocus:this.onFocus}),focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>this.state.editing,highlightFirstSuggestion:!this.state.ownPlaces,theme:De,renderInputComponent:e=>x.default.createElement(x.default.Fragment,null,x.default.createElement("label",{className:De["sr-only"],htmlFor:this.props.id},p().concat(" ").concat(a).concat(" ").concat(r).concat(" ").concat(c)),x.default.createElement("input",Object.assign({"aria-label":p().concat(" ").concat(a).concat(" ").concat(r).concat(" ").concat(c),id:this.props.id,onClick:this.inputClicked,onKeyDown:this.keyDown},e)),this.state.value&&this.clearButton()),onSuggestionSelected:this.onSelected,ref:this.storeInputReference})))}}G(nt,"defaultProps",{autoFocus:!1,className:"",icon:void 0,value:"",transportMode:void 0,filterResults:void 0,onClear:void 0,lang:"fi",storeRef:void 0,handleViaPoints:void 0,focusChange:void 0,getAutoSuggestIcons:void 0,sources:[],targets:void 0,isMobile:!1,isEmbedded:!1,geocodingSize:void 0,color:"#007ac9",hoverColor:"#0062a1",accessiblePrimaryColor:"#0074be",timeZone:"Europe/Helsinki",pathOpts:{routesPrefix:"linjat",stopsPrefix:"pysakit"},ariaLabel:void 0,mobileLabel:void 0,inputClassName:"",translatedPlaceholder:void 0,fontWeights:{medium:500},modeIconColors:{"mode-bus":"#007ac9","mode-rail":"#8c4799","mode-tram":"#008151","mode-metro":"#ed8c00","mode-ferry":"#007A97","mode-citybike":"#f2b62d","mode-funicular":"#ff00ff"},required:!1,modeSet:void 0,showScroll:!1,refPoint:{}}),"production"!==process.env.NODE_ENV&&(nt.propTypes={appElement:O.default.string.isRequired,autoFocus:O.default.bool,className:O.default.string,icon:O.default.string,id:O.default.string.isRequired,placeholder:O.default.string.isRequired,translatedPlaceholder:O.default.string,value:O.default.string,searchContext:O.default.shape({URL_PELIAS:O.default.string,context:O.default.object,clearOldSearches:O.default.func,clearFutureRoutes:O.default.func}).isRequired,ariaLabel:O.default.string,onSelect:O.default.func.isRequired,transportMode:O.default.string,filterResults:O.default.func,geocodingSize:O.default.number,onClear:O.default.func,storeRef:O.default.func,handleViaPoints:O.default.func,focusChange:O.default.func,lang:O.default.string,sources:O.default.arrayOf(O.default.string),targets:O.default.arrayOf(O.default.string),isMobile:O.default.bool,color:O.default.string,hoverColor:O.default.string,accessiblePrimaryColor:O.default.string,timeZone:O.default.string,pathOpts:O.default.shape({routesPrefix:O.default.string,stopsPrefix:O.default.string}),mobileLabel:O.default.string,lock:O.default.func.isRequired,unlock:O.default.func.isRequired,refPoint:O.default.shape({address:O.default.string,lat:O.default.number,lon:O.default.number}),inputClassName:O.default.string,fontWeights:O.default.shape({medium:O.default.number}),modeIconColors:O.default.objectOf(O.default.string),getAutoSuggestIcons:O.default.objectOf(O.default.func),required:O.default.bool,modeSet:O.default.string,showScroll:O.default.bool,isEmbedded:O.default.bool});const ot=(it=nt,e=>{const{lock:t,unlock:n}=Qe.useScrollLock();return x.default.createElement(it,Object.assign({lock:t,unlock:n},e))});var it;e.default=ot,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("i18next"),require("classnames"),require("react-autosuggest"),require("lodash/debounce"),require("lodash/flatten"),require("lodash/take"),require("lodash/isString"),require("lodash/orderBy"),require("lodash/uniqWith"),require("lodash/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),require("@digitransit-component/digitransit-component-icon"),require("luxon"),require("lodash/isEmpty"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","i18next","classnames","react-autosuggest","lodash/debounce","lodash/flatten","lodash/take","lodash/isString","lodash/orderBy","lodash/uniqWith","lodash/get","@digitransit-component/digitransit-component-suggestion-item","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","@digitransit-component/digitransit-component-icon","luxon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.React,e.PropTypes,e.i18next,e.cx,e.Autosuggest,e.debounce,e.flatten,e.take,e.isString,e.orderBy,e.uniqWith,e.get,e.SuggestionItem,e.isEqual,e.memoize,e.escapeRegExp,e.cloneDeep,e.Icon,e.luxon,e.isEmpty,e.ReactModal,e.DialogModal)}(this,(function(e,t,n,o,i,s,r,a,l,u,c,d,p,h,g,f,b,m,y,v,_,S,k){"use strict";function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=w(t),O=w(n),j=w(o),M=w(i),R=w(s),P=w(r),E=w(a),C=w(l),L=w(u),I=w(c),N=w(d),z=w(p),F=w(h),A=w(g),T=w(f),q=w(b),D=w(m),V=w(y),B=w(_),H=w(S),$=w(k);function U(e){return U="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},U(e)}function W(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=U(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}function G(e,t,n){return(t=W(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t){return e&&t&&e===t}const Q=["stop","station","favouriteStop","favouriteStation"],Z=["favouriteVehicleRentalStation","bikestation"];function K(e){if(!e)return"";const t=e.split(":");return 0===t.length?"":`citybikes${t[0]}:bikestation:${t[1]}`}function X(e,t){const n=e.properties,o=t.properties;if("FutureRoute"===e.type&&"FutureRoute"===t.type){const e=n.origin,t=n.destination,i=o.origin,s=o.destination;return`${e.name}//${e.localadmin}//${t.name}//${t.localadmin}`===`${i.name}//${i.localadmin}//${s.name}//${s.localadmin}`}if("FutureRoute"===e.type||"FutureRoute"===t.type)return!1;if(Z.includes(n.layer)&&Z.includes(o.layer)){return(n.gid||K(n.labelId))===(o.gid||K(o.labelId))}if(n.gtfsId&&o.gtfsId)return n.gtfsId===o.gtfsId;if(Q.includes(n.layer)&&Q.includes(o.layer)&&n.gid&&o.gid)return n.gid===o.gid;const i=e&&e.geometry?e.geometry.coordinates:void 0,s=t&&t.geometry?t.geometry.coordinates:void 0;return!!(i&&s&&Math.abs(i[0]-s[0])<1e-6&&Math.abs(i[1]-s[1])<1e-6&&(Y(n.name,o.name)||Y(n.label,o.label)||Y(n.address,o.address)||Y(n.address,o.label)||Y(n.label,o.address)))}const J=e=>L.default(e)?e.toLowerCase():"",ee="back",te="currentPosition",ne="favouriteStop",oe="favouriteStation",ie="favouritePlace",se="favouriteRoute",re="favouriteVehicleRentalStation",ae="futureRoute",le="station",ue="selectFromMap",ce="ownLocations",de="stop",pe="bikestation",he="carpark",ge="bikepark",fe=({layer:e,type:t})=>"stop"===e||"favouriteStop"===e||"stop"===t||"favouriteStop"===t,be=(e,t)=>{switch(e){case te:return 1;case ee:return.9;case ue:return.8;case ce:return.79;case oe:case ie:case ne:case se:case re:return.45;case ae:return.44;case le:return L.default(t)&&0===t.indexOf("gtfs")?.43:.42;case he:case ge:case pe:return.38;case de:return.36;default:return.41}},me=(e,t,n="")=>{if(!Array.isArray(t))return t;const o=t=>L.default(t)&&e&&e.test(t),i=J(n),s=o(i),r=I.default(t,[e=>s&&o(J(e.properties.shortName))&&0===J(e.properties.shortName).indexOf(i)?1:0,e=>{const{confidence:t,layer:n,source:o}=e.properties;if(0===i.length)return be(n,o);if(!t)return be(n,o)+((e,t)=>L.default(e)&&0!==e.length?["name","label","address","shortName"].map((e=>t[e])).filter((e=>L.default(e)&&e.length>0)).map((t=>{const n=J(t);return 0===n.indexOf(e)?.5+e.length/n.length:.5*e.length/(e.length+1)})).reduce(((e,t)=>t>e?t:e),0):0)(i,e.properties);switch(n){case le:return t+(0===o.indexOf("gtfs")?.02:.01);case de:case he:case ge:return t-.05;case pe:return t-.04;default:return t}},"properties.shortName","properties.longName"],["desc","desc","asc","asc"]);return N.default((e=>{let t=[],n=0,o=0,i=[],s=[];for(;n<e.length;){var r,a,l;o!==(null===(r=e[n].properties)||void 0===r||null===(r=r.shortName)||void 0===r?void 0:r.length)&&(t=t.concat(i,s),o=null===(l=e[n].properties)||void 0===l||null===(l=l.shortName)||void 0===l?void 0:l.length,i=[],s=[]),isNaN(null===(a=e[n].properties)||void 0===a||null===(a=a.shortName)||void 0===a?void 0:a.slice(-1))?i.push(e[n]):s.push(e[n]),n+=1}return t=t.concat(i,s),t})(r),X)},ye=(e,t)=>null!=t&&-1!==e.lastIndexOf(t)?e.substring(0,e.lastIndexOf(t)-1):e;function ve(e,t,n){if("string"==typeof t&&t.length>0){const o=t.toLowerCase().trim(),i=o.includes(" ")||o.includes(",");return e.filter((e=>{let t=[];n.forEach((n=>{let o=z.default(e,n);i||"properties.label"!==n&&"address"!==n||!o||(o=o.split(","),o.length>2?o.splice(o.length-2,2):o.length>1&&o.splice(o.length-1,1),o=o.join(",")),o&&(t=i?t.concat(o.toLowerCase()):t.concat(o.toLowerCase().replace(/,/g," ").split(" ")))}));for(let e=0;e<t.length;e++)if(0===t[e].indexOf(o))return!0;return!1}))}return e}function _e(e,t){return e?Object.keys(e).map((n=>{const o=t||n,i=e[n];return"object"==typeof i?_e(i,o):`${encodeURIComponent(o)}=${encodeURIComponent(i)}`})).join("&"):""}const Se=require("axios").default;function ke(e,t){return Se.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+_e(t):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((e=>e.data))}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n,o,i,s,r,a){const l=e?e.trim():null;if(null==l||l.length<1||r&&!r.test(l))return Promise.resolve([]);const u=s||"https://api.digitransit.fi/geocoding/v1/search";let c=xe(xe(xe({text:l},t),o),{},{lang:n});if(i&&(c=xe(xe({},c),{},{sources:i})),a){const e=a.toString();c=xe(xe({},c),{},{layers:e})}return ke(u,c).then((e=>e.features))}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t){if(!e||e.length<1)return Promise.resolve([]);let n="";const o=e.map((e=>{const t="stop"===e.type?"stop":"station";let o=`gtfs${e.gtfsId.split(":")[0].toLowerCase()}:${t}:GTFS:${e.gtfsId}`;return e.code&&(o+=`#${e.code}`),n+=`${o},`,Me(Me({},e),{},{gid:o})})).reduce((function(e,t){return e[t.gid]=t,e}),{});return ke(t,{ids:n.slice(0,-1)}).then((e=>e.features.map((e=>({type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:o[e.properties.gid].gid,code:o[e.properties.gid].code,gtfsId:o[e.properties.gid].gtfsId,lastUpdated:o[e.properties.gid].lastUpdated,favouriteId:o[e.properties.gid].favouriteId,address:e.properties.label,layer:fe(e.properties)?"favouriteStop":"favouriteStation"},geometry:e.geometry})))))}function Pe(e,t,n){let o=ve(e,t,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(o=o.filter((e=>!n.includes(e.properties.layer)))),Promise.resolve(C.default(o,10).map((e=>{const t=Me(Me({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t})))}const Ee=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],Ce=["venue","address","street"],Le=["carpark","bikepark"],Ie=["stop","station"];const Ne=P.default((function(e,t,n,o,i,s,{input:r},a,l,u){const{getPositions:c,getFavouriteLocations:d,getOldSearches:p,getFavouriteStops:h,parkingAreaSources:g,getLanguage:f,getStopAndStationsQuery:b,getFavouriteVehicleRentalStationsQuery:m,getFavouriteVehicleRentalStations:y,getFavouriteRoutesQuery:v,getFavouriteRoutes:_,getRoutesQuery:S,context:k,isPeliasLocationAware:w,minimalRegexp:x,lineRegexp:O,URL_PELIAS:j,URL_PELIAS_PLACE:M,feedIDs:R,geocodingSearchParams:P,geocodingSources:L,getFutureRoutes:I,cityBikeNetworks:N}=o,z=!e||0===e.length,F=!t||0===t.length,A=c(k),T=[],q={type:"all",term:r,results:[]},D=f(k),V=w&&null!=u&&u.lat&&null!=u&&u.lon?{"focus.point.lat":u.lat.toFixed(3),"focus.point.lon":u.lon.toFixed(3)}:{},B=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==A.status&&T.push(function(e,t){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:t.address,lat:t.lat,lon:t.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:t.address,lat:t.lat,lon:t.lon},geometry:{type:"Point",coordinates:[t.lon,t.lat]}}]):Promise.resolve([])}(r,A)),(z||e.includes("MapPosition"))&&T.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(r)),e.includes("FutureRoutes")){const e=I(k);T.push(C.default(e,3))}if(e.includes("SelectFromOwnLocations")&&function(e){const t=e.getFavouriteLocations(e.context);if((null==t?void 0:t.length)>0)return!0;const n=e.getFavouriteVehicleRentalStations(e.context);if((null==n?void 0:n.length)>0)return!0;const o=e.getFavouriteStops(e.context);return(null==o?void 0:o.length)>0}(o)&&T.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(r)),z||e.includes("Locations")){const n=P;if(t.includes("Favourite")){const e=d(k);T.push(function(e,t){return Promise.resolve(ve(e,t,["address","name"]).map((e=>({type:"FavouritePlace",properties:Me(Me({},e),{},{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}}))))}(e,r)),t.includes("Back")&&T.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(F||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),T.push(Oe(r,n,D,V,L.join(","),j,x,t))}if(F||t.includes("History")){const e=p(k,"endpoint"),t=["bikestation"];t.push(...Ie),t.push(...Ee),t.push(...Le),T.push(Pe(e,r,t))}}if(z||e.includes("ParkingAreas")){if(F||t.includes("Datasource")){const e=P;s&&10!==s&&(e.size=s);const t=["carpark","bikepark"],n=g?g.join(","):null;T.push(Oe(r,e,D,V,n,j,x,t).then((e=>i?i(e,B):e)))}if(F||t.includes("History")){const e=p(k),t=["bikestation"];t.push(...Ie),t.push(...Ee),t.push(...Ce),T.push(Pe(e,r,t))}}const H=e.includes("Stops"),$=e.includes("Stations");if(z||H||$){if(t.includes("Favourite")){const e=h(k);let t;t=e.every((e=>"station"===e.type))?Re(e,M).then((e=>i?i(e,B):e)):b(e).then((e=>Re(e,M))).then((e=>i?i(e,B):e)),T.push(function(e,t,n,o){return e.then((e=>ve(e.filter((e=>"stop"===e.type?n:o)),t,["properties.name","properties.name","properties.address"])))}(t,r,H,$))}if(F||t.includes("Datasource")){const t=[];H&&t.push("stop"),$&&t.push("station");const n=s&&10!==s?{size:s}:{};P&&P["boundary.country"]&&(n["boundary.country"]=P["boundary.country"]),(z||e.includes("Locations"))&&(n.dedupestops=1);const o=R.map((e=>`gtfs${e}`)).join(",");T.push(Oe(r,n,D,V,o,j,x,t).then((e=>i?i(e,B):e)))}if(F||t.includes("History")){const e=p(k).filter((e=>!e.properties.gid||e.properties.gid.includes("GTFS:"))),t=["bikestation"];t.push(...Ee),t.push(...Ce),t.push(...Le),H||t.push("stop"),$||t.push("station"),n?T.push(Pe(e,r,t).then((e=>i?i(e,B):e))):T.push(Pe(e,r,t))}}if(z||e.includes("Routes")){if(t.includes("Favourite")){const e=_(k);T.push(v(e,r,B,l).then((e=>i?i(e,B,"Routes"):e)))}if(T.push(S(r,R,n,l).then((e=>i?i(e,B,"Routes"):e))),F||t.includes("History")){const e=p(k),t=["bikestation"];n&&t.push(...Ee.filter((e=>!(e===n)))),t.push(...Ie),t.push(...Ce),t.push(...Le),T.push(Pe(e,r,t).then((e=>i?i(e,B,"Routes"):e)))}}if(z||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=y(k);T.push(m(e,r))}if(F||t.includes("Datasource")){const e=["bikestation"],t=s&&10!==s?{size:s}:{};T.push(Oe(r,t,D,V,N.join(","),j,x,e).then((e=>i?i(e,B,"VehicleRentalStations"):e)))}if(F||t.includes("History")){const e=p(k),t=[...Ie];t.push(...Ee),t.push(...Ce),t.push(...Le),T.push(Pe(e,r,t))}}Promise.all(T).then(E.default).then((e=>{q.results=e})).catch((e=>{q.error=e})).then((()=>{a(Me(Me({},q),{},{results:me(O,q.results,r)}))}))}),300,{leading:!0}),ze=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",Fe=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),Ae=T.default(((e,t=!1)=>{switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return n=e.name,o=e.address,[n||o&&o.split(",")[0],"string"==typeof o?o.replace(new RegExp(`${q.default(n)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!t&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp(`${q.default(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],ze(e)]:[e.name,e.id,Fe(e),ze(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],ze(e)]}var n,o}),((e,t)=>{const n=D.default(e);return n.plain=t,n}));const Te={de:{address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft","add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel","give-origin":"Start eingeben.","give-destination":"Ziel eingeben.",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",loading:"Laden...","minute-short":"min",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-button-label":"Suche","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Aktuelle Auswahl: {{selection}}",street:"Straße",subway:"U-Bahn",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?",place:"Ort"},en:{address:"Address","address-place-or-business":"Address, place or business","add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flight",arrival:"Arrival",back:"Back",bikepark:"Park & Ride for bikes",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel",carpark:"Park & Ride","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination","give-origin":"Enter your origin.","give-destination":"Enter your destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",loading:"Loading...","minute-short":"m",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-button-label":"Search","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Current selection: {{selection}}",street:"Street",subway:"Metro",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bus":"Search bus routes or stops","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search","today-at":"today at","tomorrow-at":"tomorrow at",tram:"Tram",track:"Track","use-own-position":"Use current location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",venue:"Venue","via-point":"Via point",where:"Where to?",place:"Location"},fi:{address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys","add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",vehiclerentalstation:"Pyöräasema",bikepark:"Liityntäpysäköinti",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäköinti","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-origin":"Lähtöpaikka","give-destination":"Määränpää",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",loading:"Ladataan...","minute-short":"min",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-button-label":"Hae","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-autosuggest-label":"Paikka, linja ja pysäkkihaku.","search-autosuggest-label-instructions-desktop":"Navigoi listassa nuolinäppäimillä ja valitse enterillä.","search-autosuggest-label-instructions-mobile":"Syötä sijainti ja navigoi listassa pyyhkäisemällä.","search-autosuggest-label-move-to-destination":"Valittuasi lähtöpaikan siirrytään suoraan määränpää-kenttään.","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-position":"Paikanna",street:"Katu",subway:"Metro",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku","today-at":"tänään klo","tomorrow-at":"huomenna klo",tram:"Raitiovaunu",track:"Raide","use-own-position":"Käytä nykyistä sijaintia","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?",place:"Paikka"},pl:{address:"Adres","address-place-or-business":"Adres, miejsce lub firma","add-via-button-label":"Dodaj punkt pośredni","add-via-duration-button-label":"Wybierz czas postoju dla punktu {{index}}","add-via-duration-button-label-close":"Zamknij wybornik czasu postoju w punkcie {{index}}","add-via-duration-button-label-open":"Otwórz wybornik czasu postoju w punkcie {{index}}",airplane:"Lot",arrival:"Przyjazd",back:"Wróć",bikepark:"Parkuj i Jedź dla rowerów",bikerentalstation:"Stacja rowerowa",bus:"autobus",cancel:"Anuluj",carpark:"Parkuj i Jedź","clear-button-label":"Wyczyść","clear-search-history":"Wyczyść historię wyszukiwania",currentposition:"Obecne położenie",delete:"Usuń","delete-old-searches-header":"Czy na pewno chcesz wyczyścić historię wyszukiwania?",departure:"Odjazd",destination:"Cel","give-origin":"Wprowadź swój punkt początkowy.","give-destination":"Wprowadź swój cel",favourite:"Ulubione",ferry:"Prom","future-route":"Przyszła trasa",origin:"Początek","origin-stop-near-you":"Początek",ownlocations:"Własne miejsca",loading:"Ładowanie…","minute-short":"min.",platform:"Peron",rail:"Pociąg",required:"wymagane pole",search:"Szukaj","search-address-or-place":"Szukaj po adresie lub nazwie miejsca","search-button-label":"Szukaj","search-destination":"Szukaj celu, trasy lub przystanku","search-destination-index":"Wprowadź punkt docelowy","search-destination-results-but-no-search":"Wyświetl wyniki w sąsiedniej karcie „Cel”","search-no-results":"Brak lokalizacji","search-origin":"Wyszukaj początek, koniec lub punkt pośredni","search-origin-index":"Wprowadź punkt początkowy","search-position":"Wykryj lokalizację","search-autosuggest-label":"Miejsce, lokalizacja i przystanek.","search-autosuggest-label-instructions-desktop":"Nawiguj po liście używając strzałek i wybieraj klawiszem Enter.","search-autosuggest-label-instructions-mobile":"Wprowadź lokalizację i nawiguj po liście gestami przesuwania.","search-autosuggest-label-move-to-destination":"Po wybraniu lokalizacji początkowej, automatycznie przejdziesz do pola miejsca docelowego.","search-autosuggest-len":"Dostępna jest {{count}} propozycja","search-autosuggest-len_few":"Dostępne są {{count}} propozycje","search-autosuggest-len_other":"Dostępne jest {{count}} propozycji","search-current-suggestion":"Obecny wybór: {{selection}}",street:"Ulica",subway:"Metro",station:"Stacja",stop:"Przystanek","stop-near-you":"Szukaj przystanków i tras","stop-near-you-airplane":"Szukaj lotów i lotnisk","stop-near-you-bus":"Szukaj tras autobusowych i przystanków","stop-near-you-citybike":"Szukaj stacji rowerów miejskich","stop-near-you-rail":"Szukaj tras kolejowych i przystanków","stop-near-you-subway":"Szukaj tras metra i przystanków ","stop-near-you-tram":"Szukaj tras tramwajowych i przystanków","stop-route-station":"Wyszukiwanie autobusów i przystanków","today-at":"dziś o","tomorrow-at":"jutro o",tram:"Tramwaj",track:"Tor","use-own-position":"Użyj obecnej lokalizacji","select-from-map":"Wybierz miejsce na mapie","select-from-own-locations":"Wybierz z własnych miejsc",venue:"Miejsce","via-point":"Przez punkt",where:"Dokąd?",place:"Miejsce"},sv:{address:"Adress","address-place-or-business":"Adress, plats eller företag","add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikerentalstation:"Stadscykelstation",bikepark:"Anslutningsparkering för cyklar",bus:"Bussi",cancel:"Avbryt",carpark:"Infartsparkering","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",loading:"Laddar...","minute-short":"min",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-button-label":"Sök","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","search-autosuggest-label":"Plats, linje och hållplatssökning.","search-autosuggest-label-instructions-desktop":"Navigera listan med piltangenterna och välj med Enter-tangeten.","search-autosuggest-label-instructions-mobile":"Ange platsen och navigera i listan genom att svepa.","search-autosuggest-label-move-to-destination":"Efter att du valt avgångsplatsen tas du direkt till Destination-fältet.","search-autosuggest-len":"Hittade {{count}} förslag","search-current-suggestion":"Nuvarande val: {{selection}}",street:"Gata",subway:"Metro",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen","today-at":"i dag kl","tomorrow-at":"i morgon",tram:"Spårvagn",track:"Spår","use-own-position":"Använd min position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?",place:"Plats"}};function qe(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var De={container:"styles_container__KXfyb",input:"styles_input__XmNBn",favourite:"styles_favourite__sjGcX",thin:"styles_thin__y3lnY",hasValue:"styles_hasValue__tzCTr",suggestionsContainerOpen:"styles_suggestionsContainerOpen__4AZDX",suggestionsContainer:"styles_suggestionsContainer__3dsEd",suggestionsList:"styles_suggestionsList__esTtR",suggestion:"styles_suggestion__7itfO",suggestionHighlighted:"styles_suggestionHighlighted__XUxvC","autosuggest-input-container":"styles_autosuggest-input-container__ZkKGO",origin:"styles_origin__ivlHi",destination:"styles_destination__y39VH","stop-route-station":"styles_stop-route-station__FneXd","autosuggest-input-icon":"styles_autosuggest-input-icon__uhYGQ","origin-stop-near-you":"styles_origin-stop-near-you__Ekwp-","clear-input":"styles_clear-input__Vx7B4","sr-only":"styles_sr-only__ZOrQT"};qe("input[type='text'] {\n margin: 0; }\n\n.styles_container__KXfyb {\n display: flex;\n width: 100%; }\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 16px;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888;\n background-color: #fff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -moz-appearance: none;\n appearance: none; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_favourite__sjGcX {\n padding-left: 47px; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_thin__y3lnY {\n height: 34px; }\n .styles_container__KXfyb .styles_input__XmNBn:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: 0 0 2px 1px var(--hover-color); }\n @media screen and (min-width: 768px) {\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 15px;\n height: 44px;\n padding-left: 49px; } }\n .styles_container__KXfyb .styles_input__XmNBn::placeholder {\n color: #666;\n opacity: 1;\n font-size: 15px; }\n\n.styles_hasValue__tzCTr {\n color: #333; }\n\n.styles_suggestionsContainerOpen__4AZDX {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(3 * 0.875rem + 9px);\n z-index: 20; }\n\n.styles_suggestionsContainer__3dsEd {\n background-color: white;\n z-index: 20; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR li:hover {\n background: #f2f5f7; }\n\n.styles_suggestion__7itfO {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap; }\n\n.styles_suggestionHighlighted__XUxvC {\n background-color: #f2f5f7; }\n\n.styles_autosuggest-input-container__ZkKGO {\n position: relative;\n width: 100%; }\n .styles_autosuggest-input-container__ZkKGO.styles_origin__ivlHi {\n z-index: 16; }\n .styles_autosuggest-input-container__ZkKGO.styles_destination__y39VH {\n z-index: 10; }\n .styles_autosuggest-input-container__ZkKGO.styles_stop-route-station__FneXd {\n z-index: 9; }\n\n.styles_autosuggest-input-icon__uhYGQ {\n display: flex;\n position: absolute;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px; }\n .styles_autosuggest-input-icon__uhYGQ svg {\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin__ivlHi svg {\n fill: #4ea700;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_destination__y39VH svg {\n fill: #ec5188;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_stop-route-station__FneXd svg, .styles_autosuggest-input-icon__uhYGQ.styles_favourite__sjGcX svg {\n fill: #888;\n width: 16px;\n height: 16px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin-stop-near-you__Ekwp- svg {\n fill: #888;\n width: 16px;\n height: 16px; }\n\nbutton.styles_clear-input__Vx7B4 {\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.styles_clear-input__Vx7B4 svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.styles_clear-input__Vx7B4:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color; }\n button.styles_clear-input__Vx7B4:active {\n background-color: transparent;\n color: inherit; }\n button.styles_clear-input__Vx7B4:hover {\n background-color: transparent;\n color: inherit; }\n\n.styles_sr-only__ZOrQT:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px; }\n");var Ve={"fullscreen-root":"MobileSearch_fullscreen-root__WkMna","combobox-container":"MobileSearch_combobox-container__sRkYS","right-column":"MobileSearch_right-column__erBFe","combobox-icon":"MobileSearch_combobox-icon__xd0iZ","combobox-label":"MobileSearch_combobox-label__OqGpe",container:"MobileSearch_container__k-UVq",input:"MobileSearch_input__HbTUj","clear-input":"MobileSearch_clear-input__ILVwN",hasValue:"MobileSearch_hasValue__NYhZy",suggestion:"MobileSearch_suggestion__UBz5O",suggestionHighlighted:"MobileSearch_suggestionHighlighted__7ef5G",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__g7zkI",suggestionsList:"MobileSearch_suggestionsList__3pEzf","clear-search-history":"MobileSearch_clear-search-history__wblhz","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__f6Rl7","mobile-modal":"MobileSearch_mobile-modal__hNdM6","mobile-modal-content":"MobileSearch_mobile-modal-content__Yzz-V"};qe("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileSearch_fullscreen-root__WkMna {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileSearch_combobox-container__sRkYS {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileSearch_combobox-container__sRkYS .MobileSearch_right-column__erBFe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileSearch_combobox-icon__xd0iZ {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileSearch_combobox-icon__xd0iZ svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileSearch_combobox-label__OqGpe {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333; }\n\n.MobileSearch_container__k-UVq {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -moz-appearance: none;\n appearance: none; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileSearch_clear-input__ILVwN {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileSearch_clear-input__ILVwN svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileSearch_clear-input__ILVwN:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:active {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileSearch_hasValue__NYhZy {\n color: #333; }\n\n.MobileSearch_suggestion__UBz5O {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileSearch_suggestionHighlighted__7ef5G {\n background-color: #f2f5f7; }\n\n.MobileSearch_suggestionsContainerOpen__g7zkI {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileSearch_suggestionsContainerOpen__g7zkI .MobileSearch_suggestionsList__3pEzf {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7; }\n\n.MobileSearch_clear-search-history__wblhz {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileSearch_mobile-modal-overlay__f6Rl7 {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileSearch_mobile-modal__hNdM6 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileSearch_mobile-modal-content__Yzz-V {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n");var Be={"fullscreen-root":"MobileNoScroll_fullscreen-root__zQN50","combobox-container":"MobileNoScroll_combobox-container__RDEiT","right-column":"MobileNoScroll_right-column__0P3qe","combobox-icon":"MobileNoScroll_combobox-icon__LA0rD","combobox-label":"MobileNoScroll_combobox-label__-rYsj",container:"MobileNoScroll_container__CaIIv",input:"MobileNoScroll_input__Opft5","clear-input":"MobileNoScroll_clear-input__-4SQO",hasValue:"MobileNoScroll_hasValue__jR1iW",suggestion:"MobileNoScroll_suggestion__NAWcY",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__V0GuG",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__MRa5Y",suggestionsList:"MobileNoScroll_suggestionsList__NUpJE","clear-search-history":"MobileNoScroll_clear-search-history__Cjj-1","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__LbLie","mobile-modal":"MobileNoScroll_mobile-modal__-Rx-A","mobile-modal-content":"MobileNoScroll_mobile-modal-content__nfrCI"};function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}qe("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_fullscreen-root__zQN50 {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileNoScroll_combobox-container__RDEiT {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileNoScroll_combobox-container__RDEiT .MobileNoScroll_right-column__0P3qe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileNoScroll_combobox-icon__LA0rD {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileNoScroll_combobox-icon__LA0rD svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileNoScroll_combobox-label__-rYsj {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333; }\n\n.MobileNoScroll_container__CaIIv {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5 {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -moz-appearance: none;\n appearance: none; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileNoScroll_clear-input__-4SQO {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileNoScroll_clear-input__-4SQO svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileNoScroll_clear-input__-4SQO:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:active {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileNoScroll_hasValue__jR1iW {\n color: #333; }\n\n.MobileNoScroll_suggestion__NAWcY {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_suggestionHighlighted__V0GuG {\n background-color: #f2f5f7; }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y .MobileNoScroll_suggestionsList__NUpJE {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7; }\n\n.MobileNoScroll_clear-search-history__Cjj-1 {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileNoScroll_mobile-modal-overlay__LbLie {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileNoScroll_mobile-modal__-Rx-A {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileNoScroll_mobile-modal-content__nfrCI {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n scrollbar-width: none;\n /* Firefox */ }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */ }\n");class Ue extends R.default{constructor(e){super(e);const t=this;t.onSuggestionTouchMove=()=>{t.justSelectedSuggestion=!1,t.pressedSuggestion=null}}}const We=({appElement:e,id:n,closeHandle:o,clearInput:i,value:s,suggestions:r,inputProps:a,fetchFunction:l,renderSuggestion:u,getSuggestionValue:c,ariaLabel:d,label:p,onSuggestionSelected:h,clearOldSearches:g,dialogHeaderText:f,dialogPrimaryButtonText:b,dialogSecondaryButtonText:m,clearInputButtonText:y,focusInput:v,color:_,hoverColor:S,accessiblePrimaryColor:k,searchOpen:w,fontWeights:O,showScroll:j})=>{var M;const R=j?Ve:Be,P=`${n}-input`,E=`${n}-label`,[C,L]=t.useState(!1),I=x.default.useRef();t.useEffect((()=>{H.default.setAppElement(e)}),[]);const N=t.useCallback((()=>{o()})),z=(e,t)=>{"clear-search-history"===t.suggestion.type?L(!0):t.suggestion.properties.arrowClicked||h(e,t)},F=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},A=e=>"clear-search-history"===e.type?"":c(e),T=e=>"clear-search-history"===e.type?x.default.createElement("button",{type:"button",className:R["clear-search-history"]},e.labelId):u(e);return v&&null!==(M=I.current)&&void 0!==M&&M.input&&I.current.input.focus(),x.default.createElement(H.default,{isOpen:w,className:R["mobile-modal"],overlayClassName:R["mobile-modal-overlay"],onAfterClose:N,shouldCloseOnEsc:!0},x.default.createElement("div",{className:R["mobile-modal-content"],style:{"--color":`${_}`,"--accessible-primary-color":k,"--hover-color":`${S}`,"--font-weight-medium":O.medium}},x.default.createElement("div",{className:R["combobox-container"],htmlFor:P},x.default.createElement("button",{type:"button",className:R["combobox-icon"],onClick:()=>N(),onKeyDown:e=>F(e)&&N(),"aria-label":m,tabIndex:0},x.default.createElement(V.default,{img:"arrow"})),x.default.createElement("span",{className:R["right-column"]},x.default.createElement("span",{className:R["combobox-label"],id:E},p),x.default.createElement(Ue,{alwaysRenderSuggestions:!0,id:n,suggestions:r,onSuggestionsFetchRequested:l,getSuggestionValue:A,renderSuggestion:T,focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>!0,inputProps:$e($e({},a),{},{className:`${R.input} ${R[n]||""} ${a.value?R.hasValue:""}`,autoFocus:!0}),renderInputComponent:e=>x.default.createElement(x.default.Fragment,null,x.default.createElement("input",Object.assign({"aria-label":d,id:n},e)),s&&x.default.createElement("button",{type:"button",className:R["clear-input"],onClick:i,onKeyDown:e=>F(e)&&i(),"aria-label":y},x.default.createElement(V.default,{img:"close",color:_}))),theme:R,onSuggestionSelected:z,ref:I}))),x.default.createElement($.default,{appElement:e,isModalOpen:C,handleClose:()=>L(!1),headerText:f,primaryButtonText:b,secondaryButtonText:m,primaryButtonOnClick:()=>{g(),L(!1)},secondaryButtonOnClick:()=>L(!1),color:_,hoverColor:S,fontWeights:O})))};"production"!==process.env.NODE_ENV&&(We.propTypes={appElement:O.default.string.isRequired,id:O.default.string.isRequired,closeHandle:O.default.func.isRequired,clearInput:O.default.func.isRequired,value:O.default.string,clearInputButtonText:O.default.string.isRequired,suggestions:O.default.arrayOf(O.default.object).isRequired,inputProps:O.default.shape({onChange:O.default.func.isRequired,onBlur:O.default.func.isRequired,value:O.default.string.isRequired,placeholder:O.default.string.isRequired,className:O.default.string.isRequired}).isRequired,fetchFunction:O.default.func.isRequired,getSuggestionValue:O.default.func.isRequired,renderSuggestion:O.default.func.isRequired,onSuggestionSelected:O.default.func.isRequired,label:O.default.string.isRequired,clearOldSearches:O.default.func.isRequired,ariaLabel:O.default.string,dialogHeaderText:O.default.string,dialogPrimaryButtonText:O.default.string,dialogSecondaryButtonText:O.default.string,focusInput:O.default.bool,color:O.default.string,hoverColor:O.default.string,accessiblePrimaryColor:O.default.string.isRequired,searchOpen:O.default.bool.isRequired,fontWeights:O.default.shape({medium:O.default.number.isRequired}).isRequired,showScroll:O.default.bool}),We.defaultProps={value:void 0,ariaLabel:void 0,dialogHeaderText:void 0,dialogPrimaryButtonText:void 0,dialogSecondaryButtonText:void 0,focusInput:!1,color:void 0,hoverColor:void 0,showScroll:void 0};var Ge,Ye=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){var n;"undefined"!=typeof self&&self,e.exports=(n=x.default,function(){var e={888:function(e,t,n){var o,i;i=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,o=function(){return function(e){var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,(function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}})),e},o=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,i=-1,s="",r=n.charCodeAt(0);++i<o;){if(0===(t=n.charCodeAt(i)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");s+=t>=1&&t<=31||127==t||0===i&&t>=48&&t<=57||1===i&&t>=48&&t<=57&&45===r?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(i):"\\"+n.charAt(i)}return"#"+s},i=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n},r=function(t,n,o){0===t&&document.body.focus(),o||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},a=function(t,n,o,i){if(n.emitEvents&&"function"==typeof e.CustomEvent){var s=new CustomEvent(t,{bubbles:!0,detail:{anchor:o,toggle:i}});document.dispatchEvent(s)}};return function(l,u){var c,d,p,h,g={cancelScroll:function(e){cancelAnimationFrame(h),h=null,e||a("scrollCancel",c)},animateScroll:function(o,l,u){g.cancelScroll();var d=n(c||t,u||{}),f="[object Number]"===Object.prototype.toString.call(o),b=f||!o.tagName?null:o;if(f||b){var m=e.pageYOffset;d.header&&!p&&(p=document.querySelector(d.header));var y,v,_,S=s(p),k=f?o:function(t,n,o,s){var r=0;if(t.offsetParent)do{r+=t.offsetTop,t=t.offsetParent}while(t);return r=Math.max(r-n-o,0),s&&(r=Math.min(r,i()-e.innerHeight)),r}(b,S,parseInt("function"==typeof d.offset?d.offset(o,l):d.offset,10),d.clip),w=k-m,x=i(),O=0,j=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(w,d),M=function(t){y||(y=t),O+=t-y,_=m+w*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(d,v=(v=0===j?0:O/j)>1?1:v),e.scrollTo(0,Math.floor(_)),function(t,n){var i=e.pageYOffset;if(t==n||i==n||(m<n&&e.innerHeight+i)>=x)return g.cancelScroll(!0),r(o,n,f),a("scrollStop",d,o,l),y=null,h=null,!0}(_,k)||(h=e.requestAnimationFrame(M),y=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(o,f,d),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?r(o,Math.floor(k),!1):(a("scrollStart",d,o,l),g.cancelScroll(!0),e.requestAnimationFrame(M))}}},f=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(d=t.target.closest(l))&&"a"===d.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&d.hostname===e.location.hostname&&d.pathname===e.location.pathname&&/#/.test(d.href)){var n,i;try{n=o(decodeURIComponent(d.hash))}catch(e){n=o(d.hash)}if("#"===n){if(!c.topOnEmptyHash)return;i=document.documentElement}else i=document.querySelector(n);(i=i||"#top"!==n?i:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),g.animateScroll(i,d))}},b=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(o(history.state.anchor)))||g.animateScroll(t,null,{updateURL:!1})}};return g.destroy=function(){c&&(document.removeEventListener("click",f,!1),e.removeEventListener("popstate",b,!1),g.cancelScroll(),c=null,d=null,p=null,h=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";g.destroy(),c=n(t,u||{}),p=c.header?document.querySelector(c.header):null,document.addEventListener("click",f,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",b,!1)}(),g}}(i)}.apply(t,[]),void 0===o||(e.exports=o)},432:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(47),t),i(n(926),t),i(n(349),t),i(n(137),t),i(n(729),t),i(n(383),t),i(n(450),t),i(n(358),t),i(n(753),t),i(n(869),t),i(n(352),t),i(n(446),t),i(n(164),t),i(n(305),t),i(n(502),t)},349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowNavigation=void 0;var o=n(156);t.useArrowNavigation=function(e){var t=e.listItems,n=e.onArrowUpOrDown,i=(0,o.useState)(0),s=i[0],r=i[1],a=(0,o.useCallback)((function(e){r(e)}),[t]),l=function(e){var o=e.key;if(null==t?void 0:t.length)if("ArrowUp"===o)n&&n(),e.preventDefault(),a(s>0?s-1:t.length-1);else{if("ArrowDown"!==o)return;n&&n(),e.preventDefault(),s<t.length-1?a(s+1):a(0)}};return(0,o.useEffect)((function(){return window.addEventListener("keydown",l),function(){return window.removeEventListener("keydown",l)}})),(0,o.useEffect)((function(){a(0)}),[t]),{selectedIndex:s}}},446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var o=n(156);t.useDebounce=function(e,t){void 0===t&&(t=300);var n=(0,o.useState)(e),i=n[0],s=n[1];return(0,o.useEffect)((function(){var n=setTimeout((function(){s(e)}),t);return function(){clearTimeout(n)}}),[e,t]),i}},164:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementSize=void 0;var o=n(156);t.useElementSize=function(){var e,t,n=(0,o.useRef)(null);return[n,{width:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.clientWidth,height:null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.clientHeight}]},t.default=t.useElementSize},137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersectionObserver=void 0;var o=n(156);t.useIntersectionObserver=function(e){var t=(0,o.useRef)(null),n=(0,o.useState)(!1),i=n[0],s=n[1],r=function(e){var t=e[0];s(t.isIntersecting)};return(0,o.useEffect)((function(){if(window&&window.IntersectionObserver){var n=new IntersectionObserver(r,e),o=t.current;return t.current&&n.observe(t.current),function(){o&&n.unobserve(o)}}s(!1)}),[t,e]),{containerRef:t,isVisible:i}},t.default=t.useIntersectionObserver},729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsBreakpoint=void 0;var o=n(156),i=n(432),s={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};t.useIsBreakpoint=function(e){var t="string"==typeof e?s[e]:e,n=(0,o.useState)(null),r=n[0],a=n[1],l=(0,o.useCallback)((function(){a(window.innerWidth)}),[]);return(0,o.useEffect)((function(){l()}),[]),(0,i.useOnResize)(l),r>=t},t.default=t.useIsBreakpoint},450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoadingAfterError=void 0;var o=n(156);t.useIsLoadingAfterError=function(e,t){var n=(0,o.useState)(t),i=n[0],s=n[1];return(0,o.useEffect)((function(){e||s(t)}),[e,t]),e&&i}},305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var o=n(729);t.useIsMobile=function(){return!(0,o.useIsBreakpoint)("tablet")},t.default=t.useIsMobile},383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var o=n(156);t.useIsomorphicLayoutEffect="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,t.default=t.useIsomorphicLayoutEffect},753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnLoseFocusWithin=void 0;var o=n(156);t.useOnLoseFocusWithin=function(e){var t=e.ref,n=e.callback,i=e.watch;(0,o.useEffect)((function(){var e=function(){var e;if(i)return(null===(e=t.current)||void 0===e?void 0:e.matches(":focus-within"))?void 0:n()};return document.addEventListener("keyup",e),function(){return document.removeEventListener("keyup",e)}}),[n,t,i])},t.default=t.useOnLoseFocusWithin},502:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnResize=void 0;var o=n(156);t.useOnResize=function(e){(0,o.useEffect)((function(){var t=function(){e(window.innerWidth)};return window.addEventListener("resize",t,{passive:!0}),function(){return window.removeEventListener("resize",t)}}),[])},t.default=t.useOnResize},352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnWindowFocus=void 0;var o=n(156);t.useOnWindowFocus=function(e){(0,o.useEffect)((function(){var t=function(){e&&"visible"===document.visibilityState&&e()};return window.addEventListener("visibilitychange",t,!1),function(){return window.removeEventListener("visibilitychange",t)}}),[e])}},47:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOutsideReacter=void 0;var o=n(156);t.useOutsideReacter=function(e,t){function n(n){e.current&&!e.current.contains(n.target)&&t()}(0,o.useEffect)((function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}))}},869:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRunAfterUpdate=void 0;var o=n(156);t.useRunAfterUpdate=function(){var e=(0,o.useRef)(null);return(0,o.useEffect)((function(){e.current&&(e.current(),e.current=null)})),function(t){e.current=t}},t.default=t.useRunAfterUpdate},926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollLock=void 0;var o=n(156);t.useScrollLock=function(){return{lock:(0,o.useCallback)((function(){var e=window.scrollY+"px",t=document.body;t.style.position="fixed",t.style.top="-"+e}),[]),unlock:(0,o.useCallback)((function(){var e=document.body,t=e.style.top,n=-1*parseInt(t||"0");e.style.position="",e.style.top="",n&&window.scrollTo(0,-1*parseInt(t||"0"))}),[])}}},358:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSmoothScroll=void 0;var i=n(156),s=o(n(888));t.useSmoothScroll=function(e){var t=(0,i.useRef)(null),n=e.ref,o=e.offset,r=void 0===o?0:o,a=e.speed,l=void 0===a?500:a;return(0,i.useEffect)((function(){t.current=new s.default(null,{speed:l,speedAsDuration:!0})}),[]),(0,i.useCallback)((function(){n&&t.current&&t.current.animateScroll(n.current,null,{offset:function(){return r},updateURL:!1})}),[r,n])}},156:function(e){e.exports=n}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,o),s.exports}return o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o(432)}())})),Qe=(Ge=Ye)&&Ge.__esModule&&Object.prototype.hasOwnProperty.call(Ge,"default")?Ge.default:Ge;function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}v.Settings.defaultLocale="en",j.default.init({fallbackLng:"fi",defaultNS:"translation",interpolation:{escapeValue:!1}}),"production"!==process.env.NODE_ENV&&O.default.node;const Xe=e=>{if(!e||!e.GTFS.platform)return;const{modes:t,platform:n}=e.GTFS;return[t&&"RAIL"===t[0]?j.default.t("track"):j.default.t("platform"),n]};function Je(e){if("FutureRoute"!==e.type){if("SelectFromMap"===e.type)return["",j.default.t("select-from-map")];if("CurrentLocation"===e.type)return["",j.default.t("use-own-position")];if("SelectFromOwnLocations"===e.type)return["",j.default.t("select-from-own-locations")];let n,[o,i]=Ae(e.properties,!0);if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation")){n=j.default.t("vehiclerentalstation");return[n,o,void 0,e.properties.labelId]}if("bikepark"===e.properties.layer)return n=j.default.t("bikepark"),[n,o,void 0,void 0];if("carpark"===e.properties.layer)return n=j.default.t("carpark"),[n,o,void 0,void 0];if(e.properties.mode)n=j.default.t(e.properties.mode.toLowerCase().replace("favourite",""));else{const t=e.properties.layer.replace("route-","").toLowerCase().replace("favourite","");n=j.default.t(t)}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){var t;const s=Fe(e.properties),r=null===(t=e.properties.addendum)||void 0===t?void 0:t.GTFS.modes,a=Xe(e.properties.addendum);return[n,ye(o,s),i,s,r,a]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){const{address:t,code:s}=e.properties;return[n,t?ye(t.split(",")[0],s):o,i,s,void 0,Xe(e.properties.addendum)]}return[n,o,i]}const{origin:n,destination:o}=e.properties,i=n.locality?`, ${n.locality} foobar`:"",s=o.locality?`, ${o.locality}`:"",r=n.name,a=o.name;return[j.default.t("future-route"),`${j.default.t("origin")} ${r}${i} ${j.default.t("destination")} ${a}${s}`,e.translatedText]}function et(e){const t=v.DateTime.fromSeconds(Number(e.properties.time)),n=v.DateTime.now();let o=e.properties.arriveBy?j.default.t("arrival"):j.default.t("departure");return o=t.hasSame(n,"day")?`${o} ${j.default.t("today-at")}`:t.hasSame(n.plus({days:1}),"day")?`${o} ${j.default.t("tomorrow-at")}`:`${o} ${t.toFormat("ccc d.L.")}`,o=`${o} ${t.toFormat("HH:mm")}`,o}const tt=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=Ae(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return t[1]||t[0];case"favouriteVehicleRentalStation":case"favouritePlace":return t[0];default:return t.length>1&&""!==t[1]?t.join(", "):t[1]||t[0]}}(e.properties);class nt extends x.default.Component{constructor(e){super(e),G(this,"onChange",((e,{newValue:t,method:n})=>{const o={value:this.fInput||t||"",renderMobileSearch:this.props.isMobile};if(this.fInput=null,this.state.editing){if("enter"!==n||this.state.valid){if(this.state.typingTimer&&clearTimeout(this.state.typingTimer),"type"===n){const e=setTimeout((()=>{this.setState({typing:!1})}),1e3);o.typingTimer=e,o.typing=!0}this.setState(o)}}else o.editing=!0,this.setState(o,(()=>this.fetchFunction({value:t||""})))})),G(this,"onBlur",(()=>{this.state.editing&&this.input.focus(),this.setState({editing:!1,renderMobileSearch:!1,value:this.props.value}),this.props.isMobile&&this.state.renderMobileSearch&&this.closeMobileSearch()})),G(this,"onSelected",((e,t)=>{if(this.state.valid){if("SelectFromOwnLocations"===t.suggestion.type)return void this.setState({sources:["Favourite","Back"],ownPlaces:!0,pendingSelection:t.suggestion.type,value:""},(()=>{this.fetchFunction({value:""})}));if("back"===t.suggestion.type||"FutureRoute"===t.suggestion.type)return void this.setState({sources:this.props.sources,ownPlaces:!1,pendingSelection:t.suggestion.type,suggestionIndex:t.suggestionIndex},(()=>{this.fetchFunction({value:""})}));this.selectionDone=!0,this.setState({editing:!1,value:t.suggestionValue},(()=>{this.input.blur(),this.props.handleViaPoints?this.props.handleViaPoints(t.suggestion,t.suggestionIndex):this.props.onSelect(t.suggestion,this.props.id),this.setState({renderMobileSearch:!1,sources:this.props.sources,ownPlaces:!1,suggestions:[]},(()=>{this.selectionDone=!1})),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange(),this.props.isMobile&&this.state.renderMobileSearch&&this.closeMobileSearch()}))}else this.setState((e=>({pendingSelection:e.value})),(()=>this.checkPendingSelection()))})),G(this,"onSuggestionsClearRequested",(()=>{this.setState({suggestions:[],sources:this.props.sources,ownPlaces:!1,editing:!1})})),G(this,"checkPendingSelection",(()=>{"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection||!this.state.valid?this.state.pendingSelection&&this.state.valid&&this.setState({pendingSelection:null,editing:!1},(()=>{if(this.state.suggestions.length){this.input.blur();"back"!==this.state.suggestions[this.state.suggestionIndex].type&&this.props.onSelect(this.state.suggestions[this.state.suggestionIndex],this.props.id),this.props.isMobile&&this.state.renderMobileSearch&&this.closeMobileSearch(),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange()}})):this.setState({pendingSelection:null,editing:!0},(()=>{this.input.focus()}))})),G(this,"clearButton",(()=>x.default.createElement("button",{type:"button",className:De["clear-input"],onClick:this.clearInput,"aria-label":j.default.t("clear-button-label")},x.default.createElement(V.default,{img:"close",color:this.props.color})))),G(this,"fetchFunction",(({value:e,cleanExecuted:t})=>this.setState({valid:!1,cleanExecuted:t||!1},(()=>{if(this.selectionDone)return;const{targets:t}=this.props,n=B.default(t),o=B.default(t)||t.includes("Locations");let i;this.state.ownPlaces?(i=["Locations"],(n||t.includes("Stops"))&&i.push("Stops"),(n||t.includes("Stations"))&&i.push("Stations"),(n||t.includes("VehicleRentalStations"))&&i.push("VehicleRentalStations")):n||(i=[...t],o&&!this.props.isMobile&&(B.default(this.props.sources)||this.props.sources.includes("Favourite"))&&i.push("SelectFromOwnLocations"));((e,t,n,o,i,s,r,a,l,u)=>{a(null),Ne(e,t,n,o,i,s,r,a,l,u)})(i,this.state.sources&&this.state.sources.filter((e=>!(o&&"Favourite"===e&&!this.state.ownPlaces&&!this.props.isMobile))),this.props.transportMode,this.props.searchContext,this.props.filterResults,this.props.geocodingSize,{input:e||""},(t=>{if(null==t)return;const n=(t.results||[]).filter((e=>"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>v.DateTime.now().toUnixInteger())).map((e=>{if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){const t=Ke({},e);return t.properties.labelId=j.default.t(e.properties.labelId),t}return e}));e!==this.state.value&&e!==this.state.pendingSelection&&"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection&&"FutureRoute"!==this.state.pendingSelection||this.setState({valid:!0,suggestions:n},(()=>this.checkPendingSelection()))}),this.props.pathOpts,this.props.refPoint)})))),G(this,"clearInput",(()=>{const e={editing:!0,value:"",sources:this.props.sources,ownPlaces:!1,renderMobileSearch:this.props.isMobile};this.setState(e,(()=>this.fetchFunction({value:"",cleanExecuted:!0}))),this.props.onClear&&this.props.onClear(this.props.id),this.input.focus()})),G(this,"inputClicked",(e=>{if(this.input.focus(),this.clearLocationText(),this.props.isMobile&&this.props.lock(),this.state.editing)this.props.isMobile&&!this.state.renderMobileSearch&&this.setState({renderMobileSearch:!0});else{const t={editing:!0,pendingSelection:null,renderMobileSearch:this.props.isMobile},n={editing:!0,pendingSelection:null,value:e};this.state.suggestions.length?(this.fetchFunction({value:this.state.value}),this.setState(t)):"object"!=typeof e&&e?this.setState(n,(()=>this.fetchFunction({value:e}))):this.setState(t,(()=>this.fetchFunction({value:this.state.value})))}})),G(this,"storeInputReference",(e=>{null!==e&&(this.input=e.input,this.props.storeRef&&this.props.storeRef(e.input))})),G(this,"fillInput",(e=>{this.fInput=e.properties.name;const t={editing:!0,value:e.properties.name,checkPendingSelection:e,valid:!0};this.setState(t),this.fetchFunction({value:e.properties.name}),this.input.focus()})),G(this,"renderItem",(e=>{const t="FutureRoute"===e.type?Ke(Ke({},e),{},{translatedText:et(e)}):e,n=Je(e);return x.default.createElement(F.default,{item:t,content:n,loading:!this.state.valid,isMobile:this.props.isMobile,ariaFavouriteString:j.default.t("favourite"),color:this.props.color,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fillInput:this.fillInput,fontWeights:this.props.fontWeights,getAutoSuggestIcons:this.props.getAutoSuggestIcons,modeIconColors:this.props.modeIconColors,modeSet:this.props.modeSet})})),G(this,"closeMobileSearch",(()=>{this.props.unlock(),this.setState({renderMobileSearch:!1,value:this.props.value},(()=>{window.scrollTo(0,this.state.scrollY),this.onSuggestionsClearRequested()})),this.input.focus(),this.input.blur()})),G(this,"keyDown",(e=>{if(this.selectionDone)return;const t=e.key;if("Shift"!==t){if("Escape"===t&&this.onBlur(),this.state.editing)return"Enter"===t&&""!==this.state.value&&this.setState({pendingSelection:!0},(()=>{this.fetchFunction({value:this.state.value})})),void this.inputClicked();if("Enter"!==t&&"ArrowDown"!==t||""!==this.state.value){if("ArrowDown"===t&&""!==this.state.value){const e={editing:!0,value:this.state.value};this.setState(e,(()=>this.fetchFunction({value:this.state.value})))}this.state.editing||(this.setState({editing:!0}),this.clearLocationText()),"Tab"===t&&this.onBlur()}else this.clearInput()}})),G(this,"suggestionAsAriaContent",(()=>{let e=[];const t=this.state.suggestions[0];return t&&(t.type&&t.type.includes("Favourite")&&e.push(j.default.t("favourite")),e=e.concat(Je(this.state.suggestions[0]))),[...new Set(e)].join(" - ")})),G(this,"clearOldSearches",(()=>{const{context:e,clearOldSearches:t,clearFutureRoutes:n}=this.props.searchContext;e&&t&&(t(e),n&&n(e),this.fetchFunction({value:this.state.value}))})),G(this,"isOriginDestinationOrViapoint",(()=>"origin"===this.props.id||"destination"===this.props.id||"via-point"===this.props.id||"origin-stop-near-you"===this.props.id)),G(this,"clearLocationText",(()=>{["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location","Wybrane miejsce"].includes(this.state.value)&&this.clearInput()})),G(this,"onFocus",(()=>{const e=window.pageYOffset;return this.setState({scrollY:e})})),v.Settings.defaultZone=e.timeZone,v.Settings.defaultLocale=e.lang,this.state={value:e.value,suggestions:[],editing:!1,valid:!0,renderMobileSearch:!1,sources:e.sources,ownPlaces:!1,typingTimer:null,typing:!1,pendingSelection:null,suggestionIndex:0,cleanExecuted:!1,scrollY:0},Object.keys(Te).forEach((e=>{j.default.addResourceBundle(e,"translation",Te[e])}))}shouldComponentUpdate(e,t){return!A.default(t,this.state)||!A.default(e,this.props)}componentDidUpdate(){j.default.language!==this.props.lang&&j.default.changeLanguage(this.props.lang)}UNSAFE_componentWillReceiveProps(e){e.value===this.state.value||this.state.editing||this.setState({value:e.value})}render(){j.default.language!==this.props.lang&&j.default.changeLanguage(this.props.lang);const{value:e,suggestions:t,renderMobileSearch:n,cleanExecuted:o}=this.state,i={placeholder:this.props.translatedPlaceholder?this.props.translatedPlaceholder:j.default.t(this.props.placeholder),value:e,onChange:this.onChange,onBlur:this.onBlur,className:`${De.input} ${this.props.isMobile&&this.props.transportMode?De.thin:""} ${De[this.props.id]||""} ${this.state.value?De.hasValue:""} ${this.props.inputClassName}`,onKeyDown:this.keyDown,required:this.props.required},s=this.props.id.replace("searchfield-","");let r=this.props.ariaLabel||j.default.t(s);r=r.replace("searchfield-","").concat(".");const a=this.props.required?`${j.default.t("required")}.`:"",l=this.props.isMobile?j.default.t("search-autosuggest-label-instructions-mobile"):j.default.t("search-autosuggest-label-instructions-desktop"),u="origin"===this.props.id?j.default.t("search-autosuggest-label-move-to-destination"):"",c=l.concat(" ").concat(u),d=j.default.t("search-autosuggest-len",{count:t.length}),p=()=>this.suggestionAsAriaContent()||this.props.value?j.default.t("search-current-suggestion",{selection:this.suggestionAsAriaContent().toLowerCase()||this.props.value}):"";return x.default.createElement(x.default.Fragment,null,x.default.createElement("span",{className:De["sr-only"],role:"alert"},!this.state.typing&&this.state.editing&&`${d} ${p()}`),this.props.isMobile&&x.default.createElement(We,{searchOpen:n,appElement:this.props.appElement,clearOldSearches:this.clearOldSearches,id:this.props.id,clearInput:this.clearInput,value:this.state.value,suggestions:[...t,{type:"clear-search-history",labelId:j.default.t("clear-search-history")}],inputProps:Ke(Ke({},i),{},{placeholder:this.isOriginDestinationOrViapoint()?j.default.t("address-place-or-business"):i.placeholder}),fetchFunction:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:tt,renderSuggestion:this.renderItem,closeHandle:this.closeMobileSearch,ariaLabel:a.concat(" ").concat(r).concat(" ").concat(p()),label:this.props.mobileLabel?this.props.mobileLabel:j.default.t(this.props.id),onSuggestionSelected:this.onSelected,dialogHeaderText:j.default.t("delete-old-searches-header"),dialogPrimaryButtonText:j.default.t("delete"),dialogSecondaryButtonText:j.default.t("cancel"),clearInputButtonText:j.default.t("clear-button-label"),focusInput:o,color:this.props.color,hoverColor:this.props.hoverColor,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fontWeights:this.props.fontWeights,showScroll:this.props.showScroll}),!n&&x.default.createElement("div",{className:M.default(De["autosuggest-input-container"],De[this.props.id]),style:{"--color":`${this.props.color}`,"--hover-color":`${this.props.hoverColor}`}},this.props.icon&&x.default.createElement("div",{className:M.default(De["autosuggest-input-icon"],De[this.props.id],this.props.inputClassName&&`${this.props.inputClassName}-input-icon`),"aria-label":a.concat(" ").concat(r).concat(" ").concat(j.default.t("search-autosuggest-label"))},x.default.createElement(V.default,{img:`${this.props.icon}`})),x.default.createElement(R.default,{alwaysRenderSuggestions:this.state.editing,id:this.props.id,suggestions:t,onSuggestionsFetchRequested:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:tt,renderSuggestion:this.renderItem,inputProps:Ke(Ke({},i),{},{onFocus:this.onFocus}),focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>this.state.editing,highlightFirstSuggestion:!this.state.ownPlaces,theme:De,renderInputComponent:e=>x.default.createElement(x.default.Fragment,null,x.default.createElement("label",{className:De["sr-only"],htmlFor:this.props.id},p().concat(" ").concat(a).concat(" ").concat(r).concat(" ").concat(c)),x.default.createElement("input",Object.assign({"aria-label":p().concat(" ").concat(a).concat(" ").concat(r).concat(" ").concat(c),id:this.props.id,onClick:this.inputClicked,onKeyDown:this.keyDown},e)),this.state.value&&this.clearButton()),onSuggestionSelected:this.onSelected,ref:this.storeInputReference})))}}G(nt,"defaultProps",{autoFocus:!1,className:"",icon:void 0,value:"",transportMode:void 0,filterResults:void 0,onClear:void 0,lang:"fi",storeRef:void 0,handleViaPoints:void 0,focusChange:void 0,getAutoSuggestIcons:void 0,sources:[],targets:void 0,isMobile:!1,isEmbedded:!1,geocodingSize:void 0,color:"#007ac9",hoverColor:"#0062a1",accessiblePrimaryColor:"#0074be",timeZone:"Europe/Helsinki",pathOpts:{routesPrefix:"linjat",stopsPrefix:"pysakit"},ariaLabel:void 0,mobileLabel:void 0,inputClassName:"",translatedPlaceholder:void 0,fontWeights:{medium:500},modeIconColors:{"mode-bus":"#007ac9","mode-rail":"#8c4799","mode-tram":"#008151","mode-metro":"#ed8c00","mode-ferry":"#007A97","mode-citybike":"#f2b62d","mode-funicular":"#ff00ff"},required:!1,modeSet:void 0,showScroll:!1,refPoint:{}}),"production"!==process.env.NODE_ENV&&(nt.propTypes={appElement:O.default.string.isRequired,autoFocus:O.default.bool,className:O.default.string,icon:O.default.string,id:O.default.string.isRequired,placeholder:O.default.string.isRequired,translatedPlaceholder:O.default.string,value:O.default.string,searchContext:O.default.shape({URL_PELIAS:O.default.string,context:O.default.object,clearOldSearches:O.default.func,clearFutureRoutes:O.default.func}).isRequired,ariaLabel:O.default.string,onSelect:O.default.func.isRequired,transportMode:O.default.string,filterResults:O.default.func,geocodingSize:O.default.number,onClear:O.default.func,storeRef:O.default.func,handleViaPoints:O.default.func,focusChange:O.default.func,lang:O.default.string,sources:O.default.arrayOf(O.default.string),targets:O.default.arrayOf(O.default.string),isMobile:O.default.bool,color:O.default.string,hoverColor:O.default.string,accessiblePrimaryColor:O.default.string,timeZone:O.default.string,pathOpts:O.default.shape({routesPrefix:O.default.string,stopsPrefix:O.default.string}),mobileLabel:O.default.string,lock:O.default.func.isRequired,unlock:O.default.func.isRequired,refPoint:O.default.shape({address:O.default.string,lat:O.default.number,lon:O.default.number}),inputClassName:O.default.string,fontWeights:O.default.shape({medium:O.default.number}),modeIconColors:O.default.objectOf(O.default.string),getAutoSuggestIcons:O.default.objectOf(O.default.func),required:O.default.bool,modeSet:O.default.string,showScroll:O.default.bool,isEmbedded:O.default.bool});const ot=(it=nt,e=>{const{lock:t,unlock:n}=Qe.useScrollLock();return x.default.createElement(it,Object.assign({lock:t,unlock:n},e))});var it;e.default=ot,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=index.js.map