{"version":3,"sources":["node_modules/browserify/node_modules/browser-pack/_prelude.js","Falck.SalaryRegistration.Mockup/src/js/sr.func.js","sr.func.min.js","Falck.SalaryRegistration.Mockup/src/js/datepicker.js","Falck.SalaryRegistration.Mockup/src/js/features.js","Falck.SalaryRegistration.Mockup/src/js/helpers.js","Falck.SalaryRegistration.Mockup/src/js/polyfills.js","Falck.SalaryRegistration.Mockup/src/js/sliders.js","Falck.SalaryRegistration.Mockup/src/js/toaster.js"],"names":["e","t","n","r","s","o","u","a","require","i","f","Error","code","l","exports","call","length",1,"module","_interopRequireWildcard","obj","__esModule","default","helpers","slider","toaster","datepicker","window","App","common","init","$","each","this","_slider","_sliderWrapper","apply","arguments","toString","dateSlider","./datepicker","./features","./helpers","./polyfills","./sliders","./toaster",2,"scope","format","todayHighlight","todayBtn","Object","defineProperty","value",3,"el","className","replace","document","documentElement",4,"scrollToElm","selector","speed","scrollToPos","offset","top","animate","scrollTop","expandCollapse","click","moreTxt","parents","find","first","is","slideUp","removeClass","slideDown","addClass","autotab","original","destination","val","parseInt","attr","focus","bind","unbind","togglevisibility","doToggle","elm","content","data","show","hide","on","tableOverflow","wrap","width","parent","tableRowClick","location","dataFx","fadeOut","fadeIn","windowOpen","url","name","specs","open","preventDefault","print","menu","toggleClass",5,"String","prototype","includes","indexOf",6,"dataAttrOptions","defaults","options","dataOptions","settings","jQuery","isEmptyObject","key","nameSpace","stripedKey","newKey","toLowerCase","slice","extend","elmCount","items","loop","margin","nav","navText","dots","startPosition","autoplay","fallbackEasing","responsive",768,1024,"owlCarousel","scopes",7,"opt","text","success","showAsSucess","append","setTimeout","remove"],"mappings":"CAAA,QAAAA,GAAAC,EAAAC,EAAAC,GAAA,QAAAC,GAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,GAAAE,GAAA,kBAAAC,UAAAA,OAAA,KAAAF,GAAAC,EAAA,MAAAA,GAAAF,GAAA,EAAA,IAAAI,EAAA,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AAeH,EAAIE,QAAU,UAAY,OAE7C1H,GAAE,QAAQ4H,OAAO,gCAAkCD,EAAe,QAAUH,EAAIC,KAAO,cAEvFzH,EAAE,YAAYoC,SAASD,IAAK,GAAI,IAAK,WACpC0F,WAAW,WACV7H,EAAE,YAAYoC,SAAUD,IAAK,KAAO,IAAK,WACxCnC,EAAEE,MAAM4H,YAEP,ONiVL/I,EMjWgBgB,KAAAA,ENkWhBqB,OAAOC,eAAetC,EAAS,cAC9BuC,OAAO,cAuBG","file":"sr.func.min.js","sourcesContent":["(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 {\r\n window.App.common.init();\r\n});\r\n\r\n// Window onload\r\nwindow.onload = () => {\r\n window.App.common.slider();\r\n};*/\r\n",null,"'use strict';\r\n\r\nexport function init(scope) {\r\n\t$(scope).datepicker({\r\n\t\tformat: 'dd/mm-yyyy',\r\n\t\ttodayHighlight: true,\r\n\t\ttodayBtn: 'linked'\r\n\t});\r\n}\r\n","'use strict';\r\n\r\n\r\n//change className of html from .noJS to .hasJS.\r\n((el) => {\r\n el.className = el.className.replace('no-js', 'has-js');\r\n})(document.documentElement);\r\n","'use strict';\r\n/**\r\n * [scrollToElm description]\r\n * @param {[string]} selector [css selector]\r\n * @param {[number]} speed [speed in ms]\r\n * @return {[undefined]} [nothing returned]\r\n */\r\nexport function scrollToElm(selector, speed) {\r\n if(selector){\r\n var scrollToPos = selector ? $(selector).offset().top - 74 : 0;\r\n\r\n $('html, body').animate({\r\n scrollTop: scrollToPos\r\n }, speed || 500);\r\n }\r\n}\r\n\r\n/**\r\n * [expandCollapse]\r\n */\r\nexport function expandCollapse(){\r\n //Read more links\r\n $('.read-more-btn').click(function () {\r\n var el = $(this),\r\n moreTxt = el.parents().find('.read-more-content').first();\r\n\r\n if (moreTxt.is(':visible')) {\r\n moreTxt.slideUp();\r\n el.removeClass('collapse');\r\n } else {\r\n moreTxt.slideDown();\r\n el.addClass('collapse');\r\n }\r\n return false;\r\n });\r\n}\r\n\r\n/**\r\n * [autotab on keyup jumps to next input]\r\n * @param {[string]} original [css selector]\r\n * @param {[string]} destination [css selector]\r\n * @return {[undefined]} [nothing returned]\r\n */\r\nexport function autotab(original, destination){\r\n if(!original){\r\n return false;\r\n }\r\n if (original.val().length === parseInt(original.attr('maxlength'), 10)){\r\n destination.focus();\r\n destination.bind('keyup', function(){\r\n if (destination.val().length === 0){\r\n destination.unbind('keyup');\r\n original.focus();\r\n }\r\n });\r\n }\r\n}\r\n\r\n/**\r\n * [togglevisibility]\r\n * @return {[undefined]} [nothing returned]\r\n */\r\nexport function togglevisibility(){\r\n var doToggle = function(elm){\r\n var content = elm.data('togglevisibility');\r\n if(elm.is(':checked')){\r\n $(content).show();\r\n }else {\r\n $(content).hide();\r\n }\r\n };\r\n\r\n $('[data-togglevisibility]').each(function(){\r\n doToggle($(this));\r\n }).on('click', function(){\r\n doToggle($(this));\r\n });\r\n}\r\n\r\n\r\nexport function tableOverflow(){\r\n $('.table').each(function(){\r\n\r\n $(this).wrap('
');\r\n\r\n if($(this).width() > $(this).parent('.table__wrapper').width()) {\r\n $(this).parent('.table__wrapper').addClass('table__wrapper--overflow');\r\n }\r\n\r\n });\r\n}\r\n\r\nexport function tableRowClick () {\r\n $('.table-row--clickable').on('click', function(){\r\n window.location = $(this).find('a').first().attr('href');\r\n return false;\r\n });\r\n}\r\n\r\nexport function dataFx(){\r\n $('[data-fade-out]').each(function(){\r\n $(this).fadeOut($(this).data('fadeOut'));\r\n });\r\n $('[data-fade-in]').each(function(){\r\n $(this).fadeIn($(this).data('fadeIn'));\r\n });\r\n}\r\n\r\n\r\nexport function windowOpen() {\r\n $('.js-window-open').on('click', function(e){\r\n let url = $(this).attr('href');\r\n let name = $(this).attr('target');\r\n let specs = $(this).data('specs');\r\n\r\n window.open(url, name, specs || 'width=600, height=300, titlebar=0, menubar=0, status=0');\r\n e.preventDefault();\r\n });\r\n}\r\n\r\nexport function print(){\r\n $('.js-print').on('click', function(e){\r\n window.print();\r\n e.preventDefault();\r\n });\r\n}\r\n\r\nexport function menu() {\r\n $('.mobile-nav').on('click', function() {\r\n $('.nav.nav--main').toggleClass('active');\r\n });\r\n}\r\n","'use strict';\r\n\r\n/*\r\n eslint no-extend-native:0\r\n */\r\n\r\n\r\n// ES6: String.prototype.includes()\r\nif (!String.prototype.includes) {\r\n String.prototype.includes = function() {\r\n return String.prototype.indexOf.apply(this, arguments) !== -1;\r\n };\r\n}\r\n","'use strict';\r\n\r\nvar nameSpace = 'slider';\r\n\r\n/**\r\n * dataAttrOptions extends default options with options defined in namespaced data attr.\r\n * @param {object} defaults Default extend object\r\n * @param {object} options Extend to defaults\r\n * @return {object} extended object\r\n */\r\nfunction dataAttrOptions(defaults, options){\r\n var dataOptions = {},\r\n settings = {};\r\n\r\n if(jQuery.isEmptyObject(options)){\r\n return defaults;\r\n }\r\n\r\n for(let key in options){\r\n\r\n if(key.includes(nameSpace)){\r\n let stripedKey = key.replace(nameSpace, '');\r\n let newKey = stripedKey[0].toLowerCase() + stripedKey.slice(1);\r\n\r\n dataOptions[newKey] = options[key];\r\n }\r\n }\r\n\r\n // Recursively merge defaults and data attribute options.\r\n settings = $.extend(true, {}, defaults, dataOptions);\r\n\r\n return settings;\r\n}\r\n\r\n/**\r\n * dateSlider makes a slider with dates item inview\r\n * @param {string} scope css selector\r\n * @return {undefined} nothing returned\r\n */\r\nexport function dateSlider(scope){\r\n let elm = $(scope);\r\n let elmCount = elm.find('> a').length;\r\n\r\n let defaults = {\r\n items: 10,\r\n loop: false,\r\n margin: 0,\r\n nav: true,\r\n navText: ['', ''],\r\n dots: false,\r\n startPosition: elmCount,\r\n autoplay: false,\r\n fallbackEasing: 'swing',\r\n responsive: {\r\n 0: {\r\n items: 3\r\n },\r\n 768: {\r\n items: 6\r\n },\r\n 1024: {\r\n items: 10\r\n }\r\n }\r\n };\r\n\r\n if(elmCount <= 1) {\r\n return;\r\n }\r\n\r\n let settings = dataAttrOptions(defaults, elm.data());\r\n\r\n elm.owlCarousel(settings);\r\n\r\n}\r\n\r\n/**\r\n * init initilizes all sliders\r\n * @param {object} scopes a object keys as function names and value as selectors\r\n * @return {undefined} nothing returned]\r\n */\r\nexport function init(scopes){\r\n for(let scope in scopes){\r\n this[scope].call(this, scopes[scope]);\r\n }\r\n}\r\n","'use strict';\r\n\r\nexport function init(options){\r\n\tvar opt = $.extend(\r\n\t\t{\r\n\t\t\ttext: '',\r\n\t\t\tsuccess: true\r\n\t\t}, options);\r\n\r\n\tvar showAsSucess = opt.success ? 'success' : 'error';\r\n\r\n\t$('body').append('

' + opt.text + '

');\r\n\r\n\t$('.toaster').animate({top: 0}, 500, function() {\r\n\t\tsetTimeout(function() {\r\n\t\t\t$('.toaster').animate({ top: -50 }, 500, function() {\r\n\t\t\t\t$(this).remove();\r\n\t\t\t});\r\n\t\t}, 2000);\r\n\t});\r\n}\r\n"],"sourceRoot":"./Falck.SalaryRegistration.Mockup/src/js"}