{"version":3,"sources":["webpack:///./node_modules/lodash/_baseIsNaN.js","webpack:///./src/components/loadingSpinner.jsx","webpack:///./node_modules/lodash/uniq.js","webpack:///./node_modules/lodash/min.js","webpack:///./node_modules/lodash/_strictIndexOf.js","webpack:///./src/components/highlighted-textblock.jsx","webpack:///./node_modules/date-fns/esm/endOfYear/index.js","webpack:///./node_modules/lodash/_baseAggregator.js","webpack:///./node_modules/lodash/_baseUniq.js","webpack:///./node_modules/lodash/_baseIndexOf.js","webpack:///./node_modules/core-js/modules/es.array.sort.js","webpack:///./node_modules/lodash/_createAggregator.js","webpack:///./node_modules/lodash/_arrayIncludesWith.js","webpack:///./node_modules/lodash/first.js","webpack:///./node_modules/lodash/groupBy.js","webpack:///./node_modules/lodash/_createSet.js","webpack:///./node_modules/core-js/modules/es.array.find.js","webpack:///./src/utils/imageUtils.js","webpack:///./node_modules/lodash/_arrayIncludes.js","webpack:///./node_modules/lodash/filter.js","webpack:///./node_modules/lodash/_baseFilter.js","webpack:///./node_modules/lodash/_arrayAggregator.js","webpack:///./node_modules/lodash/head.js","webpack:///./node_modules/core-js/internals/array-method-is-strict.js","webpack:///./node_modules/lodash/max.js","webpack:///./node_modules/lodash/uniqBy.js","webpack:///./node_modules/eventemitter3/index.js","webpack:///./node_modules/lodash/noop.js","webpack:///./node_modules/@mapbox/point-geometry/index.js","webpack:///./src/components/product/cabins.jsx","webpack:///./src/components/product/description.jsx","webpack:///./src/utils/mappingUtils.js","webpack:///./src/components/product/detail.jsx","webpack:///./src/components/product/extraInformation.jsx","webpack:///./src/components/product/hotels.jsx","webpack:///./node_modules/uuid/dist/esm-browser/rng.js","webpack:///./node_modules/uuid/dist/esm-browser/bytesToUuid.js","webpack:///./node_modules/uuid/dist/esm-browser/v4.js","webpack:///./src/components/product/offer.jsx","webpack:///./src/components/product/priceOptions.jsx","webpack:///./src/components/product/reservationInformation.jsx","webpack:///./src/components/product/schedule-leg.jsx","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/createClass.js","webpack:///./node_modules/@googlemaps/js-api-loader/dist/index.esm.js","webpack:///./node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack:///./node_modules/google-map-react/dist/index.modern.js","webpack:///./src/components/map/map.jsx","webpack:///./src/components/product/schedule.jsx","webpack:///./src/components/product/ship-card.jsx","webpack:///./src/components/product/ship.jsx","webpack:///./src/templates/product.jsx","webpack:///./node_modules/date-fns/esm/addYears/index.js"],"names":["module","exports","value","text","size","className","baseUniq","array","length","baseExtremum","baseLt","identity","undefined","fromIndex","index","children","image","zeroMargingBottom","isTiny","style","backgroundImage","addWidthParameter","marginBottom","endOfYear","dirtyDate","arguments","date","year","getFullYear","setFullYear","setHours","baseEach","collection","setter","iteratee","accumulator","key","SetCache","arrayIncludes","arrayIncludesWith","cacheHas","createSet","setToArray","comparator","includes","isCommon","result","seen","set","outer","computed","seenIndex","push","baseFindIndex","baseIsNaN","strictIndexOf","$","aFunction","toObject","fails","arrayMethodIsStrict","test","nativeSort","sort","FAILS_ON_UNDEFINED","FAILS_ON_NULL","STRICT_METHOD","target","proto","forced","comparefn","call","this","arrayAggregator","baseAggregator","baseIteratee","isArray","initializer","func","baseAssignValue","createAggregator","hasOwnProperty","Object","prototype","groupBy","Set","noop","values","$find","find","addToUnscopables","SKIPS_HOLES","Array","callbackfn","addImage","images","imageUrl","original","thumbnail","baseIndexOf","arrayFilter","baseFilter","predicate","METHOD_NAME","argument","method","baseGt","has","prefix","Events","EE","fn","context","once","addListener","emitter","event","TypeError","listener","evt","_events","_eventsCount","clearEvent","EventEmitter","create","__proto__","eventNames","events","name","names","slice","getOwnPropertySymbols","concat","listeners","handlers","i","l","ee","listenerCount","emit","a1","a2","a3","a4","a5","args","len","removeListener","apply","j","on","removeAllListeners","off","prefixed","Point","x","y","clone","add","p","_add","sub","_sub","multByPoint","_multByPoint","divByPoint","_divByPoint","mult","k","_mult","div","_div","rotate","a","_rotate","rotateAround","_rotateAround","matMult","m","_matMult","unit","_unit","perp","_perp","round","_round","mag","Math","sqrt","equals","other","dist","distSqr","dx","dy","angle","atan2","angleTo","b","angleWith","angleWithSep","cos","sin","convert","theme","product","cabins","allcabins","templateName","forEach","cabin","content","general","title","map","itemId","src","url","alt","surface","price","dangerouslySetInnerHTML","__html","description","information","introductionTitle","introductionText","getStars","stars","temporaryStars","parsedStars","decimal","isHalf","Boolean","star1","star2","cmsProduct","erpProductOptions","onOfferClick","onDepartureDateClick","selectedOption","bookingDisclaimer","shippingCompany","isLoading","useState","isImageGalleryActive","setIsImageGalleryActive","useBodyClass","option","Date","fromDate","duration","getDuration","toDate","averagePricePerPerson","cruiseType","ship","items","useBrowserFullscreen","onScreenChange","showPlayButton","logo","onClick","e","preventDefault","navigate","detailPath","altText","keys","format","floor","parseFloat","subtitle","star","getSlot","inclusive","externalBookingUrl","to","href","possibleFromDates","from","minPossibleFromDate","min","maxPossibleFromDate","max","extraInfo","additionalInformation","childDiscount","travelFormalities","transfers","flights","drinksOnBoard","notIncluded","conditions","hotels","id","h","getRandomValues","crypto","bind","msCrypto","rnds8","Uint8Array","rng","Error","byteToHex","toString","substr","buf","offset","bth","toLowerCase","options","rnds","random","start","Offer","isActive","initialOption","onCloseClick","websiteGeneral","initialSelection","accommodation","accommodationName","adults","salutation","firstname","lastname","phone","email","message","checkPrivacyPolicy","travelAgency","productCode","code","isEnabled","setIsEnabled","selection","setSelection","selectedOptionPrice","setSelectedOptionPrice","touched","setTouched","errors","setErrors","setIsLoading","isSent","setIsSent","handleChange","getAccommodations","type","checked","validate","handleBlur","sendOfferRequest","createTideOffer","console","error","createMailOffer","ConfirmationMailNewOffer","offerRequest","officeId","environment","builds","agentId","startDate","endDate","address","mobilePhone","rooms","parseRooms","catalogueId","host","fetch","headers","apiKey","body","JSON","stringify","emailToSend","firstName","lastName","emailAddress","emailTemplate","emailTemplateOffer","tideId","ignoreBcc","emailTemplateOfferTravelAgent","optionsForDate","filter","accommodations","accommodationCode","Number","roomsForAdults","maxAdults","ceil","roomsForChildren","maxChildren","numberOfRooms","minAdults","travelers","createAdultTravelers","createChildTravelers","guid","uuid","age","selectionToValidate","isNaN","isValidName","isValidPhone","isValidEmail","useEffect","image1","htmlFor","onChange","onBlur","fromDates","getDepartureDates","departureDate","privacyPolicyPath","item","reduce","prev","cur","isSecondary","PriceOptions","innerRef","allOptions","setAllOptions","previousYearHasData","setPreviousYearHasData","nextYearHasData","setnextYearHasData","sortedOptions","setSortedOptions","selectedYear","setSelectedYear","data","localAllOptions","optionsForYear","months","startOfMonth","month","optionsForMonth","isSameMonth","existingOption","allotment","allotmentIds","getUnixTime","getOptions","nextYear","yearAfterNext","optionsForSelectedYear","checkYears","yearToCheck","getPath","path","ref","disabled","acco","monthIndex","optionIndex","ReservationInformation","reservationImage","reservationTitle","reservationText","ScheduleLeg","scheduleEntrie","useContext","GlobalContext","showDayLinkDetails","setShowDayLinkDetails","dayDescription","dayLink","dayDefinition","overruleInformation","extraInformation","hotel","arr","arr2","_toConsumableArray","iter","Symbol","iterator","o","minLen","n","constructor","_defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","done","then","LoaderStatus","Loader","_ref","authReferrerPolicy","channel","client","_ref$id","language","_ref$libraries","libraries","mapIds","nonce","region","_ref$retries","retries","_ref$url","version","instance","Constructor","_classCallCheck","callbacks","loading","equal","RegExp","source","flags","valueOf","fastDeepEqual","protoProps","staticProps","get","FAILURE","SUCCESS","LOADING","INITIALIZED","join","script","document","getElementById","remove","loadPromise","_this","loadCallback","err","window","google","execute","maps","importLibrary","_a","_b","_this2","callback","g","c","q","d","r","u","params","v","URLSearchParams","f","mark","_callee","wrap","_context","createElement","replace","t","onerror","querySelector","head","append","stop","warn","_len","_key","libraryPromises","library","all","ErrorEvent","loadErrorCallback","deleteScript","onerrorEvent","failed","reset","_this3","delay","pow","setTimeout","setScript","_this4","cb","resetIfRetryingFailed","assign","setPrototypeOf","ReferenceError","width","height","left","top","margin","padding","position","shouldComponentUpdate","render","registerChild","gmapInstance","getChildren","getMousePosition","mouse_","getUpdateCounter","updateCounter_","dispose","backgroundColor","_getState","dispatcher","updateCounter","_onChangeHandler","dimensionsCache_","state","setState","_onMouseChangeHandler","_onChildClick","onChildClick","hoverChildProps_","hoverKey_","_onChildMouseDown","onChildMouseDown","_onChildMouseEnter","onChildMouseEnter","hoverKey","_onChildMouseLeave","onChildMouseLeave","_onMouseAllow","allowMouse_","_onMouseChangeHandlerRaf","getHoverDistance","Children","latLng","lat","lng","s","distanceToMouse","_getDimensions","componentDidMount","experimental","componentWillUnmount","cloneElement","$geoService","geoService","$onMouseAllow","$prerender","prerender","insideMapPanes","fromLatLngToDivPixel","fromLatLngToCenterPixel","seLatLng","seLat","seLng","fromLatLngToContainerPixel","$markerHolderClassName","$hover","$getDimensions","$dimensionKey","propTypes","any","bool","defaultProps","C","w","L","D","z","indexOf","load","S","tileSize","_minZoom","_maxZoom","latRange","zoom","center","zoomScale","scaleZoom","log","LN2","project","lngX","latY","unproject","yLat","xLng","worldSize","PI","tan","atan","exp","locationPoint","centerPoint","point","pointLocation","scale","_zoom","minZoom","maxZoom","tileZoom","zoomFraction","toPrimitive","String","T","hasSize_","hasView_","transform_","setView","bearing","setViewSize","setMapCanvasProjection","maps_","mapCanvasProjection_","canProject","hasSize","LatLng","fromContainerPixelToLatLng","getWidth","getHeight","getZoom","getCenter","getBounds","E","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","log2","A","I","N","Z","U","navigator","userAgent","isExplorer","isFirefox","isOpera","isChrome","isSafari","H","Function","K","getPrototypeOf","R","addEventListener","removeEventListener","capture","passive","G","B","self","W","V","attachEvent","F","cancelAnimationFrame","mozCancelAnimationFrame","webkitCancelAnimationFrame","clearTimeout","Y","__resizeTriggers__","firstElementChild","lastElementChild","scrollLeft","scrollWidth","scrollTop","scrollHeight","offsetWidth","offsetHeight","X","__resizeRAF__","__resizeLast__","__resizeListeners__","J","Q","te","split","oe","ne","animationName","re","ie","se","ae","pe","createPortal","le","unstable_renderSubtreeIntoContainer","ue","he","ce","_getMinZoom","geoService_","_computeMinZoom","_mapDomResizeCallback","resetSizeOnIdle_","defaultCenter","map_","trigger","setCenter","resetBoundsOnResize","_setLayers","layers_","setMap","_renderPortal","_getHoverDistance","markersDispatcher_","_initMap","initialized_","defaultZoom","_onBoundsChanged","bootstrapURLKeys","googleMapLoader","heatmapLibrary","mounted_","heatmap","positions","visualization","HeatmapLayer","weight","location","draggable","minZoom_","overviewMapControl","streetViewControl","rotateControl","mapTypeControl","styles","featureType","elementType","stylers","visibility","defaultDraggableOption_","Map","findDOMNode","googleMapDom_","layerTypes","_","match","M","OverlayView","onAdd","screen","overlayViewDivStyle","getPanes","overlayMouseTarget","appendChild","getProjection","overlay","onRemove","unmountComponentAtNode","draw","debounced","googleApiLoadedCalled_","_onGoogleApiLoaded","_onChildMouseMove","fireMouseEventOnIdle_","overlay_","onTilesLoaded","_onTilesLoaded","zoomAnimationInProgress_","_onZoomAnimationStart","getTime","zoomControlClickTime_","_setViewSize","setOptions","_onZoomAnimationEnd","dragTime_","mouseInMap_","_onDrag","_onDragEnd","_onMapTypeIdChange","getMapTypeId","catch","onGoogleApiLoaded","hoverDistance","onDrag","onDragEnd","onMapTypeIdChange","onZoomAnimationStart","onZoomAnimationEnd","childMouseDownArgs_","_onChildMouseUp","onChildMouseUp","childMouseUpTime_","onChildMouseMove","fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement","innerWidth","innerHeight","clientWidth","clientHeight","_onWindowResize","_onMapMouseMove","mouseMoveTime_","boundingRect_","currentTarget","getBoundingClientRect","clientX","clientY","_onClick","_onMapClick","_onMapMouseDownNative","_onMapMouseDown","_onMapMouseDownCapture","_onKeyDownCapture","_isCenterDefined","onBoundsChange","abs","prevBounds_","centerIsObject_","bounds","nw","sw","marginBounds","_registerChild","parentNode","getComputedStyle","getElementsByTagName","styleSheet","cssText","createTextNode","innerHTML","componentDidUpdate","panTo","setZoom","setData","detachEvent","splice","removeChild","shouldUnregisterMapOnUnmount","scrollwheel","clearInstanceListeners","onMouseMove","onMouseDownCapture","de","me","ge","newBounds","fe","string","oneOfType","shape","number","yesIWantToUseGoogleMapApiInternals","arrayOf","GoogleMap","mapDayScheme","locations","day","latitude","longitude","_e","fitBounds","googleApiKey","panControl","gestureHandling","draggableCursor","fullscreenControl","clickableIcons","marker","Marker","label","handleApiLoaded","Schedule","scheduleEntries","schedule","parse","passengers","yearManufactured","require","Product","pageContext","canonical","cruiseTypes","seo","pageTitle","setNavigation","setPrivacy","website","navigation","showOffer","setShowOffer","setSelectedOption","hotelsPrePostNights","setHotelsPrePostNights","setScheduleEntries","setErpProductOptions","pathName","setPathName","priceOptionsRef","useRef","queryParameters","search","selectedDuration","selectedFrom","fromUnixTime","fetchSchedule","initialScheduleEntries","fetchHotels","ERPProduct","ERPHotels","packageProducts","productType","scheduleEntry","hotelIDs","optionGroup","filteredHotels","prevHotels","response","json","fetchErpProductOptions","productId","searchRequest","payload","catalogueIds","pax","serviceType","searchType","addYears","productIds","includeAllAllotmentAccommodations","Language","ok","pathname","availabilities","validAvailabilities","handleOfferClick","showQsm","isTinted","pagePath","siteName","websiteName","Helmet","current","scrollIntoView","behavior","reservation","dirtyAmount","amount"],"mappings":";+EAWAA,EAAOC,QAJP,SAAmBC,GACjB,OAAOA,GAAUA,I,oCCRnB,yBAEe,oBAAGC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/B,EACZgC,kBAAmBA,EACnBC,aAAc,kBAAMwyB,MACpBvyB,qBAAsB,kBAtBG,UAAMkwB,GAAgB4C,eAAtB,aAAM,EAAyBC,eAAe,CAAEC,SAAU,WAA1D,OAuBzB/yB,eAAgBA,EAChBC,kBAAmBoM,EAAKijB,QAAQnxB,QAAQC,QAAQ6B,kBAChDC,gBAAiBmM,EAAKnM,gBACtBC,UAAWA,IAEb,kBAAC,EAAD,CAAatC,QAASA,IACtB,kBAAC,GAAD,CAAUD,MAAOA,EAAOC,QAASA,EAAS2wB,gBAAiBA,IAC3D,kBAAC,GAAD,CAAM3wB,QAASA,IACf,kBAAC,GAAD,CAAc6N,SAAUukB,GAAiBrwB,WAAY/B,EAASgC,kBAAmBA,IACjF,kBAAC,EAAD,CAAQjC,MAAOA,EAAOC,QAASA,IAC/B,kBAAC,EAAD,CAAQyF,OAAQqsB,IAChB,kBAAC,EAAD,CAAkB9xB,QAASA,IAC3B,kBAAC,GAAD,CACEwO,KAAMA,EAAKijB,QAAQnxB,QAAQ60B,YAC3BxuB,QAAS3E,EACTC,aAAc,kBAAMwyB,MACpB10B,MAAOA,IAER6B,QAAQI,IACP,kBAAC,GAAD,CACEgF,SAAU2qB,EACV5vB,WAAY/B,EACZgC,kBAAmBA,EACnBiF,cAAe9E,EACf+E,aAAc,WAjDxB0qB,GAAa,IAkDH7xB,MAAOA,EACPoH,eAAgBqH,EAAKijB,QAAQnxB,QAAQC,c,kCC1PnD,0EA0Be,SAAS0zB,EAASt/B,EAAWygC,GAC1C,YAAa,EAAGxgC,WAChB,IAAIygC,EAAS,YAAUD,GACvB,OAAO,YAAUzgC,EAAoB,GAAT0gC","file":"component---src-templates-product-jsx-dca4008e390f460d2b0f.js","sourcesContent":["/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","import React from \"react\";\n\nexport default ({ text, size }) => (\n
\n \n {text}\n
\n);\n","var baseUniq = require('./_baseUniq');\n\n/**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\nfunction uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n}\n\nmodule.exports = uniq;\n","var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","import React from \"react\";\nimport { addWidthParameter } from \"../utils/addWidthParameter\";\n\nexport default ({ children, image, zeroMargingBottom, isTiny }) => (\n //
\n
\n \n
\n
{children}
\n
\n \n
\n);\n","import toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name endOfYear\n * @category Year Helpers\n * @summary Return the end of a year for the given date.\n *\n * @description\n * Return the end of a year for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a year for 2 September 2014 11:55:00:\n * var result = endOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Dec 31 2014 23:59:59.999\n */\n\nexport default function endOfYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n date.setFullYear(year + 1, 0, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\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 baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar toObject = require('../internals/to-object');\nvar fails = require('../internals/fails');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar test = [];\nvar nativeSort = test.sort;\n\n// IE8-\nvar FAILS_ON_UNDEFINED = fails(function () {\n test.sort(undefined);\n});\n// V8 bug\nvar FAILS_ON_NULL = fails(function () {\n test.sort(null);\n});\n// Old WebKit\nvar STRICT_METHOD = arrayMethodIsStrict('sort');\n\nvar FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD;\n\n// `Array.prototype.sort` method\n// https://tc39.es/ecma262/#sec-array.prototype.sort\n$({ target: 'Array', proto: true, forced: FORCED }, {\n sort: function sort(comparefn) {\n return comparefn === undefined\n ? nativeSort.call(toObject(this))\n : nativeSort.call(toObject(this), aFunction(comparefn));\n }\n});\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\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","module.exports = require('./head');\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\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 * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\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","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","import { addWidthParameter } from \"./addWidthParameter\";\n\nexport const addImage = (images, imageUrl) => {\n if (imageUrl && imageUrl.length) {\n images.push({\n original: addWidthParameter(imageUrl, 1350),\n thumbnail: addWidthParameter(imageUrl, 200),\n });\n }\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","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\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","'use strict';\n\nvar has = Object.prototype.hasOwnProperty,\n prefix = '~';\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\n\nfunction Events() {} //\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\n\n\nif (Object.create) {\n Events.prototype = Object.create(null); //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n\n if (!new Events().__proto__) prefix = false;\n}\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\n\n\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\n\n\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once),\n evt = prefix ? prefix + event : event;\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);else emitter._events[evt] = [emitter._events[evt], listener];\n return emitter;\n}\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\n\n\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt];\n}\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\n\n\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\n\n\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = [],\n events,\n name;\n if (this._eventsCount === 0) return names;\n\n for (name in events = this._events) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\n\n\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event,\n handlers = this._events[evt];\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\n\n\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event,\n listeners = this._events[evt];\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\n\n\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n if (!this._events[evt]) return false;\n var listeners = this._events[evt],\n len = arguments.length,\n args,\n i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1:\n return listeners.fn.call(listeners.context), true;\n\n case 2:\n return listeners.fn.call(listeners.context, a1), true;\n\n case 3:\n return listeners.fn.call(listeners.context, a1, a2), true;\n\n case 4:\n return listeners.fn.call(listeners.context, a1, a2, a3), true;\n\n case 5:\n return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n\n case 6:\n return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len - 1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length,\n j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1:\n listeners[i].fn.call(listeners[i].context);\n break;\n\n case 2:\n listeners[i].fn.call(listeners[i].context, a1);\n break;\n\n case 3:\n listeners[i].fn.call(listeners[i].context, a1, a2);\n break;\n\n case 4:\n listeners[i].fn.call(listeners[i].context, a1, a2, a3);\n break;\n\n default:\n if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\n\n\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\n\n\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\n\n\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n if (!this._events[evt]) return this;\n\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) {\n events.push(listeners[i]);\n }\n } //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n\n\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt);\n }\n\n return this;\n};\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\n\n\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n}; //\n// Alias methods names because people roll like that.\n//\n\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on; //\n// Expose the prefix.\n//\n\nEventEmitter.prefixed = prefix; //\n// Allow `EventEmitter` to be imported as module namespace.\n//\n\nEventEmitter.EventEmitter = EventEmitter; //\n// Expose the module.\n//\n\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\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';\n\nmodule.exports = Point;\n/**\n * A standalone point geometry with useful accessor, comparison, and\n * modification methods.\n *\n * @class Point\n * @param {Number} x the x-coordinate. this could be longitude or screen\n * pixels, or any other sort of unit.\n * @param {Number} y the y-coordinate. this could be latitude or screen\n * pixels, or any other sort of unit.\n * @example\n * var point = new Point(-77, 38);\n */\n\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n}\n\nPoint.prototype = {\n /**\n * Clone this point, returning a new point that can be modified\n * without affecting the old one.\n * @return {Point} the clone\n */\n clone: function clone() {\n return new Point(this.x, this.y);\n },\n\n /**\n * Add this point's x & y coordinates to another point,\n * yielding a new point.\n * @param {Point} p the other point\n * @return {Point} output point\n */\n add: function add(p) {\n return this.clone()._add(p);\n },\n\n /**\n * Subtract this point's x & y coordinates to from point,\n * yielding a new point.\n * @param {Point} p the other point\n * @return {Point} output point\n */\n sub: function sub(p) {\n return this.clone()._sub(p);\n },\n\n /**\n * Multiply this point's x & y coordinates by point,\n * yielding a new point.\n * @param {Point} p the other point\n * @return {Point} output point\n */\n multByPoint: function multByPoint(p) {\n return this.clone()._multByPoint(p);\n },\n\n /**\n * Divide this point's x & y coordinates by point,\n * yielding a new point.\n * @param {Point} p the other point\n * @return {Point} output point\n */\n divByPoint: function divByPoint(p) {\n return this.clone()._divByPoint(p);\n },\n\n /**\n * Multiply this point's x & y coordinates by a factor,\n * yielding a new point.\n * @param {Point} k factor\n * @return {Point} output point\n */\n mult: function mult(k) {\n return this.clone()._mult(k);\n },\n\n /**\n * Divide this point's x & y coordinates by a factor,\n * yielding a new point.\n * @param {Point} k factor\n * @return {Point} output point\n */\n div: function div(k) {\n return this.clone()._div(k);\n },\n\n /**\n * Rotate this point around the 0, 0 origin by an angle a,\n * given in radians\n * @param {Number} a angle to rotate around, in radians\n * @return {Point} output point\n */\n rotate: function rotate(a) {\n return this.clone()._rotate(a);\n },\n\n /**\n * Rotate this point around p point by an angle a,\n * given in radians\n * @param {Number} a angle to rotate around, in radians\n * @param {Point} p Point to rotate around\n * @return {Point} output point\n */\n rotateAround: function rotateAround(a, p) {\n return this.clone()._rotateAround(a, p);\n },\n\n /**\n * Multiply this point by a 4x1 transformation matrix\n * @param {Array} m transformation matrix\n * @return {Point} output point\n */\n matMult: function matMult(m) {\n return this.clone()._matMult(m);\n },\n\n /**\n * Calculate this point but as a unit vector from 0, 0, meaning\n * that the distance from the resulting point to the 0, 0\n * coordinate will be equal to 1 and the angle from the resulting\n * point to the 0, 0 coordinate will be the same as before.\n * @return {Point} unit vector point\n */\n unit: function unit() {\n return this.clone()._unit();\n },\n\n /**\n * Compute a perpendicular point, where the new y coordinate\n * is the old x coordinate and the new x coordinate is the old y\n * coordinate multiplied by -1\n * @return {Point} perpendicular point\n */\n perp: function perp() {\n return this.clone()._perp();\n },\n\n /**\n * Return a version of this point with the x & y coordinates\n * rounded to integers.\n * @return {Point} rounded point\n */\n round: function round() {\n return this.clone()._round();\n },\n\n /**\n * Return the magitude of this point: this is the Euclidean\n * distance from the 0, 0 coordinate to this point's x and y\n * coordinates.\n * @return {Number} magnitude\n */\n mag: function mag() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n\n /**\n * Judge whether this point is equal to another point, returning\n * true or false.\n * @param {Point} other the other point\n * @return {boolean} whether the points are equal\n */\n equals: function equals(other) {\n return this.x === other.x && this.y === other.y;\n },\n\n /**\n * Calculate the distance from this point to another point\n * @param {Point} p the other point\n * @return {Number} distance\n */\n dist: function dist(p) {\n return Math.sqrt(this.distSqr(p));\n },\n\n /**\n * Calculate the distance from this point to another point,\n * without the square root step. Useful if you're comparing\n * relative distances.\n * @param {Point} p the other point\n * @return {Number} distance\n */\n distSqr: function distSqr(p) {\n var dx = p.x - this.x,\n dy = p.y - this.y;\n return dx * dx + dy * dy;\n },\n\n /**\n * Get the angle from the 0, 0 coordinate to this point, in radians\n * coordinates.\n * @return {Number} angle\n */\n angle: function angle() {\n return Math.atan2(this.y, this.x);\n },\n\n /**\n * Get the angle from this point to another point, in radians\n * @param {Point} b the other point\n * @return {Number} angle\n */\n angleTo: function angleTo(b) {\n return Math.atan2(this.y - b.y, this.x - b.x);\n },\n\n /**\n * Get the angle between this point and another point, in radians\n * @param {Point} b the other point\n * @return {Number} angle\n */\n angleWith: function angleWith(b) {\n return this.angleWithSep(b.x, b.y);\n },\n\n /*\n * Find the angle of the two vectors, solving the formula for\n * the cross product a x b = |a||b|sin(θ) for θ.\n * @param {Number} x the x-coordinate\n * @param {Number} y the y-coordinate\n * @return {Number} the angle in radians\n */\n angleWithSep: function angleWithSep(x, y) {\n return Math.atan2(this.x * y - this.y * x, this.x * x + this.y * y);\n },\n _matMult: function _matMult(m) {\n var x = m[0] * this.x + m[1] * this.y,\n y = m[2] * this.x + m[3] * this.y;\n this.x = x;\n this.y = y;\n return this;\n },\n _add: function _add(p) {\n this.x += p.x;\n this.y += p.y;\n return this;\n },\n _sub: function _sub(p) {\n this.x -= p.x;\n this.y -= p.y;\n return this;\n },\n _mult: function _mult(k) {\n this.x *= k;\n this.y *= k;\n return this;\n },\n _div: function _div(k) {\n this.x /= k;\n this.y /= k;\n return this;\n },\n _multByPoint: function _multByPoint(p) {\n this.x *= p.x;\n this.y *= p.y;\n return this;\n },\n _divByPoint: function _divByPoint(p) {\n this.x /= p.x;\n this.y /= p.y;\n return this;\n },\n _unit: function _unit() {\n this._div(this.mag());\n\n return this;\n },\n _perp: function _perp() {\n var y = this.y;\n this.y = this.x;\n this.x = -y;\n return this;\n },\n _rotate: function _rotate(angle) {\n var cos = Math.cos(angle),\n sin = Math.sin(angle),\n x = cos * this.x - sin * this.y,\n y = sin * this.x + cos * this.y;\n this.x = x;\n this.y = y;\n return this;\n },\n _rotateAround: function _rotateAround(angle, p) {\n var cos = Math.cos(angle),\n sin = Math.sin(angle),\n x = p.x + cos * (this.x - p.x) - sin * (this.y - p.y),\n y = p.y + sin * (this.x - p.x) + cos * (this.y - p.y);\n this.x = x;\n this.y = y;\n return this;\n },\n _round: function _round() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n return this;\n }\n};\n/**\n * Construct a point from an array if necessary, otherwise if the input\n * is already a Point, or an unknown type, return it unchanged\n * @param {Array|Point|*} a any kind of input value\n * @return {Point} constructed point, or passed-through value.\n * @example\n * // this\n * var point = Point.convert([0, 1]);\n * // is equivalent to\n * var point = new Point(0, 1);\n */\n\nPoint.convert = function (a) {\n if (a instanceof Point) {\n return a;\n }\n\n if (Array.isArray(a)) {\n return new Point(a[0], a[1]);\n }\n\n return a;\n};","import React from \"react\";\nimport { filter } from \"lodash\";\nimport { addWidthParameter } from \"../../utils/addWidthParameter\";\n\nexport default ({ theme, product }) => {\n let cabins = [];\n const allcabins = filter(product.children, { templateName: \"Cabins\" })[0];\n // Fast return when there's no cabins folder\n if (!allcabins) {\n return <>;\n }\n allcabins.children.forEach(cabin => {\n cabins.push(cabin);\n });\n\n // Fast return when there's no cabins\n if (cabins.length <= 0) {\n return <>;\n }\n\n return (\n
\n
\n

{allcabins.content.general.title}

\n
\n\n {cabins &&\n cabins.map((cabin, index) => (\n
\n
\n {cabin.content.general.title}\n
\n
\n
\n
\n

{cabin.content.general.title}

\n
\n \"surface\"\n \n {cabin.content.general.surface} m2\n \n
\n
\n\n
\n \n
\n €\n {cabin.content.general.price}\n p.p.\n
\n
\n
\n
\n
\n \n ))}\n
\n );\n};\n","import React from \"react\";\n\nexport default ({ product }) => (\n
\n
\n

