{"version":3,"sources":["webpack:///./src/feature/contact/contact.js","webpack:///./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack:///./node_modules/core-js/modules/es.object.set-prototype-of.js","webpack:///./node_modules/core-js/internals/whitespaces.js","webpack:///./node_modules/core-js/modules/es.parse-int.js","webpack:///./node_modules/core-js/internals/number-parse-int.js","webpack:///./node_modules/core-js/internals/string-trim.js"],"names":["Contact","element","el","isOpen","addEventListener","e","target","someAncestorHasClass","toggle","classname","classList","contains","parentNode","this","dataset","open","remove","jQuery","find","animate","height","previousHeight","css","querySelector","fadeIn","add","iframeDoc","iframe","length","contentDocument","contentWindow","document","iframeHeight","parseInt","body","scrollHeight","fadeOut","BaseFeature","$","fails","toObject","nativeGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","stat","forced","sham","getPrototypeOf","it","setPrototypeOf","module","exports","parseIntImplementation","global","trim","whitespaces","$parseInt","hex","FORCED","string","radix","S","String","test","requireObjectCoercible","whitespace","ltrim","RegExp","rtrim","createMethod","TYPE","$this","replace","start","end"],"mappings":"k9BAEMA,E,YACL,WAAYC,GAAS,a,4FAAA,UACpB,wBAAMA,KAEDC,GAAKD,EACV,EAAKE,QAAS,EAEdF,EAAQG,iBACP,SACA,SAACC,GACIA,EAAEC,QAAU,EAAKC,qBAAqBF,EAAEC,OAAQ,2BACnD,EAAKE,YAGP,GAbmB,E,4SAiBAP,EAASQ,GAC7B,SAAIR,EAAQS,YAAaT,EAAQS,UAAUC,SAASF,KAC7CR,EAAQW,YAAcC,KAAKN,qBAAqBN,EAAQW,WAAYH,K,+BAGnE,WACR,GAA6B,SAAzBI,KAAKX,GAAGY,QAAQC,KACnBF,KAAKX,GAAGQ,UAAUM,OAAO,UASzBC,OAAOJ,KAAKX,IAAIgB,KAAK,+BAA+BC,QAAQ,CAC3DC,OAAQP,KAAKQ,gBACX,KATuB,WAEzBJ,OAAO,GAAMG,OAAO,QAEpBH,OAAO,GAAMC,KAAK,+BAA+BI,IAAI,SAAU,OAMhET,K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AA4B,CAChGI,eAAgB,SAAwBC,GACtC,OAAON,EAAqBD,EAASO,Q,oBCZjC,EAAQ,EAKhBT,CAAE,CAAEhC,OAAQ,SAAUqC,MAAM,GAAQ,CAClCK,eALmB,EAAQ,Q,kBCC7BC,EAAOC,QAAU,iD,oBCFjB,IAAIZ,EAAI,EAAQ,GACZa,EAAyB,EAAQ,KAIrCb,EAAE,CAAEc,QAAQ,EAAMR,OAAQX,UAAYkB,GAA0B,CAC9DlB,SAAUkB,K,oBCNZ,IAAIC,EAAS,EAAQ,GACjBC,EAAO,EAAQ,KAA4BA,KAC3CC,EAAc,EAAQ,KAEtBC,EAAYH,EAAOnB,SACnBuB,EAAM,cACNC,EAA2C,IAAlCF,EAAUD,EAAc,OAAmD,KAApCC,EAAUD,EAAc,QAI5EL,EAAOC,QAAUO,EAAS,SAAkBC,EAAQC,GAClD,IAAIC,EAAIP,EAAKQ,OAAOH,IACpB,OAAOH,EAAUK,EAAID,IAAU,IAAOH,EAAIM,KAAKF,GAAK,GAAK,MACvDL,G,oBCbJ,IAAIQ,EAAyB,EAAQ,IAGjCC,EAAa,IAFC,EAAQ,KAEW,IACjCC,EAAQC,OAAO,IAAMF,EAAaA,EAAa,KAC/CG,EAAQD,OAAOF,EAAaA,EAAa,MAGzCI,EAAe,SAAUC,GAC3B,OAAO,SAAUC,GACf,IAAIZ,EAASG,OAAOE,EAAuBO,IAG3C,OAFW,EAAPD,IAAUX,EAASA,EAAOa,QAAQN,EAAO,KAClC,EAAPI,IAAUX,EAASA,EAAOa,QAAQJ,EAAO,KACtCT,IAIXT,EAAOC,QAAU,CAGfsB,MAAOJ,EAAa,GAGpBK,IAAKL,EAAa,GAGlBf,KAAMe,EAAa","file":"1-8e1f3e9d.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\n\r\nclass Contact extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\r\n\t\tthis.el = element;\r\n\t\tthis.isOpen = false;\r\n\r\n\t\telement.addEventListener(\r\n\t\t\t'click',\r\n\t\t\t(e) => {\r\n\t\t\t\tif (e.target && this.someAncestorHasClass(e.target, 'm-contact__toggle-open')) {\r\n\t\t\t\t\tthis.toggle();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfalse\r\n\t\t);\r\n\t}\r\n\r\n\tsomeAncestorHasClass(element, classname) {\r\n\t\tif (element.classList && element.classList.contains(classname)) return true;\r\n\t\treturn element.parentNode && this.someAncestorHasClass(element.parentNode, classname);\r\n\t}\r\n\r\n\ttoggle() {\r\n\t\tif (this.el.dataset.open === 'true') {\r\n\t\t\tthis.el.classList.remove('active');\r\n\r\n\t\t\tconst animationCallback = () => {\r\n\t\t\t\t// eslint-disable-next-line\r\n\t\t\t\tjQuery(this).height('auto');\r\n\t\t\t\t// eslint-disable-next-line\r\n\t\t\t\tjQuery(this).find(\".m-contact__image-container\").css(\"height\", \"\");\r\n\t\t\t};\r\n\t\t\t// eslint-disable-next-line\r\n\t\t\tjQuery(this.el).find(\".m-contact__media-container\").animate({\r\n\t\t\t\theight: this.previousHeight,\r\n\t\t\t}, 500, animationCallback);\r\n\t\t\tthis.el.querySelector('.m-contact__iframe-container').classList.remove('active');\r\n\t\t\t// eslint-disable-next-line\r\n\t\t\tjQuery(this.el).find('.m-contact__button-text').fadeIn();\r\n\t\t\tthis.el.querySelector('.m-contact__button-icon').classList.remove('active');\r\n\t\t} else {\r\n\t\t\tthis.el.classList.add('active');\r\n\t\t\t// eslint-disable-next-line\r\n\t\t\tthis.previousHeight = jQuery(this.el).find(\".m-contact__media-container\").height();\r\n\t\t\t// eslint-disable-next-line\r\n\t\t\tjQuery(this.el).find(\".m-contact__image-container\").css(\"height\", this.previousHeight);\r\n\t\t\t// eslint-disable-next-line\r\n\t\t\tlet iframe = jQuery(this.el).find(\".m-contact__iframe-container iframe\");\r\n\t\t\tiframe = iframe.length > 0 && iframe[0];\r\n\t\t\tlet iframeDoc;\r\n\t\t\ttry {\r\n\t\t\t\tiframeDoc = (iframe && iframe.contentDocument)\r\n\t\t\t\t\t|| (iframe && iframe.contentWindow && iframe.contentWindow.document);\r\n\t\t\t} catch (e) {\r\n\t\t\t\tiframeDoc = null;\r\n\t\t\t}\r\n\t\t\tconst iframeHeight = parseInt(this.el.dataset.iframeHeight, 10) !== 0\r\n\t\t\t\t? parseInt(this.el.dataset.iframeHeight, 10)\r\n\t\t\t\t: (iframeDoc && iframeDoc.body && iframeDoc.body.scrollHeight) || 800;\r\n\t\t\t// eslint-disable-next-line\r\n\t\t\tjQuery(this.el).find(\".m-contact__media-container\").animate({ height: iframeHeight }, 500);\r\n\t\t\tthis.el.querySelector('.m-contact__iframe-container').classList.add('active');\r\n\t\t\t// eslint-disable-next-line\r\n\t\t\tjQuery(this.el).find('.m-contact__button-text').fadeOut();\r\n\t\t\tthis.el.querySelector('.m-contact__button-icon').classList.add('active');\r\n\t\t}\r\n\r\n\t\tthis.el.dataset.open = this.el.dataset.open !== 'true';\r\n\t}\r\n}\r\n\r\nexport default Contact;\r\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n","// a string of all valid unicode whitespaces\n// eslint-disable-next-line max-len\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var $ = require('../internals/export');\nvar parseIntImplementation = require('../internals/number-parse-int');\n\n// `parseInt` method\n// https://tc39.github.io/ecma262/#sec-parseint-string-radix\n$({ global: true, forced: parseInt != parseIntImplementation }, {\n parseInt: parseIntImplementation\n});\n","var global = require('../internals/global');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseInt = global.parseInt;\nvar hex = /^[+-]?0[Xx]/;\nvar FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;\n\n// `parseInt` method\n// https://tc39.github.io/ecma262/#sec-parseint-string-radix\nmodule.exports = FORCED ? function parseInt(string, radix) {\n var S = trim(String(string));\n return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));\n} : $parseInt;\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar whitespaces = require('../internals/whitespaces');\n\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = String(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n"],"sourceRoot":""}