{"version":3,"sources":["webpack:///./src/shared/utilities/screenSize.js","webpack:///./node_modules/process/browser.js","webpack:///./src/components/molecules/map/map.js","webpack:///./src/shared/utilities/cookies.js","webpack:///./src/shared/utilities/debounce.js","webpack:///./src/shared/utilities/pubsub.js","webpack:///./src/framework/base/base.js","webpack:///./src/shared/utilities/case.ts","webpack:///./src/shared/utilities/id.ts","webpack:///./src/shared/utilities/openPopup.js"],"names":["defaultWidths","sm","md","lg","xl","getBreakpoint","window","getComputedStyle","document","querySelector","getPropertyValue","replace","screenSmallerThan","size","widths","arguments","length","undefined","Object","prototype","hasOwnProperty","call","Error","concat","keys","join","innerWidth","screenGreatOrEqualTo","cachedSetTimeout","cachedClearTimeout","process","module","exports","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","e","this","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","args","Array","i","push","apply","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask","darkMapStyle","elementType","stylers","color","visibility","featureType","mapStyles","saturation","lightness","markerIcon","location","protocol","host","MapComponent","_BaseBehavior","element","_this","_classCallCheck","_callSuper","mapProvider","getCookie","dataset","amapApiKey","loadMapScript","_inherits","key","value","mapScriptLoaded","mapInstances","forEach","instance","initMap","script","createElement","initFunctionName","onMapScriptLoad","src","apiKey","async","defer","body","appendChild","center","AMap","LngLat","parseFloat","lng","lat","map","Map","scrollWheel","zoom","Marker","icon","position","event","openAMap","bind","google","maps","disableDefaultUI","draggable","scrollwheel","styles","theme","setCenter","anchor","Point","origin","Size","url","openGMap","coordinates","openMapWindow","coordinatesArr","urlWithMapCoordinates","openWindow","BaseBehavior","cname","ca","decodeURIComponent","cookie","split","c","charAt","substring","indexOf","setCookie","expire","path","expires","Date","toUTCString","debounce","func","wait","immediate","_len","_key","later","callNow","pubsub","PubSub","subscriptions","topic","_step","_iterator","_createForOfIteratorHelper","s","n","done","fn","err","f","index","splice","state","events","behaviorName","camelCaseToDashCase","getAttribute","instanceId","generateId","attachInstanceId","partialState","_objectSpread","setAttribute","removeAttribute","_this2","dom","from","querySelectorAll","filter","el","closest","ref","dashCaseToCamelCase","console","error","_this3","delay","breakpoint","publish","debouncedGetBreakpoint","newBreakPoint","addEventListener","useCapture","removeEventListener","obj","subscribe","unsubscribe","navigation","getBoundingClientRect","bottom","scrollY","scroll","reason","promise","log","str","toLowerCase","x","chr","toUpperCase","alphabet","id","Math","floor","random","openPopup","width","height","top","documentElement","clientHeight","left","clientWidth","options","status","resizable","popup","open","JSON","stringify","focus","newTab"],"mappings":"2FAAA,sGAAO,IAAMA,EAAgB,CAC5BC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJC,GAAI,MAIQC,EAAgB,WAAH,OACzBC,OACEC,iBAAiBC,SAASC,cAAc,QAAS,WACjDC,iBAAiB,WACjBC,QAAQ,KAAM,KAGV,SAASC,EAAkBC,GAA8B,IAAxBC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGf,EAChD,IAAKkB,OAAOC,UAAUC,eAAeC,KAAKP,EAAQD,GACjD,MAAM,IAAIS,MAAM,wBAADC,OAAyBL,OAAOM,KAAKV,GAAQW,KAAK,QAElE,OAAOnB,OAAOoB,WAAaZ,EAAOD,GAG5B,SAASc,EAAqBd,GAA8B,IAAxBC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGf,EACnD,IAAKkB,OAAOC,UAAUC,eAAeC,KAAKP,EAAQD,GACjD,MAAM,IAAIS,MAAM,wBAADC,OAAyBL,OAAOM,KAAKV,GAAQW,KAAK,QAElE,OAAOnB,OAAOoB,YAAcZ,EAAOD,K,kBCzBpC,IAOIe,EACAC,EARAC,EAAUC,EAAOC,QAAU,GAU/B,SAASC,IACL,MAAM,IAAIX,MAAM,mCAEpB,SAASY,IACL,MA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= () =>\r\n\twindow\r\n\t\t.getComputedStyle(document.querySelector('body'), ':before')\r\n\t\t.getPropertyValue('content')\r\n\t\t.replace(/\"/g, '');\r\n\r\n// function :: String -> ?Object -> Boolean\r\nexport function screenSmallerThan(size, widths = defaultWidths) {\r\n\tif (!Object.prototype.hasOwnProperty.call(widths, size)) {\r\n\t\tthrow new Error(`size must be one of: ${Object.keys(widths).join(', ')}`);\r\n\t}\r\n\treturn window.innerWidth < widths[size];\r\n}\r\n\r\nexport function screenGreatOrEqualTo(size, widths = defaultWidths) {\r\n\tif (!Object.prototype.hasOwnProperty.call(widths, size)) {\r\n\t\tthrow new Error(`size must be one of: ${Object.keys(widths).join(', ')}`);\r\n\t}\r\n\treturn window.innerWidth >= widths[size];\r\n}\r\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","import BaseBehavior from '../../../framework/base/base';\r\nimport { getCookie } from '../../../shared/utilities/cookies';\r\nimport { openWindow } from '../../../shared/utilities/openPopup';\r\n\r\nconst darkMapStyle = [\r\n\t{\r\n\t\telementType: 'geometry',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#212121'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\telementType: 'labels.icon',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#757575'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\telementType: 'labels.text.stroke',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#212121'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'administrative',\r\n\t\telementType: 'geometry',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#757575'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'administrative.country',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#9e9e9e'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'administrative.land_parcel',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'administrative.locality',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#bdbdbd'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'administrative.neighborhood',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'poi',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'poi',\r\n\t\telementType: 'labels.text',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'poi',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#757575'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'poi.park',\r\n\t\telementType: 'geometry',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#181818'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'poi.park',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#616161'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'poi.park',\r\n\t\telementType: 'labels.text.stroke',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#1b1b1b'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road',\r\n\t\telementType: 'geometry.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#2c2c2c'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road',\r\n\t\telementType: 'labels',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road',\r\n\t\telementType: 'labels.icon',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road',\r\n\t\telementType: 'labels.text',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'simplified'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#8a8a8a'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road.arterial',\r\n\t\telementType: 'geometry',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#373737'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road.highway',\r\n\t\telementType: 'geometry',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#3c3c3c'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road.highway.controlled_access',\r\n\t\telementType: 'geometry',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#4e4e4e'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road.local',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#616161'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'transit',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'transit',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#757575'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'water',\r\n\t\telementType: 'geometry',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#000000'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'water',\r\n\t\telementType: 'labels.text',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'water',\r\n\t\telementType: 'labels.text.fill',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tcolor: '#3d3d3d'\r\n\t\t\t\t// eslint-disable-next-line prettier/prettier\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n];\r\n\r\nconst mapStyles = [\r\n\t{\r\n\t\tfeatureType: 'administrative',\r\n\t\telementType: 'all',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'on'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tsaturation: -100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tlightness: 20\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'road',\r\n\t\telementType: 'all',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'on'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tsaturation: -100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tlightness: 60\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'water',\r\n\t\telementType: 'all',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'on'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tsaturation: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tlightness: -30\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'landscape.man_made',\r\n\t\telementType: 'all',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'simplified'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tsaturation: -60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tlightness: 10\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'landscape.natural',\r\n\t\telementType: 'all',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'simplified'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tsaturation: -60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tlightness: 60\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'poi',\r\n\t\telementType: 'all',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tsaturation: -100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tlightness: 60\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\tfeatureType: 'transit',\r\n\t\telementType: 'all',\r\n\t\tstylers: [\r\n\t\t\t{\r\n\t\t\t\tvisibility: 'off'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tsaturation: -100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tlightness: 60\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n];\r\n\r\nconst markerIcon =\r\n\tdocument.location.protocol +\r\n\t'//' +\r\n\tdocument.location.host +\r\n\t'/Content/assets/icons/map-marker.svg';\r\n\r\nexport default class MapComponent extends BaseBehavior {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\t\tthis.mapProvider =\r\n\t\t\tgetCookie('iit_ak_geo') === 'CN' && this.element.dataset.amapApiKey ? 'A' : 'G';\r\n\t\tMapComponent.loadMapScript(this);\r\n\t}\r\n\r\n\tstatic onMapScriptLoad(mapProvider) {\r\n\t\tMapComponent.mapScriptLoaded[mapProvider] = true;\r\n\t\tMapComponent.mapInstances[mapProvider].forEach(instance => instance.initMap());\r\n\t}\r\n\r\n\tstatic loadMapScript(instance) {\r\n\t\tconst { mapProvider } = instance;\r\n\t\tif (MapComponent.mapInstances[mapProvider]) {\r\n\t\t\tMapComponent.mapInstances[mapProvider].push(instance);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tMapComponent.mapInstances[mapProvider] = [instance];\r\n\t\tconst script = document.createElement('script');\r\n\t\tconst initFunctionName = 'initMap' + mapProvider;\r\n\t\twindow[initFunctionName] = () => MapComponent.onMapScriptLoad(mapProvider);\r\n\t\tscript.src =\r\n\t\t\tmapProvider === 'G'\r\n\t\t\t\t? '//maps.googleapis.com/maps/api/js?key=' +\r\n\t\t\t\t instance.element.dataset.apiKey +\r\n\t\t\t\t '&callback=' +\r\n\t\t\t\t initFunctionName\r\n\t\t\t\t: '//webapi.amap.com/maps?v=1.4.9&key=' +\r\n\t\t\t\t instance.element.dataset.amapApiKey +\r\n\t\t\t\t '&callback=' +\r\n\t\t\t\t initFunctionName;\r\n\t\tscript.async = true;\r\n\t\tscript.defer = true;\r\n\t\tdocument.body.appendChild(script);\r\n\t}\r\n\r\n\tinitMap() {\r\n\t\tif (!MapComponent.mapScriptLoaded[this.mapProvider]) {\r\n\t\t\tMapComponent.loadMapScript(this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis[`init${this.mapProvider}Map`]();\r\n\t}\r\n\r\n\tinitAMap() {\r\n\t\tconst center = new window.AMap.LngLat(\r\n\t\t\tparseFloat(this.element.dataset.lng),\r\n\t\t\tparseFloat(this.element.dataset.lat)\r\n\t\t);\r\n\r\n\t\tthis.map = new window.AMap.Map(this.element, {\r\n\t\t\tcenter,\r\n\t\t\tscrollWheel: false,\r\n\t\t\tzoom: 16\r\n\t\t});\r\n\r\n\t\tconst marker = new window.AMap.Marker({\r\n\t\t\ticon: markerIcon,\r\n\t\t\tposition: center,\r\n\t\t\tmap: this.map\r\n\t\t});\r\n\r\n\t\twindow.AMap.event.addListener(marker, 'click', this.openAMap.bind(this, center));\r\n\t}\r\n\r\n\tinitGMap() {\r\n\t\tconst center = {\r\n\t\t\tlat: parseFloat(this.element.dataset.lat),\r\n\t\t\tlng: parseFloat(this.element.dataset.lng)\r\n\t\t};\r\n\r\n\t\tthis.map = new window.google.maps.Map(this.element, {\r\n\t\t\tdisableDefaultUI: true,\r\n\t\t\tdraggable: true,\r\n\t\t\tscrollwheel: false,\r\n\t\t\tstyles: this.element.dataset.theme === 'dark' ? darkMapStyle : mapStyles,\r\n\t\t\tzoom: 16\r\n\t\t});\r\n\t\tthis.map.setCenter(center);\r\n\t\tif (this.element.dataset.marker === 'true') {\r\n\t\t\tconst marker = new window.google.maps.Marker({\r\n\t\t\t\tdraggable: false,\r\n\t\t\t\ticon: {\r\n\t\t\t\t\tanchor: new window.google.maps.Point(30, 30),\r\n\t\t\t\t\torigin: new window.google.maps.Point(0, 0),\r\n\t\t\t\t\tsize: new window.google.maps.Size(60, 60),\r\n\t\t\t\t\turl: markerIcon\r\n\t\t\t\t},\r\n\t\t\t\tmap: this.map,\r\n\t\t\t\tposition: center\r\n\t\t\t});\r\n\r\n\t\t\twindow.google.maps.event.addListener(marker, 'click', this.openGMap.bind(this, center));\r\n\t\t} else {\r\n\t\t\tthis.map.addListener('click', this.openGMap.bind(this, center));\r\n\t\t}\r\n\t}\r\n\r\n\topenAMap(coordinates) {\r\n\t\tthis.openMapWindow('//uri.amap.com/marker?position=', [coordinates.lng, coordinates.lat]);\r\n\t}\r\n\r\n\topenGMap(coordinates) {\r\n\t\tthis.openMapWindow('//www.google.com/maps/place/', [coordinates.lat, coordinates.lng]);\r\n\t}\r\n\r\n\topenMapWindow(url, coordinatesArr) {\r\n\t\tconst urlWithMapCoordinates = url + coordinatesArr[0] + ',' + coordinatesArr[1];\r\n\t\topenWindow(urlWithMapCoordinates, 'map');\r\n\t}\r\n}\r\n\r\nMapComponent.mapScriptLoaded = {};\r\nMapComponent.mapInstances = {};\r\n","// eslint-disable-next-line import/no-unresolved, import/extensions\r\nexport const getCookie = cname => {\r\n\tconst name = cname + '=';\r\n\tconst decodedCookie = decodeURIComponent(document.cookie);\r\n\tconst ca = decodedCookie.split(';');\r\n\tfor (let i = 0; i < ca.length; i++) {\r\n\t\tlet c = ca[i];\r\n\t\twhile (c.charAt(0) === ' ') {\r\n\t\t\tc = c.substring(1);\r\n\t\t}\r\n\t\tif (c.indexOf(name) === 0) {\r\n\t\t\treturn c.substring(name.length, c.length);\r\n\t\t}\r\n\t}\r\n\treturn null;\r\n};\r\n\r\nexport const setCookie = (name, value, expire = 0, path = '/') => {\r\n\tconst expires = expire ? `expires=${new Date(expire).toUTCString()};` : '';\r\n\tdocument.cookie = `${name}=${value};${expires}path=${path}`;\r\n};\r\n","// debounce :: Function, Number, Bool -> (Any -> Void)\r\nexport function debounce(func, wait, immediate) {\r\n\tlet timeout;\r\n\treturn function debounced(...args) {\r\n\t\tconst later = () => {\r\n\t\t\ttimeout = null;\r\n\t\t\tif (!immediate) func(args);\r\n\t\t};\r\n\t\tconst callNow = immediate && !timeout;\r\n\t\tclearTimeout(timeout);\r\n\t\ttimeout = setTimeout(later, wait);\r\n\t\tif (callNow) func(args);\r\n\t};\r\n}\r\n","class PubSub {\r\n\tconstructor() {\r\n\t\tthis.subscriptions = {};\r\n\t}\r\n\r\n\tpublish(topic, ...args) {\r\n\t\tif (this.subscriptions[topic]) {\r\n\t\t\t// eslint-disable-next-line no-restricted-syntax\r\n\t\t\tfor (const fn of this.subscriptions[topic]) {\r\n\t\t\t\tfn(...args);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tsubscribe(topic, fn) {\r\n\t\tthis.subscriptions[topic] = this.subscriptions[topic] || [];\r\n\t\tthis.subscriptions[topic].push(fn);\r\n\t}\r\n\r\n\tunsubscribe(topic, fn) {\r\n\t\tif (this.subscriptions[topic]) {\r\n\t\t\tthis.subscriptions[topic].forEach((value, index) => {\r\n\t\t\t\tif (value === fn) {\r\n\t\t\t\t\tthis.subscriptions[topic].splice(index, 1);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}\r\n\r\nconst pubsub = new PubSub();\r\n\r\nexport default pubsub;\r\n","import pubsub from '../../shared/utilities/pubsub';\r\nimport { generateId } from '../../shared/utilities/id';\r\nimport { camelCaseToDashCase, dashCaseToCamelCase } from '../../shared/utilities/case';\r\nimport { getBreakpoint } from '../../shared/utilities/screenSize';\r\nimport { debounce } from '../../shared/utilities/debounce';\r\n\r\nexport default class BaseBehavior {\r\n\tconstructor(element) {\r\n\t\tthis.element = element;\r\n\t\tthis.state = undefined;\r\n\t\tthis.events = {};\r\n\t\tthis.subscriptions = {};\r\n\t\tthis.behaviorName = camelCaseToDashCase(element.getAttribute('data-behavior'));\r\n\t\tthis.instanceId = generateId();\r\n\t\tthis.attachInstanceId();\r\n\t}\r\n\r\n\tsetState(partialState) {\r\n\t\tObject.keys(partialState).forEach(key => {\r\n\t\t\tif (!{}.hasOwnProperty.call(this.state, key)) {\r\n\t\t\t\tthrow new Error(\r\n\t\t\t\t\t`${this.behaviorName} does not have ${key} on the state object,\r\n\t\t\t\t\tmake sure to define all state properties in the constructor.`\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.state = { ...(this.state || {}), ...partialState };\r\n\t}\r\n\r\n\tattachInstanceId() {\r\n\t\tthis.element.setAttribute('data-instance', `${this.behaviorName}__${this.instanceId}`);\r\n\t\tthis.element.removeAttribute('data-instance-init');\r\n\t}\r\n\r\n\tinitDomCache() {\r\n\t\tthis.dom = {};\r\n\r\n\t\t// Filter out ref's that embedded in another instance of the same behavior.\r\n\t\tArray.from(this.element.querySelectorAll(`[data-ref^=${this.behaviorName}]`))\r\n\t\t\t.filter(el => el.closest(`[data-behavior*=\"${this.behaviorName}\"]`) === this.element)\r\n\t\t\t.forEach(element => {\r\n\t\t\t\tconst ref = element.getAttribute('data-ref');\r\n\t\t\t\tconst key = dashCaseToCamelCase(ref).split('__')[1];\r\n\r\n\t\t\t\tif (key) {\r\n\t\t\t\t\tthis.dom[key] = element;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.error(\r\n\t\t\t\t\t\t`Element cannot be cached. Reference \"${ref}\" should have the format \"behavior-name__element-name\"`\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublishBreakpointOnResize(delay = 250) {\r\n\t\tif (this.breakpoint) return;\r\n\r\n\t\tthis.breakpoint = getBreakpoint();\r\n\t\tthis.publish('SITE.BREAKPOINT', this.breakpoint);\r\n\r\n\t\tconst debouncedGetBreakpoint = debounce(() => {\r\n\t\t\tconst newBreakPoint = getBreakpoint();\r\n\t\t\tif (this.breakpoint !== newBreakPoint) {\r\n\t\t\t\tthis.publish('SITE.BREAKPOINT', newBreakPoint);\r\n\t\t\t\tthis.breakpoint = newBreakPoint;\r\n\t\t\t}\r\n\t\t}, delay);\r\n\r\n\t\twindow.addEventListener('resize', debouncedGetBreakpoint);\r\n\t}\r\n\r\n\taddEventListener(element, event, fn, useCapture = false) {\r\n\t\tif (element) {\r\n\t\t\tthis.events[event] = fn;\r\n\t\t\telement.addEventListener(event.split('.')[0], this.events[event], useCapture);\r\n\t\t}\r\n\t}\r\n\r\n\tremoveEventListener(element, event) {\r\n\t\telement.removeEventListener(event.split('.')[0], this.events[event]);\r\n\t\tthis.events[event] = null;\r\n\t\tdelete this.events[event];\r\n\t}\r\n\r\n\t// eslint-disable-next-line class-methods-use-this\r\n\tpublish(topic, obj) {\r\n\t\tpubsub.publish(topic, obj);\r\n\t}\r\n\r\n\tsubscribe(topic, fn) {\r\n\t\tthis.subscriptions[topic] = fn;\r\n\t\tpubsub.subscribe(topic, fn);\r\n\t}\r\n\r\n\tunsubscribe(topic) {\r\n\t\tpubsub.unsubscribe(topic, this.subscriptions[topic]);\r\n\t\tthis.subscriptions[topic] = null;\r\n\t\tdelete this.subscriptions[topic];\r\n\t}\r\n}\r\n\r\n// Below code is added for fixing scrolling issue on page refresh.\r\nwindow.addEventListener('load', () => {\r\n\tsetTimeout(() => {\r\n\t\tconst navigation = document.querySelector('#navigation');\r\n\t\t// eslint-disable-next-line\r\n\t\tif (navigation && navigation.getBoundingClientRect().bottom === scrollY) {\r\n\t\t\twindow.scroll(0, 0);\r\n\t\t}\r\n\t}, 0);\r\n});\r\n\r\nprocess.on('unhandledRejection', (reason, promise) => {\r\n\t// eslint-disable-next-line no-console\r\n\tconsole.log('Reason for this failure is : ', reason);\r\n\t// eslint-disable-next-line no-console\r\n\tconsole.log('promise is', promise);\r\n\t// Application specific logging, throwing an error, or other logic here\r\n});\r\n","export function camelCaseToDashCase(str: string): string {\r\n\treturn str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\r\n}\r\n\r\nexport function dashCaseToCamelCase(str: string): string {\r\n\treturn str.replace(/\\W+(.)/g, (x, chr) => chr.toUpperCase());\r\n}\r\n","const alphabet = '23456789ABDEGJKMNPQRVWXYZ';\r\n\r\nexport function generateId(length: number = 6): string {\r\n\tlet id:string = '';\r\n\r\n\tfor (let i:number = 0; i < length; i++) {\r\n\t\tid += alphabet.charAt(Math.floor(Math.random() * alphabet.length));\r\n\t}\r\n\r\n\treturn id;\r\n}\r\n","/**\r\n * Performs window.open for a given URL;\r\n * @param {string} url Address to display in a pop-up window\r\n * @param {*} width in pixels; default: 575px\r\n * @param {*} height in pixels; default: 400px\r\n */\r\nexport const openPopup = (url, width = 575, height = 400) => {\r\n\tconst top = (document.documentElement.clientHeight - height) / 2;\r\n\tconst left = document.documentElement.clientWidth / 2 - width / 2;\r\n\tconst options = {\r\n\t\tstatus: 1,\r\n\t\tresizable: 'yes',\r\n\t\twidth,\r\n\t\theight,\r\n\t\ttop,\r\n\t\tleft\r\n\t};\r\n\tconst popup = window.open(\r\n\t\turl,\r\n\t\t'',\r\n\t\tJSON.stringify(options)\r\n\t\t\t.replace(/\"|{|}/g, '')\r\n\t\t\t.replace(/:/g, '=')\r\n\t);\r\n\r\n\tif (popup) {\r\n\t\tpopup.focus();\r\n\t}\r\n\r\n\treturn popup;\r\n};\r\n\r\nexport const openWindow = (url, name = '_blank', options = {}) => {\r\n\tconst newTab = window.open(\r\n\t\turl,\r\n\t\tname,\r\n\t\tJSON.stringify(options)\r\n\t\t\t.replace(/\"|{|}/g, '')\r\n\t\t\t.replace(/:/g, '=')\r\n\t);\r\n\treturn newTab;\r\n};\r\n"],"sourceRoot":""}