{product.content.information.introductionTitle}

\n
\n \n
\n);\n","export const getStars = stars => {\n // Fast excape\n if (!stars) {\n return [];\n }\n\n let temporaryStars = stars;\n let parsedStars = [];\n\n while (temporaryStars > 0) {\n const decimal = temporaryStars % 1;\n parsedStars.push({ isHalf: Boolean(decimal) });\n\n if (Boolean(decimal)) {\n temporaryStars -= decimal;\n } else {\n temporaryStars -= 1;\n }\n }\n\n return parsedStars.sort((star1, star2) => (star1.isHalf === star2.isHalf ? 0 : star1.isHalf ? 1 : -1));\n};","import { max, min } from \"date-fns\";\n\nimport ImageGallery from \"react-image-gallery\";\nimport React, { useState } from \"react\";\nimport { format, getDuration } from \"../../utils/dateUtils\";\nimport LoadingSpinner from \"../loadingSpinner\";\nimport { useBodyClass } from \"../../utils/bodyClassUtils\";\nimport { Link, navigate } from \"gatsby\";\nimport { getStars } from \"../../utils/mappingUtils\";\nimport { addImage } from \"../../utils/imageUtils\";\nimport { groupBy, isEmpty } from \"lodash\";\n\nconst shortDateFormat = \"dd MMM\";\nconst longDateFormat = \"MMMM yyyy\";\n\nexport default ({\n theme,\n cmsProduct,\n erpProductOptions,\n onOfferClick,\n onDepartureDateClick,\n selectedOption,\n bookingDisclaimer,\n shippingCompany,\n isLoading,\n}) => {\n const [isImageGalleryActive, setIsImageGalleryActive] = useState(false);\n useBodyClass(isImageGalleryActive, \"has-overlay\");\n\n // Fast return when there's no cmsProduct\n if (!cmsProduct) {\n return <>;\n }\n\n // Actions\n\n const handleOfferClick = e => {\n e.preventDefault();\n\n if (onOfferClick) {\n onOfferClick();\n }\n };\n\n const handleOnDepartureDateClick = e => {\n e.preventDefault();\n\n if (onDepartureDateClick) {\n onDepartureDateClick();\n }\n };\n\n const handleOnShippingCompanyClick = e => {\n e.preventDefault();\n\n navigate(`/rederijen/${shippingCompany.content.general.detailPath}`);\n };\n\n const handleScreenchange = () => {\n setIsImageGalleryActive(!isImageGalleryActive);\n };\n\n // Data\n let option;\n if (selectedOption) {\n option = selectedOption;\n } else {\n if (erpProductOptions) {\n option = erpProductOptions.sort((a, b) => new Date(a.fromDate) - new Date(b.fromDate))[0];\n }\n }\n\n const fromDate = option ? new Date(option.fromDate) : undefined;\n const duration = getDuration(option?.fromDate, option?.toDate);\n const averagePricePerPerson = option?.averagePricePerPerson;\n\n const cruiseType = cmsProduct.content.general.cruiseType;\n const ship = cmsProduct.content.general.ship;\n const stars = getStars(ship?.content.general.stars);\n\n let images = [];\n if (cmsProduct.content.images.images) {\n cmsProduct.content.images.images.forEach(image => {\n addImage(images, image.url);\n });\n }\n\n return (\n
\n
\n
\n \n
\n
\n
\n {Boolean(cruiseType && cruiseType.content.general) && (\n
\n \"topic\"\n {cruiseType.content.general.title}\n
\n )}\n {Boolean(ship) && (\n
\n \"topic\"\n {ship.content.general.name}\n
\n )}\n {Boolean(shippingCompany && shippingCompany.content?.general?.logo?.url) && (\n \n \n
\n )}\n {isLoading ? (\n
\n \n
\n ) : (\n <>\n {!isEmpty(erpProductOptions) && (\n <>\n \n \"topic\"\n {erpProductOptions && Object.keys(groupBy(erpProductOptions, \"fromDate\")).length > 1\n ? \"Meerdere afreisdata\"\n : format(fromDate, shortDateFormat)}\n
\n
\n {Math.floor(parseFloat(duration))}\n Nachten\n
\n \n )}\n \n )}\n
\n

{cmsProduct.content.general.title}

\n
\n {cmsProduct.content.information.subtitle}\n \n {stars.map((star, i) => (\n \n ))}\n \n
\n
{getSlot(erpProductOptions)}
\n
\n

Inclusief

\n \n
\n {Boolean(option) && (\n <>\n
\n
\n \n
\n \n {averagePricePerPerson}\n p.p.\n
\n
\n
\n {cmsProduct.content.general.externalBookingUrl && (\n
\n \n Boek nu\n \n
\n )}\n \n
\n
\n {cmsProduct.content.general.externalBookingUrl && bookingDisclaimer && (\n
{bookingDisclaimer}
\n )}\n \n )}\n \n \n
\n );\n};\nconst getLowestPrice = accommodations => {\n if (accommodations) {\n return accommodations.reduce((min, p) => (p.price < min ? p.price : min), accommodations[0].price);\n }\n};\n\nconst getSlot = erpProductOptions => {\n if (!erpProductOptions) {\n return \"\";\n }\n\n try {\n const possibleFromDates = erpProductOptions.map(option => new Date(option.from));\n\n // There's only 1 date\n if (possibleFromDates.length === 1) {\n return `Afreizen mogelijk in ${format(possibleFromDates[0], longDateFormat)}`;\n }\n\n // There are multiple dates\n const minPossibleFromDate = min(possibleFromDates);\n const maxPossibleFromDate = max(possibleFromDates);\n\n return `Afreizen mogelijk van ${format(minPossibleFromDate, longDateFormat)} tot ${format(\n maxPossibleFromDate,\n longDateFormat\n )}`;\n } catch (e) {\n return \"\";\n }\n};\n","import React from \"react\";\n\nexport default ({ product }) => {\n const extraInfo = product.content.additionalInformation;\n\n return (\n
\n
\n

Aanvullende informatie

\n
\n
\n
\n {extraInfo.childDiscount && (\n <>\n

Kinderkorting

\n
\n \n )}\n {extraInfo.travelFormalities && (\n <>\n

Reisformaliteiten

\n
\n \n )}\n {extraInfo.transfers && (\n <>\n

Transfers

\n
\n \n )}\n {extraInfo.flights && (\n <>\n

Vluchten

\n
\n \n )}\n
\n
\n {extraInfo.drinksOnBoard && (\n <>\n

Dranken aan boord

\n
\n \n )}\n {extraInfo.notIncluded && (\n <>\n

Niet inbegrepen

\n
\n \n )}\n {extraInfo.conditions && (\n <>\n

Voorwaarden

\n
\n \n )}\n
\n
\n
\n );\n};\n","import React from \"react\";\nimport { addWidthParameter } from \"../../utils/addWidthParameter\";\nimport { getStars } from \"../../utils/mappingUtils\";\n\nexport default ({ hotels }) => {\n // Fast return when there's no cabins\n if (hotels.length <= 0) {\n return <>;\n }\n\n return (\n
\n
\n

