{"version":3,"sources":["webpack:///./assets/javascripts/modules/abstracts/Component.js","webpack:///./assets/javascripts/modules/utils/ajaxUtil.js","webpack:///./assets/javascripts/modules/utils/DependencyInjector.js","webpack:///./node_modules/bootstrap/js/src lazy ^\\.\\/.*$ namespace object","webpack:///./node_modules/flatpickr/dist/l10n lazy ^\\.\\/.*\\.js$ namespace object","webpack:///./assets/javascripts/modules/utils/FocusableElementUtils.js","webpack:///./node_modules/vex-js/dist/js/vex.js","webpack:///./assets/javascripts/modules/components/ModalComponent.js"],"names":["Component","_classCallCheck","this","moduleLoader","DependencyInjector","$customEvents","CustomEvents","$matchMedia","Matchmq","$on","on","$emit","emit","$off","off","$one","one","$doAjax","doAjax","$getFirstFocusable","getFirstFocusable","$importComponent","importComponent","logStr","arguments","length","undefined","params","myName","constructor","name","console","log","warn","component","$","append","options","extend","cache","async","type","ajax","ajaxAction","classEl","source","target","functionName","context","args","namespaces","Array","prototype","slice","call","split","func","pop","i","apply","uri","key","value","re","RegExp","separator","indexOf","match","replace","query","ajaxConf","url","res","_this","contentname","fallbacks","response","DOMParser","parseFromString","querySelector","SELECTORS","document","innerHTML","AJAX_EVENTS","loaded","updated","isArray","forEach","callback","executeFunctionByName","window","loadedDependency","existingDependency","saveDependency","lib","Promise","resolve","reject","e","debug","componentName","thenPromise","catchPromise","__webpack_require__","then","catch","t","bind","err","error","locale","widgetName","script","createElement","src","addEventListener","body","appendChild","stack","map","./","./alert","./alert.js","./button","./button.js","./carousel","./carousel.js","./collapse","./collapse.js","./dropdown","./dropdown.js","./index","./index.js","./modal","./modal.js","./popover","./popover.js","./scrollspy","./scrollspy.js","./tab","./tab.js","./toast","./toast.js","./tools/sanitizer","./tools/sanitizer.js","./tooltip","./tooltip.js","./util","./util.js","webpackAsyncContext","req","o","Error","code","ids","id","all","keys","Object","module","exports","./ar.js","./at.js","./az.js","./be.js","./bg.js","./bn.js","./bs.js","./cat.js","./cs.js","./cy.js","./da.js","./de.js","./default.js","./eo.js","./es.js","./et.js","./fa.js","./fi.js","./fo.js","./fr.js","./ga.js","./gr.js","./he.js","./hi.js","./hr.js","./hu.js","./id.js","./is.js","./it.js","./ja.js","./ka.js","./km.js","./ko.js","./kz.js","./lt.js","./lv.js","./mk.js","./mn.js","./ms.js","./my.js","./nl.js","./no.js","./pa.js","./pl.js","./pt.js","./ro.js","./ru.js","./si.js","./sk.js","./sl.js","./sq.js","./sr-cyr.js","./sr.js","./sv.js","./th.js","./tr.js","./uk.js","./uz.js","./uz_latn.js","./vn.js","./zh-tw.js","./zh.js","d","__webpack_exports__","parent","require","n","r","s","u","a","f","l","1","self","createElementNS","view","elemCtrProto","Element","objCtr","strTrim","String","trim","arrIndexOf","item","len","DOMEx","message","DOMException","checkTokenAndGetIndex","classList","token","test","ClassList","elem","trimmedClasses","getAttribute","classes","push","_updateClassName","setAttribute","toString","classListProto","classListGetter","contains","add","tokens","remove","index","splice","toggle","force","result","method","join","defineProperty","classListPropDesc","get","enumerable","configurable","ex","number","__defineGetter__","testElement","createMethod","original","DOMTokenList","_toggle","2","html","doc","TypeError","m","exec","createTextNode","tag","el","removeChild","lastChild","wrap","_default","depth","prefix","suffix","firstChild","fragment","createDocumentFragment","bugTestDiv","innerHTMLBug","getElementsByTagName","legend","tr","col","td","th","option","optgroup","thead","tbody","colgroup","caption","tfoot","polyline","ellipse","polygon","circle","text","line","path","rect","g","3","assign","firstSource","to","nextSource","keysArray","nextIndex","nextKey","desc","getOwnPropertyDescriptor","polyfill","writable","4","domify","escapeHtml","str","div","addClasses","classStr","className","animationEndEvent","eventNames","animation","WebkitAnimation","MozAnimation","OAnimation","msAnimation","style","baseClassNames","vex","content","overlay","close","closing","open","vexes","globalId","isEscapeActive","opts","warnDeprecated","prop","css","overlayCSS","contentCSS","closeCSS","vexInstance","isOpen","escapeButtonCloses","shouldClose","beforeClose","getComputedStyle","contentEl","hasAnimationPre","getPropertyValue","hasAnimation","rootEl","parentNode","removeEventListener","overlayEl","bodyEl","afterClose","unsafeContent","defaultOptions","overlayClassName","overlayClosesOnClick","contentClassName","Node","showCloseButton","closeEl","closeClassName","appendLocation","afterOpen","vexOrId","closeTop","closeAll","getAll","getById","keyCode","closeAllOnPopState","registerPlugin","pluginFn","plugin","pluginName","classlist-polyfill","es6-object-assign","ModalComponent","_possibleConstructorReturn","__proto__","getPrototypeOf","focusableEl","trigger","container","tab","select","canScroll","closeText","overflow","_this2","$close","$container","closeLabel","addClass","CLASSES","find","LIBRARIES_SELECTORS","loadBootstrapJsComponentAndExecute","attr","first","focus","$el","siblings","data","serialize","contentType","JSON","parse","_this3","ctx","title","overlayClass","dataEgonValidation","dataConfig","toUpperCase","getDataConfig","resp","chunked","_typeof","wrappedContent","outerHTML","setTimeout","modalAfterOpen","MODAL_EVENTS","egonValidation","removeClass","conf","classData","modalClass","_this4","$header","$body","each","dataset","componentpb","_this5","_ref","event","currentTarget","preventDefault","openStaticContent","openAjaxContent","show","_ref2","payload","openRemoteContent","bindEvents"],"mappings":"+ZAUqBA,aACnB,SAAAA,iGAAcC,CAAAC,KAAAF,GACZE,KAAKC,aAAe,IAAIC,IACxBF,KAAKG,cAAgBC,IACrBJ,KAAKK,YAAcC,IACnBN,KAAKO,IAAMC,IACXR,KAAKS,MAAQC,IACbV,KAAKW,KAAOC,IACZZ,KAAKa,KAAOC,IACZd,KAAKe,QAAUC,IACfhB,KAAKiB,mBAAqBC,IAC1BlB,KAAKmB,iBAAmBnB,KAAKoB,wDAOD,IAA1BC,EAA0BC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAjB,GAAIG,EAAaH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAJ,GACxB,GAAc,IAAVD,EAAc,CAChB,IAAIK,EAAS1B,KAAK2B,YAAYC,KAC9BC,QAAQC,IAAR,IAAgBJ,EAAhB,KAA2BL,EAA3B,IAAqCI,mCAQV,IAA1BJ,EAA0BC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,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A,EACA,IAEAC,gBACA,IACA,EACA,IAEAC,UACA,IACA,IAEAC,aACA,IACA,KAGA,SAAAC,EAAAC,GACA,IAAA/C,EAAAgD,EAAAhC,EAAA+B,GACA,OAAAvD,QAAAC,UAAAQ,KAAA,WACA,IAAAN,EAAA,IAAAsD,MAAA,uBAAAF,EAAA,KAEA,MADApD,EAAAuD,KAAA,mBACAvD,IAIA,IAAAwD,EAAAnC,EAAA+B,GAAAK,EAAAD,EAAA,GACA,OAAA3D,QAAA6D,IAAAF,EAAArG,MAAA,GAAAkE,IAAAhB,EAAAL,IAAAM,KAAA,WACA,OAAAD,EAAAoD,KAGAN,EAAAQ,KAAA,WACA,OAAAC,OAAAD,KAAAtC,IAEA8B,EAAAM,GAAA,IACAI,EAAAC,QAAAX,uBCjJA,IAAA9B,GACA0C,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,YACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,gBACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAvD,cACA,IACA,KAEAwD,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEAC,WACA,IACA,KAEA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,GAAI+Z,EAAO,CACT,IAAIoB,EAAUnb,oCAAoC+Z,EAApC,UACd3B,EAAUnY,OAAOkb,QAEjB/C,EAAUU,SAAS,aAErB,GAAIvE,EAAS,CACX,IAAI6G,EAAQpb,8BAA8BuU,EAA9B,UACT6G,EAAMpC,KAAK,sBAAsB1Z,OAAS,GAC3C8b,EAAMpC,KAAK,sBAAsBqC,KAAK,SAAC3M,EAAOd,GAC5CsN,EAAK/b,gBAAgByO,EAAK0N,QAAQC,eAGtCnD,EAAUnY,OAAOmb,GAEnB,OAAOhD,uCAGI,IAAAoD,EAAAzd,KACXA,KAAKO,IAAI,cAAe,SAAAmd,GAAa,IAAXC,EAAWD,EAAXC,MACpBpC,EAAMtZ,EAAE0b,EAAMC,eACgB,QAA9BrC,EAAIE,KAAK,kBACXkC,EAAME,iBAGJtC,EAAIE,KAAK,WACXgC,EAAKK,kBAAkBvC,GAEvBkC,EAAKM,gBAAgBxC,IAEtB,OAAQvb,KAAK8E,UAAUsV,SAE1Bpa,KAAKO,IAAIP,KAAKG,cAAc0c,aAAamB,KAAM,SAAAC,GAAe,IAAbC,EAAaD,EAAbC,QAC/CT,EAAKU,kBAAkBD,sCAKzBle,KAAKoe,sBA3OYrE","file":"components-ModalComponent.chunks.js","sourcesContent":["import DependencyInjector from '../utils/DependencyInjector';\nimport { CustomEvents } from '../utils/CustomEvents';\nimport { Matchmq } from '../utils/ResolutionHandler';\nimport { getFirstFocusable } from '../utils/FocusableElementUtils';\nimport { on, emit, off, one } from '../utils/EventsBus';\nimport { doAjax } from '../utils/ajaxUtil';\n\n/**\n * Generic web component that expose a render method\n */\nexport default class Component {\n constructor() {\n this.moduleLoader = new DependencyInjector(); // Use this class to lazy load modules!!\n this.$customEvents = CustomEvents;\n this.$matchMedia = Matchmq;\n this.$on = on;\n this.$emit = emit;\n this.$off = off;\n this.$one = one;\n this.$doAjax = doAjax;\n this.$getFirstFocusable = getFirstFocusable;\n this.$importComponent = this.importComponent;\n }\n\n /**\n * Log utility\n * @param logStr\n */\n log(logStr = '', params = '') {\n if (logStr != '') {\n let myName = this.constructor.name;\n console.log(`[${myName}] ${logStr} ${params}`);\n }\n }\n\n /**\n * Log utility\n * @param logStr\n */\n warn(logStr = '', params = '') {\n if (logStr != '') {\n let myName = this.constructor.name;\n console.warn(`[${myName}] ${logStr} ${params}`);\n }\n }\n\n importComponent(component) {\n $('body').append(`
`);\n return true;\n }\n\n /*\n Main method that execute the render logic of the component\n */\n render() {\n let myName = this.constructor.name;\n console.log(`[${myName}] Rendering..`);\n }\n}\n","import {on, emit} from './EventsBus';\nimport { CustomEvents } from './CustomEvents';\n\nexport const doAjax = options => {\n options = $.extend(\n true,\n {},\n {\n cache: false,\n async: true,\n type: 'GET'\n },\n options\n );\n return $.ajax(options);\n};\n\nexport default class ajaxAction {\n\n static get SELECTORS() {\n return {\n source: '[data-ajax-source]',\n target: '[data-ajax-target]'\n };\n }\n\n constructor(classEl) {\n this.classEl = classEl;\n }\n\n // basics\n executeFunctionByName(functionName, context , args = false ) {\n var args = Array.prototype.slice.call(arguments, 2);\n var namespaces = functionName.split(\".\");\n var func = namespaces.pop();\n for(var i = 0; i < namespaces.length; i++) {\n context = context[namespaces[i]];\n }\n return context[func].apply(context, args);\n }\n\n updateQueryStringParameter(uri, key, value) {\n var re = new RegExp(\"([?&])\" + key + \"=.*?(&|$)\", \"i\");\n var separator = uri.indexOf('?') !== -1 ? \"&\" : \"?\";\n if (uri.match(re)) {\n return uri.replace(re, '$1' + key + \"=\" + value + '$2');\n }\n else {\n return uri + separator + key + \"=\" + value;\n }\n }\n\n // ajax function\n getPage(query) {\n // json configuration\n let ajaxConf = {\n type: 'GET',\n url: query,\n };\n // returns\n return $.ajax(ajaxConf);\n }\n\n // content replacing function\n renderContent(res, contentname = false , fallbacks = false ){\n // response\n const response = new DOMParser ().parseFromString(res, 'text/html');\n // update content\n let source = (contentname) ? response.querySelector('[data-ajax-source='+contentname+']') : response.querySelector(this.SELECTORS.source);\n let target = (contentname) ? document.querySelector('[data-ajax-target='+contentname+']') : document.querySelector(this.SELECTORS.target);\n if(typeof source !== 'undefined' && source != null && typeof target !== 'undefined' && target != null ) {\n // update the html pager\n target.innerHTML = source.innerHTML;\n emit(CustomEvents.AJAX_EVENTS.loaded);\n emit(CustomEvents.AJAX_EVENTS.updated);\n }\n //\n if(fallbacks && fallbacks.isArray()){\n fallbacks.forEach(callback => {\n this.executeFunctionByName(callback, window);\n })\n }\n //\n }\n}\n","const loadedDependency = {};\n\nconst existingDependency = (name) => {\n return (name in loadedDependency) ? loadedDependency[name] : false;\n};\n\nconst saveDependency = (name, lib) => {\n return new Promise((resolve, reject) => {\n try {\n if (!existingDependency(name)) {\n loadedDependency[name] = lib;\n resolve(false);\n } else {\n resolve(true);\n }\n } catch (e) {\n reject(e);\n }\n });\n};\n\n/**\n * This utility class is injected in all components that extends Component\n * and is used to lazy load third-part libraries\n */\nexport default class DependencyInjector {\n static get CUSTOM_STYLES() {\n return '../../../stylesheets';\n }\n\n static defaultCatchPromise(error) {\n console.error(\"Failed to inject dependency\", error.stack);\n }\n\n /**\n * Log utility\n * @param logStr\n */\n log(logStr = \"\") {\n if (logStr != \"\") {\n let myName = this.constructor.name;\n console.debug(`[${myName}] ${logStr}`);\n }\n }\n\n /**\n * Load a single bootstrap component from library\n * The SCSS file shoul be created due to the impossibility to import from bootstrap package\n * @param thenPromise\n * @param catchPromise\n */\n loadBootstrapJsComponentAndExecute(componentName, thenPromise, catchPromise) {\n this.log(`Loading Bootstrap ${componentName}`);\n\n import(/* webpackChunkName: `boostrap-js` */ `bootstrap/js/src/${componentName}`).then(thenPromise).catch(catchPromise);\n }\n\n // loadAos(thenPromise, catchPromise) {\n // this.log('Loading aos');\n\n // import(/* webpackChunkName: `aos` */ 'aos/dist/aos.css').then(\n // () => {\n // import(/* webpackChunkName: `aos` */ 'aos').then(thenPromise).catch(catchPromise);\n // }).catch(catchPromise);\n // }\n\n loadModalAndExecute(thenPromise, catchPromise) {\n this.log('Loading Modal');\n if (existingDependency('vex')) return thenPromise(existingDependency('vex'));\n\n import(/* webpackChunkName: `vex` */ 'vex-js/dist/js/vex.js').then((res) => {\n saveDependency('vex', res);\n thenPromise(res);\n }).catch(catchPromise);\n }\n\n loadCarouselAndExecute(thenPromise, catchPromise) {\n this.log('Loading Slick Carousel');\n if (existingDependency('carousel')) return thenPromise(existingDependency('carousel'));\n\n import(/* webpackChunkName: `slick-carousel` */ 'slick-carousel/slick/slick.scss').then( () => {\n import(/* webpackChunkName: `slick-carousel` */ \"slick-carousel/slick/slick-theme.scss\").then(() => {\n import(/* webpackChunkName: `slick-carousel` */ 'slick-carousel/slick/slick.js').then((res) => {\n saveDependency('carousel', res);\n thenPromise(res);\n }).catch(catchPromise);\n }).catch(err => {\n console.error('Failed slick css import')\n }); // js library\n }).catch(err => {\n console.error('Failed slick css theme')\n });\n }\n\n loadStickyAndExecute(thenPromise, catchPromise) {\n this.log('Loading stickybits');\n import(/* webpackChunkName: `stickybits` */ 'stickybits').then(thenPromise).catch(catchPromise);\n }\n\n loadFlatpickrLocale(locale, thenPromise, catchPromise) {\n import(/* webpackChunkName: `flatpickr-locale` */ `flatpickr/dist/l10n/${locale}.js`).then(thenPromise).catch(catchPromise)\n }\n\n loadFlatpickr(thenPromise, catchPromise) {\n this.log('Loading Flatpickr');\n\n import(/* webpackChunkName: `flatpickr` */ 'flatpickr/src/style/flatpickr.styl').then(\n () => {\n import(/* webpackChunkName: `flatpickr` */ 'flatpickr/src/style/themes/airbnb.styl');\n import(/* webpackChunkName: `flatpickr` */ 'flatpickr/dist/flatpickr.js').then(thenPromise).catch(catchPromise); // js library\n }).catch(catchPromise);\n }\n\n /**\n * This method load the query-string library and execute the given promises\n * when loaded\n * @param thenPromise the code that must be executed when jscroll is ready\n * @param catchPromise the code that must be executed when jscrol fails to load\n */\n // loadQueryStringAndExecute(thenPromise, catchPromise) {\n // this.log(\"Loading query-string\");\n // import(/* webpackChunkName: `query-string` */ \"query-string\").then(thenPromise).catch(catchPromise);\n // }\n\n /**\n * This method load the jscroll library and execute the given promises\n * when loaded\n * @param thenPromise the code that must be executed when jscroll is ready\n * @param catchPromise the code that must be executed when jscroll fails to load\n */\n // loadJscrollAndExecute(thenPromise, catchPromise) {\n // this.log(\"Loading jscroll\");\n // import(/* webpackChunkName: `jscroll` */ \"jscroll\").then(thenPromise).catch(catchPromise);\n // }\n\n /**\n * This method load the blueimp-file-upload library and execute the given promises\n * when loaded\n * @param thenPromise the code that must be executed when blueimp-file-upload is ready\n * @param catchPromise the code that must be executed when blueimp-file-upload fails to load\n */\n // loadBlueimpFileUploadAndExecute(thenPromise, catchPromise) {\n // this.log(\"Loading BlueimpFileUpload\");\n // import(/* webpackChunkName: `blueimp-file-upload` */ \"blueimp-file-upload\").then(\n // () => {\n // import(/* webpackChunkName: `blueimp-file-upload` */ 'blueimp-file-upload/css/jquery.fileupload.css').then(thenPromise).catch(catchPromise); // js library\n // }).catch(catchPromise);\n // }\n\n loadJqueryValidationAndExecute(thenPromise, catchPromise) {\n this.log(\"Loading jquery-validation\");\n import( /* webpackChunkName: `jquery-validation` */ \"jquery-validation\").then(thenPromise).catch(catchPromise);\n }\n\n loadSimpleBarAndExecute(thenPromise, catchPromise) {\n this.log(\"Loading SimpleBar\");\n if (existingDependency('simplebar')) return thenPromise(existingDependency('simplebar'));\n import( /* webpackChunkName: `simplebar` */ \"simplebar\").then((res) => {\n saveDependency('simplebar', res);\n thenPromise(res);\n }).catch(catchPromise);\n }\n\n\n /**\n * Load all jquery ui js (1.5kb gzipped)\n * @param widgetName the name of jquery wigget\n * @param thenPromise the code that must be executed when the widget is ready\n * @param catchPromise the code that must be executed when the widget fails to load\n */\n loadJqueryUIWidgetAndExecute(widgetName, thenPromise, catchPromise) {\n this.log(`Loading jQuery UI dist for ${widgetName}`);\n\n import(\n /* webpackChunkName: `jquery-ui` */\n 'jquery-ui-dist/jquery-ui').then(thenPromise).catch(catchPromise);\n }\n\n loadExternalScript(url) {\n return new Promise((resolve, reject) => {\n let script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = url;\n script.addEventListener('load', () => resolve(script), false);\n script.addEventListener('error', () => reject(script), false);\n document.body.appendChild(script);\n });\n }\n}\n","var map = {\n\t\"./\": [\n\t\t265,\n\t\t2,\n\t\t8\n\t],\n\t\"./alert\": [\n\t\t271,\n\t\t10\n\t],\n\t\"./alert.js\": [\n\t\t271,\n\t\t10\n\t],\n\t\"./button\": [\n\t\t272,\n\t\t15\n\t],\n\t\"./button.js\": [\n\t\t272,\n\t\t15\n\t],\n\t\"./carousel\": [\n\t\t273,\n\t\t20\n\t],\n\t\"./carousel.js\": [\n\t\t273,\n\t\t20\n\t],\n\t\"./collapse\": [\n\t\t274,\n\t\t21\n\t],\n\t\"./collapse.js\": [\n\t\t274,\n\t\t21\n\t],\n\t\"./dropdown\": [\n\t\t275,\n\t\t2,\n\t\t22\n\t],\n\t\"./dropdown.js\": [\n\t\t275,\n\t\t2,\n\t\t22\n\t],\n\t\"./index\": [\n\t\t265,\n\t\t2,\n\t\t8\n\t],\n\t\"./index.js\": [\n\t\t265,\n\t\t2,\n\t\t8\n\t],\n\t\"./modal\": [\n\t\t276,\n\t\t11\n\t],\n\t\"./modal.js\": [\n\t\t276,\n\t\t11\n\t],\n\t\"./popover\": [\n\t\t277,\n\t\t2,\n\t\t12\n\t],\n\t\"./popover.js\": [\n\t\t277,\n\t\t2,\n\t\t12\n\t],\n\t\"./scrollspy\": [\n\t\t278,\n\t\t13\n\t],\n\t\"./scrollspy.js\": [\n\t\t278,\n\t\t13\n\t],\n\t\"./tab\": [\n\t\t279,\n\t\t14\n\t],\n\t\"./tab.js\": [\n\t\t279,\n\t\t14\n\t],\n\t\"./toast\": [\n\t\t280,\n\t\t16\n\t],\n\t\"./toast.js\": [\n\t\t280,\n\t\t16\n\t],\n\t\"./tools/sanitizer\": [\n\t\t269,\n\t\t17\n\t],\n\t\"./tools/sanitizer.js\": [\n\t\t269,\n\t\t17\n\t],\n\t\"./tooltip\": [\n\t\t268,\n\t\t2,\n\t\t18\n\t],\n\t\"./tooltip.js\": [\n\t\t268,\n\t\t2,\n\t\t18\n\t],\n\t\"./util\": [\n\t\t267,\n\t\t19\n\t],\n\t\"./util.js\": [\n\t\t267,\n\t\t19\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 284;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./ar.js\": [\n\t\t299,\n\t\t158\n\t],\n\t\"./at.js\": [\n\t\t300,\n\t\t159\n\t],\n\t\"./az.js\": [\n\t\t301,\n\t\t170\n\t],\n\t\"./be.js\": [\n\t\t302,\n\t\t180\n\t],\n\t\"./bg.js\": [\n\t\t303,\n\t\t191\n\t],\n\t\"./bn.js\": [\n\t\t304,\n\t\t202\n\t],\n\t\"./bs.js\": [\n\t\t305,\n\t\t213\n\t],\n\t\"./cat.js\": [\n\t\t306,\n\t\t217\n\t],\n\t\"./cs.js\": [\n\t\t307,\n\t\t218\n\t],\n\t\"./cy.js\": [\n\t\t308,\n\t\t219\n\t],\n\t\"./da.js\": [\n\t\t309,\n\t\t160\n\t],\n\t\"./de.js\": [\n\t\t310,\n\t\t161\n\t],\n\t\"./default.js\": [\n\t\t311,\n\t\t162\n\t],\n\t\"./eo.js\": [\n\t\t312,\n\t\t163\n\t],\n\t\"./es.js\": [\n\t\t313,\n\t\t164\n\t],\n\t\"./et.js\": [\n\t\t314,\n\t\t165\n\t],\n\t\"./fa.js\": [\n\t\t315,\n\t\t166\n\t],\n\t\"./fi.js\": [\n\t\t316,\n\t\t167\n\t],\n\t\"./fo.js\": [\n\t\t317,\n\t\t168\n\t],\n\t\"./fr.js\": [\n\t\t318,\n\t\t169\n\t],\n\t\"./ga.js\": [\n\t\t319,\n\t\t171\n\t],\n\t\"./gr.js\": [\n\t\t320,\n\t\t172\n\t],\n\t\"./he.js\": [\n\t\t321,\n\t\t173\n\t],\n\t\"./hi.js\": [\n\t\t322,\n\t\t174\n\t],\n\t\"./hr.js\": [\n\t\t323,\n\t\t175\n\t],\n\t\"./hu.js\": [\n\t\t324,\n\t\t176\n\t],\n\t\"./id.js\": [\n\t\t325,\n\t\t177\n\t],\n\t\"./index.js\": [\n\t\t326,\n\t\t227\n\t],\n\t\"./is.js\": [\n\t\t327,\n\t\t178\n\t],\n\t\"./it.js\": [\n\t\t328,\n\t\t179\n\t],\n\t\"./ja.js\": [\n\t\t329,\n\t\t181\n\t],\n\t\"./ka.js\": [\n\t\t330,\n\t\t182\n\t],\n\t\"./km.js\": [\n\t\t331,\n\t\t183\n\t],\n\t\"./ko.js\": [\n\t\t332,\n\t\t184\n\t],\n\t\"./kz.js\": [\n\t\t333,\n\t\t185\n\t],\n\t\"./lt.js\": [\n\t\t334,\n\t\t186\n\t],\n\t\"./lv.js\": [\n\t\t335,\n\t\t187\n\t],\n\t\"./mk.js\": [\n\t\t336,\n\t\t188\n\t],\n\t\"./mn.js\": [\n\t\t337,\n\t\t189\n\t],\n\t\"./ms.js\": [\n\t\t338,\n\t\t190\n\t],\n\t\"./my.js\": [\n\t\t339,\n\t\t192\n\t],\n\t\"./nl.js\": [\n\t\t340,\n\t\t193\n\t],\n\t\"./no.js\": [\n\t\t341,\n\t\t194\n\t],\n\t\"./pa.js\": [\n\t\t342,\n\t\t195\n\t],\n\t\"./pl.js\": [\n\t\t343,\n\t\t196\n\t],\n\t\"./pt.js\": [\n\t\t344,\n\t\t197\n\t],\n\t\"./ro.js\": [\n\t\t345,\n\t\t198\n\t],\n\t\"./ru.js\": [\n\t\t346,\n\t\t199\n\t],\n\t\"./si.js\": [\n\t\t347,\n\t\t200\n\t],\n\t\"./sk.js\": [\n\t\t348,\n\t\t201\n\t],\n\t\"./sl.js\": [\n\t\t349,\n\t\t203\n\t],\n\t\"./sq.js\": [\n\t\t350,\n\t\t204\n\t],\n\t\"./sr-cyr.js\": [\n\t\t351,\n\t\t205\n\t],\n\t\"./sr.js\": [\n\t\t352,\n\t\t206\n\t],\n\t\"./sv.js\": [\n\t\t353,\n\t\t207\n\t],\n\t\"./th.js\": [\n\t\t354,\n\t\t208\n\t],\n\t\"./tr.js\": [\n\t\t355,\n\t\t209\n\t],\n\t\"./uk.js\": [\n\t\t356,\n\t\t210\n\t],\n\t\"./uz.js\": [\n\t\t357,\n\t\t211\n\t],\n\t\"./uz_latn.js\": [\n\t\t358,\n\t\t212\n\t],\n\t\"./vn.js\": [\n\t\t359,\n\t\t214\n\t],\n\t\"./zh-tw.js\": [\n\t\t360,\n\t\t215\n\t],\n\t\"./zh.js\": [\n\t\t361,\n\t\t216\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 7);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 285;\nmodule.exports = webpackAsyncContext;","const focusableSelectors = 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"]), [role=\"button\"]';\nexport const getFirstFocusable = (parent) => {\n return parent.querySelector(focusableSelectors);\n};\n","(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.vex = f()}})(function(){var define,module,exports;return (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o', ''],\n tr: [2, '', '
'],\n col: [2, '', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
', '
'] : [0, '', '']\n};\n\nmap.td =\nmap.th = [3, '', '
'];\n\nmap.option =\nmap.optgroup = [1, ''];\n\nmap.thead =\nmap.tbody =\nmap.colgroup =\nmap.caption =\nmap.tfoot = [1, '', '
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, '',''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = map[tag] || map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\n},{}],3:[function(require,module,exports){\n/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n\n},{}],4:[function(require,module,exports){\n// classList polyfill for old browsers\r\nrequire('classlist-polyfill')\r\n// Object.assign polyfill\r\nrequire('es6-object-assign').polyfill()\r\n\r\n// String to DOM function\r\nvar domify = require('domify')\r\n\r\n// Use the DOM's HTML parsing to escape any dangerous strings\r\nvar escapeHtml = function escapeHtml (str) {\r\n if (typeof str !== 'undefined') {\r\n var div = document.createElement('div')\r\n div.appendChild(document.createTextNode(str))\r\n return div.innerHTML\r\n } else {\r\n return ''\r\n }\r\n}\r\n\r\n// Utility function to add space-delimited class strings to a DOM element's classList\r\nvar addClasses = function addClasses (el, classStr) {\r\n if (typeof classStr !== 'string' || classStr.length === 0) {\r\n return\r\n }\r\n var classes = classStr.split(' ')\r\n for (var i = 0; i < classes.length; i++) {\r\n var className = classes[i]\r\n if (className.length) {\r\n el.classList.add(className)\r\n }\r\n }\r\n}\r\n\r\n// Detect CSS Animation End Support\r\n// https://github.com/limonte/sweetalert2/blob/99bd539f85e15ac170f69d35001d12e092ef0054/src/utils/dom.js#L194\r\nvar animationEndEvent = (function detectAnimationEndEvent () {\r\n var el = document.createElement('div')\r\n var eventNames = {\r\n 'animation': 'animationend',\r\n 'WebkitAnimation': 'webkitAnimationEnd',\r\n 'MozAnimation': 'animationend',\r\n 'OAnimation': 'oanimationend',\r\n 'msAnimation': 'MSAnimationEnd'\r\n }\r\n for (var i in eventNames) {\r\n if (el.style[i] !== undefined) {\r\n return eventNames[i]\r\n }\r\n }\r\n return false\r\n})()\r\n\r\n// vex base CSS classes\r\nvar baseClassNames = {\r\n vex: 'vex',\r\n content: 'vex-content',\r\n overlay: 'vex-overlay',\r\n close: 'vex-close',\r\n closing: 'vex-closing',\r\n open: 'vex-open'\r\n}\r\n\r\n// Private lookup table of all open vex objects, keyed by id\r\nvar vexes = {}\r\nvar globalId = 1\r\n\r\n// Private boolean to assist the escapeButtonCloses option\r\nvar isEscapeActive = false\r\n\r\n// vex itself is an object that exposes a simple API to open and close vex objects in various ways\r\nvar vex = {\r\n open: function open (opts) {\r\n // Check for usage of deprecated options, and log a warning\r\n var warnDeprecated = function warnDeprecated (prop) {\r\n console.warn('The \"' + prop + '\" property is deprecated in vex 3. Use CSS classes and the appropriate \"ClassName\" options, instead.')\r\n console.warn('See http://github.hubspot.com/vex/api/advanced/#options')\r\n }\r\n if (opts.css) {\r\n warnDeprecated('css')\r\n }\r\n if (opts.overlayCSS) {\r\n warnDeprecated('overlayCSS')\r\n }\r\n if (opts.contentCSS) {\r\n warnDeprecated('contentCSS')\r\n }\r\n if (opts.closeCSS) {\r\n warnDeprecated('closeCSS')\r\n }\r\n\r\n // The dialog instance\r\n var vexInstance = {}\r\n\r\n // Set id\r\n vexInstance.id = globalId++\r\n\r\n // Store internally\r\n vexes[vexInstance.id] = vexInstance\r\n\r\n // Set state\r\n vexInstance.isOpen = true\r\n\r\n // Close function on the vex instance\r\n // This is how all API functions should close individual vexes\r\n vexInstance.close = function instanceClose () {\r\n // Check state\r\n if (!this.isOpen) {\r\n return true\r\n }\r\n\r\n var options = this.options\r\n\r\n // escapeButtonCloses is checked first\r\n if (isEscapeActive && !options.escapeButtonCloses) {\r\n return false\r\n }\r\n\r\n // Allow the user to validate any info or abort the close with the beforeClose callback\r\n var shouldClose = (function shouldClose () {\r\n // Call before close callback\r\n if (options.beforeClose) {\r\n return options.beforeClose.call(this)\r\n }\r\n // Otherwise indicate that it's ok to continue with close\r\n return true\r\n }.bind(this)())\r\n\r\n // If beforeClose() fails, abort the close\r\n if (shouldClose === false) {\r\n return false\r\n }\r\n\r\n // Update state\r\n this.isOpen = false\r\n\r\n // Detect if the content el has any CSS animations defined\r\n var style = window.getComputedStyle(this.contentEl)\r\n function hasAnimationPre (prefix) {\r\n return style.getPropertyValue(prefix + 'animation-name') !== 'none' && style.getPropertyValue(prefix + 'animation-duration') !== '0s'\r\n }\r\n var hasAnimation = hasAnimationPre('') || hasAnimationPre('-webkit-') || hasAnimationPre('-moz-') || hasAnimationPre('-o-')\r\n\r\n // Define the function that will actually close the instance\r\n var close = function close () {\r\n if (!this.rootEl.parentNode) {\r\n return\r\n }\r\n // Run once\r\n this.rootEl.removeEventListener(animationEndEvent, close)\r\n this.overlayEl.removeEventListener(animationEndEvent, close)\r\n // Remove from lookup table (prevent memory leaks)\r\n delete vexes[this.id]\r\n // Remove the dialog from the DOM\r\n this.rootEl.parentNode.removeChild(this.rootEl)\r\n // Remove the overlay from the DOM\r\n this.bodyEl.removeChild(this.overlayEl)\r\n // Call after close callback\r\n if (options.afterClose) {\r\n options.afterClose.call(this)\r\n }\r\n // Remove styling from the body, if no more vexes are open\r\n if (Object.keys(vexes).length === 0) {\r\n document.body.classList.remove(baseClassNames.open)\r\n }\r\n }.bind(this)\r\n\r\n // Close the vex\r\n if (animationEndEvent && hasAnimation) {\r\n // Setup the end event listener, to remove the el from the DOM\r\n this.rootEl.addEventListener(animationEndEvent, close)\r\n this.overlayEl.addEventListener(animationEndEvent, close)\r\n // Add the closing class to the dialog, showing the close animation\r\n this.rootEl.classList.add(baseClassNames.closing)\r\n this.overlayEl.classList.add(baseClassNames.closing)\r\n } else {\r\n close()\r\n }\r\n\r\n return true\r\n }\r\n\r\n // Allow strings as content\r\n if (typeof opts === 'string') {\r\n opts = {\r\n content: opts\r\n }\r\n }\r\n\r\n // `content` is unsafe internally, so translate\r\n // safe default: HTML-escape the content before passing it through\r\n if (opts.unsafeContent && !opts.content) {\r\n opts.content = opts.unsafeContent\r\n } else if (opts.content) {\r\n opts.content = escapeHtml(opts.content)\r\n }\r\n\r\n // Store options on instance for future reference\r\n var options = vexInstance.options = Object.assign({}, vex.defaultOptions, opts)\r\n\r\n // Get Body Element\r\n var bodyEl = vexInstance.bodyEl = document.getElementsByTagName('body')[0]\r\n\r\n // vex root\r\n var rootEl = vexInstance.rootEl = document.createElement('div')\r\n rootEl.classList.add(baseClassNames.vex)\r\n addClasses(rootEl, options.className)\r\n\r\n // Overlay\r\n var overlayEl = vexInstance.overlayEl = document.createElement('div')\r\n overlayEl.classList.add(baseClassNames.overlay)\r\n addClasses(overlayEl, options.overlayClassName)\r\n if (options.overlayClosesOnClick) {\r\n rootEl.addEventListener('click', function overlayClickListener (e) {\r\n if (e.target === rootEl) {\r\n vexInstance.close()\r\n }\r\n })\r\n }\r\n bodyEl.appendChild(overlayEl)\r\n\r\n // Content\r\n var contentEl = vexInstance.contentEl = document.createElement('div')\r\n contentEl.classList.add(baseClassNames.content)\r\n addClasses(contentEl, options.contentClassName)\r\n contentEl.appendChild(options.content instanceof window.Node ? options.content : domify(options.content))\r\n rootEl.appendChild(contentEl)\r\n\r\n // Close button\r\n if (options.showCloseButton) {\r\n var closeEl = vexInstance.closeEl = document.createElement('div')\r\n closeEl.classList.add(baseClassNames.close)\r\n addClasses(closeEl, options.closeClassName)\r\n closeEl.addEventListener('click', vexInstance.close.bind(vexInstance))\r\n contentEl.appendChild(closeEl)\r\n }\r\n\r\n // Add to DOM\r\n document.querySelector(options.appendLocation).appendChild(rootEl)\r\n\r\n // Call after open callback\r\n if (options.afterOpen) {\r\n options.afterOpen.call(vexInstance)\r\n }\r\n\r\n // Apply styling to the body\r\n document.body.classList.add(baseClassNames.open)\r\n\r\n // Return the created vex instance\r\n return vexInstance\r\n },\r\n\r\n // A top-level vex.close function to close dialogs by reference or id\r\n close: function close (vexOrId) {\r\n var id\r\n if (vexOrId.id) {\r\n id = vexOrId.id\r\n } else if (typeof vexOrId === 'string') {\r\n id = vexOrId\r\n } else {\r\n throw new TypeError('close requires a vex object or id string')\r\n }\r\n if (!vexes[id]) {\r\n return false\r\n }\r\n return vexes[id].close()\r\n },\r\n\r\n // Close the most recently created/opened vex\r\n closeTop: function closeTop () {\r\n var ids = Object.keys(vexes)\r\n if (!ids.length) {\r\n return false\r\n }\r\n return vexes[ids[ids.length - 1]].close()\r\n },\r\n\r\n // Close every vex!\r\n closeAll: function closeAll () {\r\n for (var id in vexes) {\r\n this.close(id)\r\n }\r\n return true\r\n },\r\n\r\n // A getter for the internal lookup table\r\n getAll: function getAll () {\r\n return vexes\r\n },\r\n\r\n // A getter for the internal lookup table\r\n getById: function getById (id) {\r\n return vexes[id]\r\n }\r\n}\r\n\r\n// Close top vex on escape\r\nwindow.addEventListener('keyup', function vexKeyupListener (e) {\r\n if (e.keyCode === 27) {\r\n isEscapeActive = true\r\n vex.closeTop()\r\n isEscapeActive = false\r\n }\r\n})\r\n\r\n// Close all vexes on history pop state (useful in single page apps)\r\nwindow.addEventListener('popstate', function () {\r\n if (vex.defaultOptions.closeAllOnPopState) {\r\n vex.closeAll()\r\n }\r\n})\r\n\r\nvex.defaultOptions = {\r\n content: '',\r\n showCloseButton: true,\r\n escapeButtonCloses: true,\r\n overlayClosesOnClick: true,\r\n appendLocation: 'body',\r\n className: '',\r\n overlayClassName: '',\r\n contentClassName: '',\r\n closeClassName: '',\r\n closeAllOnPopState: true\r\n}\r\n\r\n// TODO Loading symbols?\r\n\r\n// Include escapeHtml function on the library object\r\nObject.defineProperty(vex, '_escapeHtml', {\r\n configurable: false,\r\n enumerable: false,\r\n writable: false,\r\n value: escapeHtml\r\n})\r\n\r\n// Plugin system!\r\nvex.registerPlugin = function registerPlugin (pluginFn, name) {\r\n var plugin = pluginFn(vex)\r\n var pluginName = name || plugin.name\r\n if (vex[pluginName]) {\r\n throw new Error('Plugin ' + name + ' is already registered.')\r\n }\r\n vex[pluginName] = plugin\r\n}\r\n\r\nmodule.exports = vex\r\n\n},{\"classlist-polyfill\":1,\"domify\":2,\"es6-object-assign\":3}]},{},[4])(4)\n});","import Component from '../abstracts/Component';\nimport vex from 'vex-js';\n\nexport default class ModalComponent extends Component {\n get SELECTORS() {\n return {\n trigger: '[data-modal], .modal-trigger',\n container: '.vex',\n focusableEl: 'a, :input:not([type=hidden]), button, [tabindex], iframe, :input:not(.form-group__username)'\n };\n }\n\n get LIBRARIES_SELECTORS() {\n return {\n tab: '[data-tabs]',\n select: 'select'\n };\n }\n\n get CLASSES() {\n return {\n canScroll: 'can-scroll'\n };\n }\n\n constructor() {\n super();\n this.focusableEl = $(this.SELECTORS.focusableEl);\n }\n\n modalAfterOpen(vexInstance, closeText, overflow) {\n let $close = $(vexInstance.closeEl);\n let $container = $(vexInstance.rootEl);\n let closeLabel = closeText;\n\n if (closeText) {\n $close.text(closeLabel).addClass('cta-close')\n }\n\n if (overflow === 'auto') {\n $('body').addClass(this.CLASSES.canScroll);\n }\n\n let $tabs = $container.find(this.LIBRARIES_SELECTORS.tab);\n if ($tabs.length > 0) {\n this.moduleLoader.loadBootstrapJsComponentAndExecute(\n 'tab',\n module => {\n $(this.LIBRARIES_SELECTORS.tab).tab();\n this.log('Tab initialized');\n },\n error => {\n console.log('failed to load tabs ', error.stack);\n }\n );\n }\n\n let $select = $container.find(this.LIBRARIES_SELECTORS.select);\n\n //ADD ACCESSIBILITY PROPERTIES\n $container.attr('tabindex', -1).attr('role', 'dialog');\n $close.attr('role', 'button').attr('tabindex', 0);\n\n let $focusableEl = $container.find(this.SELECTORS.focusableEl);\n $focusableEl.first().focus();\n\n this.$off('keydown',$close);\n this.$on('keydown', function (e) {\n if (e.keyCode === 13)\n vex.close(vexInstance);\n },$close);\n }\n\n getDataConfig ($el) {\n try {\n switch (true) {\n case $el.siblings(\".dataForm\").length > 0:\n return {\n data: $el.siblings(\".dataForm\").serialize(),\n };\n case typeof $el.data('body') === \"string\":\n return {\n contentType: \"application/json; charset=utf-8\",\n data: JSON.parse($el.data('body')),\n };\n case !!$el.data('body'):\n return {\n contentType: \"application/json; charset=utf-8\",\n data: $el.data('body'),\n };\n default:\n return {};\n }\n } catch (e) {\n return {};\n }\n }\n\n openAjaxContent(el) {\n let ctx = this;\n let url = el.data('href') || el.attr('href');\n let title = el.data('title');\n let close = el.data('closeText');\n let overlayClass = el.data('overlayClass');\n let overflow = el.data('overflow');\n let dataEgonValidation = el.data('egonValidation');\n let method = el.data('method') || 'GET';\n let dataConfig = method.toUpperCase() === 'POST' ? this.getDataConfig(el) : null;\n\n $(el).addClass('disable-click');\n\n $.ajax(\n Object.assign(\n {\n type: method,\n url: url,\n },\n dataConfig,\n )\n ).then(resp => {\n let chunked = $(resp).find('[data-ajax-chunk]');\n\n if (typeof resp != 'object' && chunked.length) {\n resp = chunked.html();\n }\n\n vex.open({\n unsafeContent: this.wrappedContent(resp, title)[0].outerHTML,\n className: el.data('modalClass'),\n closeClassName: 'icon-close',\n afterOpen: function() {\n setTimeout(function() {\n $('body').trigger('formInitializeAll');\n }, 1000);\n ctx.modalAfterOpen(this, close, overflow);\n ctx.$emit(ctx.$customEvents.MODAL_EVENTS.afterOpen);\n if (dataEgonValidation === true) {\n ctx.$emit(ctx.$customEvents.MODAL_EVENTS.egonValidation);\n }\n },\n afterClose: function() {\n $('body').removeClass(ctx.CLASSES.canScroll);\n ctx.$emit(ctx.$customEvents.MODAL_EVENTS.afterClose, this);\n $(el).removeClass('disable-click');\n },\n overlayClassName: overlayClass\n });\n });\n }\n\n openStaticContent(el) {\n let ctx = this;\n let title = el.data('title');\n let close = el.data('closeText');\n let content = $(el.data('modalId'))[0].outerHTML;\n\n $(el).addClass('disable-click');\n\n vex.open({\n unsafeContent: this.wrappedContent(content, title)[0].outerHTML,\n className: el.data('modalClass'),\n closeClassName: 'icon-close',\n afterOpen: function() {\n ctx.modalAfterOpen(this, close);\n ctx.$emit(ctx.$customEvents.MODAL_EVENTS.afterOpen);\n },\n afterClose: function() {\n $('body').removeClass(ctx.CLASSES.canScroll);\n ctx.$emit(ctx.$customEvents.MODAL_EVENTS.afterClose, this);\n $(el).removeClass('disable-click');\n }\n });\n }\n\n openRemoteContent(conf) {\n let title = $(conf.unsafeContent).data('title');\n let close = $(conf.unsafeContent).data('closeText');\n let ctx = this;\n let classData = $(conf.unsafeContent).data('modalClass');\n if (conf.modalClass) {\n classData = conf.modalClass;\n }\n if (conf.canScroll) document.body.classList.add(this.CLASSES.canScroll);\n vex.open({\n unsafeContent: this.wrappedContent(conf.unsafeContent, title)[0].outerHTML,\n className: classData,\n closeClassName: 'icon-close',\n afterOpen: function() {\n ctx.modalAfterOpen(this, close);\n ctx.$emit(ctx.$customEvents.MODAL_EVENTS.afterOpen);\n },\n afterClose: function() {\n $('body').removeClass(ctx.CLASSES.canScroll);\n ctx.$emit(ctx.$customEvents.MODAL_EVENTS.afterClose, this);\n }\n });\n }\n\n wrappedContent(content, title) {\n let container = $(`
`);\n if (title) {\n let $header = $(`

${title}

`);\n container.append($header);\n } else {\n container.addClass('no-header')\n }\n if (content) {\n let $body = $(`
${content}
`);\n if($body.find('[data-componentpb]').length > 0) {\n $body.find('[data-componentpb]').each((index, elem)=> {\n this.importComponent(elem.dataset.componentpb);\n });\n }\n container.append($body);\n }\n return container;\n }\n\n bindEvents() {\n this.$on('click.modal', ({event}) => {\n let $el = $(event.currentTarget);\n if ($el.data(\"originalEvent\") !== \"run\") {\n event.preventDefault();\n }\n\n if ($el.data('modalId') ) {\n this.openStaticContent($el);\n } else {\n this.openAjaxContent($el);\n }\n }, 'body', this.SELECTORS.trigger);\n\n this.$on(this.$customEvents.MODAL_EVENTS.show, ({payload}) => {\n this.openRemoteContent(payload);\n });\n }\n\n render() {\n this.bindEvents();\n }\n}\n"],"sourceRoot":""}