{"version":3,"sources":["webpack:///./node_modules/lodash/trimEnd.js","webpack:///./node_modules/lodash/property.js","webpack:///./node_modules/core-js/internals/use-symbol-as-uid.js","webpack:///./node_modules/core-js/internals/hidden-keys.js","webpack:///./node_modules/core-js/internals/fails.js","webpack:///./node_modules/core-js/internals/get-built-in.js","webpack:///./node_modules/lodash/_SetCache.js","webpack:///./node_modules/core-js/internals/is-symbol.js","webpack:///./src/components/social/index.tsx","webpack:///./node_modules/lodash/_setCacheHas.js","webpack:///./node_modules/core-js/internals/get-method.js","webpack:///./node_modules/lodash/_basePropertyDeep.js","webpack:///./node_modules/lodash/_hasPath.js","webpack:///./node_modules/core-js/internals/function-uncurry-this.js","webpack:///./src/images/travelworld_icons.svg","webpack:///./node_modules/lodash/_baseProperty.js","webpack:///./node_modules/core-js/internals/define-built-in-accessor.js","webpack:///./node_modules/lodash/_mapToArray.js","webpack:///./node_modules/react-side-effect/lib/index.js","webpack:///./node_modules/core-js/internals/shared-key.js","webpack:///./src/components/layout.tsx","webpack:///./node_modules/core-js/internals/symbol-constructor-detection.js","webpack:///./src/constants/tide-endpoint.ts","webpack:///./src/tide-api.ts","webpack:///./src/components/legal.tsx","webpack:///./node_modules/lodash/_isStrictComparable.js","webpack:///./node_modules/core-js/internals/ie8-dom-define.js","webpack:///./node_modules/core-js/internals/try-to-string.js","webpack:///./node_modules/core-js/internals/make-built-in.js","webpack:///./node_modules/core-js/internals/environment-v8-version.js","webpack:///./src/components/lookup-context/utils.ts","webpack:///./node_modules/core-js/internals/is-callable.js","webpack:///./node_modules/lodash/_baseMatchesProperty.js","webpack:///./node_modules/core-js/internals/has-own-property.js","webpack:///./node_modules/lodash/_equalByTag.js","webpack:///./node_modules/core-js/internals/require-object-coercible.js","webpack:///./node_modules/lodash/_matchesStrictComparable.js","webpack:///./node_modules/lodash/_baseHasIn.js","webpack:///./node_modules/lodash/_baseUniq.js","webpack:///./node_modules/lodash/_getMatchData.js","webpack:///./node_modules/core-js/internals/object-is-prototype-of.js","webpack:///./node_modules/gatsby-plugin-react-i18next/dist/Link.js","webpack:///./node_modules/core-js/internals/function-bind-native.js","webpack:///./node_modules/lodash/_arraySome.js","webpack:///./src/images/travelworld_logo.png","webpack:///./node_modules/core-js/internals/ordinary-to-primitive.js","webpack:///./node_modules/core-js/modules/es.regexp.flags.js","webpack:///./src/components/lookup-context/mapping.ts","webpack:///./node_modules/core-js/internals/shared.js","webpack:///./node_modules/core-js/internals/a-callable.js","webpack:///./node_modules/gatsby-plugin-react-i18next/index.js","webpack:///./node_modules/core-js/internals/create-property-descriptor.js","webpack:///./src/components/navbar/fullscreen-navigation-section.tsx","webpack:///./src/components/navbar/fullscreen-navigation.tsx","webpack:///./src/components/qsm/index.tsx","webpack:///./src/components/navbar/navigation-qsm.tsx","webpack:///./src/components/megamenu/megamenu-item.tsx","webpack:///./src/components/megamenu/megamenu-content.tsx","webpack:///./src/components/megamenu/megamenu-group.tsx","webpack:///./src/components/megamenu/index.tsx","webpack:///./src/components/navbar/hotels-megamenu.tsx","webpack:///./src/components/navbar/roundtrips-megamenu.tsx","webpack:///./src/components/language-selector.tsx","webpack:///./src/components/navbar/index.tsx","webpack:///./node_modules/core-js/internals/function-name.js","webpack:///./node_modules/lodash/_arrayIncludesWith.js","webpack:///./node_modules/core-js/internals/define-global-property.js","webpack:///./node_modules/lodash/_baseMatches.js","webpack:///./node_modules/react-helmet/node_modules/react-fast-compare/index.js","webpack:///./node_modules/core-js/internals/internal-state.js","webpack:///./node_modules/core-js/internals/is-null-or-undefined.js","webpack:///./node_modules/lodash/_createSet.js","webpack:///./node_modules/lodash/_baseIsEqualDeep.js","webpack:///./node_modules/core-js/internals/to-object.js","webpack:///./src/components/qsm/highlight-text.tsx","webpack:///./src/components/qsm/typeahead-option.tsx","webpack:///./src/components/qsm/typeahead-options.tsx","webpack:///./node_modules/lodash/_setCacheAdd.js","webpack:///./node_modules/core-js/internals/descriptors.js","webpack:///./src/components/link.tsx","webpack:///./node_modules/gatsby-plugin-react-i18next/dist/useI18next.js","webpack:///./node_modules/core-js/internals/an-object.js","webpack:///./node_modules/lodash/hasIn.js","webpack:///./node_modules/core-js/internals/is-object.js","webpack:///./node_modules/core-js/internals/inspect-source.js","webpack:///./node_modules/lodash/_arrayIncludes.js","webpack:///./node_modules/core-js/internals/uid.js","webpack:///./node_modules/core-js/internals/create-non-enumerable-property.js","webpack:///./node_modules/lodash/_baseIsMatch.js","webpack:///./node_modules/core-js/internals/object-define-property.js","webpack:///./node_modules/lodash/get.js","webpack:///./node_modules/core-js/internals/to-property-key.js","webpack:///./src/components/icon.tsx","webpack:///./node_modules/lodash/_equalArrays.js","webpack:///./node_modules/lodash/uniqBy.js","webpack:///./node_modules/react-helmet/es/Helmet.js","webpack:///./node_modules/lodash/_setToArray.js","webpack:///./node_modules/core-js/internals/regexp-flags.js","webpack:///./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack:///./node_modules/lodash/_equalObjects.js","webpack:///./node_modules/core-js/internals/environment-user-agent.js","webpack:///./node_modules/core-js/internals/well-known-symbol.js","webpack:///./node_modules/lodash/_baseIteratee.js","webpack:///./node_modules/lodash/noop.js","webpack:///./node_modules/core-js/internals/to-primitive.js","webpack:///./node_modules/lodash/_baseIsEqual.js","webpack:///./node_modules/gatsby-plugin-react-i18next/dist/index.js","webpack:///./node_modules/core-js/internals/is-pure.js","webpack:///./node_modules/lodash/_cacheHas.js","webpack:///./node_modules/core-js/internals/function-call.js","webpack:///./node_modules/core-js/internals/shared-store.js","webpack:///./node_modules/core-js/internals/global-this.js","webpack:///./node_modules/core-js/internals/document-create-element.js","webpack:///./node_modules/core-js/internals/weak-map-basic-detection.js"],"names":["baseToString","castSlice","charsEndIndex","stringToArray","toString","trimmedEndIndex","module","exports","string","chars","guard","undefined","slice","strSymbols","end","join","baseProperty","basePropertyDeep","isKey","toKey","path","NATIVE_SYMBOL","Symbol","sham","iterator","exec","error","globalThis","isCallable","aFunction","argument","namespace","method","arguments","length","MapCache","setCacheAdd","setCacheHas","SetCache","values","index","this","__data__","add","prototype","push","has","getBuiltIn","isPrototypeOf","USE_SYMBOL_AS_UID","$Object","Object","it","$Symbol","Social","_ref","socialNavigationSection","React","createElement","className","getChildNavigationLinks","map","navigationLink","_navigationLink$conte","_generalContent$url","_generalContent$title","_generalContent$icon","generalContent","content","general","key","id","Link","href","url","title","target","rel","Icon","name","icon","value","aCallable","isNullOrUndefined","V","P","func","baseGet","object","castPath","isArguments","isArray","isIndex","isLength","hasFunc","result","NATIVE_BIND","FunctionPrototype","Function","call","uncurryThisWithBind","bind","fn","apply","makeBuiltIn","defineProperty","descriptor","get","getter","set","setter","f","Array","size","forEach","ex","React__default","_defineProperty","obj","enumerable","configurable","writable","canUseDOM","window","document","reducePropsToState","handleStateChangeOnClient","mapStateOnServer","Error","WrappedComponent","state","mountedInstances","emitChange","instance","props","SideEffect","_PureComponent","subClass","superClass","create","constructor","__proto__","peek","rewind","recordedState","_proto","UNSAFE_componentWillMount","componentDidUpdate","componentWillUnmount","indexOf","splice","render","PureComponent","displayName","getDisplayName","shared","uid","keys","Layout","children","language","useI18next","cookieconsentLanguage","substring","useEffect","cookieconsent","run","notice_banner_type","consent_type","palette","website_name","change_preferences_selector","cookies_policy_url","_trimEnd","process","Helmet","V8_VERSION","fails","$String","String","getOwnPropertySymbols","symbol","officeId","HOST","API_KEY","async","requestCrmcontact","request","response","fetch","headers","body","JSON","stringify","ok","statusText","requestContact","confirmMember","token","password","hasAgreed","tideClientConfig","host","apiKey","memberConfirmationRequest","confirm","loginMember","username","memberLogingRequest","login","logoutMember","logout","passwordForgotten","memberForgotPasswordRequest","forgotPassword","newPassword","memberResetPasswordRequest","resetPassword","getDossier","filterItem","signal","gridColumns","getEntryList","getInvoices","getInvoiceList","getEntryStatusList","buildTideClientConfig","getEntryStatus","languageCode","getCustomEntryStatusList","getCustomEntryStatus","getCountryList","getCountries","printAction","print","blob","Legal","legalNavigationSection","showCookiePreferencesLink","year","Date","getFullYear","t","_navigationLink$conte2","_navigationLink$conte3","_navigationLink$conte4","_navigationLink$conte5","_navigationLink$conte6","_navigationLink$conte7","getHrefFromNavigationLink","internal","_isEmpty","isObject","DESCRIPTORS","a","uncurryThis","hasOwn","CONFIGURABLE_FUNCTION_NAME","CONFIGURABLE","inspectSource","InternalStateModule","enforceInternalState","enforce","getInternalState","stringSlice","replace","CONFIGURABLE_LENGTH","TEMPLATE","split","options","arity","source","match","version","userAgent","Deno","versions","v8","filter","searchTerm","lookupData","x","toLowerCase","includes","documentAll","all","baseIsEqual","hasIn","isStrictComparable","matchesStrictComparable","srcValue","objValue","COMPARE_PARTIAL_FLAG","toObject","hasOwnProperty","Uint8Array","eq","equalArrays","mapToArray","setToArray","symbolProto","symbolValueOf","valueOf","other","tag","bitmask","customizer","equalFunc","stack","byteLength","byteOffset","buffer","message","convert","isPartial","stacked","$TypeError","TypeError","arrayIncludes","arrayIncludesWith","cacheHas","createSet","array","iteratee","comparator","isCommon","seen","outer","computed","seenIndex","_interopRequireDefault","require","__esModule","_extends2","_objectWithoutPropertiesLoose2","_react","nodeInterop","default","cache","_getRequireWildcardCache","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","_interopRequireWildcard","_i18nextContext","_gatsby","_types","_excluded","WeakMap","cacheBabelInterop","cacheNodeInterop","forwardRef","ref","to","_onClick","onClick","rest","context","useContext","I18nextContext","urlLanguage","link","generateDefaultLanguagePage","defaultLanguage","getLanguagePath","innerRef","hrefLang","e","localStorage","setItem","LANGUAGE_KEY","test","predicate","input","pref","val","defineBuiltInAccessor","regExpFlags","RegExp","RegExpPrototype","INDICES_SUPPORT","O","calls","expected","addGetter","chr","pairs","dotAll","global","ignoreCase","multiline","sticky","hasIndices","node","_node$content","_node$content$general","_node$content2","_node$content2$genera","mapProductLookupData","productNodes","_compact","productNode","_productNode$parentIt","_productNode$id","_productNode$content","_productNode$content$","_productNode$content$2","_generateProductPath","_productNode$content$3","_productNode$content2","_productNode$content3","_productNode$content4","_countryNode$content$","_countryNode$content","_countryNode$content$2","regionNode","parentItem","templateName","countryNode","geographicalRegionNode","itemId","product","tideId","generateProductPath","country","region","geographicalRegion","productType","flexSearch","web","flexsearch","lookupDataPromises","fetchLookupData","Promise","json","hotelNodes","hotelLookupData","nodes","roundtripNodes","roundtripLookupData","resolve","concat","_toConsumableArray","_uniqBy","flatMap","_productNode$parentIt2","_productNode$parentIt3","_countryNode$content2","_countryNode$content3","_countryNode$id","_generateCountryOrReg","_countryNode$content$3","_countryNode$content4","_countryNode$content5","generateCountryOrRegionPath","_x$parentItem","_regionNode$content","_regionNode$content$g","_regionNode$parentIte","_regionNode$id","_generateRegionPath","_country$content$web$","_country$content","_country$content$web","generateRegionPath","mapRegionLookupData","store","tryToString","bitmap","FullscreenNavigationSection","_navigationSection$co","_ref2","_generalContent$path","_generalContent$text","navigationSection","hasSectionLink","text","Fragment","startsWith","FullscreenNavigation","fullscreenPrimaryNavigationSection","fullscreenSecondaryNavigationSection","memberState","memberDispatch","useMemberStore","getChildNavigationSections","member","event","preventDefault","removeItem","setMember","handleLogout","QSM","results","onSearchTermChange","onClear","onClose","handleClose","handleSearchTermChange","type","onChange","placeholder","Trans","required","TypeaheadOptions","NavigationQSM","setSearchTerm","useState","isVisibleOnMobile","setVisibleOnMobile","setLookupData","data","asyncFetchLookupData","hasResults","buildClassName","MegamenuItem","imageUrl","src","setImageParameters","width","height","mode","alt","MegamenuContent","items","item","MegamenuGroup","active","longTitle","onMouseEnter","Megamenu","groups","activeIndex","setActiveIndex","group","HotelsMegamenu","_destinations$childIt","destinations","geographicalRegions","childItems","tideItem","hotelFilter","_tideItem$childItems","some","y","hotelGroups","_geographicalRegion$c","_geographicalRegion$c2","_geographicalRegion$c3","_geographicalRegion$c4","_geographicalRegion$c5","_geographicalRegion$c6","_geographicalRegion$c7","_ref3","_ref4","_tideItem$childItems2","countryOrRegion","_countryOrRegion$id","_countryOrRegion$cont","_countryOrRegion$cont2","_countryOrRegion$cont3","_countryOrRegion$cont4","_countryOrRegion$cont5","_countryOrRegion$cont6","_countryOrRegion$cont7","generatePath","thumbnailPicture","RoundtripsMegamenu","roundTripFilter","roundtripGroups","LanguageSelector","alternateRoutes","languages","changeLanguage","originalPath","languagesWithName","_alternateRoutes$find","currentTarget","alternateRoute","find","languageWithName","Navbar","_props$fullscreenActi","_memberState$member","_props$showProductSea","showUserBar","setShowUserBar","hasFullscreenNavigationActive","setFullscreenNavigationActive","fullscreenActive","navigate","logoImg","mainNavigationSection","_navigationLink$conte8","_navigationLink$conte9","_navigationLink$conte10","_navigationLink$conte11","_navigationLink$conte12","_navigationLink$conte13","showProductSearch","phone","getDescriptor","EXISTS","PROPER","baseIsMatch","getMatchData","matchData","hasElementType","Element","hasMap","Map","hasSet","Set","hasArrayBuffer","ArrayBuffer","isView","b","equal","i","entries","next","done","flags","$$typeof","console","warn","NATIVE_WEAK_MAP","createNonEnumerableProperty","sharedKey","hiddenKeys","metadata","facade","STATE","getterFor","TYPE","noop","Stack","equalByTag","equalObjects","getTag","isBuffer","isTypedArray","objectTag","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","requireObjectCoercible","HighlightText","highlight","matchIndex","TypeaheadOption","onSelect","hotels","roundtrips","countriesAndRegions","hotel","roundtrip","linkProps","_omit","GatsbyLink","assign","nonce","_reactI18next","ns","_useTranslation","useTranslation","i18n","ready","routed","languagePath","pathname","removeLocalePart","location","search","baseHasIn","hasPath","functionToString","baseIndexOf","postfix","Math","random","definePropertyModule","createPropertyDescriptor","noCustomizer","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","Attributes","current","defaultValue","toPrimitive","isSymbol","icons","arraySome","arrLength","othLength","arrStacked","othStacked","arrValue","othValue","compared","othIndex","baseIteratee","baseUniq","clock","Component","_class","_temp","ATTRIBUTE_NAMES","TAG_NAMES","BASE","BODY","HEAD","HTML","LINK","META","NOSCRIPT","SCRIPT","STYLE","TITLE","TAG_PROPERTIES","REACT_TAG_MAP","accesskey","charset","class","contenteditable","contextmenu","itemprop","tabindex","HELMET_PROPS","HTML_TAG_MAP","reduce","SELF_CLOSING_TAGS","_typeof","classCallCheck","Constructor","createClass","defineProperties","protoProps","staticProps","_extends","objectWithoutProperties","possibleConstructorReturn","self","ReferenceError","encodeSpecialCharacters","str","encode","getTitleFromPropsList","propsList","innermostTitle","getInnermostProperty","innermostTemplate","innermostDefaultTitle","getOnChangeClientState","getAttributesFromPropsList","tagType","tagAttrs","getBaseTagFromPropsList","primaryAttributes","reverse","innermostBaseTag","lowerCaseAttributeKey","getTagsFromPropsList","tagName","approvedSeenTags","approvedTags","instanceTags","instanceSeenTags","primaryAttributeKey","attributeKey","tagUnion","property","rafPolyfill","now","callback","currentTime","setTimeout","cafPolyfill","clearTimeout","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","cancelAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","msg","_helmetCallback","commitTagChanges","newState","cb","baseTag","bodyAttributes","htmlAttributes","linkTags","metaTags","noscriptTags","onChangeClientState","scriptTags","styleTags","titleAttributes","updateAttributes","updateTitle","tagUpdates","updateTags","addedTags","removedTags","_tagUpdates$tagType","newTags","oldTags","flattenArray","possibleArray","attributes","elementTag","getElementsByTagName","helmetAttributeString","getAttribute","helmetAttributes","attributesToRemove","attributeKeys","attribute","setAttribute","indexToSave","_i","removeAttribute","tags","headElement","head","querySelector","tagNodes","querySelectorAll","indexToDelete","newElement","innerHTML","styleSheet","cssText","appendChild","createTextNode","existingTag","isEqualNode","parentNode","removeChild","generateElementAttributesAsString","attr","convertElementAttributestoReactProps","initProps","getMethodsForTag","toComponent","_initProps","attributeString","flattenedTitle","generateTitleAsString","_mappedTag","mappedTag","mappedAttribute","dangerouslySetInnerHTML","__html","generateTagsAsReactComponent","attributeHtml","tagContent","isSelfClosing","generateTagsAsString","_ref$title","base","meta","noscript","script","style","HelmetSideEffects","defer","HelmetExport","_React$Component","HelmetWrapper","setPrototypeOf","inherits","shouldComponentUpdate","nextProps","mapNestedChildrenToProps","child","nestedChildren","flattenArrayTypeChildren","_babelHelpers$extends","arrayTypeChildren","newChildProps","mapObjectTypeChildren","_babelHelpers$extends2","_babelHelpers$extends3","newProps","mapArrayTypeChildrenToProps","newFlattenedProps","arrayChildName","_babelHelpers$extends4","warnOnInvalidChildren","mapChildrenToProps","_this2","Children","_child$props","initAttributes","convertReactPropstoHtmlAttributes","_props","propTypes","oneOfType","arrayOf","defaultTitle","bool","titleTemplate","defaultProps","mappedState","renderStatic","that","unicode","unicodeSets","getAllKeys","objProps","objLength","objStacked","skipCtor","objCtor","othCtor","navigator","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","baseMatches","baseMatchesProperty","identity","getMethod","ordinaryToPrimitive","wellKnownSymbol","TO_PRIMITIVE","exoticToPrim","baseIsEqualDeep","isObjectLike","_useI18next","_Link","IS_PURE","defineGlobalProperty","copyright","license","check"],"mappings":"gFAAA,IAAIA,EAAe,EAAQ,QACvBC,EAAY,EAAQ,QACpBC,EAAgB,EAAQ,QACxBC,EAAgB,EAAQ,QACxBC,EAAW,EAAQ,QACnBC,EAAkB,EAAQ,QAmC9BC,EAAOC,QAdP,SAAiBC,EAAQC,EAAOC,GAE9B,IADAF,EAASJ,EAASI,MACHE,QAAmBC,IAAVF,GACtB,OAAOD,EAAOI,MAAM,EAAGP,EAAgBG,GAAU,GAEnD,IAAKA,KAAYC,EAAQT,EAAaS,IACpC,OAAOD,EAET,IAAIK,EAAaV,EAAcK,GAC3BM,EAAMZ,EAAcW,EAAYV,EAAcM,IAAU,EAE5D,OAAOR,EAAUY,EAAY,EAAGC,GAAKC,KAAK,M,uBCrC5C,IAAIC,EAAe,EAAQ,QACvBC,EAAmB,EAAQ,QAC3BC,EAAQ,EAAQ,QAChBC,EAAQ,EAAQ,QA4BpBb,EAAOC,QAJP,SAAkBa,GAChB,OAAOF,EAAME,GAAQJ,EA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'),\n castSlice = require('./_castSlice'),\n charsEndIndex = require('./_charsEndIndex'),\n stringToArray = require('./_stringToArray'),\n toString = require('./toString'),\n trimmedEndIndex = require('./_trimmedEndIndex');\n\n/**\n * Removes trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimEnd(' abc ');\n * // => ' abc'\n *\n * _.trimEnd('-_-abc-_-', '_-');\n * // => '-_-abc'\n */\nfunction trimEnd(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.slice(0, trimmedEndIndex(string) + 1);\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;\n\n return castSlice(strSymbols, 0, end).join('');\n}\n\nmodule.exports = trimEnd;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL &&\n !Symbol.sham &&\n typeof Symbol.iterator == 'symbol';\n","'use strict';\nmodule.exports = {};\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];\n};\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","import React from \"react\";\nimport Icon from \"../icon\";\nimport { getChildNavigationLinks } from \"../../utils\";\nimport Link from \"../link\";\nimport { TideItemForNavigationSection } from \"../../types\";\n\ninterface SocialProps {\n socialNavigationSection: TideItemForNavigationSection;\n}\n\nconst Social: React.FC<SocialProps> = ({ socialNavigationSection }) => (\n <ul className=\"list list--inline list--socials\">\n {getChildNavigationLinks(socialNavigationSection).map((navigationLink) => {\n const generalContent = navigationLink.content?.general;\n\n return (\n <li className=\"list__item\" key={navigationLink.id}>\n <Link\n href={generalContent?.url ?? \"\"}\n title={generalContent?.title ?? undefined}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <Icon name={generalContent?.icon ?? \"\"} />\n </Link>\n </li>\n );\n })}\n </ul>\n);\n\nexport default Social;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\n// eslint-disable-next-line es/no-function-prototype-bind -- safe\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","module.exports = __webpack_public_path__ + \"static/travelworld_icons-fc9d4cf1e17ad859103b17843e46fba5.svg\";","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","'use strict';\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","'use strict';\n\nfunction _interopDefault(ex) {\n return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;\n}\nvar React = require('react');\nvar React__default = _interopDefault(React);\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient, mapStateOnServer) {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n if (typeof mapStateOnServer !== 'undefined' && typeof mapStateOnServer !== 'function') {\n throw new Error('Expected mapStateOnServer to either be undefined or a function.');\n }\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n return function wrap(WrappedComponent) {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n var mountedInstances = [];\n var state;\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n if (SideEffect.canUseDOM) {\n handleStateChangeOnClient(state);\n } else if (mapStateOnServer) {\n state = mapStateOnServer(state);\n }\n }\n var SideEffect = /*#__PURE__*/\n function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n // Expose canUseDOM so tests can monkeypatch it\n SideEffect.peek = function peek() {\n return state;\n };\n SideEffect.rewind = function rewind() {\n if (SideEffect.canUseDOM) {\n throw new Error('You may only call rewind() on the server. Call peek() to read the current state.');\n }\n var recordedState = state;\n state = undefined;\n mountedInstances = [];\n return recordedState;\n };\n var _proto = SideEffect.prototype;\n _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {\n mountedInstances.push(this);\n emitChange();\n };\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n _proto.render = function render() {\n return React__default.createElement(WrappedComponent, this.props);\n };\n return SideEffect;\n }(React.PureComponent);\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n _defineProperty(SideEffect, \"canUseDOM\", canUseDOM);\n return SideEffect;\n };\n}\nmodule.exports = withSideEffect;","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","/**\n * Layout component that queries for data\n * with Gatsby's useStaticQuery component\n *\n * See: https://www.gatsbyjs.com/docs/use-static-query/\n */\n\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\nimport { trimEnd } from \"lodash\";\nimport React, { useEffect } from \"react\";\nimport { Helmet } from \"react-helmet\";\n\nconst Layout: React.FC = ({ children }) => {\n const { language } = useI18next();\n const cookieconsentLanguage = language.substring(0, 2);\n const handleScriptLoad = () => {\n cookieconsent.run({\n notice_banner_type: \"headline\",\n consent_type: \"express\",\n palette: \"light\",\n language: cookieconsentLanguage,\n website_name: \"Travelworld\",\n change_preferences_selector: \"#changePreferences\",\n cookies_policy_url: `${trimEnd(process.env.SITE_URL, \" / \")}/privacy`,\n });\n };\n\n useEffect(() => {\n handleScriptLoad();\n });\n\n return (\n <div className=\"page\">\n <Helmet>\n <link href=\"https://use.typekit.net/olb7mgr.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css2?family=Prata&display=swap\" rel=\"stylesheet\" />\n </Helmet>\n {children}\n </div>\n );\n};\n\nexport default Layout;\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/environment-v8-version');\nvar fails = require('../internals/fails');\nvar globalThis = require('../internals/global-this');\n\nvar $String = globalThis.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","export const endpointCrmcontact = `${process.env.TIDE_HOST}/api/web/crmcontact`;\nexport const endpointContact = `${process.env.TIDE_HOST}/api/web/contactform`;\nexport const endpointOffer = `${process.env.TIDE_HOST}/api/web/booking/offer-entry`;\n","import {\n TideClientConfig,\n confirm,\n login,\n forgotPassword,\n logout,\n resetPassword,\n getEntryList,\n createParams,\n getCountries,\n print,\n getCustomEntryStatus,\n getEntryStatus,\n getInvoiceList,\n} from \"@qite/tide-client\";\nimport {\n MemberConfirmationRequest,\n MemberLoginRequest,\n MemberForgotPasswordRequest,\n MemberResetPasswordRequest,\n MemberLoginResponse,\n FilterItem,\n DossierViewResult,\n PageResult,\n CustomEntryStatusItem,\n Column,\n NumberStringPair,\n AgentPrintActionRequest,\n AgentInvoiceItem,\n} from \"@qite/tide-client/build/types\";\nimport { endpointContact, endpointCrmcontact, endpointOffer } from \"./constants/tide-endpoint\";\nimport { addYears } from \"date-fns\";\nexport const officeId = 1;\nexport const webAgentId = 10301;\nexport const customWebOfferStatusId = 6;\n\nconst HOST = process.env.TIDE_HOST;\nconst API_KEY = process.env.API_KEY;\n\ninterface TideCrmcontactRequest {\n firstName: string;\n lastName: string;\n gender?: number;\n email: string;\n tags?: number[];\n phone?: string;\n remark?: string;\n contactMessage?: string;\n avoidCreatingCrmContact?: boolean;\n languageCode?: string;\n confirmationEmailTemplate?: number;\n confirmationEmailBody?: string;\n tourGroupPreference?: { adults: number; children: number; rooms: number };\n}\n\ninterface TideContactRequest {\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n subject: string;\n message: string;\n}\n\ninterface Traveler {\n id: number;\n guid: string;\n age?: number;\n firstName?: string;\n lastName?: string;\n}\n\ninterface CustomerRequest {\n id: number;\n title: string;\n message: string;\n}\n\ninterface Room {\n accommodationCode?: string;\n regimeCode?: string;\n travelers: Traveler[];\n customerRequests?: CustomerRequest[];\n}\n\ninterface TideOfferRequest {\n officeId: number;\n agentId?: number;\n customEntryStatusId?: number;\n productCode?: string;\n startDate?: string;\n endDate?: string;\n address: {\n email: string;\n mobilePhone: string;\n street?: string;\n country?: string;\n location?: string;\n };\n rooms: Room[];\n}\n\nexport async function requestCrmcontact(request: TideCrmcontactRequest): Promise<Response> {\n const response = await fetch(endpointCrmcontact, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Api-Key\": \"ca028e2f-217a-4e4a-8e7e-8d556be17de3\",\n },\n body: JSON.stringify(request),\n });\n\n if (!response.ok) {\n throw new Error(response.statusText);\n }\n\n return response;\n}\n\nexport async function requestContact(request: TideContactRequest): Promise<Response> {\n const response = await fetch(endpointContact, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Api-Key\": \"ca028e2f-217a-4e4a-8e7e-8d556be17de3\",\n },\n body: JSON.stringify(request),\n });\n\n if (!response.ok) {\n throw new Error(response.statusText);\n }\n\n return response;\n}\n\nexport async function createTideOffer(request: TideOfferRequest): Promise<Response> {\n const response = await fetch(endpointOffer, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Api-Key\": \"ca028e2f-217a-4e4a-8e7e-8d556be17de3\",\n },\n body: JSON.stringify(request),\n });\n\n if (!response.ok) {\n throw new Error(response.statusText);\n }\n\n return response;\n}\n\nexport const confirmMember = async (token: string, password: string, hasAgreed: boolean) => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n };\n\n const memberConfirmationRequest: MemberConfirmationRequest = {\n token: token,\n password: password,\n hasAgreed: hasAgreed,\n };\n\n const response = await confirm(tideClientConfig, memberConfirmationRequest, undefined);\n return response;\n};\n\nexport const loginMember = async (\n username: string,\n password: string\n): Promise<MemberLoginResponse> => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n };\n\n const memberLogingRequest: MemberLoginRequest = {\n username: username,\n password: password,\n };\n\n const memberLoginResponse = await login(tideClientConfig, memberLogingRequest, undefined);\n return memberLoginResponse;\n};\n\nexport const logoutMember = async () => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n };\n\n const response = await logout(tideClientConfig, undefined);\n return response.ok;\n};\n\nexport const passwordForgotten = async (username: string) => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n };\n\n const memberForgotPasswordRequest: MemberForgotPasswordRequest = {\n username: username,\n };\n\n const response = await forgotPassword(tideClientConfig, memberForgotPasswordRequest, undefined);\n return response.ok;\n};\n\nexport const newPassword = async (token: string, password: string) => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n };\n\n const memberResetPasswordRequest: MemberResetPasswordRequest = {\n token: token,\n password: password,\n };\n\n const response = await resetPassword(tideClientConfig, memberResetPasswordRequest, undefined);\n return response.ok;\n};\n\nexport const getDossier = async (\n filterItem: FilterItem,\n token: string,\n signal: AbortSignal,\n gridColumns?: Column[] | undefined\n): Promise<PageResult<DossierViewResult>> => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n token: token,\n };\n\n const response = await getEntryList(tideClientConfig, filterItem, gridColumns, signal);\n return response;\n};\n\nexport const getInvoices = async (\n filterItem: FilterItem,\n token: string,\n signal: AbortSignal,\n gridColumns?: Column[] | undefined\n): Promise<PageResult<AgentInvoiceItem>> => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n token: token,\n };\n\n const response = await getInvoiceList(tideClientConfig, filterItem, gridColumns, signal);\n return response;\n};\n\nexport const getEntryStatusList = async (languageCode: string): Promise<NumberStringPair[]> => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig = buildTideClientConfig();\n const response = await getEntryStatus(tideClientConfig, undefined, languageCode);\n return response;\n};\n\nexport const getCustomEntryStatusList = async (\n languageCode: string\n): Promise<CustomEntryStatusItem[]> => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig = buildTideClientConfig();\n const response = await getCustomEntryStatus(tideClientConfig, undefined, languageCode);\n return response;\n};\n\nexport const getCountryList = async (signal?: AbortSignal) => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n };\n\n const response = await getCountries(tideClientConfig, signal);\n return response;\n};\n\nexport const printAction = async (\n request: AgentPrintActionRequest,\n token: string,\n signal?: AbortSignal\n): Promise<Blob> => {\n if (!HOST || !API_KEY) {\n return Promise.reject();\n }\n\n const tideClientConfig: TideClientConfig = {\n host: HOST,\n apiKey: API_KEY,\n token: token,\n };\n\n const response = await print(tideClientConfig, request, signal);\n\n if (!response.ok) {\n throw new Error(response.statusText);\n }\n\n const body = await response.blob();\n\n return body;\n};\n\nconst buildTideClientConfig = (token?: string): TideClientConfig => {\n return <TideClientConfig>{\n host: HOST,\n apiKey: API_KEY,\n token: token,\n };\n};\n","import { isEmpty } from \"lodash\";\nimport React from \"react\";\nimport { TideItemForNavigationSection } from \"../types\";\nimport { getHrefFromNavigationLink, getChildNavigationLinks } from \"../utils\";\nimport Link from \"./link\";\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\n\ninterface LegalProps {\n legalNavigationSection: TideItemForNavigationSection;\n showCookiePreferencesLink?: boolean;\n}\n\nconst Legal: React.FC<LegalProps> = ({ legalNavigationSection, showCookiePreferencesLink }) => {\n const year = new Date().getFullYear();\n const { t } = useI18next();\n\n return (\n <div className=\"legal\">\n {getChildNavigationLinks(legalNavigationSection).map((navigationLink) => (\n <div className=\"legal__item\" key={navigationLink.id}>\n <Link\n key={navigationLink.id}\n href={getHrefFromNavigationLink(navigationLink)}\n internal={!isEmpty(navigationLink.content?.general?.path)}\n title={navigationLink?.content?.general?.title ?? undefined}\n className=\"link link--plain\"\n >\n {navigationLink?.content?.general?.title}\n </Link>\n </div>\n ))}\n {showCookiePreferencesLink && (\n <div className=\"legal__item\">\n <a id=\"changePreferences\" className=\"link link--plain\">\n {t(\"UPDATE_COOKIE_PREFERENCES\")}\n </a>\n </div>\n )}\n <div className=\"legal__item\">© {year}, Travelworld</div>\n </div>\n );\n};\n\nexport default Legal;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\).*$/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar userAgent = require('../internals/environment-user-agent');\n\nvar process = globalThis.process;\nvar Deno = globalThis.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","import { LookupData } from \"./types\";\n\nexport function filter(searchTerm: string, lookupData: LookupData[]): LookupData[] {\n const isMatch = (name: string) => name.toLowerCase().includes(searchTerm.toLowerCase());\n return lookupData.filter((x) => isMatch(x.name));\n}\n","'use strict';\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar documentAll = typeof document == 'object' && document.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nmodule.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nexports.__esModule = true;\nexports.Link = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _i18nextContext = require(\"./i18nextContext\");\nvar _gatsby = require(\"gatsby\");\nvar _types = require(\"./types\");\nvar _excluded = [\"language\", \"to\", \"onClick\"];\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nvar Link = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {\n var language = _ref.language,\n to = _ref.to,\n _onClick = _ref.onClick,\n rest = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);\n var context = (0, _react.useContext)(_i18nextContext.I18nextContext);\n var urlLanguage = language || context.language;\n var getLanguagePath = function getLanguagePath(language) {\n return context.generateDefaultLanguagePage || language !== context.defaultLanguage ? \"/\" + language : '';\n };\n var link = \"\" + getLanguagePath(urlLanguage) + to;\n return (\n /*#__PURE__*/\n // @ts-ignore\n _react.default.createElement(_gatsby.Link, (0, _extends2.default)({}, rest, {\n to: link,\n innerRef: ref,\n hrefLang: urlLanguage,\n onClick: function onClick(e) {\n if (language) {\n localStorage.setItem(_types.LANGUAGE_KEY, language);\n }\n if (_onClick) {\n _onClick(e);\n }\n }\n }))\n );\n});\nexports.Link = Link;","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","module.exports = __webpack_public_path__ + \"static/travelworld_logo-0c3c5627f75e62370fc3187338b5b4db.png\";","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar regExpFlags = require('../internals/regexp-flags');\nvar fails = require('../internals/fails');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError\nvar RegExp = globalThis.RegExp;\nvar RegExpPrototype = RegExp.prototype;\n\nvar FORCED = DESCRIPTORS && fails(function () {\n var INDICES_SUPPORT = true;\n try {\n RegExp('.', 'd');\n } catch (error) {\n INDICES_SUPPORT = false;\n }\n\n var O = {};\n // modern V8 bug\n var calls = '';\n var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';\n\n var addGetter = function (key, chr) {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(O, key, { get: function () {\n calls += chr;\n return true;\n } });\n };\n\n var pairs = {\n dotAll: 's',\n global: 'g',\n ignoreCase: 'i',\n multiline: 'm',\n sticky: 'y'\n };\n\n if (INDICES_SUPPORT) pairs.hasIndices = 'd';\n\n for (var key in pairs) addGetter(key, pairs[key]);\n\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);\n\n return result !== expected || calls !== expected;\n});\n\n// `RegExp.prototype.flags` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nif (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {\n configurable: true,\n get: regExpFlags\n});\n","import {\n TideItemForCountry,\n TideItemForGeographicalRegion,\n TideItemForHotel,\n TideItemForRegion,\n TideItemForRoundtrip,\n} from \"../../types\";\nimport { generateCountryOrRegionPath, generateProductPath, generateRegionPath } from \"../../utils\";\nimport { compact, isEmpty, uniqBy } from \"lodash\";\n\nimport { LookupData } from \"./types\";\nimport { LookupQueryData } from \"../qsm\";\n\nconst getDisplayName = (\n node:\n | TideItemForRoundtrip\n | TideItemForHotel\n | TideItemForCountry\n | TideItemForRegion\n | TideItemForGeographicalRegion\n) => (isEmpty(node.content?.general?.title) ? node.name : node.content?.general?.title) ?? \"\";\n\nconst mapProductLookupData = (\n productNodes: (TideItemForHotel | TideItemForRoundtrip)[]\n): LookupData[] =>\n compact(\n productNodes.map((productNode) => {\n const regionNode =\n productNode.parentItem?.templateName == \"Region\"\n ? (productNode.parentItem as TideItemForRegion)\n : undefined;\n const countryNode = regionNode\n ? (regionNode.parentItem as TideItemForCountry)\n : (productNode.parentItem as TideItemForCountry);\n\n if (!countryNode) return null;\n const geographicalRegionNode = countryNode.parentItem as TideItemForGeographicalRegion;\n\n return {\n id: productNode.id ?? \"\",\n itemId: productNode.content?.general?.product?.tideId,\n name: getDisplayName(productNode),\n url: generateProductPath(productNode) ?? \"\",\n country: getDisplayName(countryNode),\n region: regionNode ? getDisplayName(regionNode) : \"\",\n geographicalRegion: getDisplayName(geographicalRegionNode),\n templateName: productNode.templateName as \"Hotel\" | \"Roundtrip\",\n productType: productNode.content?.general?.product?.productType ?? undefined,\n flexSearch: countryNode.content?.web?.flexsearch ?? false,\n };\n })\n );\n\nconst mapCountryLookupData = (\n productNodes: (TideItemForHotel | TideItemForRoundtrip)[]\n): LookupData[] =>\n uniqBy(\n compact(\n productNodes.flatMap((productNode) =>\n productNode?.parentItem?.templateName === \"Region\"\n ? (productNode.parentItem?.parentItem as TideItemForCountry)\n : (productNode.parentItem as TideItemForCountry)\n )\n ),\n (countryNode) => countryNode.id\n ).map((countryNode) => {\n const country = countryNode.content?.general?.country;\n const geographicalRegionNode = countryNode.parentItem as TideItemForGeographicalRegion;\n\n return {\n id: countryNode.id ?? \"\",\n itemId: country?.tideId,\n name: getDisplayName(countryNode),\n geographicalRegion: getDisplayName(geographicalRegionNode),\n url: generateCountryOrRegionPath(countryNode) ?? \"\",\n templateName: countryNode.templateName as \"Country\",\n flexSearch: countryNode.content?.web?.flexsearch ?? false,\n };\n });\n\nconst mapRegionLookupData = (\n productNodes: (TideItemForHotel | TideItemForRoundtrip)[]\n): LookupData[] =>\n uniqBy(\n productNodes\n .filter((x) => x.parentItem?.templateName === \"Region\")\n .flatMap((productNode) => productNode.parentItem as TideItemForRegion),\n (countryNode) => countryNode.id\n ).map((regionNode) => {\n const region = regionNode.content?.general?.region;\n const geographicalRegionNode = regionNode.parentItem\n ?.parentItem as TideItemForGeographicalRegion;\n const country = regionNode.parentItem as TideItemForCountry;\n\n return {\n id: regionNode.id ?? \"\",\n itemId: region?.tideId,\n name: getDisplayName(regionNode),\n country: getDisplayName(country),\n geographicalRegion: getDisplayName(geographicalRegionNode),\n url: generateRegionPath(regionNode) ?? \"\",\n templateName: regionNode.templateName as \"Region\",\n flexSearch: country.content?.web?.flexsearch ?? false,\n };\n });\n\nlet lookupDataPromises: { [language: string]: Promise<LookupData[]> } = {};\nexport async function fetchLookupData(language: string): Promise<LookupData[]> {\n if (lookupDataPromises[language]) return lookupDataPromises[language];\n\n lookupDataPromises[language] = new Promise(async (resolve) => {\n const response = await fetch(`/${language}/feed.json`);\n const json = (await response.json()) as LookupQueryData;\n\n const hotelNodes = json.hotelLookupData.nodes;\n const roundtripNodes = json.roundtripLookupData.nodes;\n\n resolve([\n ...mapProductLookupData(hotelNodes),\n ...mapProductLookupData(roundtripNodes),\n ...mapCountryLookupData([...hotelNodes, ...roundtripNodes]),\n ...mapRegionLookupData([...hotelNodes, ...roundtripNodes]),\n ]);\n });\n\n return lookupDataPromises[language];\n}\n","'use strict';\nvar store = require('../internals/shared-store');\n\nmodule.exports = function (key, value) {\n return store[key] || (store[key] = value || {});\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","module.exports = require('./dist');\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","import { graphql } from \"gatsby\";\nimport { isEmpty } from \"lodash\";\nimport React from \"react\";\nimport { TideItemForNavigationSection } from \"../../types\";\nimport { getHrefFromNavigationLink, getChildNavigationLinks } from \"../../utils\";\nimport Link from \"../link\";\n\nexport interface FullscreenNavigationSectionProps {\n navigationSection: TideItemForNavigationSection;\n}\n\nconst FullscreenNavigationSection: React.FC<FullscreenNavigationSectionProps> = ({\n navigationSection,\n}) => {\n const generalContent = navigationSection?.content?.general;\n const hasSectionLink =\n (!isEmpty(generalContent?.path) || !isEmpty(generalContent?.url)) &&\n !isEmpty(generalContent?.text);\n\n return (\n <div className=\"navigation__group\">\n <h3 className=\"navigation__heading\">{generalContent?.title}</h3>\n {getChildNavigationLinks(navigationSection).map((navigationLink) => (\n <Link\n key={navigationLink.id}\n href={getHrefFromNavigationLink(navigationLink)}\n internal={!isEmpty(navigationLink.content?.general?.path)}\n title={navigationLink?.content?.general?.title ?? undefined}\n className=\"link link--plain\"\n >\n {navigationLink?.content?.general?.title}\n </Link>\n ))}\n {hasSectionLink && (\n <>\n <br />\n <Link\n href={\n (!isEmpty(generalContent?.path)\n ? generalContent?.path?.startsWith(\"/\")\n ? generalContent.path\n : `/${generalContent?.path}`\n : generalContent?.url) ?? undefined\n }\n internal={!isEmpty(generalContent?.path)}\n title={generalContent?.text ?? undefined}\n className=\"link\"\n >\n {generalContent?.text}\n </Link>\n </>\n )}\n </div>\n );\n};\n\nexport const query = graphql`\n fragment fullscreenNavigationSectionFields on TideItemForNavigationSection {\n id\n childItems {\n id\n templateName\n ... on TideItemForNavigationSection {\n content {\n general {\n title\n text\n path\n url\n }\n }\n childItems {\n ...navigationLinkFields\n }\n }\n }\n }\n\n fragment navigationLinkFields on TideItemForNavigationLink {\n id\n templateName\n name\n content {\n general {\n title\n icon\n path\n url\n }\n }\n }\n`;\n\nexport default FullscreenNavigationSection;\n","import React from \"react\";\nimport { useMemberStore } from \"../../app/member-store/context\";\nimport { setMember } from \"../../app/member-store/reducer\";\nimport { logoutMember } from \"../../tide-api\";\nimport { TideItemForNavigationSection } from \"../../types\";\nimport { getChildNavigationSections } from \"../../utils\";\nimport Icon from \"../icon\";\nimport Legal from \"../legal\";\nimport Link from \"../link\";\nimport Social from \"../social\";\nimport FullscreenNavigationSection from \"./fullscreen-navigation-section\";\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\n\nexport interface FullscreenNavigationProps {\n fullscreenPrimaryNavigationSection: TideItemForNavigationSection;\n fullscreenSecondaryNavigationSection: TideItemForNavigationSection;\n legalNavigationSection: TideItemForNavigationSection;\n socialNavigationSection: TideItemForNavigationSection;\n}\n\nconst FullscreenNavigation: React.FC<FullscreenNavigationProps> = ({\n fullscreenPrimaryNavigationSection,\n fullscreenSecondaryNavigationSection,\n legalNavigationSection,\n socialNavigationSection,\n}) => {\n const [memberState, memberDispatch] = useMemberStore();\n const { t } = useI18next();\n\n const handleLogout = async (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n e.preventDefault();\n const response = await logoutMember();\n if (response) {\n if (typeof localStorage !== \"undefined\") {\n localStorage.removeItem(\"token\");\n }\n if (memberDispatch) {\n memberDispatch(setMember(undefined));\n }\n }\n };\n\n return (\n <div className=\"navigation__fullscreen\">\n <div className=\"navigation__fullscreen-container\">\n <div className=\"navigation__fullscreen-group navigation__fullscreen-group--primary\">\n {getChildNavigationSections(fullscreenPrimaryNavigationSection).map(\n (navigationSection) => (\n <FullscreenNavigationSection\n key={navigationSection.id}\n navigationSection={navigationSection}\n />\n )\n )}\n </div>\n <div className=\"navigation__fullscreen-group navigation__fullscreen-group--secondary\">\n {getChildNavigationSections(fullscreenSecondaryNavigationSection).map(\n (navigationSection) => (\n <FullscreenNavigationSection\n key={navigationSection.id}\n navigationSection={navigationSection}\n />\n )\n )}\n </div>\n <div className=\"navigation__fullscreen-group navigation__fullscreen-group--tertiary\">\n <Social socialNavigationSection={socialNavigationSection} />\n <Legal legalNavigationSection={legalNavigationSection} />\n {memberState?.member ? (\n <Link title=\"Logout\" className=\"cta\" onClick={(event) => handleLogout(event)}>\n <Icon name=\"qsm-user\" />\n {t(\"LOGOUT\")}\n </Link>\n ) : (\n <Link href=\"/login\" internal title=\"Agent login\" className=\"cta\">\n <Icon name=\"qsm-user\" />\n {t(\"AGENT_LOGIN\")}\n </Link>\n )}\n </div>\n </div>\n </div>\n );\n};\n\nexport default FullscreenNavigation;\n","import { graphql } from \"gatsby\";\nimport React from \"react\";\nimport { TideItemForHotelConnection, TideItemForRoundtripConnection } from \"../../types\";\nimport Icon from \"../icon\";\nimport { LookupData } from \"../lookup-context/types\";\nimport TypeaheadOptions from \"./typeahead-options\";\nimport { Trans, useI18next } from \"gatsby-plugin-react-i18next\";\n\ninterface QSMProps {\n searchTerm?: string;\n results?: LookupData[];\n onSearchTermChange?: (searchTerm: string) => void;\n onClear?: () => void;\n onClose?: () => void;\n}\n\nconst QSM: React.FC<QSMProps> = ({\n searchTerm = \"\",\n results = [],\n onSearchTermChange,\n onClear,\n onClose,\n}) => {\n const handleClose: React.MouseEventHandler<HTMLButtonElement> = (e) => {\n e.preventDefault();\n\n if (onClear) {\n onClear();\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n const handleSearchTermChange: React.ChangeEventHandler<HTMLInputElement> = (e) => {\n if (onSearchTermChange) {\n onSearchTermChange(e.target.value);\n }\n };\n\n const { t } = useI18next();\n\n return (\n <div className=\"qsm\">\n <form className=\"form form--qsm form--qsm-navigation\">\n <div className=\"form__row\">\n <div className=\"form__group\">\n <div className=\"qsm__trigger\">\n <input\n type=\"text\"\n className=\"form__input\"\n value={searchTerm}\n onChange={handleSearchTermChange}\n placeholder={t(\"QSM_PLACEHOLDER\")}\n />\n <Icon name=\"ui-search\" />\n </div>\n <div className=\"qsm__panel\">\n <div className=\"qsm__panel-header\">\n <h4 className=\"qsm__panel-heading\">\n <Trans>QSM_PLACEHOLDER</Trans>\n </h4>\n <button\n type=\"button\"\n className=\"button button--close\"\n onClick={handleClose}\n ></button>\n </div>\n <div className=\"qsm__panel-body\">\n <div className=\"typeahead\">\n <div className=\"typeahead__trigger\">\n <input\n type=\"text\"\n className=\"typeahead__input\"\n value={searchTerm}\n onChange={handleSearchTermChange}\n placeholder={t(\"QSM_PLACEHOLDER\")}\n required\n />\n <button\n type=\"button\"\n className=\"typeahead__clear-button\"\n onClick={handleClose}\n title={t(\"DELETE\")}\n ></button>\n </div>\n {searchTerm.length > 2 && results.length > 0 && (\n <TypeaheadOptions searchTerm={searchTerm} results={results} />\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n );\n};\n\nexport default QSM;\n\nexport interface LookupQueryData {\n hotelLookupData: TideItemForHotelConnection;\n roundtripLookupData: TideItemForRoundtripConnection;\n}\n\nexport const query = graphql`\n fragment lookupQueryFragment on Query {\n hotelLookupData: allTideItemForHotel {\n nodes {\n ...lookupQueryNodeFragment\n }\n }\n roundtripLookupData: allTideItemForRoundtrip {\n nodes {\n ...lookupQueryNodeFragment\n }\n }\n }\n\n fragment lookupQueryNodeFragment on TideItem {\n id\n name\n templateName\n ... on TideItemForHotel {\n content {\n general {\n title\n slug\n product {\n tideId\n productType\n }\n }\n }\n ...productPathFragment\n }\n ... on TideItemForRoundtrip {\n content {\n general {\n title\n slug\n product {\n tideId\n productType\n }\n }\n }\n ...productPathFragment\n }\n parentItem {\n id\n templateName\n ... on TideItemForCountry {\n name\n content {\n general {\n title\n slug\n country {\n tideId\n }\n }\n }\n }\n ... on TideItemForRegion {\n name\n content {\n general {\n title\n slug\n region {\n tideId\n }\n }\n }\n }\n parentItem {\n id\n templateName\n ... on TideItemForCountry {\n id\n templateName\n parentItem {\n id\n templateName\n ... on TideItemForGeographicalRegion {\n name\n content {\n general {\n title\n }\n }\n }\n }\n }\n ... on TideItemForGeographicalRegion {\n name\n content {\n general {\n title\n }\n }\n }\n }\n }\n }\n`;\n","import React, { useContext, useEffect, useState } from \"react\";\nimport { buildClassName } from \"../../utils\";\nimport Icon from \"../icon\";\nimport QSM from \"../qsm\";\nimport { filter } from \"../lookup-context/utils\";\nimport { LookupData } from \"../lookup-context/types\";\nimport { fetchLookupData } from \"../lookup-context/mapping\";\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\n\ninterface NavigationQSMProps {}\n\nconst NavigationQSM: React.FC<NavigationQSMProps> = () => {\n const { language } = useI18next();\n const [searchTerm, setSearchTerm] = useState(\"\");\n const [isVisibleOnMobile, setVisibleOnMobile] = useState<boolean>(false);\n const [lookupData, setLookupData] = useState<LookupData[]>([]);\n\n const asyncFetchLookupData = async () => {\n const data = await fetchLookupData(language);\n setLookupData(data);\n };\n\n useEffect(() => {\n asyncFetchLookupData();\n }, []);\n\n const results = filter(searchTerm, lookupData);\n const hasResults = searchTerm.length > 2 && results.length > 0;\n\n return (\n <div\n className={buildClassName([\n \"navigation-qsm\",\n (hasResults || isVisibleOnMobile) && \"navigation-qsm--active\",\n ])}\n >\n <div className=\"navigation-qsm__trigger\">\n <button\n type=\"button\"\n className=\"button button--search\"\n onClick={() => setVisibleOnMobile(!isVisibleOnMobile)}\n >\n <Icon name=\"ui-search\" />\n </button>\n </div>\n <div className=\"navigation-qsm__form\">\n <QSM\n onClear={() => setSearchTerm(\"\")}\n onClose={() => setVisibleOnMobile(false)}\n searchTerm={searchTerm}\n onSearchTermChange={(value) => setSearchTerm(value)}\n results={results}\n />\n </div>\n </div>\n );\n};\n\nexport default NavigationQSM;\n","import React from \"react\";\nimport { setImageParameters } from \"../../utils\";\nimport Icon from \"../icon\";\nimport Link from \"../link\";\n\ninterface MegamenuItemProps {\n url?: string;\n imageUrl?: string;\n title?: string;\n}\n\nconst MegamenuItem: React.FC<MegamenuItemProps> = ({ title, url, imageUrl }) => (\n <div className=\"grid__item\">\n <Link internal href={url} title={title} className=\"grid__item-link\">\n <div className=\"image\">\n {imageUrl && (\n <img\n src={setImageParameters(imageUrl, { width: 180, height: 180, mode: \"crop\" })}\n alt=\"Destination\"\n className=\"image__content\"\n />\n )}\n </div>\n <div className=\"grid__item-copy\">\n <div className=\"destination-label\">\n <Icon name=\"ui-marker\" />\n {title}\n </div>\n </div>\n </Link>\n </div>\n);\n\nexport default MegamenuItem;\n","import React from \"react\";\nimport MegamenuItem from \"./megamenu-item\";\n\ninterface MegamenuContentProps {\n title?: string;\n items?: {\n id?: string;\n url?: string;\n imageUrl?: string;\n title?: string;\n }[];\n}\n\nconst MegamenuContent: React.FC<MegamenuContentProps> = ({ title, items }) => (\n <div className=\"megamenu__content\">\n <span className=\"megamenu__content-heading\">{title}</span>\n <div className=\"grid\">\n <div className=\"grid__items\">\n {(items ?? [])?.map((item) => (\n <MegamenuItem key={item.id} title={item.title} imageUrl={item.imageUrl} url={item.url} />\n ))}\n </div>\n </div>\n </div>\n);\n\nexport default MegamenuContent;\n","import React, { MouseEventHandler } from \"react\";\nimport { buildClassName } from \"../../utils\";\nimport Link from \"../link\";\nimport MegamenuContent from \"./megamenu-content\";\n\ninterface MegamenuGroupProps {\n active?: boolean;\n title?: string;\n longTitle?: string;\n url?: string;\n items?: {\n url?: string;\n imageUrl?: string;\n title?: string;\n }[];\n onMouseEnter: () => void;\n}\n\nconst MegamenuGroup: React.FC<MegamenuGroupProps> = ({\n active,\n title,\n longTitle,\n items,\n onMouseEnter,\n}) => (\n <div\n className={buildClassName([\n \"megamenu__sidebar-item\",\n active && \"megamenu__sidebar-item--active\",\n ])}\n onMouseEnter={() => onMouseEnter()}\n >\n <div className=\"megamenu__sidebar-link\">{title}</div>\n <MegamenuContent title={longTitle} items={items} />\n </div>\n);\n\nexport default MegamenuGroup;\n","import React, { useState } from \"react\";\nimport MegamenuGroup from \"./megamenu-group\";\n\ninterface MegamenuProps {\n groups?: {\n id?: string;\n title?: string;\n longTitle?: string;\n items?: {\n id?: string;\n url?: string;\n imageUrl?: string;\n title?: string;\n }[];\n }[];\n}\n\nconst Megamenu: React.FC<MegamenuProps> = ({ groups }) => {\n const [activeIndex, setActiveIndex] = useState(0);\n return (\n <section className=\"megamenu\">\n <div className=\"megamenu__container\">\n <div className=\"megamenu__sidebar\">\n {(groups ?? []).map((group, index) => (\n <MegamenuGroup\n key={group.id}\n active={index === activeIndex}\n title={group.title}\n longTitle={group.longTitle}\n items={group.items}\n onMouseEnter={() => setActiveIndex(index)}\n />\n ))}\n </div>\n </div>\n </section>\n );\n};\n\nexport default Megamenu;\n","import { isEmpty } from \"lodash\";\nimport React from \"react\";\nimport {\n TideItem,\n TideItemForCountry,\n TideItemForDestinations,\n TideItemForGeographicalRegion,\n TideItemForRegion,\n} from \"../../types\";\nimport { generatePath } from \"../../utils\";\nimport Megamenu from \"../megamenu\";\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\n\ninterface HotelsMegamenuProps {\n destinations: TideItemForDestinations;\n}\n\nconst HotelsMegamenu: React.FC<HotelsMegamenuProps> = ({ destinations }) => {\n const geographicalRegions = destinations?.childItems?.filter(\n (tideItem) => tideItem?.templateName === \"Geographical region\"\n ) as TideItemForGeographicalRegion[];\n const { t } = useI18next();\n\n const hotelFilter = (tideItem: TideItem | null | undefined) =>\n tideItem?.templateName === \"Hotel\" ||\n (tideItem?.templateName === \"Region\" &&\n tideItem?.childItems?.some((y) => y?.templateName == \"Hotel\"));\n\n const hotelGroups = geographicalRegions\n .filter(\n (geographicalRegion) =>\n (geographicalRegion.childItems ?? [])\n .flatMap((tideItem) => tideItem?.childItems)\n .filter(hotelFilter).length > 0\n )\n .map((geographicalRegion) => ({\n id: geographicalRegion.id,\n title: !isEmpty(geographicalRegion.content?.general?.title)\n ? (geographicalRegion.content?.general?.title as string)\n : geographicalRegion.name,\n longTitle:\n `${t(\"FLIGHT_HOLIDAYS\")} ` + geographicalRegion.content?.general?.title ??\n geographicalRegion.name,\n items: ((geographicalRegion.childItems as (TideItemForCountry | TideItemForRegion)[]) ?? [])\n .filter((tideItem) => (tideItem?.childItems ?? [])?.filter(hotelFilter).length > 0)\n .map((countryOrRegion) => {\n var url = generatePath(countryOrRegion, generatePath(destinations));\n\n return {\n id: countryOrRegion?.id ?? undefined,\n url: url ? `${url}#hotels` : undefined,\n imageUrl: countryOrRegion.content?.general?.thumbnailPicture?.url ?? undefined,\n title: countryOrRegion.content?.general?.title ?? undefined,\n };\n }),\n }));\n\n return <Megamenu groups={hotelGroups} />;\n};\n\nexport default HotelsMegamenu;\n","import { isEmpty } from \"lodash\";\nimport React from \"react\";\nimport {\n TideItem,\n TideItemForCountry,\n TideItemForDestinations,\n TideItemForGeographicalRegion,\n TideItemForRegion,\n TideItemForRoundtrip,\n} from \"../../types\";\nimport { generatePath } from \"../../utils\";\nimport Megamenu from \"../megamenu\";\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\n\ninterface RoundtripsMegamenuProps {\n destinations: TideItemForDestinations;\n}\n\nconst RoundtripsMegamenu: React.FC<RoundtripsMegamenuProps> = ({ destinations }) => {\n const geographicalRegions = destinations?.childItems?.filter(\n (tideItem) => tideItem?.templateName === \"Geographical region\"\n ) as TideItemForGeographicalRegion[];\n const { t } = useI18next();\n\n const roundTripFilter = (tideItem: TideItem | null | undefined) =>\n tideItem?.templateName === \"Roundtrip\" ||\n (tideItem?.templateName === \"Region\" &&\n tideItem?.childItems?.some((y) => y?.templateName === \"Roundtrip\"));\n\n const roundtripGroups = geographicalRegions\n .filter(\n (geographicalRegion) =>\n (geographicalRegion.childItems ?? [])\n .flatMap((tideItem) => tideItem?.childItems)\n .filter(roundTripFilter).length > 0\n )\n .map((geographicalRegion) => ({\n id: geographicalRegion.id,\n title: !isEmpty(geographicalRegion.content?.general?.title)\n ? (geographicalRegion.content?.general?.title as string)\n : geographicalRegion.name,\n longTitle:\n `${t(\"ROUNDTRIPS\")} ` + geographicalRegion.content?.general?.title ??\n geographicalRegion.name,\n items: ((geographicalRegion.childItems as (TideItemForCountry | TideItemForRegion)[]) ?? [])\n .filter((tideItem) => (tideItem?.childItems ?? [])?.filter(roundTripFilter).length > 0)\n .map((countryOrRegion) => {\n var url = generatePath(countryOrRegion, generatePath(destinations));\n\n return {\n id: countryOrRegion?.id ?? undefined,\n url: url ? `${url}#roundtrips` : undefined,\n imageUrl: countryOrRegion.content?.general?.thumbnailPicture?.url ?? undefined,\n title: countryOrRegion.content?.general?.title ?? undefined,\n };\n }),\n }));\n\n return <Megamenu groups={roundtripGroups} />;\n};\n\nexport default RoundtripsMegamenu;\n","import { useI18next } from \"gatsby-plugin-react-i18next\";\nimport React from \"react\";\nimport { AlternateRoute } from \"../../.gatsby/gatsby-node\";\n\ninterface LanguageSelectorProps {\n alternateRoutes?: AlternateRoute[];\n}\n\nconst LanguageSelector: React.FC<LanguageSelectorProps> = (props) => {\n const { alternateRoutes } = props;\n\n const languageSelected: React.FormEventHandler<HTMLSelectElement> = async (e) => {\n const language = e.currentTarget.value;\n const alternateRoute = alternateRoutes?.find((x) => x.language == language)?.path;\n\n await changeLanguage(language, alternateRoute || originalPath);\n };\n\n const { languages, changeLanguage, language, originalPath } = useI18next();\n const languagesWithName = languages.map((language) => ({\n language,\n name: language.substring(0, 2),\n }));\n\n return (\n <div className=\"language-selector dropdown\">\n <select onChange={languageSelected} value={language}>\n {languagesWithName.map((languageWithName) => (\n <option key={languageWithName.language} value={languageWithName.language}>\n {languageWithName.name}\n </option>\n ))}\n </select>\n </div>\n );\n};\n\nexport default LanguageSelector;\n","import React, { useEffect, useState } from \"react\";\nimport { buildClassName, getChildNavigationLinks, getHrefFromNavigationLink } from \"../../utils\";\nimport logoImg from \"../../images/travelworld_logo.png\";\nimport Icon from \"../icon\";\nimport FullscreenNavigation, { FullscreenNavigationProps } from \"./fullscreen-navigation\";\nimport Link from \"../link\";\nimport NavigationQSM from \"./navigation-qsm\";\nimport { graphql } from \"gatsby\";\nimport {\n TideItemForDestinations,\n TideItemForNavigationLink,\n TideItemForNavigationSection,\n} from \"../../types\";\nimport HotelsMegamenu from \"./hotels-megamenu\";\nimport RoundtripsMegamenu from \"./roundtrips-megamenu\";\nimport LanguageSelector from \"../language-selector\";\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\nimport { AlternateRoute } from \"../../../.gatsby/gatsby-node\";\nimport { useMemberStore } from \"../../app/member-store/context\";\nimport { logoutMember } from \"../../tide-api\";\nimport { setMember } from \"../../app/member-store/reducer\";\n\ninterface NavbarProps extends FullscreenNavigationProps {\n mainNavigationSection?: TideItemForNavigationSection;\n fullscreenActive?: boolean;\n phone: string;\n destinations?: TideItemForDestinations;\n showProductSearch?: boolean;\n alternateRoutes?: AlternateRoute[];\n}\n\nconst Navbar: React.FC<NavbarProps> = (props) => {\n const [memberState, memberDispatch] = useMemberStore();\n const [showUserBar, setShowUserBar] = useState<boolean>(false);\n const [hasFullscreenNavigationActive, setFullscreenNavigationActive] = useState<boolean>(\n props.fullscreenActive ?? false\n );\n\n useEffect(() => {\n setShowUserBar(!!memberState?.member);\n }, [memberState]);\n\n const handleFullscreenNavigationToggle: React.MouseEventHandler<HTMLButtonElement> = (event) => {\n event.preventDefault();\n setFullscreenNavigationActive(!hasFullscreenNavigationActive);\n };\n\n const { t, navigate } = useI18next();\n\n const handleLogout = async (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n e.preventDefault();\n const response = await logoutMember();\n if (response) {\n navigate(\"/\");\n if (typeof localStorage !== \"undefined\") {\n localStorage.removeItem(\"token\");\n }\n if (memberDispatch) {\n memberDispatch(setMember(undefined));\n }\n }\n };\n\n return (\n <nav\n className={buildClassName([\n \"navigation\",\n hasFullscreenNavigationActive && \"navigation--active\",\n ])}\n >\n <div\n className={buildClassName([\"user__container\", !showUserBar && \"user__container--hidden\"])}\n >\n <div className=\"user__wrapper\">\n <Icon name=\"user\" />\n <div className=\"user\">\n <span>{t(\"WELCOME\")}:</span>\n <div className=\"user__name\">\n <span>{memberState?.member?.name}</span>\n <Icon name=\"arrow\" />\n <div className=\"user__dropdown\">\n <Link href=\"/dossiers\" className=\"user__dropdown--link\">\n {t(\"FETCH_DOSSIERS\")}\n </Link>\n <Link href=\"/facturen\" className=\"user__dropdown--link\">\n {t(\"FETCH_INVOICES\")}\n </Link>\n <Link\n title={t(\"LOGOUT\")}\n onClick={(event) => handleLogout(event)}\n className=\"user__dropdown--link\"\n >\n {t(\"LOGOUT\")}\n </Link>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div className=\"navigation__links\">\n <div className=\"navigation__links-container\">\n <Link internal href=\"/\" title=\"Travelworld\" className=\"logo\">\n <img src={logoImg} alt=\"Travelworld\" className=\"logo__media\" />\n </Link>\n {props.mainNavigationSection ? (\n <div className=\"navigation__primary-links\">\n <div className=\"link-items\">\n {getChildNavigationLinks(props.mainNavigationSection).map((tideItem) => {\n const navigationLink = tideItem as TideItemForNavigationLink;\n const hoverable = navigationLink.content?.general?.path?.startsWith(\"#\");\n return hoverable ? (\n <div className=\"link-item\" key={navigationLink.id}>\n <div className=\"dropdown dropdown--hoverable\">\n <div className=\"dropdown__trigger\">\n <a\n title={navigationLink.content?.general?.title ?? undefined}\n className=\"link-item\"\n >\n {navigationLink.content?.general?.title}\n </a>\n </div>\n {navigationLink.name === \"Vliegvakanties\" && props.destinations && (\n <div className=\"dropdown__options\">\n <HotelsMegamenu destinations={props.destinations} />\n </div>\n )}\n {navigationLink.name === \"Rondreizen\" && props.destinations && (\n <div className=\"dropdown__options\">\n <RoundtripsMegamenu destinations={props.destinations} />\n </div>\n )}\n </div>\n </div>\n ) : (\n <Link\n key={navigationLink.id}\n internal\n href={getHrefFromNavigationLink(navigationLink)}\n title={navigationLink.content?.general?.title ?? undefined}\n className=\"link-item\"\n >\n {navigationLink.content?.general?.title}\n </Link>\n );\n })}\n </div>\n </div>\n ) : (\n \"\"\n )}\n <div className=\"navigation__secondary-links\">\n <div className=\"link-items\">\n {(props.showProductSearch ?? true) && (\n <div className=\"link-item\">\n <NavigationQSM />\n </div>\n )}\n <a\n href={`tel:${props.phone}`}\n title={t(\"CALL_US\", { phone: props.phone })}\n className=\"link-item\"\n >\n <Icon name=\"social-phone\" />\n {props.phone}\n </a>\n <div className=\"language-selector\">\n <LanguageSelector alternateRoutes={props.alternateRoutes}></LanguageSelector>\n </div>\n <div className=\"link-item link-item--hamburger\">\n <button\n type=\"button\"\n className=\"button button--hamburger\"\n title=\"Menu\"\n onClick={handleFullscreenNavigationToggle}\n >\n <span className=\"button__icon\"></span>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <FullscreenNavigation\n fullscreenPrimaryNavigationSection={props.fullscreenPrimaryNavigationSection}\n fullscreenSecondaryNavigationSection={props.fullscreenSecondaryNavigationSection}\n legalNavigationSection={props.legalNavigationSection}\n socialNavigationSection={props.socialNavigationSection}\n />\n </nav>\n );\n};\n\nexport default Navbar;\n\nexport const navigationFragment = graphql`\n fragment navigationDestinationsFragment on Query {\n navigationDestinations: tideItemForDestinations(language: { eq: $language }) {\n name\n content {\n general {\n title\n slug\n }\n }\n childItems {\n ... on TideItemForGeographicalRegion {\n id\n name\n templateName\n content {\n general {\n title\n }\n }\n childItems {\n ... on TideItemForCountry {\n id\n content {\n general {\n title\n slug\n thumbnailPicture {\n url\n }\n }\n }\n childItems {\n templateName\n ... on TideItemForRegion {\n childItems {\n templateName\n }\n }\n }\n }\n ... on TideItemForRegion {\n id\n content {\n general {\n title\n slug\n thumbnailPicture {\n url\n }\n }\n }\n childItems {\n templateName\n }\n }\n }\n }\n }\n }\n }\n`;\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","'use strict';\nvar globalThis = require('../internals/global-this');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(globalThis, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n globalThis[key] = value;\n } return value;\n};\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","require(\"core-js/modules/es.regexp.flags.js\");\n/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n // START: fast-deep-equal es6/index.js 3.1.3\n if (a === b) return true;\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;) if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n // START: Modifications:\n // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && a instanceof Map && b instanceof Map) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done) if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done) if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n if (hasSet && a instanceof Set && b instanceof Set) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done) if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;) if (a[i] !== b[i]) return false;\n return true;\n }\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n // START: Modifications:\n // Apply guards for `Object.create(null)` handling. See:\n // - https://github.com/FormidableLabs/react-fast-compare/issues/64\n // - https://github.com/epoberezkin/fast-deep-equal/issues/49\n if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();\n // END: Modifications\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if ((error.message || '').match(/stack|recursion/i)) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar globalThis = require('../internals/global-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = globalThis.TypeError;\nvar WeakMap = globalThis.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","import React from \"react\";\n\ninterface HighlightTextProps {\n text: string;\n highlight?: string;\n}\n\nconst HighlightText: React.FC<HighlightTextProps> = ({ text, highlight = \"\" }) => {\n const matchIndex = text.toLowerCase().indexOf(highlight.toLowerCase());\n\n return matchIndex > -1 ? (\n <>\n {text.slice(0, matchIndex)}\n <em className=\"typeahead__option-highlight\">\n {text.slice(matchIndex, matchIndex + highlight.length)}\n </em>\n {text.slice(matchIndex + highlight.length)}\n </>\n ) : (\n <>{text}</>\n );\n};\n\nexport default HighlightText;\n","import React, { MouseEventHandler } from \"react\";\nimport Link from \"../link\";\n\ninterface TypeAheadOptionProps {\n id: string;\n href?: string;\n title?: string;\n flexSearch: boolean;\n onClick?: (id: string, flexSearch: boolean) => void;\n}\n\nconst TypeaheadOption: React.FC<TypeAheadOptionProps> = (props) => {\n const handleClick: MouseEventHandler<HTMLAnchorElement> = (event) => {\n if (props.onClick) {\n event.preventDefault();\n props.onClick(props.id, props.flexSearch);\n }\n };\n\n return (\n <Link\n internal\n href={typeof props.onClick === \"undefined\" ? props.href : undefined}\n title={props.title}\n className=\"typeahead__option typeahead__option--icon\"\n onClick={handleClick}\n >\n {props.children}\n </Link>\n );\n};\n\nexport default TypeaheadOption;\n","import { compact } from \"lodash\";\nimport React from \"react\";\nimport Icon from \"../icon\";\nimport { LookupData } from \"../lookup-context/types\";\nimport HighlightText from \"./highlight-text\";\nimport TypeaheadOption from \"./typeahead-option\";\nimport { useI18next } from \"gatsby-plugin-react-i18next\";\n\ninterface TypeAheadOptionsProps {\n searchTerm?: string;\n results?: LookupData[];\n onSelect?: (id: string, flexSearch: boolean) => void;\n}\n\nconst TypeaheadOptions: React.FC<TypeAheadOptionsProps> = ({\n searchTerm,\n results = [],\n onSelect,\n}) => {\n const hotels = results.filter((x) => x.templateName === \"Hotel\");\n const roundtrips = results.filter((x) => x.templateName === \"Roundtrip\");\n const countriesAndRegions = results.filter(\n (x) => x.templateName === \"Country\" || x.templateName === \"Region\"\n );\n const { t } = useI18next();\n\n return (\n <div className=\"typeahead__options\">\n <div className=\"typeahead__options-body\">\n {countriesAndRegions.length > 0 && (\n <div className=\"typeahead__region\">\n {countriesAndRegions.map((countryOrRegion) => (\n <TypeaheadOption\n key={countryOrRegion.id}\n id={countryOrRegion.id}\n href={countryOrRegion.url}\n flexSearch={countryOrRegion.flexSearch}\n title={t(\"SHOW_DESTINATION\")}\n onClick={onSelect}\n >\n <Icon name=\"ui-search\" />\n <div className=\"typeahead__option-header\">\n <span className=\"typeahead__option-heading\">\n <HighlightText text={countryOrRegion.name} highlight={searchTerm} />\n </span>\n </div>\n <div className=\"typeahead__option-description\">\n {compact([\n countryOrRegion.country && countryOrRegion.country,\n countryOrRegion.geographicalRegion,\n ]).join(\", \")}\n </div>\n </TypeaheadOption>\n ))}\n </div>\n )}\n {hotels.length > 0 && (\n <div className=\"typeahead__region\">\n {hotels.map((hotel) => (\n <TypeaheadOption\n key={hotel.id}\n id={hotel.id}\n href={hotel.url}\n flexSearch={hotel.flexSearch}\n title={t(\"SHOW_HOTEL\")}\n onClick={onSelect}\n >\n <Icon name=\"ui-bed\" />\n <div className=\"typeahead__option-header\">\n <span className=\"typeahead__option-heading\">\n <HighlightText text={hotel.name} highlight={searchTerm} />\n </span>\n </div>\n <div className=\"typeahead__option-description\">\n {compact([\n hotel.region && hotel.region,\n hotel.country && hotel.country,\n hotel.geographicalRegion,\n ]).join(\", \")}\n </div>\n </TypeaheadOption>\n ))}\n </div>\n )}\n {roundtrips.length > 0 && (\n <div className=\"typeahead__region\">\n {roundtrips.map((roundtrip) => (\n <TypeaheadOption\n key={roundtrip.id}\n id={roundtrip.id}\n href={roundtrip.url}\n flexSearch={roundtrip.flexSearch}\n title={t(\"SHOW_ROUNDTRIP\")}\n onClick={onSelect}\n >\n <Icon name=\"ui-route\" />\n <div className=\"typeahead__option-header\">\n <span className=\"typeahead__option-heading\">\n <HighlightText text={roundtrip.name} highlight={searchTerm} />\n </span>\n </div>\n </TypeaheadOption>\n ))}\n </div>\n )}\n </div>\n </div>\n );\n};\n\nexport default TypeaheadOptions;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","import React, { AnchorHTMLAttributes, useContext } from \"react\";\n// import { Link as GatsbyLink } from \"gatsby\";\nimport { omit, trim } from \"lodash\";\nimport { Link as GatsbyLink, useI18next } from \"gatsby-plugin-react-i18next\";\n\ninterface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n href?: string;\n internal?: boolean;\n className?: string;\n title?: string;\n target?: string;\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n}\n\nconst Link: React.FC<LinkProps> = ({ internal, href, children, ...props }) => {\n const linkProps = omit(props, [\"href\", \"children\", \"internal\"]);\n const { language } = useI18next();\n\n return internal && typeof href !== \"undefined\" ? (\n <GatsbyLink language={language} nonce={undefined} to={href} {...linkProps}>\n {children}\n </GatsbyLink>\n ) : (\n <a href={href} {...linkProps}>\n {children}\n </a>\n );\n};\n\nexport default Link;\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nexports.__esModule = true;\nexports.useI18next = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _reactI18next = require(\"react-i18next\");\nvar _react = require(\"react\");\nvar _gatsby = require(\"gatsby\");\nvar _i18nextContext = require(\"./i18nextContext\");\nvar _types = require(\"./types\");\nvar useI18next = function useI18next(ns, options) {\n var _useTranslation = (0, _reactI18next.useTranslation)(ns, options),\n i18n = _useTranslation.i18n,\n t = _useTranslation.t,\n ready = _useTranslation.ready;\n var context = (0, _react.useContext)(_i18nextContext.I18nextContext);\n var routed = context.routed,\n defaultLanguage = context.defaultLanguage,\n generateDefaultLanguagePage = context.generateDefaultLanguagePage;\n var getLanguagePath = function getLanguagePath(language) {\n return generateDefaultLanguagePage || language !== defaultLanguage ? \"/\" + language : '';\n };\n var removePrefix = function removePrefix(pathname) {\n var base = typeof __BASE_PATH__ !== \"undefined\" ? __BASE_PATH__ : __PATH_PREFIX__;\n if (base && pathname.indexOf(base) === 0) {\n pathname = pathname.slice(base.length);\n }\n return pathname;\n };\n var removeLocalePart = function removeLocalePart(pathname) {\n if (!routed) return pathname;\n var i = pathname.indexOf(\"/\", 1);\n return pathname.substring(i);\n };\n var navigate = function navigate(to, options) {\n var languagePath = getLanguagePath(context.language);\n var link = routed ? \"\" + languagePath + to : \"\" + to;\n return (0, _gatsby.navigate)(link, options);\n };\n var changeLanguage = function changeLanguage(language, to, options) {\n var languagePath = getLanguagePath(language);\n var pathname = to || removeLocalePart(removePrefix(window.location.pathname));\n var link = \"\" + languagePath + pathname + window.location.search;\n localStorage.setItem(_types.LANGUAGE_KEY, language);\n return (0, _gatsby.navigate)(link, options);\n };\n return (0, _extends2.default)({}, context, {\n i18n: i18n,\n t: t,\n ready: ready,\n navigate: navigate,\n changeLanguage: changeLanguage\n });\n};\nexports.useI18next = useI18next;","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","'use strict';\nvar isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","import React from \"react\";\nimport icons from \"../images/travelworld_icons.svg\";\nimport { buildClassName } from \"../utils\";\n\ninterface IconProps {\n name: string;\n className?: string;\n title?: string;\n}\n\nconst Icon: React.FC<IconProps> = ({ name, className, title }) => {\n return (\n <svg className={buildClassName([\"icon\", `icon--${name}`, className])}>\n {title && <title>{title}</title>}\n <use href={`${icons}#${name}`}></use>\n </svg>\n );\n};\n\nexport default Icon;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var baseIteratee = require('./_baseIteratee'),\n baseUniq = require('./_baseUniq');\n\n/**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\nfunction uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];\n}\n\nmodule.exports = uniqBy;\n","import PropTypes from 'prop-types';\nimport withSideEffect from 'react-side-effect';\nimport isEqual from 'react-fast-compare';\nimport React from 'react';\nimport objectAssign from 'object-assign';\nvar ATTRIBUTE_NAMES = {\n BODY: \"bodyAttributes\",\n HTML: \"htmlAttributes\",\n TITLE: \"titleAttributes\"\n};\nvar TAG_NAMES = {\n BASE: \"base\",\n BODY: \"body\",\n HEAD: \"head\",\n HTML: \"html\",\n LINK: \"link\",\n META: \"meta\",\n NOSCRIPT: \"noscript\",\n SCRIPT: \"script\",\n STYLE: \"style\",\n TITLE: \"title\"\n};\nvar VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {\n return TAG_NAMES[name];\n});\nvar TAG_PROPERTIES = {\n CHARSET: \"charset\",\n CSS_TEXT: \"cssText\",\n HREF: \"href\",\n HTTPEQUIV: \"http-equiv\",\n INNER_HTML: \"innerHTML\",\n ITEM_PROP: \"itemprop\",\n NAME: \"name\",\n PROPERTY: \"property\",\n REL: \"rel\",\n SRC: \"src\",\n TARGET: \"target\"\n};\nvar REACT_TAG_MAP = {\n accesskey: \"accessKey\",\n charset: \"charSet\",\n class: \"className\",\n contenteditable: \"contentEditable\",\n contextmenu: \"contextMenu\",\n \"http-equiv\": \"httpEquiv\",\n itemprop: \"itemProp\",\n tabindex: \"tabIndex\"\n};\nvar HELMET_PROPS = {\n DEFAULT_TITLE: \"defaultTitle\",\n DEFER: \"defer\",\n ENCODE_SPECIAL_CHARACTERS: \"encodeSpecialCharacters\",\n ON_CHANGE_CLIENT_STATE: \"onChangeClientState\",\n TITLE_TEMPLATE: \"titleTemplate\"\n};\nvar HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key]] = key;\n return obj;\n}, {});\nvar SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];\nvar HELMET_ATTRIBUTE = \"data-react-helmet\";\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n};\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n return target;\n};\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\nvar encodeSpecialCharacters = function encodeSpecialCharacters(str) {\n var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (encode === false) {\n return String(str);\n }\n return String(str).replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\nvar getTitleFromPropsList = function getTitleFromPropsList(propsList) {\n var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);\n var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);\n if (innermostTemplate && innermostTitle) {\n // use function arg to avoid need to escape $ characters\n return innermostTemplate.replace(/%s/g, function () {\n return Array.isArray(innermostTitle) ? innermostTitle.join(\"\") : innermostTitle;\n });\n }\n var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);\n return innermostTitle || innermostDefaultTitle || undefined;\n};\nvar getOnChangeClientState = function getOnChangeClientState(propsList) {\n return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};\n};\nvar getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {\n return propsList.filter(function (props) {\n return typeof props[tagType] !== \"undefined\";\n }).map(function (props) {\n return props[tagType];\n }).reduce(function (tagAttrs, current) {\n return _extends({}, tagAttrs, current);\n }, {});\n};\nvar getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {\n return propsList.filter(function (props) {\n return typeof props[TAG_NAMES.BASE] !== \"undefined\";\n }).map(function (props) {\n return props[TAG_NAMES.BASE];\n }).reverse().reduce(function (innermostBaseTag, tag) {\n if (!innermostBaseTag.length) {\n var keys = Object.keys(tag);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {\n return innermostBaseTag.concat(tag);\n }\n }\n }\n return innermostBaseTag;\n }, []);\n};\nvar getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {\n // Calculate list of tags, giving priority innermost component (end of the propslist)\n var approvedSeenTags = {};\n return propsList.filter(function (props) {\n if (Array.isArray(props[tagName])) {\n return true;\n }\n if (typeof props[tagName] !== \"undefined\") {\n warn(\"Helmet: \" + tagName + \" should be of type \\\"Array\\\". Instead found type \\\"\" + _typeof(props[tagName]) + \"\\\"\");\n }\n return false;\n }).map(function (props) {\n return props[tagName];\n }).reverse().reduce(function (approvedTags, instanceTags) {\n var instanceSeenTags = {};\n instanceTags.filter(function (tag) {\n var primaryAttributeKey = void 0;\n var keys = Object.keys(tag);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n // Special rule with link tags, since rel and href are both primary tags, rel takes priority\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === \"canonical\") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === \"stylesheet\")) {\n primaryAttributeKey = lowerCaseAttributeKey;\n }\n // Special case for innerHTML which doesn't work lowercased\n if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {\n primaryAttributeKey = attributeKey;\n }\n }\n if (!primaryAttributeKey || !tag[primaryAttributeKey]) {\n return false;\n }\n var value = tag[primaryAttributeKey].toLowerCase();\n if (!approvedSeenTags[primaryAttributeKey]) {\n approvedSeenTags[primaryAttributeKey] = {};\n }\n if (!instanceSeenTags[primaryAttributeKey]) {\n instanceSeenTags[primaryAttributeKey] = {};\n }\n if (!approvedSeenTags[primaryAttributeKey][value]) {\n instanceSeenTags[primaryAttributeKey][value] = true;\n return true;\n }\n return false;\n }).reverse().forEach(function (tag) {\n return approvedTags.push(tag);\n });\n\n // Update seen tags with tags from this instance\n var keys = Object.keys(instanceSeenTags);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var tagUnion = objectAssign({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);\n approvedSeenTags[attributeKey] = tagUnion;\n }\n return approvedTags;\n }, []).reverse();\n};\nvar getInnermostProperty = function getInnermostProperty(propsList, property) {\n for (var i = propsList.length - 1; i >= 0; i--) {\n var props = propsList[i];\n if (props.hasOwnProperty(property)) {\n return props[property];\n }\n }\n return null;\n};\nvar reducePropsToState = function reducePropsToState(propsList) {\n return {\n baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),\n bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),\n defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),\n encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),\n htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),\n linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),\n metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),\n noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),\n onChangeClientState: getOnChangeClientState(propsList),\n scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),\n styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),\n title: getTitleFromPropsList(propsList),\n titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)\n };\n};\nvar rafPolyfill = function () {\n var clock = Date.now();\n return function (callback) {\n var currentTime = Date.now();\n if (currentTime - clock > 16) {\n clock = currentTime;\n callback(currentTime);\n } else {\n setTimeout(function () {\n rafPolyfill(callback);\n }, 0);\n }\n };\n}();\nvar cafPolyfill = function cafPolyfill(id) {\n return clearTimeout(id);\n};\nvar requestAnimationFrame = typeof window !== \"undefined\" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;\nvar cancelAnimationFrame = typeof window !== \"undefined\" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;\nvar warn = function warn(msg) {\n return console && typeof console.warn === \"function\" && console.warn(msg);\n};\nvar _helmetCallback = null;\nvar handleClientStateChange = function handleClientStateChange(newState) {\n if (_helmetCallback) {\n cancelAnimationFrame(_helmetCallback);\n }\n if (newState.defer) {\n _helmetCallback = requestAnimationFrame(function () {\n commitTagChanges(newState, function () {\n _helmetCallback = null;\n });\n });\n } else {\n commitTagChanges(newState);\n _helmetCallback = null;\n }\n};\nvar commitTagChanges = function commitTagChanges(newState, cb) {\n var baseTag = newState.baseTag,\n bodyAttributes = newState.bodyAttributes,\n htmlAttributes = newState.htmlAttributes,\n linkTags = newState.linkTags,\n metaTags = newState.metaTags,\n noscriptTags = newState.noscriptTags,\n onChangeClientState = newState.onChangeClientState,\n scriptTags = newState.scriptTags,\n styleTags = newState.styleTags,\n title = newState.title,\n titleAttributes = newState.titleAttributes;\n updateAttributes(TAG_NAMES.BODY, bodyAttributes);\n updateAttributes(TAG_NAMES.HTML, htmlAttributes);\n updateTitle(title, titleAttributes);\n var tagUpdates = {\n baseTag: updateTags(TAG_NAMES.BASE, baseTag),\n linkTags: updateTags(TAG_NAMES.LINK, linkTags),\n metaTags: updateTags(TAG_NAMES.META, metaTags),\n noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),\n scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),\n styleTags: updateTags(TAG_NAMES.STYLE, styleTags)\n };\n var addedTags = {};\n var removedTags = {};\n Object.keys(tagUpdates).forEach(function (tagType) {\n var _tagUpdates$tagType = tagUpdates[tagType],\n newTags = _tagUpdates$tagType.newTags,\n oldTags = _tagUpdates$tagType.oldTags;\n if (newTags.length) {\n addedTags[tagType] = newTags;\n }\n if (oldTags.length) {\n removedTags[tagType] = tagUpdates[tagType].oldTags;\n }\n });\n cb && cb();\n onChangeClientState(newState, addedTags, removedTags);\n};\nvar flattenArray = function flattenArray(possibleArray) {\n return Array.isArray(possibleArray) ? possibleArray.join(\"\") : possibleArray;\n};\nvar updateTitle = function updateTitle(title, attributes) {\n if (typeof title !== \"undefined\" && document.title !== title) {\n document.title = flattenArray(title);\n }\n updateAttributes(TAG_NAMES.TITLE, attributes);\n};\nvar updateAttributes = function updateAttributes(tagName, attributes) {\n var elementTag = document.getElementsByTagName(tagName)[0];\n if (!elementTag) {\n return;\n }\n var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);\n var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(\",\") : [];\n var attributesToRemove = [].concat(helmetAttributes);\n var attributeKeys = Object.keys(attributes);\n for (var i = 0; i < attributeKeys.length; i++) {\n var attribute = attributeKeys[i];\n var value = attributes[attribute] || \"\";\n if (elementTag.getAttribute(attribute) !== value) {\n elementTag.setAttribute(attribute, value);\n }\n if (helmetAttributes.indexOf(attribute) === -1) {\n helmetAttributes.push(attribute);\n }\n var indexToSave = attributesToRemove.indexOf(attribute);\n if (indexToSave !== -1) {\n attributesToRemove.splice(indexToSave, 1);\n }\n }\n for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {\n elementTag.removeAttribute(attributesToRemove[_i]);\n }\n if (helmetAttributes.length === attributesToRemove.length) {\n elementTag.removeAttribute(HELMET_ATTRIBUTE);\n } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(\",\")) {\n elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(\",\"));\n }\n};\nvar updateTags = function updateTags(type, tags) {\n var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);\n var tagNodes = headElement.querySelectorAll(type + \"[\" + HELMET_ATTRIBUTE + \"]\");\n var oldTags = Array.prototype.slice.call(tagNodes);\n var newTags = [];\n var indexToDelete = void 0;\n if (tags && tags.length) {\n tags.forEach(function (tag) {\n var newElement = document.createElement(type);\n for (var attribute in tag) {\n if (tag.hasOwnProperty(attribute)) {\n if (attribute === TAG_PROPERTIES.INNER_HTML) {\n newElement.innerHTML = tag.innerHTML;\n } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {\n if (newElement.styleSheet) {\n newElement.styleSheet.cssText = tag.cssText;\n } else {\n newElement.appendChild(document.createTextNode(tag.cssText));\n }\n } else {\n var value = typeof tag[attribute] === \"undefined\" ? \"\" : tag[attribute];\n newElement.setAttribute(attribute, value);\n }\n }\n }\n newElement.setAttribute(HELMET_ATTRIBUTE, \"true\");\n\n // Remove a duplicate tag from domTagstoRemove, so it isn't cleared.\n if (oldTags.some(function (existingTag, index) {\n indexToDelete = index;\n return newElement.isEqualNode(existingTag);\n })) {\n oldTags.splice(indexToDelete, 1);\n } else {\n newTags.push(newElement);\n }\n });\n }\n oldTags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n newTags.forEach(function (tag) {\n return headElement.appendChild(tag);\n });\n return {\n oldTags: oldTags,\n newTags: newTags\n };\n};\nvar generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {\n return Object.keys(attributes).reduce(function (str, key) {\n var attr = typeof attributes[key] !== \"undefined\" ? key + \"=\\\"\" + attributes[key] + \"\\\"\" : \"\" + key;\n return str ? str + \" \" + attr : attr;\n }, \"\");\n};\nvar generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {\n var attributeString = generateElementAttributesAsString(attributes);\n var flattenedTitle = flattenArray(title);\n return attributeString ? \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeString + \">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"</\" + type + \">\" : \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"</\" + type + \">\";\n};\nvar generateTagsAsString = function generateTagsAsString(type, tags, encode) {\n return tags.reduce(function (str, tag) {\n var attributeHtml = Object.keys(tag).filter(function (attribute) {\n return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);\n }).reduce(function (string, attribute) {\n var attr = typeof tag[attribute] === \"undefined\" ? attribute : attribute + \"=\\\"\" + encodeSpecialCharacters(tag[attribute], encode) + \"\\\"\";\n return string ? string + \" \" + attr : attr;\n }, \"\");\n var tagContent = tag.innerHTML || tag.cssText || \"\";\n var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;\n return str + \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeHtml + (isSelfClosing ? \"/>\" : \">\" + tagContent + \"</\" + type + \">\");\n }, \"\");\n};\nvar convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {\n var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return Object.keys(attributes).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key] || key] = attributes[key];\n return obj;\n }, initProps);\n};\nvar convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {\n var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return Object.keys(props).reduce(function (obj, key) {\n obj[HTML_TAG_MAP[key] || key] = props[key];\n return obj;\n }, initAttributes);\n};\nvar generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {\n var _initProps;\n\n // assigning into an array to define toString function on it\n var initProps = (_initProps = {\n key: title\n }, _initProps[HELMET_ATTRIBUTE] = true, _initProps);\n var props = convertElementAttributestoReactProps(attributes, initProps);\n return [React.createElement(TAG_NAMES.TITLE, props, title)];\n};\nvar generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {\n return tags.map(function (tag, i) {\n var _mappedTag;\n var mappedTag = (_mappedTag = {\n key: i\n }, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);\n Object.keys(tag).forEach(function (attribute) {\n var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;\n if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {\n var content = tag.innerHTML || tag.cssText;\n mappedTag.dangerouslySetInnerHTML = {\n __html: content\n };\n } else {\n mappedTag[mappedAttribute] = tag[attribute];\n }\n });\n return React.createElement(type, mappedTag);\n });\n};\nvar getMethodsForTag = function getMethodsForTag(type, tags, encode) {\n switch (type) {\n case TAG_NAMES.TITLE:\n return {\n toComponent: function toComponent() {\n return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes, encode);\n },\n toString: function toString() {\n return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);\n }\n };\n case ATTRIBUTE_NAMES.BODY:\n case ATTRIBUTE_NAMES.HTML:\n return {\n toComponent: function toComponent() {\n return convertElementAttributestoReactProps(tags);\n },\n toString: function toString() {\n return generateElementAttributesAsString(tags);\n }\n };\n default:\n return {\n toComponent: function toComponent() {\n return generateTagsAsReactComponent(type, tags);\n },\n toString: function toString() {\n return generateTagsAsString(type, tags, encode);\n }\n };\n }\n};\nvar mapStateOnServer = function mapStateOnServer(_ref) {\n var baseTag = _ref.baseTag,\n bodyAttributes = _ref.bodyAttributes,\n encode = _ref.encode,\n htmlAttributes = _ref.htmlAttributes,\n linkTags = _ref.linkTags,\n metaTags = _ref.metaTags,\n noscriptTags = _ref.noscriptTags,\n scriptTags = _ref.scriptTags,\n styleTags = _ref.styleTags,\n _ref$title = _ref.title,\n title = _ref$title === undefined ? \"\" : _ref$title,\n titleAttributes = _ref.titleAttributes;\n return {\n base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),\n bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),\n htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),\n link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),\n meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),\n noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),\n script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),\n style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),\n title: getMethodsForTag(TAG_NAMES.TITLE, {\n title: title,\n titleAttributes: titleAttributes\n }, encode)\n };\n};\nvar Helmet = function Helmet(Component) {\n var _class, _temp;\n return _temp = _class = function (_React$Component) {\n inherits(HelmetWrapper, _React$Component);\n function HelmetWrapper() {\n classCallCheck(this, HelmetWrapper);\n return possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return !isEqual(this.props, nextProps);\n };\n HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {\n if (!nestedChildren) {\n return null;\n }\n switch (child.type) {\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.NOSCRIPT:\n return {\n innerHTML: nestedChildren\n };\n case TAG_NAMES.STYLE:\n return {\n cssText: nestedChildren\n };\n }\n throw new Error(\"<\" + child.type + \" /> elements are self-closing and can not contain children. Refer to our API for more information.\");\n };\n HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {\n var _babelHelpers$extends;\n var child = _ref.child,\n arrayTypeChildren = _ref.arrayTypeChildren,\n newChildProps = _ref.newChildProps,\n nestedChildren = _ref.nestedChildren;\n return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));\n };\n HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {\n var _babelHelpers$extends2, _babelHelpers$extends3;\n var child = _ref2.child,\n newProps = _ref2.newProps,\n newChildProps = _ref2.newChildProps,\n nestedChildren = _ref2.nestedChildren;\n switch (child.type) {\n case TAG_NAMES.TITLE:\n return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));\n case TAG_NAMES.BODY:\n return _extends({}, newProps, {\n bodyAttributes: _extends({}, newChildProps)\n });\n case TAG_NAMES.HTML:\n return _extends({}, newProps, {\n htmlAttributes: _extends({}, newChildProps)\n });\n }\n return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));\n };\n HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {\n var newFlattenedProps = _extends({}, newProps);\n Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {\n var _babelHelpers$extends4;\n newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));\n });\n return newFlattenedProps;\n };\n HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!VALID_TAG_NAMES.some(function (name) {\n return child.type === name;\n })) {\n if (typeof child.type === \"function\") {\n return warn(\"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.\");\n }\n return warn(\"Only elements types \" + VALID_TAG_NAMES.join(\", \") + \" are allowed. Helmet does not support rendering <\" + child.type + \"> elements. Refer to our API for more information.\");\n }\n if (nestedChildren && typeof nestedChildren !== \"string\" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {\n return typeof nestedChild !== \"string\";\n }))) {\n throw new Error(\"Helmet expects a string as a child of <\" + child.type + \">. Did you forget to wrap your children in braces? ( <\" + child.type + \">{``}</\" + child.type + \"> ) Refer to our API for more information.\");\n }\n }\n return true;\n };\n HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {\n var _this2 = this;\n var arrayTypeChildren = {};\n React.Children.forEach(children, function (child) {\n if (!child || !child.props) {\n return;\n }\n var _child$props = child.props,\n nestedChildren = _child$props.children,\n childProps = objectWithoutProperties(_child$props, [\"children\"]);\n var newChildProps = convertReactPropstoHtmlAttributes(childProps);\n _this2.warnOnInvalidChildren(child, nestedChildren);\n switch (child.type) {\n case TAG_NAMES.LINK:\n case TAG_NAMES.META:\n case TAG_NAMES.NOSCRIPT:\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.STYLE:\n arrayTypeChildren = _this2.flattenArrayTypeChildren({\n child: child,\n arrayTypeChildren: arrayTypeChildren,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n default:\n newProps = _this2.mapObjectTypeChildren({\n child: child,\n newProps: newProps,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n }\n });\n newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);\n return newProps;\n };\n HelmetWrapper.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n props = objectWithoutProperties(_props, [\"children\"]);\n var newProps = _extends({}, props);\n if (children) {\n newProps = this.mapChildrenToProps(children, newProps);\n }\n return React.createElement(Component, newProps);\n };\n createClass(HelmetWrapper, null, [{\n key: \"canUseDOM\",\n // Component.peek comes from react-side-effect:\n // For testing, you may use a static peek() method available on the returned component.\n // It lets you get the current state without resetting the mounted instance stack.\n // Don’t use it for anything other than testing.\n\n /**\n * @param {Object} base: {\"target\": \"_blank\", \"href\": \"http://mysite.com/\"}\n * @param {Object} bodyAttributes: {\"className\": \"root\"}\n * @param {String} defaultTitle: \"Default Title\"\n * @param {Boolean} defer: true\n * @param {Boolean} encodeSpecialCharacters: true\n * @param {Object} htmlAttributes: {\"lang\": \"en\", \"amp\": undefined}\n * @param {Array} link: [{\"rel\": \"canonical\", \"href\": \"http://mysite.com/example\"}]\n * @param {Array} meta: [{\"name\": \"description\", \"content\": \"Test description\"}]\n * @param {Array} noscript: [{\"innerHTML\": \"<img src='http://mysite.com/js/test.js'\"}]\n * @param {Function} onChangeClientState: \"(newState) => console.log(newState)\"\n * @param {Array} script: [{\"type\": \"text/javascript\", \"src\": \"http://mysite.com/js/test.js\"}]\n * @param {Array} style: [{\"type\": \"text/css\", \"cssText\": \"div { display: block; color: blue; }\"}]\n * @param {String} title: \"Title\"\n * @param {Object} titleAttributes: {\"itemprop\": \"name\"}\n * @param {String} titleTemplate: \"MySite.com - %s\"\n */\n set: function set$$1(canUseDOM) {\n Component.canUseDOM = canUseDOM;\n }\n }]);\n return HelmetWrapper;\n }(React.Component), _class.propTypes = {\n base: PropTypes.object,\n bodyAttributes: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n defaultTitle: PropTypes.string,\n defer: PropTypes.bool,\n encodeSpecialCharacters: PropTypes.bool,\n htmlAttributes: PropTypes.object,\n link: PropTypes.arrayOf(PropTypes.object),\n meta: PropTypes.arrayOf(PropTypes.object),\n noscript: PropTypes.arrayOf(PropTypes.object),\n onChangeClientState: PropTypes.func,\n script: PropTypes.arrayOf(PropTypes.object),\n style: PropTypes.arrayOf(PropTypes.object),\n title: PropTypes.string,\n titleAttributes: PropTypes.object,\n titleTemplate: PropTypes.string\n }, _class.defaultProps = {\n defer: true,\n encodeSpecialCharacters: true\n }, _class.peek = Component.peek, _class.rewind = function () {\n var mappedState = Component.rewind();\n if (!mappedState) {\n // provide fallback if mappedState is undefined\n mappedState = mapStateOnServer({\n baseTag: [],\n bodyAttributes: {},\n encodeSpecialCharacters: true,\n htmlAttributes: {},\n linkTags: [],\n metaTags: [],\n noscriptTags: [],\n scriptTags: [],\n styleTags: [],\n title: \"\",\n titleAttributes: {}\n });\n }\n return mappedState;\n }, _temp;\n};\nvar NullComponent = function NullComponent() {\n return null;\n};\nvar HelmetSideEffects = withSideEffect(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);\nvar HelmetExport = Helmet(HelmetSideEffects);\nHelmetExport.renderStatic = HelmetExport.rewind;\nexport default HelmetExport;\nexport { HelmetExport as Helmet };","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","'use strict';\nvar globalThis = require('../internals/global-this');\n\nvar navigator = globalThis.navigator;\nvar userAgent = navigator && navigator.userAgent;\n\nmodule.exports = userAgent ? String(userAgent) : '';\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = globalThis.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","\"use strict\";\n\nexports.__esModule = true;\nvar _reactI18next = require(\"react-i18next\");\nObject.keys(_reactI18next).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _reactI18next[key]) return;\n exports[key] = _reactI18next[key];\n});\nvar _i18nextContext = require(\"./i18nextContext\");\nObject.keys(_i18nextContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _i18nextContext[key]) return;\n exports[key] = _i18nextContext[key];\n});\nvar _useI18next = require(\"./useI18next\");\nObject.keys(_useI18next).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useI18next[key]) return;\n exports[key] = _useI18next[key];\n});\nvar _Link = require(\"./Link\");\nObject.keys(_Link).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Link[key]) return;\n exports[key] = _Link[key];\n});","'use strict';\nmodule.exports = false;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n// eslint-disable-next-line es/no-function-prototype-bind -- safe\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar globalThis = require('../internals/global-this');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});\n\n(store.versions || (store.versions = [])).push({\n version: '3.40.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n check(typeof this == 'object' && this) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isObject = require('../internals/is-object');\n\nvar document = globalThis.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = globalThis.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n"],"sourceRoot":""}