Hotelinformatie

\n
\n\n {hotels &&\n hotels.map((h, index) => (\n
\n
\n {h.content.general.title}\n
\n
\n
\n
\n

{h.content.general.title}

\n
\n \n {getStars(h.content.general.stars).map((star, i) => (\n \n ))}\n \n
\n
\n
\n
\n
\n \n ))}\n
\n );\n};\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n// find the complete implementation of crypto (msCrypto) on IE11.\nvar getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n\n return getRandomValues(rnds8);\n}","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex; // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n\n return (bth[buf[i + 0]] + bth[buf[i + 1]] + bth[buf[i + 2]] + bth[buf[i + 3]] + '-' + bth[buf[i + 4]] + bth[buf[i + 5]] + '-' + bth[buf[i + 6]] + bth[buf[i + 7]] + '-' + bth[buf[i + 8]] + bth[buf[i + 9]] + '-' + bth[buf[i + 10]] + bth[buf[i + 11]] + bth[buf[i + 12]] + bth[buf[i + 13]] + bth[buf[i + 14]] + bth[buf[i + 15]]).toLowerCase();\n}\n\nexport default bytesToUuid;","import rng from './rng.js';\nimport bytesToUuid from './bytesToUuid.js';\n\nfunction v4(options, buf, offset) {\n if (typeof options === 'string') {\n buf = options === 'binary' ? new Uint8Array(16) : null;\n options = null;\n }\n\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n var start = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[start + i] = rnds[i];\n }\n\n return buf;\n }\n\n return bytesToUuid(rnds);\n}\n\nexport default v4;","import React, { useEffect, useState } from \"react\";\nimport { apiKey, host, catalogueId } from \"../../settings\";\nimport { find, uniq, uniqBy } from \"lodash\";\nimport { isValidEmail, isValidName, isValidPhone } from \"../../utils/validationUtils\";\nimport SubmitButton from \"../submitButton\";\nimport { environment } from \"../../environments/environment\";\nimport { format } from \"../../utils/dateUtils\";\nimport { useBodyClass } from \"../../utils/bodyClassUtils\";\nimport { v4 as uuid } from \"uuid\";\n\nconst Offer = ({\n isActive,\n cmsProduct,\n erpProductOptions,\n initialOption,\n onCloseClick,\n theme,\n websiteGeneral,\n}) => {\n const dateFormat = \"dd MMMM yyyy\";\n const offerDateFormat = \"MM/dd/yyyy\";\n const initialSelection = {\n date: initialOption ? initialOption.fromDate : \"\",\n accommodation: initialOption ? initialOption.accommodationName : \"\",\n adults: \"2\",\n children: \"0\",\n salutation: \"\",\n firstname: \"\",\n lastname: \"\",\n phone: \"\",\n email: \"\",\n message: \"\",\n checkPrivacyPolicy: false,\n travelAgency: \"\",\n };\n \n const productCode = erpProductOptions[0].code;\n // State\n\n const [isEnabled, setIsEnabled] = useState(true);\n const [selection, setSelection] = useState(initialSelection);\n const [selectedOptionPrice, setSelectedOptionPrice] = useState(null);\n const [touched, setTouched] = useState({});\n const [errors, setErrors] = useState({});\n const [isLoading, setIsLoading] = useState(false);\n const [isSent, setIsSent] = useState(false);\n\n // Actions\n\n const handleSubmit = e => {\n e.preventDefault();\n\n // Set all input fields to touched, so errors will become clear\n setTouched(\n Object.keys(selection).reduce((prev, cur) => {\n prev[cur] = true;\n return prev;\n }, {})\n );\n\n // Check if the form is valid\n const isValid = Object.keys(errors).length === 0;\n\n if (isValid) {\n // Send offer request\n sendOfferRequest();\n }\n };\n\n const handleChange = e => {\n if (e.target.name === \"date\") {\n // Update default accommodation when data changes\n setSelection({\n ...selection,\n [e.target.name]: e.target.value,\n accommodation: getAccommodations(e.target.value)[0].code,\n });\n setSelectedOptionPrice(getAccommodations(e.target.value)[0].price);\n } else if (e.target.name === \"accommodation\") {\n setSelection({\n ...selection,\n [e.target.name]: e.target.value,\n });\n const accommodation = getAccommodations(selection.date).find(a => a.code === e.target.value);\n setSelectedOptionPrice(accommodation?.price);\n } else if (e.target.type === \"checkbox\") {\n setSelection({\n ...selection,\n [e.target.name]: e.target.checked,\n });\n } else {\n setSelection({\n ...selection,\n [e.target.name]: e.target.value,\n });\n }\n\n // Validation of selection\n validate({\n ...selection,\n [e.target.name]: e.target.value,\n });\n };\n\n const handleBlur = e => {\n setTouched({\n ...touched,\n [e.target.name]: true,\n });\n };\n\n // Data\n\n const sendOfferRequest = () => {\n return (async () => {\n setIsLoading(true);\n setIsEnabled(false);\n\n // Create offer in Tide\n try {\n await createTideOffer();\n } catch (error) {\n console.error(error);\n }\n\n // Create mail offer\n try {\n await createMailOffer();\n\n setIsSent(true);\n } catch (error) {\n console.error(error);\n }\n\n //Confirmation mail to Thalassa\n try {\n await ConfirmationMailNewOffer();\n } catch (error) {\n setIsEnabled(true);\n } finally {\n setIsLoading(false);\n }\n })();\n };\n\n const createTideOffer = async () => {\n const offerRequest = {\n officeId: environment.builds[0].officeId,\n agentId: environment.builds[0].agentId,\n productCode: productCode,\n startDate: format(new Date(selection.date), offerDateFormat),\n endDate: format(new Date(find(erpProductOptions, option => option.from === selection.date).to), offerDateFormat),\n address: {\n email: selection.email,\n mobilePhone: selection.phone,\n },\n rooms: parseRooms(),\n catalogueId: catalogueId,\n };\n\n const url = `${host}/api/web/booking/offer-entry`;\n await fetch(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Api-Key\": apiKey,\n },\n body: JSON.stringify(offerRequest),\n });\n };\n\n const createMailOffer = async () => {\n const emailToSend = {\n firstName: selection.firstname,\n lastName: selection.lastname,\n emailAddress: selection.email,\n phone: selection.phone,\n emailTemplate: websiteGeneral.emailTemplateOffer.tideId,\n ignoreBcc: true,\n message: `\n
    \n
  • Begroeting: ${selection.salutation}
  • \n
  • Achternaam: ${selection.lastname}
  • \n
  • Voornaam: ${selection.firstname}
  • \n
  • E-mailadres: ${selection.email}
  • \n
  • Telefoonnummer: ${selection.phone}
  • \n
  • Product: ${cmsProduct.content.general.title}
  • \n
  • vertrekdatum: ${format(new Date(selection.date), dateFormat)}
  • \n
  • Kajuit: ${selection.accommodation}
  • \n
  • Aantal volwassenen: ${selection.adults}
  • \n
  • Aantal kind(eren): ${selection.children}
  • \n
  • Opmerkingen: ${selection.message}
  • \n ${theme == \"select-together\" ? `
  • Ik wens te boeken via ${selection.travelAgency}
  • ` : `
    `}\n
`,\n };\n\n const url = `${host}/api/web/mail`;\n\n await fetch(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Api-Key\": apiKey,\n },\n body: JSON.stringify(emailToSend),\n });\n };\n\n const ConfirmationMailNewOffer = async () => {\n const emailToSend = {\n firstName: selection.firstname,\n lastName: selection.lastname,\n emailAddress: \"cruise@thalassa.be\",\n phone: selection.phone,\n emailTemplate: websiteGeneral.emailTemplateOfferTravelAgent.tideId,\n ignoreBcc: true,\n message: `\n

Nieuwe offer aanvraag van ${selection.salutation} ${selection.firstname} ${selection.lastname}:
\n

    \n
  • Begroeting: ${selection.salutation}
  • \n
  • Achternaam: ${selection.lastname}
  • \n
  • Voornaam: ${selection.firstname}
  • \n
  • Telefoonnummer: ${selection.phone}
  • \n
  • E-mailadres: ${selection.email}
  • \n
  • Product: ${cmsProduct.content.general.title}
  • \n
  • vertrekdatum: ${format(new Date(selection.date), dateFormat)}
  • \n
  • Kajuit: ${selection.accommodation}
  • \n
  • Aantal volwassenen: ${selection.adults}
  • \n
  • Aantal kind(eren): ${selection.children}
  • \n
  • Opmerkingen: ${selection.message}
  • \n ${theme == \"select-together\" ? `
  • Ik wens te boeken via ${selection.travelAgency}
  • ` : `
    `}\n
`,\n };\n\n const url = `${host}/api/web/mail`;\n\n await fetch(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Api-Key\": apiKey,\n },\n body: JSON.stringify(emailToSend),\n });\n };\n\n // Utils\n\n const getDepartureDates = () => {\n // Fast escape\n if (!erpProductOptions) {\n return [];\n }\n\n // Get fromDates, filter unique\n const fromDates = erpProductOptions.map(option => option.fromDate);\n return uniq(fromDates);\n };\n\n const getAccommodations = from => {\n if (!erpProductOptions || !from) {\n return [];\n }\n\n // Get options for selected date\n const optionsForDate = erpProductOptions.filter(option => option.fromDate === from);\n let accommodations = [];\n optionsForDate.forEach(option => {\n accommodations.push({\n code: option.accommodationCode,\n name: option.accommodationName,\n price: option.averagePricePerPerson\n })\n });\n\n return uniqBy(accommodations, \"code\");\n };\n\n const parseRooms = () => {\n const erpProduct = {};\n let accommodation = find(erpProduct.accommodations, {\n id: Number(selection.accommodation),\n });\n let adults = Number(selection.adults);\n let children = Number(selection.children);\n\n const roomsForAdults = accommodation.maxAdults > 0 ? Math.ceil(adults / accommodation.maxAdults) : 0;\n const roomsForChildren = accommodation.maxChildren > 0 ? Math.ceil(children / accommodation.maxChildren) : 0;\n const numberOfRooms = roomsForAdults > roomsForChildren ? roomsForAdults : roomsForChildren;\n\n let rooms = [];\n for (let i = numberOfRooms; i > 0; i--) {\n if (adults > i * accommodation.minAdults) {\n rooms.push({\n accommodationCode: accommodation.code,\n travelers: createAdultTravelers(accommodation.maxAdults),\n });\n adults = adults - accommodation.maxAdults;\n } else if (adults >= accommodation.minAdults) {\n rooms.push({\n accommodationCode: accommodation.code,\n travelers: createAdultTravelers(accommodation.minAdults),\n });\n adults = adults - accommodation.minAdults;\n } else {\n rooms.push({\n accommodationCode: accommodation.code,\n travelers: createAdultTravelers(adults),\n });\n adults = 0;\n }\n }\n\n for (let i = numberOfRooms; i > 0; i--) {\n if (children && children >= accommodation.maxChildren) {\n rooms[rooms.length - i].travelers = rooms[rooms.length - i].travelers.concat(\n createChildTravelers(accommodation.maxChildren)\n );\n children = children - accommodation.maxChildren;\n } else if (children) {\n rooms[rooms.length - i].travelers = rooms[rooms.length - i].travelers.concat(\n createChildTravelers(accommodation.children)\n );\n children = 0;\n }\n }\n\n return rooms;\n };\n\n const createAdultTravelers = adults => {\n let travelers = [];\n for (let i = 0; i < adults; i++) {\n travelers.push({\n id: -i,\n guid: uuid(),\n firstName: \"Traveler\",\n lastName: i,\n age: 30,\n });\n }\n return travelers;\n };\n\n const createChildTravelers = children => {\n let travelers = [];\n for (let i = 0; i < children; i++) {\n travelers.push({\n id: -i,\n guid: uuid(),\n firstName: \"Traveler\",\n lastName: i,\n age: 6,\n });\n }\n return travelers;\n };\n\n // Validation\n\n const validate = selectionToValidate => {\n const errors = {};\n if (selectionToValidate.date.length === 0 || !new Date(selectionToValidate.date)) {\n errors.date = {\n message: \"Vertrekdatum\",\n };\n }\n\n if (selectionToValidate.accommodation.length === 0) {\n errors.accommodation = {\n message: \"Type hut\",\n };\n }\n\n if (isNaN(selectionToValidate.adults) || selectionToValidate.adults < 1) {\n errors.adults = {\n message: \"Aantal volwassenen\",\n };\n }\n\n if (isNaN(selectionToValidate.children) || selectionToValidate.children < 0) {\n errors.children = {\n message: \"Aantal kinderen\",\n };\n }\n\n if (selectionToValidate.salutation.length === 0) {\n errors.salutation = {\n message: \"Aanspreektitel\",\n };\n }\n\n if (!isValidName(selectionToValidate.firstname)) {\n errors.firstname = {\n message: \"Voornaam\",\n };\n }\n\n if (!isValidName(selectionToValidate.lastname)) {\n errors.lastname = {\n message: \"Achternaam\",\n };\n }\n\n if (selectionToValidate.phone.length === 0) {\n errors.phone = \"Telefoonnummer\";\n }\n\n if (!isValidPhone(selectionToValidate.phone)) {\n errors.phone = {\n message: \"Telefoonnummer\",\n };\n }\n\n if (!isValidEmail(selectionToValidate.email)) {\n errors.email = {\n message: \"Email\",\n };\n }\n\n if (!selectionToValidate.checkPrivacyPolicy) {\n errors.checkPrivacyPolicy = {\n message: \"checkbox privacy policy *\",\n };\n }\n\n setErrors(errors);\n };\n\n // Lifecycle\n\n useBodyClass(isActive, \"has-overlay\");\n\n useEffect(() => {\n validate(selection);\n }, [selection]);\n\n useEffect(() => {\n if (initialOption) {\n setSelectedOptionPrice(initialOption.averagePricePerPerson);\n }\n }, [initialOption]);\n\n return (\n <>\n {Boolean(\n cmsProduct.content && cmsProduct.content.general && cmsProduct.content.information && cmsProduct.content.images\n ) && (\n
\n
\n
\n
\n
\n
\n
\n \"Header\"\n
\n
\n

Offerte aanvragen

\n

{cmsProduct.content.general.title}

\n
\n
\n

{cmsProduct.content.information.subtitle}

\n\n
\n
Vanaf p.p.
\n € {selectedOptionPrice ?? \"n.b.\"}\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n

Gegevens reis

\n
\n
\n
\n
\n \n Vertrekdatum\n \n \n {getDepartureDates().map((departureDate, index) => (\n \n ))}\n \n
\n
\n \n Type hut\n \n \n {getAccommodations(selection.date).map((accommodation, index) => (\n \n ))}\n \n
\n
\n
\n
\n \n Aantal volwassenen\n \n \n
\n
\n \n Aantal kinderen\n \n \n
\n
\n
\n
\n

Uw gegevens

\n
\n
\n
\n
\n \n Aanspreektitel *\n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n
\n\n
\n
\n \n Voornaam *\n \n \n
\n
\n \n Achternaam *\n \n \n
\n
\n
\n
\n \n Telefoonnummer *\n \n \n
\n
\n \n E-mailadres *\n \n \n
\n
\n
\n
\n \n \n
\n
\n {theme === \"select-together\" && (\n
\n
\n \n \n
\n
\n )}\n
\n
\n \n
\n
\n {Boolean(Object.keys(touched).filter(key => Boolean(errors[key])).length) && (\n
\n
\n
Volgende velden zijn niet correct ingevuld. Kijk deze even na:
\n
\n
\n {Object.keys(touched)\n .filter(key => Boolean(errors[key]))\n .map((item, index) => {\n return (\n \n );\n })}\n
\n
\n )}\n {Boolean(isSent) && (\n
\n
\n \n
\n
\n )}\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n )}\n \n );\n};\n\nexport default Offer;\n","import React, { useEffect, useState } from \"react\";\nimport { startOfMonth, isSameMonth, getUnixTime } from \"date-fns\";\nimport { format, getDuration } from \"../../utils/dateUtils\";\nimport { uniqBy, get, isEmpty } from \"lodash\";\nimport LoadingSpinner from \"../loadingSpinner\";\n\nconst monthDateFormat = \"MMMM\";\nconst dayDateFormat = \"d\";\n\nconst PriceOptions = ({ cmsProduct, erpProductOptions, innerRef }) => {\n const [isLoading, setIsLoading] = useState(false);\n const [allOptions, setAllOptions] = useState([]);\n const [previousYearHasData, setPreviousYearHasData] = useState(false);\n const [nextYearHasData, setnextYearHasData] = useState(false);\n const [sortedOptions, setSortedOptions] = useState();\n\n let [selectedYear, setSelectedYear] = useState(new Date().getFullYear());\n\n useEffect(() => {\n if (erpProductOptions && !isEmpty(erpProductOptions)) {\n setIsLoading(true);\n const dataSelectedYear = erpProductOptions.filter(\n option => new Date(option.fromDate).getFullYear() === selectedYear\n );\n const dataNextYear = erpProductOptions.filter(\n option => new Date(option.fromDate).getFullYear() === selectedYear + 1\n );\n const dataYearAfterNext = erpProductOptions.filter(\n option => new Date(option.fromDate).getFullYear() === selectedYear + 2\n );\n const data = { selectedYear: dataSelectedYear, nextYear: dataNextYear, yearAfterNext: dataYearAfterNext };\n\n const getOptions = data => {\n let localAllOptions = [];\n Object.keys(data).map(year => {\n let optionsForYear = [];\n\n // Determine all months\n if (data[year] && data[year].length > 0) {\n let months = [];\n for (const option of data[year]) {\n months.push(startOfMonth(new Date(option.fromDate)));\n }\n months = uniqBy(months, month => getUnixTime(month));\n\n // Sort options by month\n for (const month of months) {\n const optionsForMonth = data[year].filter(option => {\n return isSameMonth(new Date(option.fromDate), month);\n });\n\n const options = [];\n optionsForMonth.forEach(x => {\n const existingOption = options.find(y => y.id === x.allotment.allotmentIds[0]);\n if (existingOption) {\n existingOption.accommodations.push({\n code: x.accommodationCode,\n name: x.accommodationName,\n price: x.averagePricePerPerson,\n });\n } else {\n options.push({\n id: x.allotment.allotmentIds[0],\n fromDate: x.fromDate,\n duration: getDuration(x.fromDate, x.toDate),\n accommodations: [\n {\n code: x.accommodationCode,\n name: x.accommodationName,\n price: x.averagePricePerPerson,\n },\n ],\n });\n }\n });\n\n options.forEach(x => {\n x.accommodations.sort((a, b) => a.code - b.code);\n });\n\n //Group per month\n optionsForYear.push({\n month: month,\n options: options,\n });\n }\n // Group per year\n localAllOptions.push({\n year: optionsForYear[0].month.getFullYear(),\n months: optionsForYear,\n });\n }\n return localAllOptions;\n });\n\n setAllOptions(localAllOptions);\n };\n\n getOptions(data);\n }\n }, [erpProductOptions]);\n\n useEffect(() => {\n let optionsForSelectedYear = allOptions.find(options => options.year === selectedYear);\n\n if ((!optionsForSelectedYear || optionsForSelectedYear.length <= 0) && allOptions.length > 0) {\n setSelectedYear(allOptions[0].year);\n }\n\n if (optionsForSelectedYear) {\n setSortedOptions(optionsForSelectedYear.months);\n checkYears(selectedYear);\n }\n setIsLoading(false);\n }, [allOptions, selectedYear]);\n\n if (!cmsProduct) {\n return <>;\n }\n\n const handleOnLower = () => {\n setSelectedYear(selectedYear - 1);\n };\n\n const handleOnHigher = () => {\n setSelectedYear(selectedYear + 1);\n };\n\n const checkYears = yearToCheck => {\n setPreviousYearHasData(allOptions.find(options => options.year === yearToCheck - 1) !== undefined);\n setnextYearHasData(allOptions.find(options => options.year === yearToCheck + 1) !== undefined);\n };\n\n const getPath = option => {\n if (!cmsProduct?.content?.general?.path || !option?.fromDate || !option.duration) {\n return \"/\";\n }\n\n return `/products/${cmsProduct.content.general.path}?from=${getUnixTime(new Date(option.fromDate))}&duration=${\n option.duration\n }`;\n };\n\n return (\n <>\n {isLoading && }\n {allOptions.length > 0 && !isLoading && (\n
\n
\n

Vertrekdata

\n
\n
\n
\n \n \n \n \n \n

{selectedYear}

\n \n \n \n \n \n
\n
\n \n \n \n \n \n {get(sortedOptions, \"[0].options[0].accommodations\", []).map((acco, i) => (\n \n ))}\n \n {sortedOptions &&\n sortedOptions.map((month, monthIndex) =>\n month.options.map((option, optionIndex) => (\n \n \n \n\n {option.accommodations.map((acco, i) => (\n \n ))}\n \n ))\n )}\n \n
MAANDDAG{acco.name}
{format(month.month, monthDateFormat)}\n \n {format(new Date(option.fromDate), dayDateFormat)}\n \n € {acco.price}
\n
\n
\n
\n )}\n \n );\n};\n\nexport default PriceOptions;\n","import React from \"react\";\nimport { Link } from \"gatsby\";\nimport HighlightedTextblock from \"../highlighted-textblock\";\n\nconst ReservationInformation = ({ data, options, onOfferClick, theme }) => {\n if (!data) {\n return <>;\n }\n\n return (\n \n
\n

{data.reservationTitle}

\n
\n
\n {Boolean(options?.length) && (\n
\n
\n \n
\n
\n )}\n \n );\n};\n\nexport default ReservationInformation;\n","import React, { useContext, useState } from \"react\";\nimport { getStars } from \"../../utils/mappingUtils\";\nimport GlobalContext from \"../../contexts/global-provider\";\n\nconst ScheduleLeg = ({ scheduleEntrie, index }) => {\n const { theme } = useContext(GlobalContext);\n const [showDayLinkDetails, setShowDayLinkDetails] = useState(index === 0);\n\n const HandleShowDayLinkDetailClick = () => {\n setShowDayLinkDetails(!showDayLinkDetails);\n }\n\n if (!scheduleEntrie.content?.general && !scheduleEntrie.content?.general?.dayDescription) {\n return <>;\n }\n\n const dayLink = scheduleEntrie.content.general;\n const dayDefinition = dayLink.dayDescription.content;\n const overruleInformation = dayLink.overruleInformation;\n\n return (\n HandleShowDayLinkDetailClick()}\n >\n
\n

\n {dayLink[\"fromTill\"]} \"bullet\" {dayDefinition.general.title}\n

\n
\n
\n {overruleInformation ? (\n
\n ) : (\n
\n )}\n\n
\n\n {(!scheduleEntrie.hotels || !scheduleEntrie.hotels.length) && \"wave\"}\n\n {scheduleEntrie.hotels && scheduleEntrie.hotels.length > 0 && (\n
\n {scheduleEntrie.hotels.map((hotel, i) => (\n
\n
\n \n
\n
\n

{hotel.content.general.title}

\n
\n \n {getStars(hotel.content.general.stars).map((star, i) => (\n \n ))}\n \n
\n \n
\n
\n ))}\n
\n )}\n
\n
\n );\n};\n\nexport default ScheduleLeg;\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\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\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","import _toConsumableArray from \"/home/jenkins/workspace/Thalassa/Select Together/Publish Production/node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport _classCallCheck from \"/home/jenkins/workspace/Thalassa/Select Together/Publish Production/node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/jenkins/workspace/Thalassa/Select Together/Publish Production/node_modules/gatsby/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _regeneratorRuntime from \"/home/jenkins/workspace/Thalassa/Select Together/Publish Production/node_modules/gatsby/node_modules/@babel/runtime/regenerator\";\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\nfunction __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n} // do not edit .js files directly - edit src/index.jst\n\n\nvar fastDeepEqual = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n var length, i, keys;\n\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n\n for (i = length; i-- !== 0;) {\n if (!equal(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;) {\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n }\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n } // true if both NaN, false otherwise\n\n\n return a !== a && b !== b;\n};\n/**\n * Copyright 2019 Google LLC. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at.\n *\n * Http://www.apache.org/licenses/LICENSE-2.0.\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\nvar DEFAULT_ID = \"__googleMapsScriptId\";\n/**\n * The status of the [[Loader]].\n */\n\nvar LoaderStatus;\n\n(function (LoaderStatus) {\n LoaderStatus[LoaderStatus[\"INITIALIZED\"] = 0] = \"INITIALIZED\";\n LoaderStatus[LoaderStatus[\"LOADING\"] = 1] = \"LOADING\";\n LoaderStatus[LoaderStatus[\"SUCCESS\"] = 2] = \"SUCCESS\";\n LoaderStatus[LoaderStatus[\"FAILURE\"] = 3] = \"FAILURE\";\n})(LoaderStatus || (LoaderStatus = {}));\n/**\n * [[Loader]] makes it easier to add Google Maps JavaScript API to your application\n * dynamically using\n * [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n * It works by dynamically creating and appending a script node to the the\n * document head and wrapping the callback function so as to return a promise.\n *\n * ```\n * const loader = new Loader({\n * apiKey: \"\",\n * version: \"weekly\",\n * libraries: [\"places\"]\n * });\n *\n * loader.load().then((google) => {\n * const map = new google.maps.Map(...)\n * })\n * ```\n */\n\n\nvar Loader = /*#__PURE__*/function () {\n /**\n * Creates an instance of Loader using [[LoaderOptions]]. No defaults are set\n * using this library, instead the defaults are set by the Google Maps\n * JavaScript API server.\n *\n * ```\n * const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});\n * ```\n */\n function Loader(_ref) {\n var apiKey = _ref.apiKey,\n authReferrerPolicy = _ref.authReferrerPolicy,\n channel = _ref.channel,\n client = _ref.client,\n _ref$id = _ref.id,\n id = _ref$id === void 0 ? DEFAULT_ID : _ref$id,\n language = _ref.language,\n _ref$libraries = _ref.libraries,\n libraries = _ref$libraries === void 0 ? [] : _ref$libraries,\n mapIds = _ref.mapIds,\n nonce = _ref.nonce,\n region = _ref.region,\n _ref$retries = _ref.retries,\n retries = _ref$retries === void 0 ? 3 : _ref$retries,\n _ref$url = _ref.url,\n url = _ref$url === void 0 ? \"https://maps.googleapis.com/maps/api/js\" : _ref$url,\n version = _ref.version;\n\n _classCallCheck(this, Loader);\n\n this.callbacks = [];\n this.done = false;\n this.loading = false;\n this.errors = [];\n this.apiKey = apiKey;\n this.authReferrerPolicy = authReferrerPolicy;\n this.channel = channel;\n this.client = client;\n this.id = id || DEFAULT_ID; // Do not allow empty string\n\n this.language = language;\n this.libraries = libraries;\n this.mapIds = mapIds;\n this.nonce = nonce;\n this.region = region;\n this.retries = retries;\n this.url = url;\n this.version = version;\n\n if (Loader.instance) {\n if (!fastDeepEqual(this.options, Loader.instance.options)) {\n throw new Error(\"Loader must not be called again with different options. \".concat(JSON.stringify(this.options), \" !== \").concat(JSON.stringify(Loader.instance.options)));\n }\n\n return Loader.instance;\n }\n\n Loader.instance = this;\n }\n\n _createClass(Loader, [{\n key: \"options\",\n get: function get() {\n return {\n version: this.version,\n apiKey: this.apiKey,\n channel: this.channel,\n client: this.client,\n id: this.id,\n libraries: this.libraries,\n language: this.language,\n region: this.region,\n mapIds: this.mapIds,\n nonce: this.nonce,\n url: this.url,\n authReferrerPolicy: this.authReferrerPolicy\n };\n }\n }, {\n key: \"status\",\n get: function get() {\n if (this.errors.length) {\n return LoaderStatus.FAILURE;\n }\n\n if (this.done) {\n return LoaderStatus.SUCCESS;\n }\n\n if (this.loading) {\n return LoaderStatus.LOADING;\n }\n\n return LoaderStatus.INITIALIZED;\n }\n }, {\n key: \"failed\",\n get: function get() {\n return this.done && !this.loading && this.errors.length >= this.retries + 1;\n }\n /**\n * CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].\n *\n * @ignore\n * @deprecated\n */\n\n }, {\n key: \"createUrl\",\n value: function createUrl() {\n var url = this.url;\n url += \"?callback=__googleMapsCallback\";\n\n if (this.apiKey) {\n url += \"&key=\".concat(this.apiKey);\n }\n\n if (this.channel) {\n url += \"&channel=\".concat(this.channel);\n }\n\n if (this.client) {\n url += \"&client=\".concat(this.client);\n }\n\n if (this.libraries.length > 0) {\n url += \"&libraries=\".concat(this.libraries.join(\",\"));\n }\n\n if (this.language) {\n url += \"&language=\".concat(this.language);\n }\n\n if (this.region) {\n url += \"®ion=\".concat(this.region);\n }\n\n if (this.version) {\n url += \"&v=\".concat(this.version);\n }\n\n if (this.mapIds) {\n url += \"&map_ids=\".concat(this.mapIds.join(\",\"));\n }\n\n if (this.authReferrerPolicy) {\n url += \"&auth_referrer_policy=\".concat(this.authReferrerPolicy);\n }\n\n return url;\n }\n }, {\n key: \"deleteScript\",\n value: function deleteScript() {\n var script = document.getElementById(this.id);\n\n if (script) {\n script.remove();\n }\n }\n /**\n * Load the Google Maps JavaScript API script and return a Promise.\n * @deprecated, use importLibrary() instead.\n */\n\n }, {\n key: \"load\",\n value: function load() {\n return this.loadPromise();\n }\n /**\n * Load the Google Maps JavaScript API script and return a Promise.\n *\n * @ignore\n * @deprecated, use importLibrary() instead.\n */\n\n }, {\n key: \"loadPromise\",\n value: function loadPromise() {\n var _this = this;\n\n return new Promise(function (resolve, reject) {\n _this.loadCallback(function (err) {\n if (!err) {\n resolve(window.google);\n } else {\n reject(err.error);\n }\n });\n });\n }\n }, {\n key: \"importLibrary\",\n value: function importLibrary(name) {\n this.execute();\n return google.maps.importLibrary(name);\n }\n /**\n * Load the Google Maps JavaScript API script with a callback.\n * @deprecated, use importLibrary() instead.\n */\n\n }, {\n key: \"loadCallback\",\n value: function loadCallback(fn) {\n this.callbacks.push(fn);\n this.execute();\n }\n /**\n * Set the script on document.\n */\n\n }, {\n key: \"setScript\",\n value: function setScript() {\n var _this2 = this;\n\n var _a, _b;\n\n if (document.getElementById(this.id)) {\n // TODO wrap onerror callback for cases where the script was loaded elsewhere\n this.callback();\n return;\n }\n\n var params = {\n key: this.apiKey,\n channel: this.channel,\n client: this.client,\n libraries: this.libraries.length && this.libraries,\n v: this.version,\n mapIds: this.mapIds,\n language: this.language,\n region: this.region,\n authReferrerPolicy: this.authReferrerPolicy\n }; // keep the URL minimal:\n\n Object.keys(params).forEach( // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function (key) {\n return !params[key] && delete params[key];\n });\n\n if (!((_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.importLibrary)) {\n // tweaked copy of https://developers.google.com/maps/documentation/javascript/load-maps-js-api#dynamic-library-import\n // which also sets the base url, the id, and the nonce\n\n /* eslint-disable */\n (function (g) {\n // @ts-ignore\n var h,\n a,\n k,\n p = \"The Google Maps JavaScript API\",\n c = \"google\",\n l = \"importLibrary\",\n q = \"__ib__\",\n m = document,\n b = window; // @ts-ignore\n\n b = b[c] || (b[c] = {}); // @ts-ignore\n\n var d = b.maps || (b.maps = {}),\n r = new Set(),\n e = new URLSearchParams(),\n u = function u() {\n return (// @ts-ignore\n h || (h = new Promise(function (f, n) {\n return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _a;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return a = m.createElement(\"script\");\n\n case 2:\n a.id = this.id;\n e.set(\"libraries\", _toConsumableArray(r) + \"\"); // @ts-ignore\n\n for (k in g) {\n e.set(k.replace(/[A-Z]/g, function (t) {\n return \"_\" + t[0].toLowerCase();\n }), g[k]);\n }\n\n e.set(\"callback\", c + \".maps.\" + q);\n a.src = this.url + \"?\" + e;\n d[q] = f;\n\n a.onerror = function () {\n return h = n(Error(p + \" could not load.\"));\n }; // @ts-ignore\n\n\n a.nonce = this.nonce || ((_a = m.querySelector(\"script[nonce]\")) === null || _a === void 0 ? void 0 : _a.nonce) || \"\";\n m.head.append(a);\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n }))\n );\n }; // @ts-ignore\n\n\n d[l] ? console.warn(p + \" only loads once. Ignoring:\", g) : d[l] = function (f) {\n for (var _len = arguments.length, n = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n n[_key - 1] = arguments[_key];\n }\n\n return r.add(f) && u().then(function () {\n return d[l].apply(d, [f].concat(n));\n });\n };\n })(params);\n /* eslint-enable */\n\n } // While most libraries populate the global namespace when loaded via bootstrap params,\n // this is not the case for \"marker\" when used with the inline bootstrap loader\n // (and maybe others in the future). So ensure there is an importLibrary for each:\n\n\n var libraryPromises = this.libraries.map(function (library) {\n return _this2.importLibrary(library);\n }); // ensure at least one library, to kick off loading...\n\n if (!libraryPromises.length) {\n libraryPromises.push(this.importLibrary(\"core\"));\n }\n\n Promise.all(libraryPromises).then(function () {\n return _this2.callback();\n }, function (error) {\n var event = new ErrorEvent(\"error\", {\n error: error\n }); // for backwards compat\n\n _this2.loadErrorCallback(event);\n });\n }\n /**\n * Reset the loader state.\n */\n\n }, {\n key: \"reset\",\n value: function reset() {\n this.deleteScript();\n this.done = false;\n this.loading = false;\n this.errors = [];\n this.onerrorEvent = null;\n }\n }, {\n key: \"resetIfRetryingFailed\",\n value: function resetIfRetryingFailed() {\n if (this.failed) {\n this.reset();\n }\n }\n }, {\n key: \"loadErrorCallback\",\n value: function loadErrorCallback(e) {\n var _this3 = this;\n\n this.errors.push(e);\n\n if (this.errors.length <= this.retries) {\n var delay = this.errors.length * Math.pow(2, this.errors.length);\n console.error(\"Failed to load Google Maps script, retrying in \".concat(delay, \" ms.\"));\n setTimeout(function () {\n _this3.deleteScript();\n\n _this3.setScript();\n }, delay);\n } else {\n this.onerrorEvent = e;\n this.callback();\n }\n }\n }, {\n key: \"callback\",\n value: function callback() {\n var _this4 = this;\n\n this.done = true;\n this.loading = false;\n this.callbacks.forEach(function (cb) {\n cb(_this4.onerrorEvent);\n });\n this.callbacks = [];\n }\n }, {\n key: \"execute\",\n value: function execute() {\n this.resetIfRetryingFailed();\n\n if (this.done) {\n this.callback();\n } else {\n // short circuit and warn if google.maps is already loaded\n if (window.google && window.google.maps && window.google.maps.version) {\n console.warn(\"Google Maps already loaded outside @googlemaps/js-api-loader.\" + \"This may result in undesirable behavior as options and script parameters may not match.\");\n this.callback();\n return;\n }\n\n if (this.loading) ;else {\n this.loading = true;\n this.setScript();\n }\n }\n }\n }]);\n\n return Loader;\n}();\n\nexport { DEFAULT_ID, Loader, LoaderStatus };","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","import e, { Component as t } from \"react\";\nimport o from \"prop-types\";\nimport n from \"react-dom\";\nimport r from \"eventemitter3\";\nimport { Loader as i } from \"@googlemaps/js-api-loader\";\nimport s from \"@mapbox/point-geometry\";\n\nfunction a() {\n return (a = Object.assign ? Object.assign.bind() : function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var o = arguments[t];\n\n for (var n in o) {\n Object.prototype.hasOwnProperty.call(o, n) && (e[n] = o[n]);\n }\n }\n\n return e;\n }).apply(this, arguments);\n}\n\nfunction p(e, t) {\n var o, n;\n e.prototype = Object.create(t.prototype), e.prototype.constructor = e, o = e, n = t, (Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {\n return e.__proto__ = t, e;\n })(o, n);\n}\n\nfunction l(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\n\nvar u = {\n width: \"100%\",\n height: \"100%\",\n left: 0,\n top: 0,\n margin: 0,\n padding: 0,\n position: \"absolute\"\n},\n h = function (t) {\n function o() {\n return t.apply(this, arguments) || this;\n }\n\n p(o, t);\n var n = o.prototype;\n return n.shouldComponentUpdate = function () {\n return !1;\n }, n.render = function () {\n return e.createElement(\"div\", {\n ref: this.props.registerChild,\n style: u\n });\n }, o;\n}(t),\n c = function (e) {\n function t(t) {\n var o;\n return (o = e.call(this) || this).gmapInstance = t, o;\n }\n\n p(t, e);\n var o = t.prototype;\n return o.getChildren = function () {\n return this.gmapInstance.props.children;\n }, o.getMousePosition = function () {\n return this.gmapInstance.mouse_;\n }, o.getUpdateCounter = function () {\n return this.gmapInstance.updateCounter_;\n }, o.dispose = function () {\n this.gmapInstance = null, this.removeAllListeners();\n }, t;\n}(r),\n d = function d(e, t) {\n for (var o = a({}, (function (e) {\n if (null == e) throw new TypeError(\"Cannot destructure \" + e);\n }(e), e)), n = 0; n < t.length; n++) {\n var r = t[n];\n r in o && delete o[r];\n }\n\n return o;\n},\n m = Object.prototype.hasOwnProperty;\n\nfunction g(e, t) {\n return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t;\n}\n\nfunction _(e, t) {\n if (g(e, t)) return !0;\n if (\"object\" != typeof e || null === e || \"object\" != typeof t || null === t) return !1;\n var o = Object.keys(e),\n n = Object.keys(t);\n if (o.length !== n.length) return !1;\n\n for (var r = 0; r < o.length; r++) {\n if (!m.call(t, o[r]) || !g(e[o[r]], t[o[r]])) return !1;\n }\n\n return !0;\n}\n\nvar f = {\n width: \"100%\",\n height: \"100%\",\n left: 0,\n top: 0,\n margin: 0,\n padding: 0,\n position: \"absolute\"\n},\n v = {\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n backgroundColor: \"transparent\",\n position: \"absolute\"\n},\n M = function (t) {\n function o(o) {\n var n;\n return (n = t.call(this, o) || this)._getState = function () {\n return {\n children: n.props.dispatcher.getChildren(),\n updateCounter: n.props.dispatcher.getUpdateCounter()\n };\n }, n._onChangeHandler = function () {\n if (n.dimensionsCache_) {\n var e = (n.state.children || []).length,\n t = n._getState();\n\n n.setState(t, function () {\n return (t.children || []).length !== e && n._onMouseChangeHandler();\n });\n }\n }, n._onChildClick = function () {\n n.props.onChildClick && n.hoverChildProps_ && n.props.onChildClick(n.hoverKey_, n.hoverChildProps_);\n }, n._onChildMouseDown = function () {\n n.props.onChildMouseDown && n.hoverChildProps_ && n.props.onChildMouseDown(n.hoverKey_, n.hoverChildProps_);\n }, n._onChildMouseEnter = function (e, t) {\n n.dimensionsCache_ && (n.props.onChildMouseEnter && n.props.onChildMouseEnter(e, t), n.hoverChildProps_ = t, n.hoverKey_ = e, n.setState({\n hoverKey: e\n }));\n }, n._onChildMouseLeave = function () {\n if (n.dimensionsCache_) {\n var e = n.hoverKey_;\n null != e && (n.props.onChildMouseLeave && n.props.onChildMouseLeave(e, n.hoverChildProps_), n.hoverKey_ = null, n.hoverChildProps_ = null, n.setState({\n hoverKey: null\n }));\n }\n }, n._onMouseAllow = function (e) {\n e || n._onChildMouseLeave(), n.allowMouse_ = e;\n }, n._onMouseChangeHandler = function () {\n n.allowMouse_ && n._onMouseChangeHandlerRaf();\n }, n._onMouseChangeHandlerRaf = function () {\n if (n.dimensionsCache_) {\n var t = n.props.dispatcher.getMousePosition();\n\n if (t) {\n var o = [],\n r = n.props.getHoverDistance();\n\n if (e.Children.forEach(n.state.children, function (e, i) {\n if (e && (void 0 !== e.props.latLng || void 0 !== e.props.lat || void 0 !== e.props.lng)) {\n var s = null != e.key ? e.key : i,\n a = n.props.distanceToMouse(n.dimensionsCache_[s], t, e.props);\n a < r && o.push({\n key: s,\n dist: a,\n props: e.props\n });\n }\n }), o.length) {\n o.sort(function (e, t) {\n return e.dist - t.dist;\n });\n var i = o[0].key,\n s = o[0].props;\n n.hoverKey_ !== i && (n._onChildMouseLeave(), n._onChildMouseEnter(i, s));\n } else n._onChildMouseLeave();\n } else n._onChildMouseLeave();\n }\n }, n._getDimensions = function (e) {\n return n.dimensionsCache_[e];\n }, n.dimensionsCache_ = {}, n.hoverKey_ = null, n.hoverChildProps_ = null, n.allowMouse_ = !0, n.state = a({}, n._getState(), {\n hoverKey: null\n }), n;\n }\n\n p(o, t);\n var n = o.prototype;\n return n.componentDidMount = function () {\n this.props.dispatcher.on(\"kON_CHANGE\", this._onChangeHandler), this.props.dispatcher.on(\"kON_MOUSE_POSITION_CHANGE\", this._onMouseChangeHandler), this.props.dispatcher.on(\"kON_CLICK\", this._onChildClick), this.props.dispatcher.on(\"kON_MDOWN\", this._onChildMouseDown);\n }, n.shouldComponentUpdate = function (e, t) {\n return !0 === this.props.experimental ? !_(this.props, e) || !_(d(this.state, [\"hoverKey\"]), d(t, [\"hoverKey\"])) : !_(this.props, e) || !_(this.state, t);\n }, n.componentWillUnmount = function () {\n this.props.dispatcher.removeListener(\"kON_CHANGE\", this._onChangeHandler), this.props.dispatcher.removeListener(\"kON_MOUSE_POSITION_CHANGE\", this._onMouseChangeHandler), this.props.dispatcher.removeListener(\"kON_CLICK\", this._onChildClick), this.props.dispatcher.removeListener(\"kON_MDOWN\", this._onChildMouseDown), this.dimensionsCache_ = null;\n }, n.render = function () {\n var t = this,\n o = this.props.style || f;\n this.dimensionsCache_ = {};\n var n = e.Children.map(this.state.children, function (o, n) {\n if (o) {\n if (void 0 === o.props.latLng && void 0 === o.props.lat && void 0 === o.props.lng) return e.cloneElement(o, {\n $geoService: t.props.geoService,\n $onMouseAllow: t._onMouseAllow,\n $prerender: t.props.prerender\n });\n var r = void 0 !== o.props.latLng ? o.props.latLng : {\n lat: o.props.lat,\n lng: o.props.lng\n },\n i = t.props.insideMapPanes ? t.props.geoService.fromLatLngToDivPixel(r) : t.props.geoService.fromLatLngToCenterPixel(r),\n s = {\n left: i.x,\n top: i.y\n };\n\n if (void 0 !== o.props.seLatLng || void 0 !== o.props.seLat && void 0 !== o.props.seLng) {\n var p = void 0 !== o.props.seLatLng ? o.props.seLatLng : {\n lat: o.props.seLat,\n lng: o.props.seLng\n },\n l = t.props.insideMapPanes ? t.props.geoService.fromLatLngToDivPixel(p) : t.props.geoService.fromLatLngToCenterPixel(p);\n s.width = l.x - i.x, s.height = l.y - i.y;\n }\n\n var u = t.props.geoService.fromLatLngToContainerPixel(r),\n h = null != o.key ? o.key : n;\n return t.dimensionsCache_[h] = a({\n x: u.x,\n y: u.y\n }, r), e.createElement(\"div\", {\n key: h,\n style: a({}, v, s),\n className: o.props.$markerHolderClassName\n }, e.cloneElement(o, {\n $hover: h === t.state.hoverKey,\n $getDimensions: t._getDimensions,\n $dimensionKey: h,\n $geoService: t.props.geoService,\n $onMouseAllow: t._onMouseAllow,\n $prerender: t.props.prerender\n }));\n }\n });\n return e.createElement(\"div\", {\n style: o\n }, n);\n }, o;\n}(t);\n\nM.propTypes = {\n geoService: o.any,\n style: o.any,\n distanceToMouse: o.func,\n dispatcher: o.any,\n onChildClick: o.func,\n onChildMouseDown: o.func,\n onChildMouseLeave: o.func,\n onChildMouseEnter: o.func,\n getHoverDistance: o.func,\n insideMapPanes: o.bool,\n prerender: o.bool\n}, M.defaultProps = {\n insideMapPanes: !1,\n prerender: !1\n};\nvar y = {\n width: \"50%\",\n height: \"50%\",\n left: \"50%\",\n top: \"50%\",\n margin: 0,\n padding: 0,\n position: \"absolute\"\n};\n\nfunction C(t) {\n return e.createElement(\"div\", {\n style: y\n }, e.createElement(M, a({}, t, {\n prerender: !0\n })));\n}\n\nvar w,\n L,\n b,\n D = [\"key\"],\n z = new Promise(function (e) {\n b = e;\n}),\n O = function O(e, t) {\n if (!e) return z;\n if (L) return L;\n e.libraries || (e.libraries = []);\n var o = [].concat(e.libraries);\n\n if (t && (0 !== o.length && o.includes(\"visualization\") || o.push(\"visualization\"), console.warn(\"heatmapLibrary will be deprecated in the future. Please use { libraries: ['visualization'] } in bootstrapURLKeys property instead\")), \"production\" !== process.env.NODE_ENV && Object.keys(e).indexOf(\"callback\") > -1) {\n var n = '\"callback\" key in bootstrapURLKeys is not allowed,\\n use onGoogleApiLoaded property instead';\n throw console.error(n), new Error(n);\n }\n\n if (\"undefined\" == typeof window) throw new Error(\"google map cannot be loaded outside browser env\");\n\n var r = e.key,\n s = function (e, t) {\n if (null == e) return {};\n var o,\n n,\n r = {},\n i = Object.keys(e);\n\n for (n = 0; n < i.length; n++) {\n t.indexOf(o = i[n]) >= 0 || (r[o] = e[o]);\n }\n\n return r;\n }(e, D);\n\n return w || (w = new i(a({\n apiKey: r || \"\"\n }, s, {\n libraries: o\n }))), L = w.load().then(function () {\n return b(window.google.maps), window.google.maps;\n }), b(L), L;\n};\n\nfunction k(e, t, o) {\n var n = o - t;\n return e === o ? e : ((e - t) % n + n) % n + t;\n}\n\nvar x = function () {\n function e(e, t) {\n if (isNaN(e) || isNaN(t)) throw new Error(\"Invalid LatLng object: (\" + e + \", \" + t + \")\");\n this.lat = +e, this.lng = +t;\n }\n\n return e.prototype.wrap = function () {\n return new e(this.lat, k(this.lng, -180, 180));\n }, e;\n}();\n\nx.convert = function (e) {\n return e instanceof x ? e : Array.isArray(e) ? new x(e[0], e[1]) : \"lng\" in e && \"lat\" in e ? new x(e.lat, e.lng) : e;\n};\n\nvar S = function () {\n function e(e, t, o) {\n this.tileSize = e || 512, this._minZoom = t || 0, this._maxZoom = o || 52, this.latRange = [-85.05113, 85.05113], this.width = 0, this.height = 0, this.zoom = 0, this.center = new x(0, 0), this.angle = 0;\n }\n\n var t,\n o,\n n = e.prototype;\n return n.zoomScale = function (e) {\n return Math.pow(2, e);\n }, n.scaleZoom = function (e) {\n return Math.log(e) / Math.LN2;\n }, n.project = function (e, t) {\n return new s(this.lngX(e.lng, t), this.latY(e.lat, t));\n }, n.unproject = function (e, t) {\n return new x(this.yLat(e.y, t), this.xLng(e.x, t));\n }, n.lngX = function (e, t) {\n return (180 + e) * (t || this.worldSize) / 360;\n }, n.latY = function (e, t) {\n return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 360))) * (t || this.worldSize) / 360;\n }, n.xLng = function (e, t) {\n return 360 * e / (t || this.worldSize) - 180;\n }, n.yLat = function (e, t) {\n return 360 / Math.PI * Math.atan(Math.exp((180 - 360 * e / (t || this.worldSize)) * Math.PI / 180)) - 90;\n }, n.locationPoint = function (e) {\n var t = this.project(e);\n return this.centerPoint._sub(this.point._sub(t)._rotate(this.angle));\n }, n.pointLocation = function (e) {\n var t = this.centerPoint._sub(e)._rotate(-this.angle);\n\n return this.unproject(this.point.sub(t));\n }, t = e, (o = [{\n key: \"minZoom\",\n get: function get() {\n return this._minZoom;\n },\n set: function set(e) {\n this._minZoom = e, this.zoom = Math.max(this.zoom, e);\n }\n }, {\n key: \"maxZoom\",\n get: function get() {\n return this._maxZoom;\n },\n set: function set(e) {\n this._maxZoom = e, this.zoom = Math.min(this.zoom, e);\n }\n }, {\n key: \"worldSize\",\n get: function get() {\n return this.tileSize * this.scale;\n }\n }, {\n key: \"centerPoint\",\n get: function get() {\n return new s(0, 0);\n }\n }, {\n key: \"size\",\n get: function get() {\n return new s(this.width, this.height);\n }\n }, {\n key: \"bearing\",\n get: function get() {\n return -this.angle / Math.PI * 180;\n },\n set: function set(e) {\n this.angle = -k(e, -180, 180) * Math.PI / 180;\n }\n }, {\n key: \"zoom\",\n get: function get() {\n return this._zoom;\n },\n set: function set(e) {\n var t = Math.min(Math.max(e, this.minZoom), this.maxZoom);\n this._zoom = t, this.scale = this.zoomScale(t), this.tileZoom = Math.floor(t), this.zoomFraction = t - this.tileZoom;\n }\n }, {\n key: \"x\",\n get: function get() {\n return this.lngX(this.center.lng);\n }\n }, {\n key: \"y\",\n get: function get() {\n return this.latY(this.center.lat);\n }\n }, {\n key: \"point\",\n get: function get() {\n return new s(this.x, this.y);\n }\n }]) && function (e, t) {\n for (var o = 0; o < t.length; o++) {\n var n = t[o];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, \"symbol\" == typeof (r = function (e, t) {\n if (\"object\" != typeof e || null === e) return e;\n var o = e[Symbol.toPrimitive];\n\n if (void 0 !== o) {\n var n = o.call(e, \"string\");\n if (\"object\" != typeof n) return n;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n\n return String(e);\n }(n.key)) ? r : String(r), n);\n }\n\n var r;\n }(t.prototype, o), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e;\n}(),\n T = function () {\n function e(e) {\n this.hasSize_ = !1, this.hasView_ = !1, this.transform_ = new S(e || 512);\n }\n\n var t = e.prototype;\n return t.setView = function (e, t, o) {\n this.transform_.center = x.convert(e), this.transform_.zoom = +t, this.transform_.bearing = +o, this.hasView_ = !0;\n }, t.setViewSize = function (e, t) {\n this.transform_.width = e, this.transform_.height = t, this.hasSize_ = !0;\n }, t.setMapCanvasProjection = function (e, t) {\n this.maps_ = e, this.mapCanvasProjection_ = t;\n }, t.canProject = function () {\n return this.hasSize_ && this.hasView_;\n }, t.hasSize = function () {\n return this.hasSize_;\n }, t.fromLatLngToCenterPixel = function (e) {\n return this.transform_.locationPoint(x.convert(e));\n }, t.fromLatLngToDivPixel = function (e) {\n if (this.mapCanvasProjection_) {\n var t = new this.maps_.LatLng(e.lat, e.lng);\n return this.mapCanvasProjection_.fromLatLngToDivPixel(t);\n }\n\n return this.fromLatLngToCenterPixel(e);\n }, t.fromLatLngToContainerPixel = function (e) {\n if (this.mapCanvasProjection_) {\n var t = new this.maps_.LatLng(e.lat, e.lng);\n return this.mapCanvasProjection_.fromLatLngToContainerPixel(t);\n }\n\n var o = this.fromLatLngToCenterPixel(e);\n return o.x -= this.transform_.worldSize * Math.round(o.x / this.transform_.worldSize), o.x += this.transform_.width / 2, o.y += this.transform_.height / 2, o;\n }, t.fromContainerPixelToLatLng = function (e) {\n if (this.mapCanvasProjection_) {\n var t = this.mapCanvasProjection_.fromContainerPixelToLatLng(e);\n return {\n lat: t.lat(),\n lng: t.lng()\n };\n }\n\n var o = a({}, e);\n o.x -= this.transform_.width / 2, o.y -= this.transform_.height / 2;\n var n = this.transform_.pointLocation(s.convert(o));\n return n.lng -= 360 * Math.round(n.lng / 360), n;\n }, t.getWidth = function () {\n return this.transform_.width;\n }, t.getHeight = function () {\n return this.transform_.height;\n }, t.getZoom = function () {\n return this.transform_.zoom;\n }, t.getCenter = function () {\n return this.transform_.pointLocation({\n x: 0,\n y: 0\n });\n }, t.getBounds = function (e, t) {\n var o = e && e[0] || 0,\n n = e && e[1] || 0,\n r = e && e[2] || 0,\n i = e && e[3] || 0;\n\n if (this.getWidth() - n - i > 0 && this.getHeight() - o - r > 0) {\n var a = this.transform_.pointLocation(s.convert({\n x: i - this.getWidth() / 2,\n y: o - this.getHeight() / 2\n })),\n p = this.transform_.pointLocation(s.convert({\n x: this.getWidth() / 2 - n,\n y: this.getHeight() / 2 - r\n })),\n l = [a.lat, a.lng, p.lat, p.lng, p.lat, a.lng, a.lat, p.lng];\n return t && (l = l.map(function (e) {\n return Math.round(e * t) / t;\n })), l;\n }\n\n return [0, 0, 0, 0];\n }, e;\n}();\n\nfunction E(e) {\n if (window.requestAnimationFrame) return window.requestAnimationFrame(e);\n var t = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;\n return t ? t(e) : window.setTimeout(e, 1e3 / 60);\n}\n\nvar P = Math.log2 ? Math.log2 : function (e) {\n return Math.log(e) / Math.LN2;\n};\n\nfunction A(e, t) {\n return Object.keys(e).reduce(function (o, n) {\n return t(e[n]) && (o[n] = e[n]), o;\n }, {});\n}\n\nvar I = function I(e) {\n if (null !== e && \"object\" == typeof e) {\n if (0 === Object.keys(e).length) return !0;\n } else if (null == e || \"\" === e) return !0;\n\n return !1;\n},\n N = Object.prototype.toString;\n\nfunction Z(e) {\n return \"number\" == typeof e || function (e) {\n return !!e && \"object\" == typeof e;\n }(e) && \"[object Number]\" === N.call(e);\n}\n\nvar j = null;\n\nfunction U() {\n if (j) return j;\n\n if (\"undefined\" != typeof navigator) {\n var e = navigator.userAgent.indexOf(\"MSIE\") > -1,\n t = navigator.userAgent.indexOf(\"Firefox\") > -1,\n o = navigator.userAgent.toLowerCase().indexOf(\"op\") > -1,\n n = navigator.userAgent.indexOf(\"Chrome\") > -1,\n r = navigator.userAgent.indexOf(\"Safari\") > -1;\n return n && r && (r = !1), n && o && (n = !1), j = {\n isExplorer: e,\n isFirefox: t,\n isOpera: o,\n isChrome: n,\n isSafari: r\n };\n }\n\n return j = {\n isChrome: !0,\n isExplorer: !1,\n isFirefox: !1,\n isOpera: !1,\n isSafari: !1\n };\n}\n\nvar H = function H(e) {\n return Function.prototype.toString.call(e);\n};\n\nfunction K(e) {\n if (!e || \"object\" != typeof e) return !1;\n var t = \"function\" == typeof e.constructor ? Object.getPrototypeOf(e) : Object.prototype;\n if (null === t) return !0;\n var o = t.constructor;\n return \"function\" == typeof o && o instanceof o && H(o) === H(Object);\n}\n\nfunction R(e, t, o, n) {\n e.addEventListener(t, o, function () {\n var e = !1;\n\n try {\n var t = Object.defineProperty({}, \"passive\", {\n get: function get() {\n e = !0;\n }\n });\n window.addEventListener(\"test\", t, t), window.removeEventListener(\"test\", t, t);\n } catch (t) {\n e = !1;\n }\n\n return e;\n }() ? {\n capture: n,\n passive: !0\n } : n);\n}\n\nvar G,\n B = !(\"undefined\" == typeof window || !window.document || !window.document.createElement);\nG = B ? window : \"undefined\" != typeof self ? self : void 0;\nvar W,\n V = \"undefined\" != typeof document && document.attachEvent,\n F = !1;\n\nif (B && !V) {\n var $ = function () {\n var e = G.requestAnimationFrame || G.mozRequestAnimationFrame || G.webkitRequestAnimationFrame || function (e) {\n return G.setTimeout(e, 20);\n };\n\n return function (t) {\n return e(t);\n };\n }(),\n q = (W = G.cancelAnimationFrame || G.mozCancelAnimationFrame || G.webkitCancelAnimationFrame || G.clearTimeout, function (e) {\n return W(e);\n }),\n Y = function Y(e) {\n var t = e.__resizeTriggers__,\n o = t.firstElementChild,\n n = t.lastElementChild,\n r = o.firstElementChild;\n n.scrollLeft = n.scrollWidth, n.scrollTop = n.scrollHeight, r.style.width = o.offsetWidth + 1 + \"px\", r.style.height = o.offsetHeight + 1 + \"px\", o.scrollLeft = o.scrollWidth, o.scrollTop = o.scrollHeight;\n },\n X = function X(e) {\n var t = this;\n Y(this), this.__resizeRAF__ && q(this.__resizeRAF__), this.__resizeRAF__ = $(function () {\n (function (e) {\n return e.offsetWidth != e.__resizeLast__.width || e.offsetHeight != e.__resizeLast__.height;\n })(t) && (t.__resizeLast__.width = t.offsetWidth, t.__resizeLast__.height = t.offsetHeight, t.__resizeListeners__.forEach(function (o) {\n o.call(t, e);\n }));\n });\n },\n J = !1,\n Q = \"\",\n ee = \"animationstart\",\n te = \"Webkit Moz O ms\".split(\" \"),\n oe = \"webkitAnimationStart animationstart oAnimationStart MSAnimationStart\".split(\" \");\n\n if (B) {\n var ne = document.createElement(\"fakeelement\");\n if (void 0 !== ne.style.animationName && (J = !0), !1 === J) for (var re = 0; re < te.length; re++) {\n if (void 0 !== ne.style[te[re] + \"AnimationName\"]) {\n Q = \"-\" + te[re].toLowerCase() + \"-\", ee = oe[re], J = !0;\n break;\n }\n }\n }\n\n var ie = \"resizeanim\",\n se = \"@\" + Q + \"keyframes \" + ie + \" { from { opacity: 0; } to { opacity: 0; } } \",\n ae = Q + \"animation: 1ms \" + ie + \"; \";\n}\n\nvar pe = void 0 !== n.createPortal,\n le = pe ? n.createPortal : n.unstable_renderSubtreeIntoContainer,\n ue = function ue(e) {\n return K(e) ? e : {\n lat: e[0],\n lng: e[1]\n };\n},\n he = function he(e, t) {\n return \"production\" !== process.env.NODE_ENV && e < t && console.warn(\"GoogleMap: minZoom option is less than recommended minZoom option for your map sizes.\\noverrided to value \" + t), t < e ? e : t;\n},\n ce = function (t) {\n function o(o) {\n var r;\n\n if ((r = t.call(this, o) || this)._getMinZoom = function () {\n if (r.geoService_.getWidth() > 0 || r.geoService_.getHeight() > 0) {\n var e = Math.ceil(r.geoService_.getWidth() / 256) + 2,\n t = Math.ceil(r.geoService_.getHeight() / 256) + 2,\n o = Math.max(e, t);\n return Math.ceil(P(o));\n }\n\n return 3;\n }, r._computeMinZoom = function (e) {\n return I(e) ? r._getMinZoom() : e;\n }, r._mapDomResizeCallback = function () {\n if (r.resetSizeOnIdle_ = !0, r.maps_) {\n var e = r.props.center || r.props.defaultCenter,\n t = r.map_.getCenter();\n r.maps_.event.trigger(r.map_, \"resize\"), r.map_.setCenter(r.props.resetBoundsOnResize ? e : t);\n }\n }, r._setLayers = function (e) {\n e.forEach(function (e) {\n r.layers_[e] = new r.maps_[e](), r.layers_[e].setMap(r.map_);\n });\n }, r._renderPortal = function () {\n return e.createElement(M, {\n experimental: r.props.experimental,\n onChildClick: r._onChildClick,\n onChildMouseDown: r._onChildMouseDown,\n onChildMouseEnter: r._onChildMouseEnter,\n onChildMouseLeave: r._onChildMouseLeave,\n geoService: r.geoService_,\n insideMapPanes: !0,\n distanceToMouse: r.props.distanceToMouse,\n getHoverDistance: r._getHoverDistance,\n dispatcher: r.markersDispatcher_\n });\n }, r._initMap = function () {\n if (!r.initialized_) {\n r.initialized_ = !0;\n var e = ue(r.props.center || r.props.defaultCenter);\n r.geoService_.setView(e, r.props.zoom || r.props.defaultZoom, 0), r._onBoundsChanged();\n var t = a({}, r.props.apiKey && {\n key: r.props.apiKey\n }, r.props.bootstrapURLKeys);\n r.props.googleMapLoader(t, r.props.heatmapLibrary).then(function (e) {\n if (r.mounted_) {\n var t,\n o,\n i = r.geoService_.getCenter(),\n s = {\n zoom: r.props.zoom || r.props.defaultZoom,\n center: new e.LatLng(i.lat, i.lng)\n };\n r.props.heatmap.positions && (Object.assign(l(r), {\n heatmap: (t = e, o = r.props.heatmap, new t.visualization.HeatmapLayer({\n data: o.positions.reduce(function (e, o) {\n var n = o.weight,\n r = void 0 === n ? 1 : n;\n return e.push({\n location: new t.LatLng(o.lat, o.lng),\n weight: r\n }), e;\n }, [])\n }))\n }), function (e, t) {\n var o = t.options,\n n = void 0 === o ? {} : o;\n Object.keys(n).map(function (t) {\n return e.set(t, n[t]);\n });\n }(r.heatmap, r.props.heatmap));\n\n var p = A(e, K),\n u = \"function\" == typeof r.props.options ? r.props.options(p) : r.props.options,\n h = !I(r.props.draggable) && {\n draggable: r.props.draggable\n },\n c = r._computeMinZoom(u.minZoom);\n\n r.minZoom_ = c;\n var d = a({}, {\n overviewMapControl: !1,\n streetViewControl: !1,\n rotateControl: !0,\n mapTypeControl: !1,\n styles: [{\n featureType: \"poi\",\n elementType: \"labels\",\n stylers: [{\n visibility: \"off\"\n }]\n }],\n minZoom: 3\n }, {\n minZoom: c\n }, u, s);\n r.defaultDraggableOption_ = I(d.draggable) ? r.defaultDraggableOption_ : d.draggable;\n var m = a({}, d, h);\n m.minZoom = he(m.minZoom, c);\n var g = new e.Map(n.findDOMNode(r.googleMapDom_), m);\n r.map_ = g, r.maps_ = e, r._setLayers(r.props.layerTypes);\n\n var _ = e.version.match(/^3\\.(\\d+)\\./),\n f = _ && Number(_[1]),\n v = l(r),\n M = Object.assign(new e.OverlayView(), {\n onAdd: function onAdd() {\n var t = \"undefined\" != typeof screen ? screen.width + \"px\" : \"2000px\",\n o = \"undefined\" != typeof screen ? screen.height + \"px\" : \"2000px\",\n n = document.createElement(\"div\");\n\n if (n.style.backgroundColor = \"transparent\", n.style.position = \"absolute\", n.style.left = \"0px\", n.style.top = \"0px\", n.style.width = t, n.style.height = o, v.props.overlayViewDivStyle) {\n var r = v.props.overlayViewDivStyle;\n \"object\" == typeof r && Object.keys(r).forEach(function (e) {\n n.style[e] = r[e];\n });\n }\n\n this.getPanes().overlayMouseTarget.appendChild(n), v.geoService_.setMapCanvasProjection(e, M.getProjection()), pe ? v.setState({\n overlay: n\n }) : le(v, v._renderPortal(), n, function () {\n return v.setState({\n overlay: n\n });\n });\n },\n onRemove: function onRemove() {\n var e = v.state.overlay;\n e && !pe && n.unmountComponentAtNode(e), v.setState({\n overlay: null\n });\n },\n draw: function draw() {\n if (v.updateCounter_++, v._onBoundsChanged(g, e, !v.props.debounced), v.googleApiLoadedCalled_ || (v._onGoogleApiLoaded({\n map: g,\n maps: e,\n ref: v.googleMapDom_\n }), v.googleApiLoadedCalled_ = !0), v.mouse_) {\n var t = v.geoService_.fromContainerPixelToLatLng(v.mouse_);\n v.mouse_.lat = t.lat, v.mouse_.lng = t.lng;\n }\n\n v._onChildMouseMove(), v.markersDispatcher_ && (v.markersDispatcher_.emit(\"kON_CHANGE\"), v.fireMouseEventOnIdle_ && v.markersDispatcher_.emit(\"kON_MOUSE_POSITION_CHANGE\"));\n }\n });\n\n r.overlay_ = M, M.setMap(g), r.props.heatmap.positions && r.heatmap.setMap(g), r.props.onTilesLoaded && e.event.addListener(g, \"tilesloaded\", function () {\n v._onTilesLoaded();\n }), e.event.addListener(g, \"zoom_changed\", function () {\n v.geoService_.getZoom() !== g.getZoom() && (v.zoomAnimationInProgress_ || (v.zoomAnimationInProgress_ = !0, v._onZoomAnimationStart(g.zoom)), f < 32) && (new Date().getTime() - r.zoomControlClickTime_ < 300 ? E(function () {\n return E(function () {\n v.updateCounter_++, v._onBoundsChanged(g, e);\n });\n }) : (v.updateCounter_++, v._onBoundsChanged(g, e)));\n }), e.event.addListener(g, \"idle\", function () {\n if (r.resetSizeOnIdle_) {\n r._setViewSize();\n\n var t = r._computeMinZoom(u.minZoom);\n\n t !== r.minZoom_ && (r.minZoom_ = t, g.setOptions({\n minZoom: t\n })), r.resetSizeOnIdle_ = !1;\n }\n\n v.zoomAnimationInProgress_ && (v.zoomAnimationInProgress_ = !1, v._onZoomAnimationEnd(g.zoom)), v.updateCounter_++, v._onBoundsChanged(g, e), v.dragTime_ = 0, v.markersDispatcher_ && v.markersDispatcher_.emit(\"kON_CHANGE\");\n }), e.event.addListener(g, \"mouseover\", function () {\n v.mouseInMap_ = !0;\n }), e.event.addListener(g, \"click\", function () {\n v.mouseInMap_ = !0;\n }), e.event.addListener(g, \"mouseout\", function () {\n v.mouseInMap_ = !1, v.mouse_ = null, v.markersDispatcher_.emit(\"kON_MOUSE_POSITION_CHANGE\");\n }), e.event.addListener(g, \"drag\", function () {\n v.dragTime_ = new Date().getTime(), v._onDrag(g);\n }), e.event.addListener(g, \"dragend\", function () {\n var t = e.event.addListener(g, \"idle\", function () {\n e.event.removeListener(t), v._onDragEnd(g);\n });\n }), e.event.addListener(g, \"maptypeid_changed\", function () {\n v._onMapTypeIdChange(g.getMapTypeId());\n });\n }\n }).catch(function (e) {\n throw r._onGoogleApiLoaded({\n map: null,\n maps: null,\n ref: r.googleMapDom_\n }), console.error(e), e;\n });\n }\n }, r._onGoogleApiLoaded = function () {\n var e;\n r.props.onGoogleApiLoaded && (\"production\" !== process.env.NODE_ENV && !0 !== r.props.yesIWantToUseGoogleMapApiInternals && console.warn(\"GoogleMap: Usage of internal api objects is dangerous and can cause a lot of issues.\\nTo hide this warning add yesIWantToUseGoogleMapApiInternals={true} to 50 && (r.boundingRect_ = e.currentTarget.getBoundingClientRect()), r.mouseMoveTime_ = t;\n var o = e.clientX - r.boundingRect_.left,\n n = e.clientY - r.boundingRect_.top;\n r.mouse_ || (r.mouse_ = {\n x: 0,\n y: 0,\n lat: 0,\n lng: 0\n }), r.mouse_.x = o, r.mouse_.y = n;\n var i = r.geoService_.fromContainerPixelToLatLng(r.mouse_);\n r.mouse_.lat = i.lat, r.mouse_.lng = i.lng, r._onChildMouseMove(), t - r.dragTime_ < 100 ? r.fireMouseEventOnIdle_ = !0 : (r.markersDispatcher_.emit(\"kON_MOUSE_POSITION_CHANGE\"), r.fireMouseEventOnIdle_ = !1);\n }\n }, r._onClick = function () {\n var e;\n return r.props.onClick && !r.childMouseDownArgs_ && new Date().getTime() - r.childMouseUpTime_ > 300 && 0 === r.dragTime_ && (e = r.props).onClick.apply(e, arguments);\n }, r._onMapClick = function (e) {\n r.markersDispatcher_ && (r._onMapMouseMove(e), new Date().getTime() - r.dragTime_ > 100 && (r.mouse_ && r._onClick(a({}, r.mouse_, {\n event: e\n })), r.markersDispatcher_.emit(\"kON_CLICK\", e)));\n }, r._onMapMouseDownNative = function (e) {\n r.mouseInMap_ && r._onMapMouseDown(e);\n }, r._onMapMouseDown = function (e) {\n r.markersDispatcher_ && new Date().getTime() - r.dragTime_ > 100 && (r._onMapMouseMove(e), r.markersDispatcher_.emit(\"kON_MDOWN\", e));\n }, r._onMapMouseDownCapture = function () {\n U().isChrome && (r.zoomControlClickTime_ = new Date().getTime());\n }, r._onKeyDownCapture = function () {\n U().isChrome && (r.zoomControlClickTime_ = new Date().getTime());\n }, r._isCenterDefined = function (e) {\n return e && (K(e) && Z(e.lat) && Z(e.lng) || 2 === e.length && Z(e[0]) && Z(e[1]));\n }, r._onBoundsChanged = function (e, t, o) {\n if (e) {\n var n = e.getCenter();\n r.geoService_.setView([n.lat(), n.lng()], e.getZoom(), 0);\n }\n\n if ((r.props.onChange || r.props.onBoundsChange) && r.geoService_.canProject()) {\n var i = r.geoService_.getZoom(),\n s = r.geoService_.getBounds(),\n p = r.geoService_.getCenter();\n\n if (!function (e, t, o) {\n if (e && t) {\n for (var n = 0; n !== e.length; ++n) {\n if (Math.abs(e[n] - t[n]) > 1e-5) return !1;\n }\n\n return !0;\n }\n\n return !1;\n }(s, r.prevBounds_) && !1 !== o) {\n var l = r.geoService_.getBounds(r.props.margin);\n r.props.onBoundsChange && r.props.onBoundsChange(r.centerIsObject_ ? a({}, p) : [p.lat, p.lng], i, s, l), r.props.onChange && r.props.onChange({\n center: a({}, p),\n zoom: i,\n bounds: {\n nw: {\n lat: s[0],\n lng: s[1]\n },\n se: {\n lat: s[2],\n lng: s[3]\n },\n sw: {\n lat: s[4],\n lng: s[5]\n },\n ne: {\n lat: s[6],\n lng: s[7]\n }\n },\n marginBounds: {\n nw: {\n lat: l[0],\n lng: l[1]\n },\n se: {\n lat: l[2],\n lng: l[3]\n },\n sw: {\n lat: l[4],\n lng: l[5]\n },\n ne: {\n lat: l[6],\n lng: l[7]\n }\n },\n size: r.geoService_.hasSize() ? {\n width: r.geoService_.getWidth(),\n height: r.geoService_.getHeight()\n } : {\n width: 0,\n height: 0\n }\n }), r.prevBounds_ = s;\n }\n }\n }, r._registerChild = function (e) {\n r.googleMapDom_ = e;\n }, r.mounted_ = !1, r.initialized_ = !1, r.googleApiLoadedCalled_ = !1, r.map_ = null, r.maps_ = null, r.prevBounds_ = null, r.heatmap = null, r.layers_ = {}, r.mouse_ = null, r.mouseMoveTime_ = 0, r.boundingRect_ = null, r.mouseInMap_ = !0, r.dragTime_ = 0, r.fireMouseEventOnIdle_ = !1, r.updateCounter_ = 0, r.markersDispatcher_ = new c(l(r)), r.geoService_ = new T(256), r.centerIsObject_ = K(r.props.center), r.minZoom_ = 3, r.defaultDraggableOption_ = !0, r.zoomControlClickTime_ = 0, r.childMouseDownArgs_ = null, r.childMouseUpTime_ = 0, r.googleMapDom_ = null, \"production\" !== process.env.NODE_ENV && (r.props.apiKey && console.warn(\"GoogleMap: apiKey is deprecated, use bootstrapURLKeys={{key: YOUR_API_KEY}} instead.\"), r.props.onBoundsChange && console.warn(\"GoogleMap: onBoundsChange is deprecated, use onChange({center, zoom, bounds, ...other}) instead.\"), I(r.props.center) && I(r.props.defaultCenter) && console.warn(\"GoogleMap: center or defaultCenter property must be defined\"), I(r.props.zoom) && I(r.props.defaultZoom) && console.warn(\"GoogleMap: zoom or defaultZoom property must be defined\")), r._isCenterDefined(r.props.center || r.props.defaultCenter)) {\n var i = ue(r.props.center || r.props.defaultCenter);\n r.geoService_.setView(i, r.props.zoom || r.props.defaultZoom, 0);\n }\n\n return r.zoomAnimationInProgress_ = !1, r.state = {\n overlay: null\n }, r;\n }\n\n p(o, t);\n var r = o.prototype;\n return r.componentDidMount = function () {\n var e = this;\n this.mounted_ = !0, this.markersDispatcher_ = new c(this), R(window, \"resize\", this._onWindowResize, !1), R(window, \"keydown\", this._onKeyDownCapture, !0);\n var t = n.findDOMNode(this.googleMapDom_);\n t && R(t, \"mousedown\", this._onMapMouseDownNative, !0), R(window, \"mouseup\", this._onChildMouseUp, !1);\n var o = a({}, this.props.apiKey && {\n key: this.props.apiKey\n }, this.props.bootstrapURLKeys);\n this.props.googleMapLoader(o, this.props.heatmapLibrary), setTimeout(function () {\n e._setViewSize(), e._isCenterDefined(e.props.center || e.props.defaultCenter) && e._initMap();\n }, 0, this), this.props.resetBoundsOnResize && function (e, t) {\n if (void 0 === e.parentNode) {\n var o = document.createElement(\"div\");\n e.parentNode = o;\n }\n\n e = e.parentNode, V ? e.attachEvent(\"onresize\", t) : (e.__resizeTriggers__ || (\"static\" == getComputedStyle(e).position && (e.style.position = \"relative\"), function () {\n if (!F) {\n var e = (se || \"\") + \".resize-triggers { \" + (ae || \"\") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',\n t = document.head || document.getElementsByTagName(\"head\")[0],\n o = document.createElement(\"style\");\n o.type = \"text/css\", o.styleSheet ? o.styleSheet.cssText = e : o.appendChild(document.createTextNode(e)), t.appendChild(o), F = !0;\n }\n }(), e.__resizeLast__ = {}, e.__resizeListeners__ = [], (e.__resizeTriggers__ = document.createElement(\"div\")).className = \"resize-triggers\", e.__resizeTriggers__.innerHTML = '
', e.appendChild(e.__resizeTriggers__), Y(e), R(e, \"scroll\", X, !0), ee && e.__resizeTriggers__.addEventListener(ee, function (t) {\n t.animationName == ie && Y(e);\n })), e.__resizeListeners__.push(t));\n }(t, this._mapDomResizeCallback);\n }, r.shouldComponentUpdate = function (e, t) {\n return !_(d(this.props, [\"draggable\"]), d(e, [\"draggable\"])) || !_(this.state, t);\n }, r.componentDidUpdate = function (e) {\n var t = this;\n\n if (\"production\" !== process.env.NODE_ENV && (_(e.defaultCenter, this.props.defaultCenter) || console.warn(\"GoogleMap: defaultCenter prop changed. You can't change default props.\"), _(e.defaultZoom, this.props.defaultZoom) || console.warn(\"GoogleMap: defaultZoom prop changed. You can't change default props.\")), !this._isCenterDefined(e.center) && this._isCenterDefined(this.props.center) && setTimeout(function () {\n return t._initMap();\n }, 0), this.map_) {\n var o = this.geoService_.getCenter();\n\n if (this._isCenterDefined(this.props.center)) {\n var n = ue(this.props.center),\n r = this._isCenterDefined(e.center) ? ue(e.center) : null;\n (!r || Math.abs(n.lat - r.lat) + Math.abs(n.lng - r.lng) > 1e-5) && Math.abs(n.lat - o.lat) + Math.abs(n.lng - o.lng) > 1e-5 && this.map_.panTo({\n lat: n.lat,\n lng: n.lng\n });\n }\n\n if (I(this.props.zoom) || Math.abs(this.props.zoom - e.zoom) > 0 && this.map_.setZoom(this.props.zoom), !I(e.draggable) && I(this.props.draggable) ? this.map_.setOptions({\n draggable: this.defaultDraggableOption_\n }) : _(e.draggable, this.props.draggable) || this.map_.setOptions({\n draggable: this.props.draggable\n }), !I(this.props.options) && !_(e.options, this.props.options)) {\n var i = A(this.maps_, K),\n s = \"function\" == typeof this.props.options ? this.props.options(i) : this.props.options;\n\n if (\"minZoom\" in (s = d(s, [\"zoom\", \"center\", \"draggable\"]))) {\n var a = this._computeMinZoom(s.minZoom);\n\n s.minZoom = he(s.minZoom, a);\n }\n\n this.map_.setOptions(s);\n }\n\n _(this.props.layerTypes, e.layerTypes) || (Object.keys(this.layers_).forEach(function (e) {\n t.layers_[e].setMap(null), delete t.layers_[e];\n }), this._setLayers(this.props.layerTypes)), this.heatmap && !_(this.props.heatmap.positions, e.heatmap.positions) && this.heatmap.setData(this.props.heatmap.positions.map(function (e) {\n return {\n location: new t.maps_.LatLng(e.lat, e.lng),\n weight: e.weight\n };\n })), this.heatmap && !_(this.props.heatmap.options, e.heatmap.options) && Object.keys(this.props.heatmap.options).forEach(function (e) {\n t.heatmap.set(e, t.props.heatmap.options[e]);\n });\n }\n\n this.markersDispatcher_.emit(\"kON_CHANGE\"), _(this.props.hoverDistance, e.hoverDistance) || this.markersDispatcher_.emit(\"kON_MOUSE_POSITION_CHANGE\");\n }, r.componentWillUnmount = function () {\n this.mounted_ = !1;\n var e,\n t,\n o = n.findDOMNode(this.googleMapDom_);\n o && o.removeEventListener(\"mousedown\", this._onMapMouseDownNative, !0), window.removeEventListener(\"resize\", this._onWindowResize), window.removeEventListener(\"keydown\", this._onKeyDownCapture), window.removeEventListener(\"mouseup\", this._onChildMouseUp, !1), this.props.resetBoundsOnResize && (t = this._mapDomResizeCallback, e = (e = o).parentNode, V ? e.detachEvent(\"onresize\", t) : (e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t), 1), e.__resizeListeners__.length || (e.removeEventListener(\"scroll\", X), e.__resizeTriggers__ = !e.removeChild(e.__resizeTriggers__)))), this.overlay_ && this.overlay_.setMap(null), this.maps_ && this.map_ && this.props.shouldUnregisterMapOnUnmount && (this.map_.setOptions({\n scrollwheel: !1\n }), this.maps_.event.clearInstanceListeners(this.map_)), this.props.shouldUnregisterMapOnUnmount && (this.map_ = null, this.maps_ = null), this.markersDispatcher_.dispose(), this.resetSizeOnIdle_ = !1, this.props.shouldUnregisterMapOnUnmount && (delete this.map_, delete this.markersDispatcher_);\n }, r.render = function () {\n var t = this.state.overlay,\n o = t ? null : e.createElement(C, {\n experimental: this.props.experimental,\n onChildClick: this._onChildClick,\n onChildMouseDown: this._onChildMouseDown,\n onChildMouseEnter: this._onChildMouseEnter,\n onChildMouseLeave: this._onChildMouseLeave,\n geoService: this.geoService_,\n insideMapPanes: !1,\n distanceToMouse: this.props.distanceToMouse,\n getHoverDistance: this._getHoverDistance,\n dispatcher: this.markersDispatcher_\n });\n return e.createElement(\"div\", {\n style: this.props.style,\n onMouseMove: this._onMapMouseMove,\n onMouseDownCapture: this._onMapMouseDownCapture,\n onClick: this._onMapClick\n }, e.createElement(h, {\n registerChild: this._registerChild\n }), pe && t && le(this._renderPortal(), t), o);\n }, o;\n}(t);\n\nfunction de(e) {\n var t = e.lng,\n o = Math.sin(e.lat * Math.PI / 180),\n n = t / 360 + .5,\n r = .5 - .25 * Math.log((1 + o) / (1 - o)) / Math.PI;\n return {\n x: n,\n y: r = r < 0 ? 0 : r > 1 ? 1 : r\n };\n}\n\nfunction me(e) {\n var t = e.x,\n o = Math.PI - 2 * Math.PI * e.y;\n return {\n lat: 180 / Math.PI * Math.atan(.5 * (Math.exp(o) - Math.exp(-o))),\n lng: 360 * t - 180\n };\n}\n\nfunction ge(e, t, o, n) {\n var r = de(e),\n i = de(t),\n s = r.x < i.x ? i.x - r.x : 1 - r.x + i.x,\n a = i.y - r.y;\n if (s <= 0 && a <= 0) return null;\n\n var p = P(o / 256 / Math.abs(s)),\n l = P(n / 256 / Math.abs(a)),\n u = Math.floor(1e-9 + Math.min(p, l)),\n h = {\n x: r.x < i.x ? .5 * (r.x + i.x) : r.x + i.x - 1 > 0 ? .5 * (r.x + i.x - 1) : .5 * (1 + r.x + i.x),\n y: .5 * (r.y + i.y)\n },\n c = Math.pow(2, u),\n d = o / c / 256 / 2,\n m = n / c / 256 / 2,\n g = me({\n x: h.x - d,\n y: h.y - m\n }),\n _ = me({\n x: h.x + d,\n y: h.y + m\n });\n\n return {\n center: me(h),\n zoom: u,\n newBounds: {\n nw: g,\n se: _\n }\n };\n}\n\nfunction _e(e) {\n var t = e.ne,\n o = e.sw;\n return {\n nw: {\n lat: t.lat,\n lng: o.lng\n },\n se: {\n lat: o.lat,\n lng: t.lng\n }\n };\n}\n\nfunction fe(e) {\n var t = e.nw,\n o = e.se;\n return {\n ne: {\n lat: t.lat,\n lng: o.lng\n },\n sw: {\n lat: o.lat,\n lng: t.lng\n }\n };\n}\n\nfunction ve(e, t) {\n var o,\n n = e.nw,\n r = e.se,\n i = e.ne,\n s = e.sw,\n p = t.width,\n l = t.height;\n if (n && r) o = ge(n, r, p, l);else {\n var u = _e({\n ne: i,\n sw: s\n });\n\n o = ge(u.nw, u.se, p, l);\n }\n return a({}, o, {\n newBounds: a({}, o.newBounds, fe(o.newBounds))\n });\n}\n\nfunction Me(e, t, o) {\n var n = function (e, t) {\n var o = function (e, t) {\n var o,\n n = t.lat,\n r = t.lng,\n i = (o = n * Math.PI / 180, {\n metersPerLatDegree: 111132.92 - 559.82 * Math.cos(2 * o) + 1.175 * Math.cos(4 * o) - .0023 * Math.cos(6 * o),\n metersPerLngDegree: 111412.84 * Math.cos(o) - 93.5 * Math.cos(3 * o) + .118 * Math.cos(5 * o)\n }),\n s = .5 * e / i.metersPerLatDegree,\n a = .5 * e / i.metersPerLngDegree;\n return {\n nw: {\n lat: n - s,\n lng: r - a\n },\n se: {\n lat: n + s,\n lng: r + a\n }\n };\n }(e, {\n lat: t.lat,\n lng: t.lng\n }),\n n = o.se,\n r = de(o.nw),\n i = de(n);\n\n return {\n w: Math.abs(i.x - r.x),\n h: Math.abs(i.y - r.y)\n };\n }(e, {\n lat: t.lat,\n lng: t.lng\n }),\n r = n.w,\n i = n.h,\n s = Math.pow(2, o);\n\n return {\n w: r * s * 256,\n h: i * s * 256\n };\n}\n\nfunction ye(e, t) {\n var o = e.x,\n n = Math.PI - 2 * Math.PI * e.y / Math.pow(2, t);\n return {\n lat: 180 / Math.PI * Math.atan(.5 * (Math.exp(n) - Math.exp(-n))),\n lng: o / Math.pow(2, t) * 360 - 180\n };\n}\n\nfunction Ce(e, t) {\n var o = de({\n lat: e.lat,\n lng: e.lng\n }),\n n = Math.pow(2, t);\n return {\n x: Math.floor(o.x * n),\n y: Math.floor(o.y * n)\n };\n}\n\nfunction we(e, t) {\n for (var o = e.from, n = e.to, r = Math.pow(2, t), i = [], s = o.x; s !== (n.x + 1) % r; s = (s + 1) % r) {\n for (var a = o.y; a !== (n.y + 1) % r; a = (a + 1) % r) {\n i.push([t, s, a]);\n }\n }\n\n return i;\n}\n\nce.propTypes = {\n apiKey: o.string,\n bootstrapURLKeys: o.any,\n defaultCenter: o.oneOfType([o.array, o.shape({\n lat: o.number,\n lng: o.number\n })]),\n center: o.oneOfType([o.array, o.shape({\n lat: o.number,\n lng: o.number\n })]),\n defaultZoom: o.number,\n zoom: o.number,\n onBoundsChange: o.func,\n onChange: o.func,\n onClick: o.func,\n onChildClick: o.func,\n onChildMouseDown: o.func,\n onChildMouseUp: o.func,\n onChildMouseMove: o.func,\n onChildMouseEnter: o.func,\n onChildMouseLeave: o.func,\n onZoomAnimationStart: o.func,\n onZoomAnimationEnd: o.func,\n onDrag: o.func,\n onDragEnd: o.func,\n onMapTypeIdChange: o.func,\n onTilesLoaded: o.func,\n options: o.any,\n distanceToMouse: o.func,\n hoverDistance: o.number,\n debounced: o.bool,\n margin: o.array,\n googleMapLoader: o.any,\n onGoogleApiLoaded: o.func,\n yesIWantToUseGoogleMapApiInternals: o.bool,\n draggable: o.bool,\n style: o.any,\n resetBoundsOnResize: o.bool,\n layerTypes: o.arrayOf(o.string),\n shouldUnregisterMapOnUnmount: o.bool\n}, ce.defaultProps = {\n distanceToMouse: function distanceToMouse(e, t) {\n return Math.sqrt((e.x - t.x) * (e.x - t.x) + (e.y - t.y) * (e.y - t.y));\n },\n hoverDistance: 30,\n debounced: !0,\n options: function options() {\n return {\n overviewMapControl: !1,\n streetViewControl: !1,\n rotateControl: !0,\n mapTypeControl: !1,\n styles: [{\n featureType: \"poi\",\n elementType: \"labels\",\n stylers: [{\n visibility: \"off\"\n }]\n }],\n minZoom: 3\n };\n },\n googleMapLoader: O,\n yesIWantToUseGoogleMapApiInternals: !1,\n style: {\n width: \"100%\",\n height: \"100%\",\n margin: 0,\n padding: 0,\n position: \"relative\"\n },\n layerTypes: [],\n heatmap: {},\n heatmapLibrary: !1,\n shouldUnregisterMapOnUnmount: !0\n}, ce.googleMapLoader = O;\nexport default ce;\nexport { _e as convertNeSwToNwSe, fe as convertNwSeToNeSw, ve as fitBounds, we as getTilesIds, Ce as latLng2Tile, Me as meters2ScreenPixels, ye as tile2LatLng };","import React from \"react\";\nimport GoogleMapReact, { fitBounds } from \"google-map-react\";\nimport { googleApiKey } from \"../../settings\";\nimport { max, min } from \"lodash\";\n\nconst GoogleMap = ({ locations }) => {\n const mapDayScheme = locations\n .map((location, index) => {\n return { location: location, index: index + 1 };\n })\n .filter(day => day.location && day.location.latitude && day.location.longitude);\n\n const { center, zoom } = fitBounds(\n {\n ne: {\n lat: max(mapDayScheme.map(day => day.location)?.map(l => l.latitude)) ?? 0,\n lng: max(mapDayScheme.map(day => day.location)?.map(l => l.longitude)) ?? 0,\n },\n sw: {\n lat: min(mapDayScheme.map(day => day.location)?.map(l => l.latitude)) ?? 0,\n lng: min(mapDayScheme.map(day => day.location)?.map(l => l.longitude)) ?? 0,\n },\n },\n { width: 500, height: 500 }\n );\n\n const createMapOptions = () => {\n return {\n panControl: true,\n gestureHandling: \"cooperative\",\n draggableCursor: \"default\",\n streetViewControl: false,\n mapTypeControl: true,\n fullscreenControl: true,\n clickableIcons: false,\n };\n };\n\n const handleApiLoaded = (map, maps) => {\n mapDayScheme.map(marker => {\n new maps.Marker({\n //Create a new marker and use the map's center as the location.\n position: { lat: marker.location.latitude, lng: marker.location.longitude },\n map: map,\n title: \"Marker!\",\n label: marker.index.toString(),\n });\n });\n };\n\n return (\n
\n handleApiLoaded(map, maps)}\n >\n
\n );\n\n // const mapRef = useRef();\n\n // const onScriptLoad = () => {\n // // Filter out locations without coordinates, keep the day index, construct a day scheme\n\n // if (mapRef.current && mapDayScheme) {\n // const center = calcCenter(mapDayScheme);\n\n // // If there is no valid center then something is wrong the day definitions and the map should not be shown\n // if (center && center.lat && center.lng) {\n // const startData = {\n // zoom: 6,\n // center: center,\n // disableDefaultUI: true,\n // gestureHandling: \"cooperative\",\n // zoomControl: true,\n // scaleControl: true,\n // };\n\n // const map = new window.google.maps.Map(mapRef.current, startData);\n // mapDayScheme.forEach(day => {\n // if (day && day.location && day.index) {\n // const marker = new window.google.maps.Marker({\n // position: { lat: day.location.latitude, lng: day.location.longitude },\n // map: map,\n // title: day.location.searchValue,\n // label: { text: `${day.index}`, color: \"white\" },\n // });\n // }\n // });\n // }\n // }\n // };\n\n // const getLat = data => {\n // return data.map(d => d && d.latitude);\n // };\n // const getLng = data => {\n // return data.map(d => d && d.longitude);\n // };\n\n // const calcCenter = mapDayScheme => {\n // const mapDaySchemeLocations = mapDayScheme.map(day => day.location);\n\n // const latMin = Math.min(...getLat(mapDaySchemeLocations));\n // const latMax = Math.max(...getLat(mapDaySchemeLocations));\n // const lngMin = Math.min(...getLng(mapDaySchemeLocations));\n // const lngMax = Math.max(...getLng(mapDaySchemeLocations));\n\n // const latCenter = (latMax + latMin) / 2.0;\n // const lngCenter = (lngMax + lngMin) / 2.0;\n\n // return { lat: latCenter, lng: lngCenter };\n // };\n\n // useEffect(() => {\n // if (!window.google) {\n // const script = document.createElement(\"script\");\n // script.type = \"text/javascript\";\n // script.src = `https://maps.google.com/maps/api/js?key=AIzaSyD9FhsgpnYloyOo0jLPfHmMtlu2W8ZY114`; // add '?key=AIzaSyD9FhsgpnYloyOo0jLPfHmMtlu2W8ZY114'\n // document.body.appendChild(script);\n // script.addEventListener(\"load\", e => {\n // onScriptLoad();\n // });\n // } else {\n // onScriptLoad();\n // }\n // }, []);\n\n // return
;\n};\n\nexport default GoogleMap;\n","import { filter, get } from \"lodash\";\n\nimport React from \"react\";\nimport ScheduleLeg from \"./schedule-leg\";\nimport GoogleMap from \"../map/map\";\n\nconst Schedule = ({ product, scheduleEntries }) => {\n const schedule = filter(product.children, { templateName: \"Dagschema\" });\n\n // Fast return when schedule isn't set\n if (!schedule || !schedule.length || !scheduleEntries || !scheduleEntries.length) {\n return <>;\n }\n\n // Parse all locations\n let locations = [];\n if (schedule) {\n locations = schedule.map(day => {\n if (get(day, \"content.general.location\")) {\n return JSON.parse(day.content.general.location);\n }\n return undefined;\n });\n }\n\n return (\n
\n
\n

Vaarschema

\n
\n
\n
{locations && }
\n
\n {scheduleEntries && scheduleEntries.map((x, i) => )}\n
\n
\n
\n );\n};\n\nexport default Schedule;\n","import { Link } from \"gatsby\";\nimport React from \"react\";\nimport { addWidthParameter } from \"../../utils/addWidthParameter\";\n\nexport default ({ ship }) => (\n
\n
\n \n
\n {Boolean(ship.content.general.image) && (\n {ship.content.general.name}\n )}\n
\n \n
\n\n
\n

\n \n {ship.content.general.passengers} passagiers - Bouwjaar {ship.content.general.yearManufactured}\n \n

\n \n
\n
\n \n Meer info\n \n
\n
\n
\n
\n);\n","import React from \"react\";\nimport ShipCard from \"./ship-card\";\nimport { getStars } from \"../../utils/mappingUtils\";\n\nexport default ({ product }) => {\n if (!product?.content?.general?.ship) {\n return <>;\n }\n\n const ship = product.content.general.ship;\n let stars = getStars(ship?.content.general.stars);\n\n return (\n ship && (\n
\n
\n

\n Het cruiseschip {ship.content.general.name}\n \n {stars.map((star, i) => (\n \n ))}\n \n

\n
\n
\n \n
\n
\n )\n );\n};\n","import { addYears, endOfYear, fromUnixTime } from \"date-fns\";\nimport { apiKey, catalogueId, host, websiteName } from \"../settings\";\n\nimport { graphql } from \"gatsby\";\nimport { first, isEmpty } from \"lodash\";\nimport React, { useContext, useEffect, useRef, useState } from \"react\";\nimport { Helmet } from \"react-helmet\";\nimport LoadingSpinner from \"../components/loadingSpinner\";\nimport Cabins from \"../components/product/cabins\";\nimport Description from \"../components/product/description\";\nimport Detail from \"../components/product/detail\";\nimport ExtraInformation from \"../components/product/extraInformation\";\nimport Hotels from \"../components/product/hotels\";\nimport Offer from \"../components/product/offer\";\nimport PriceOptions from \"../components/product/priceOptions\";\nimport ReservationInformation from \"../components/product/reservationInformation\";\nimport Schedule from \"../components/product/schedule\";\nimport Ship from \"../components/product/ship\";\nimport SeoHeaders from \"../components/seo/seo-headers\";\nimport GlobalContext from \"../contexts/global-provider\";\nimport { environment } from \"../environments/environment\";\nimport Layout from \"../templates/layout\";\nimport { format, getDuration } from \"../utils/dateUtils\";\n\nrequire(\"isomorphic-fetch\");\n\nconst Product = ({ location, pageContext, data }) => {\n const dateFormat = \"yyyy/MM/dd\";\n const { product, hotels, canonical, cruiseTypes } = pageContext;\n const content = product.content;\n const seo = content.seo;\n const pageTitle = seo && seo.title ? seo.title : content.general.title;\n\n const { setNavigation, setPrivacy, theme } = useContext(GlobalContext);\n setNavigation(data.website.content.navigation);\n setPrivacy(data.website.content.general.privacyPolicyPath);\n\n const [isLoading, setIsLoading] = useState(false);\n const [showOffer, setShowOffer] = useState(false);\n const [selectedOption, setSelectedOption] = useState(null);\n const [hotelsPrePostNights, setHotelsPrePostNights] = useState([]);\n const [scheduleEntries, setScheduleEntries] = useState(undefined);\n const [erpProductOptions, setErpProductOptions] = useState(undefined);\n const [pathName, setPathName] = useState(undefined);\n const priceOptionsRef = useRef(null);\n\n var queryParameters = new URLSearchParams();\n if (typeof window !== \"undefined\") {\n queryParameters = new URLSearchParams(window.location.search);\n }\n const selectedDuration = queryParameters?.get(\"duration\") ? Number(queryParameters?.get(\"duration\")) : null;\n const selectedFrom = queryParameters?.get(\"from\") ? fromUnixTime(queryParameters.get(\"from\")) : new Date();\n\n const fetchSchedule = async () => {\n const initialScheduleEntries = product.children.filter(x => x.templateName === \"Dagschema\");\n // get ERP Product from ID\n const ERPProduct = await fetchHotels(product.content.general.product.key);\n // get all hotels in the package\n const ERPHotels = ERPProduct.packageProducts.filter(p => p.product.productType === 3);\n // For each day to day item\n initialScheduleEntries.forEach(scheduleEntry => {\n // <--- LINK HOTELS TO DAYCOMPONENT --->\n\n // gather all ID's from hotels in the package where name == optiongroup, for example: \"Dag 1-5\"\n const hotelIDs = [];\n ERPHotels.forEach(h => {\n if (h.optionGroup === scheduleEntry.name) {\n hotelIDs.push(h.product.id);\n }\n });\n\n // Filter cmsHotels so you only have those with an ID that's part of the package and day\n if (hotels && hotels[0] && hotels[0].children && hotels[0].children.length) {\n const filteredHotels = hotels[0].children.filter(h => hotelIDs.includes(h.content.general.product.key));\n scheduleEntry.hotels = filteredHotels;\n setHotelsPrePostNights(prevHotels => [...prevHotels, ...filteredHotels]);\n }\n });\n setScheduleEntries(initialScheduleEntries);\n };\n\n const fetchHotels = async id => {\n const response = await fetch(`${host}/api/web/products/dynamicinfo/${id}`, {\n method: \"GET\",\n headers: {\n \"Api-Key\": apiKey,\n \"Content-Type\": \"application/json\",\n },\n });\n return await response.json();\n };\n\n // Data\n const fetchErpProductOptions = async () => {\n const productId = product.content.general.product.key;\n\n const searchRequest = {\n officeId: environment.builds[0].officeId,\n payload: {\n catalogueIds: [catalogueId],\n rooms: [\n {\n index: 0,\n pax: [\n {\n age: 25,\n },\n {\n age: 25,\n },\n ],\n },\n ],\n serviceType: 11,\n searchType: 1,\n fromDate: format(new Date(), dateFormat),\n toDate: format(endOfYear(addYears(new Date(), 2)), dateFormat),\n productIds: [productId],\n includeAllAllotmentAccommodations: true,\n },\n };\n\n const url = `${host}/api/web/booking/v2/search`;\n try {\n const response = await fetch(url, {\n method: \"POST\",\n headers: {\n \"Api-Key\": apiKey,\n \"Content-Type\": \"application/json\",\n Language: \"nl-BE\",\n },\n body: JSON.stringify(searchRequest),\n });\n\n if (response.ok) {\n return await response.json();\n }\n return undefined;\n } catch (error) {\n console.error(error);\n }\n };\n\n useEffect(() => {\n (async () => {\n try {\n if (typeof window !== \"undefined\") {\n setPathName(window.location.pathname);\n }\n await fetchSchedule();\n } catch (e) {\n console.error(e);\n }\n })();\n }, []);\n\n useEffect(() => {\n (async () => {\n try {\n if (queryParameters) {\n setIsLoading(true);\n const availabilities = await fetchErpProductOptions();\n if (availabilities && availabilities.length) {\n if (selectedDuration) {\n const validAvailabilities = availabilities.filter(x => {\n const duration = getDuration(x.fromDate, x.toDate);\n return selectedDuration === duration;\n });\n\n if (validAvailabilities && !isEmpty(validAvailabilities)) {\n setErpProductOptions(validAvailabilities);\n let option = validAvailabilities.find(\n x => format(new Date(x.fromDate), dateFormat) === format(selectedFrom, dateFormat)\n );\n if (!option) {\n option = first(validAvailabilities);\n }\n setSelectedOption(option);\n }\n }\n else {\n setErpProductOptions(availabilities);\n setSelectedOption(first(availabilities));\n }\n }\n\n setIsLoading(false);\n }\n } catch (e) {\n console.error(e);\n setIsLoading(false);\n }\n })();\n }, []);\n\n const handleOfferClick = () => {\n setShowOffer(true);\n };\n const handleOfferCloseClick = () => {\n setShowOffer(false);\n };\n const handleOnDepartureDateClick = () => priceOptionsRef.current?.scrollIntoView({ behavior: \"smooth\" });\n return (\n \n \n \n {pageTitle}\n \n {isLoading && }\n {!isLoading && (\n <>\n handleOfferClick()}\n onDepartureDateClick={() => handleOnDepartureDateClick()}\n selectedOption={selectedOption}\n bookingDisclaimer={data.website.content.general.bookingDisclaimer}\n shippingCompany={data.shippingCompany}\n isLoading={isLoading}\n />\n \n \n \n \n \n \n \n handleOfferClick()}\n theme={theme}\n />\n {Boolean(erpProductOptions) && (\n handleOfferCloseClick()}\n theme={theme}\n websiteGeneral={data.website.content.general}\n />\n )}\n \n )}\n \n );\n};\n\nexport default Product;\n\nexport const query = graphql`\n query ProductPageQuery($websiteId: String, $shippingCompanyId: Int) {\n website: tideItemForWebsite(id: { eq: $websiteId }) {\n id\n name\n __typename\n content {\n general {\n bookingDisclaimer\n emailTemplateOffer {\n tideId\n }\n emailTemplateOfferTravelAgent {\n tideId\n }\n privacyPolicyPath\n }\n navigation {\n contactNavigation {\n ...NavigationItemFragment\n }\n footerNavigation {\n ...NavigationItemFragment\n }\n headerNavigation {\n ...NavigationItemFragment\n }\n }\n reservation {\n reservationImage {\n altText\n title\n url\n }\n reservationText\n reservationTitle\n }\n }\n }\n shippingCompany: tideItemForRederij(itemId: { eq: $shippingCompanyId }) {\n __typename\n content {\n general {\n title\n logo {\n altText\n title\n url\n }\n detailPath\n }\n }\n }\n }\n`;\n","import toInteger from '../_lib/toInteger/index.js';\nimport addMonths from '../addMonths/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the years added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * var result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\n\nexport default function addYears(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMonths(dirtyDate, amount * 12);\n}"],"sourceRoot":""}