{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./vendor/assets/libs/bootstrap-material-datetimepicker/bootstrap-material-datetimepicker.js","webpack:///./node_modules/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js","webpack:///./vendor/assets/libs/bootstrap-material-datetimepicker/_extension.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","$","moment","pluginDataName","Plugin","element","options","this","currentView","minDate","maxDate","_attachedEvents","$element","params","date","time","format","currentDate","lang","weekStart","disabledDays","shortTime","clearButton","nowButton","cancelText","okText","clearText","nowText","switchOnClick","triggerEvent","monthPicker","year","fn","extend","setName","attr","locale","init","each","data","initDays","initDates","initTemplate","initButtons","_attachEvent","window","_centerBox","$dtpElement","find","_onElementClick","_onBackgroundClick","_onCloseClick","_fireCalendar","days","length","push","toString","val","isValid","x","getTime","isAfterMinDate","isBeforeMaxDate","yearPicker","y","midYear","yearHtml","template","append","dtpElement","_onCancelClick","_onOKClick","_onMonthBeforeClick","_onMonthAfterClick","_onYearBeforeClick","_onYearAfterClick","_onActualYearClick","_onYearRangeBeforeClick","_onYearRangeAfterClick","_onYearItemClick","_onClearClick","removeClass","_onNowClick","addClass","initMeridienButtons","off","on","_onSelectAM","_onSelectPM","initDate","_date","_calendar","generateCalendar","week","_template","constructHTMLCalendar","html","_onSelectDate","toggleButtons","showDate","initHours","showTime","hour","click","hFormat","svgClockElement","createSVGClock","Math","sin","PI","cos","fill","color","svgHourCircle","createSVGElement","cx","cy","svgHourText","textContent","toggleTime","addEventListener","_onSelectHour","className","setAttribute","appendChild","initMinutes","svgMinuteCircle","_onSelectMinute","svgMinuteText","animateHands","H","M","minute","isHour","hl","svgElement","class","viewBox","svgGElement","transform","svgClockFace","stroke","svgClockCenter","svgMinuteHand","x1","y1","x2","y2","svgHourHand","empty","tag","attrs","el","document","createElementNS","k","checkHour","checkMinute","_return","_minDate","second","millisecond","parseInt","checkTime","_maxDate","rotateElement","deg","css","WebkitTransform","toUpperCase","minutes","content","selectDate","trigger","startOfMonth","startOf","endOfMonth","endOf","iNumDay","iWeek","indexOf","calendar","substring","isoWeekday","text","possible","charAt","floor","random","isPM","hasClass","setElementValue","material","startOfYear","endOfYear","isHours","result","convertHours","ev","_detachEvents","splice","blur","show","e","stopPropagation","hide","_onKeydown","which","subtract","_closeYearPicker","add","refreshYearItems","curYear","minYear","maxYear","newYear","diff","currentTarget","enableYearPicker","reomveClass","disableYearPicker","parent","setTimeout","target","h","th","tm","_hideCalendar","setDate","setMinDate","setMaxDate","destroy","remove","height","width","enableDays","inArray","index","jQuery","originalPicker","bootstrapMaterialDatePicker","args","newInstance","apply","$template"],"mappings":"4DACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/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AS,0BAIpC5E","file":"js/vendor/libs/bootstrap-material-datetimepicker/bootstrap-material-datetimepicker-8e9e39e00080fee10090.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"https://optimal.seneris.com/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 645);\n","import 'bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js'\nimport './_extension.js'\n","(function ($, moment) {\n var pluginName = \"bootstrapMaterialDatePicker\";\n var pluginDataName = \"plugin_\" + pluginName;\n moment.locale('en');\n\n function Plugin(element, options) {\n this.currentView = 0;\n this.minDate;\n this.maxDate;\n this._attachedEvents = [];\n this.element = element;\n this.$element = $(element);\n this.params = {\n date: true,\n time: true,\n format: 'YYYY-MM-DD',\n minDate: null,\n maxDate: null,\n currentDate: null,\n lang: 'en',\n weekStart: 0,\n disabledDays: [],\n shortTime: false,\n clearButton: false,\n nowButton: false,\n cancelText: 'Cancel',\n okText: 'OK',\n clearText: 'Clear',\n nowText: 'Now',\n switchOnClick: false,\n triggerEvent: 'focus',\n monthPicker: false,\n year: true\n };\n this.params = $.fn.extend(this.params, options);\n this.name = \"dtp_\" + this.setName();\n this.$element.attr(\"data-dtp\", this.name);\n moment.locale(this.params.lang);\n this.init();\n }\n\n $.fn[pluginName] = function (options, p) {\n this.each(function () {\n if (!$.data(this, pluginDataName)) {\n $.data(this, pluginDataName, new Plugin(this, options));\n } else {\n if (typeof $.data(this, pluginDataName)[options] === 'function') {\n $.data(this, pluginDataName)[options](p);\n }\n\n if (options === 'destroy') {\n delete $.data(this, pluginDataName);\n }\n }\n });\n return this;\n };\n\n Plugin.prototype = {\n init: function init() {\n this.initDays();\n this.initDates();\n this.initTemplate();\n this.initButtons();\n\n this._attachEvent($(window), 'resize', this._centerBox.bind(this));\n\n this._attachEvent(this.$dtpElement.find('.dtp-content'), 'click', this._onElementClick.bind(this));\n\n this._attachEvent(this.$dtpElement, 'click', this._onBackgroundClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('.dtp-close > a'), 'click', this._onCloseClick.bind(this));\n\n this._attachEvent(this.$element, this.params.triggerEvent, this._fireCalendar.bind(this));\n },\n initDays: function initDays() {\n this.days = [];\n\n for (var i = this.params.weekStart; this.days.length < 7; i++) {\n if (i > 6) {\n i = 0;\n }\n\n this.days.push(i.toString());\n }\n },\n initDates: function initDates() {\n if (this.$element.val().length > 0) {\n if (typeof this.params.format !== 'undefined' && this.params.format !== null) {\n this.currentDate = moment(this.$element.val(), this.params.format).locale(this.params.lang);\n } else {\n this.currentDate = moment(this.$element.val()).locale(this.params.lang);\n }\n } else {\n if (typeof this.$element.attr('value') !== 'undefined' && this.$element.attr('value') !== null && this.$element.attr('value') !== \"\") {\n if (typeof this.$element.attr('value') === 'string') {\n if (typeof this.params.format !== 'undefined' && this.params.format !== null) {\n this.currentDate = moment(this.$element.attr('value'), this.params.format).locale(this.params.lang);\n } else {\n this.currentDate = moment(this.$element.attr('value')).locale(this.params.lang);\n }\n }\n } else {\n if (typeof this.params.currentDate !== 'undefined' && this.params.currentDate !== null) {\n if (typeof this.params.currentDate === 'string') {\n if (typeof this.params.format !== 'undefined' && this.params.format !== null) {\n this.currentDate = moment(this.params.currentDate, this.params.format).locale(this.params.lang);\n } else {\n this.currentDate = moment(this.params.currentDate).locale(this.params.lang);\n }\n } else {\n if (typeof this.params.currentDate.isValid === 'undefined' || typeof this.params.currentDate.isValid !== 'function') {\n var x = this.params.currentDate.getTime();\n this.currentDate = moment(x, \"x\").locale(this.params.lang);\n } else {\n this.currentDate = this.params.currentDate;\n }\n }\n\n this.$element.val(this.currentDate.format(this.params.format));\n } else this.currentDate = moment();\n }\n }\n\n if (typeof this.params.minDate !== 'undefined' && this.params.minDate !== null) {\n if (typeof this.params.minDate === 'string') {\n if (typeof this.params.format !== 'undefined' && this.params.format !== null) {\n this.minDate = moment(this.params.minDate, this.params.format).locale(this.params.lang);\n } else {\n this.minDate = moment(this.params.minDate).locale(this.params.lang);\n }\n } else {\n if (typeof this.params.minDate.isValid === 'undefined' || typeof this.params.minDate.isValid !== 'function') {\n var x = this.params.minDate.getTime();\n this.minDate = moment(x, \"x\").locale(this.params.lang);\n } else {\n this.minDate = this.params.minDate;\n }\n }\n } else if (this.params.minDate === null) {\n this.minDate = null;\n }\n\n if (typeof this.params.maxDate !== 'undefined' && this.params.maxDate !== null) {\n if (typeof this.params.maxDate === 'string') {\n if (typeof this.params.format !== 'undefined' && this.params.format !== null) {\n this.maxDate = moment(this.params.maxDate, this.params.format).locale(this.params.lang);\n } else {\n this.maxDate = moment(this.params.maxDate).locale(this.params.lang);\n }\n } else {\n if (typeof this.params.maxDate.isValid === 'undefined' || typeof this.params.maxDate.isValid !== 'function') {\n var x = this.params.maxDate.getTime();\n this.maxDate = moment(x, \"x\").locale(this.params.lang);\n } else {\n this.maxDate = this.params.maxDate;\n }\n }\n } else if (this.params.maxDate === null) {\n this.maxDate = null;\n }\n\n if (!this.isAfterMinDate(this.currentDate)) {\n this.currentDate = moment(this.minDate);\n }\n\n if (!this.isBeforeMaxDate(this.currentDate)) {\n this.currentDate = moment(this.maxDate);\n }\n },\n initTemplate: function initTemplate() {\n var yearPicker = \"\";\n var y = this.currentDate.year();\n\n for (var i = y - 3; i < y + 4; i++) {\n yearPicker += '
' + i + '
';\n }\n\n this.midYear = y;\n var yearHtml = '
' + '
keyboard_arrow_up
' + yearPicker + '
keyboard_arrow_down
' + '
';\n this.template = '
' + '
' + '
' + '
' + '
Lundi
' + '' + '
' + '
' + '
' + '
' + 'chevron_left' + '
' + '
MAR
' + '
' + 'chevron_right' + '
' + '
' + '
' + '
13
' + '
' + '
' + 'chevron_left' + '
' + '
2014
' + '
' + 'chevron_right' + '
' + '
' + '
' + '
' + '
' + '
23:55
' + '
' + '
' + '
' + '
' + '
' + '
' + 'AM' + '
' + '
' + '
' + 'PM' + '
' + '
' + '
' + '
' + '
' + '
' + yearHtml + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + '
';\n\n if ($('body').find(\"#\" + this.name).length <= 0) {\n $('body').append(this.template);\n if (this) this.dtpElement = $('body').find(\"#\" + this.name);\n this.$dtpElement = $(this.dtpElement);\n }\n },\n initButtons: function initButtons() {\n this._attachEvent(this.$dtpElement.find('.dtp-btn-cancel'), 'click', this._onCancelClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('.dtp-btn-ok'), 'click', this._onOKClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('a.dtp-select-month-before'), 'click', this._onMonthBeforeClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('a.dtp-select-month-after'), 'click', this._onMonthAfterClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('a.dtp-select-year-before'), 'click', this._onYearBeforeClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('a.dtp-select-year-after'), 'click', this._onYearAfterClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('.dtp-actual-year'), 'click', this._onActualYearClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('a.dtp-select-year-range.before'), 'click', this._onYearRangeBeforeClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('a.dtp-select-year-range.after'), 'click', this._onYearRangeAfterClick.bind(this));\n\n this._attachEvent(this.$dtpElement.find('div.year-picker-item'), 'click', this._onYearItemClick.bind(this));\n\n if (this.params.clearButton === true) {\n this._attachEvent(this.$dtpElement.find('.dtp-btn-clear'), 'click', this._onClearClick.bind(this));\n\n this.$dtpElement.find('.dtp-btn-clear').removeClass('hidden');\n }\n\n if (this.params.nowButton === true) {\n this._attachEvent(this.$dtpElement.find('.dtp-btn-now'), 'click', this._onNowClick.bind(this));\n\n this.$dtpElement.find('.dtp-btn-now').removeClass('hidden');\n }\n\n if (this.params.nowButton === true && this.params.clearButton === true) {\n this.$dtpElement.find('.dtp-btn-clear, .dtp-btn-now, .dtp-btn-cancel, .dtp-btn-ok').addClass('btn-xs');\n } else if (this.params.nowButton === true || this.params.clearButton === true) {\n this.$dtpElement.find('.dtp-btn-clear, .dtp-btn-now, .dtp-btn-cancel, .dtp-btn-ok').addClass('btn-sm');\n }\n },\n initMeridienButtons: function initMeridienButtons() {\n this.$dtpElement.find('a.dtp-meridien-am').off('click').on('click', this._onSelectAM.bind(this));\n this.$dtpElement.find('a.dtp-meridien-pm').off('click').on('click', this._onSelectPM.bind(this));\n },\n initDate: function initDate(d) {\n this.currentView = 0;\n\n if (this.params.monthPicker === false) {\n this.$dtpElement.find('.dtp-picker-calendar').removeClass('hidden');\n }\n\n this.$dtpElement.find('.dtp-picker-datetime').addClass('hidden');\n this.$dtpElement.find('.dtp-picker-year').addClass('hidden');\n\n var _date = typeof this.currentDate !== 'undefined' && this.currentDate !== null ? this.currentDate : null;\n\n var _calendar = this.generateCalendar(this.currentDate);\n\n if (typeof _calendar.week !== 'undefined' && typeof _calendar.days !== 'undefined') {\n var _template = this.constructHTMLCalendar(_date, _calendar);\n\n this.$dtpElement.find('a.dtp-select-day').off('click');\n this.$dtpElement.find('.dtp-picker-calendar').html(_template);\n this.$dtpElement.find('a.dtp-select-day').on('click', this._onSelectDate.bind(this));\n this.toggleButtons(_date);\n }\n\n this._centerBox();\n\n this.showDate(_date);\n },\n initHours: function initHours() {\n this.currentView = 1;\n this.showTime(this.currentDate);\n this.initMeridienButtons();\n\n if (this.currentDate.hour() < 12) {\n this.$dtpElement.find('a.dtp-meridien-am').click();\n } else {\n this.$dtpElement.find('a.dtp-meridien-pm').click();\n }\n\n var hFormat = this.params.shortTime ? 'h' : 'H';\n this.$dtpElement.find('.dtp-picker-datetime').removeClass('hidden');\n this.$dtpElement.find('.dtp-picker-calendar').addClass('hidden');\n this.$dtpElement.find('.dtp-picker-year').addClass('hidden');\n var svgClockElement = this.createSVGClock(true);\n\n for (var i = 0; i < 12; i++) {\n var x = -(162 * Math.sin(-Math.PI * 2 * (i / 12)));\n var y = -(162 * Math.cos(-Math.PI * 2 * (i / 12)));\n var fill = this.currentDate.format(hFormat) == i ? \"#8BC34A\" : 'transparent';\n var color = this.currentDate.format(hFormat) == i ? \"#fff\" : '#000';\n var svgHourCircle = this.createSVGElement(\"circle\", {\n 'id': 'h-' + i,\n 'class': 'dtp-select-hour',\n 'style': 'cursor:pointer',\n r: '30',\n cx: x,\n cy: y,\n fill: fill,\n 'data-hour': i\n });\n var svgHourText = this.createSVGElement(\"text\", {\n 'id': 'th-' + i,\n 'class': 'dtp-select-hour-text',\n 'text-anchor': 'middle',\n 'style': 'cursor:pointer',\n 'font-weight': 'bold',\n 'font-size': '20',\n x: x,\n y: y + 7,\n fill: color,\n 'data-hour': i\n });\n svgHourText.textContent = i === 0 ? this.params.shortTime ? 12 : i : i;\n\n if (!this.toggleTime(i, true)) {\n svgHourCircle.className += \" disabled\";\n svgHourText.className += \" disabled\";\n svgHourText.setAttribute('fill', '#bdbdbd');\n } else {\n svgHourCircle.addEventListener('click', this._onSelectHour.bind(this));\n svgHourText.addEventListener('click', this._onSelectHour.bind(this));\n }\n\n svgClockElement.appendChild(svgHourCircle);\n svgClockElement.appendChild(svgHourText);\n }\n\n if (!this.params.shortTime) {\n for (var i = 0; i < 12; i++) {\n var x = -(110 * Math.sin(-Math.PI * 2 * (i / 12)));\n var y = -(110 * Math.cos(-Math.PI * 2 * (i / 12)));\n var fill = this.currentDate.format(hFormat) == i + 12 ? \"#8BC34A\" : 'transparent';\n var color = this.currentDate.format(hFormat) == i + 12 ? \"#fff\" : '#000';\n var svgHourCircle = this.createSVGElement(\"circle\", {\n 'id': 'h-' + (i + 12),\n 'class': 'dtp-select-hour',\n 'style': 'cursor:pointer',\n r: '30',\n cx: x,\n cy: y,\n fill: fill,\n 'data-hour': i + 12\n });\n var svgHourText = this.createSVGElement(\"text\", {\n 'id': 'th-' + (i + 12),\n 'class': 'dtp-select-hour-text',\n 'text-anchor': 'middle',\n 'style': 'cursor:pointer',\n 'font-weight': 'bold',\n 'font-size': '22',\n x: x,\n y: y + 7,\n fill: color,\n 'data-hour': i + 12\n });\n svgHourText.textContent = i + 12;\n\n if (!this.toggleTime(i + 12, true)) {\n svgHourCircle.className += \" disabled\";\n svgHourText.className += \" disabled\";\n svgHourText.setAttribute('fill', '#bdbdbd');\n } else {\n svgHourCircle.addEventListener('click', this._onSelectHour.bind(this));\n svgHourText.addEventListener('click', this._onSelectHour.bind(this));\n }\n\n svgClockElement.appendChild(svgHourCircle);\n svgClockElement.appendChild(svgHourText);\n }\n\n this.$dtpElement.find('a.dtp-meridien-am').addClass('hidden');\n this.$dtpElement.find('a.dtp-meridien-pm').addClass('hidden');\n }\n\n this._centerBox();\n },\n initMinutes: function initMinutes() {\n this.currentView = 2;\n this.showTime(this.currentDate);\n this.initMeridienButtons();\n\n if (this.currentDate.hour() < 12) {\n this.$dtpElement.find('a.dtp-meridien-am').click();\n } else {\n this.$dtpElement.find('a.dtp-meridien-pm').click();\n }\n\n this.$dtpElement.find('.dtp-picker-year').addClass('hidden');\n this.$dtpElement.find('.dtp-picker-calendar').addClass('hidden');\n this.$dtpElement.find('.dtp-picker-datetime').removeClass('hidden');\n var svgClockElement = this.createSVGClock(false);\n\n for (var i = 0; i < 60; i++) {\n var s = i % 5 === 0 ? 162 : 158;\n var r = i % 5 === 0 ? 30 : 20;\n var x = -(s * Math.sin(-Math.PI * 2 * (i / 60)));\n var y = -(s * Math.cos(-Math.PI * 2 * (i / 60)));\n var color = this.currentDate.format(\"m\") == i ? \"#8BC34A\" : 'transparent';\n var svgMinuteCircle = this.createSVGElement(\"circle\", {\n 'id': 'm-' + i,\n 'class': 'dtp-select-minute',\n 'style': 'cursor:pointer',\n r: r,\n cx: x,\n cy: y,\n fill: color,\n 'data-minute': i\n });\n\n if (!this.toggleTime(i, false)) {\n svgMinuteCircle.className += \" disabled\";\n } else {\n svgMinuteCircle.addEventListener('click', this._onSelectMinute.bind(this));\n }\n\n svgClockElement.appendChild(svgMinuteCircle);\n }\n\n for (var i = 0; i < 60; i++) {\n if (i % 5 === 0) {\n var x = -(162 * Math.sin(-Math.PI * 2 * (i / 60)));\n var y = -(162 * Math.cos(-Math.PI * 2 * (i / 60)));\n var color = this.currentDate.format(\"m\") == i ? \"#fff\" : '#000';\n var svgMinuteText = this.createSVGElement(\"text\", {\n 'id': 'tm-' + i,\n 'class': 'dtp-select-minute-text',\n 'text-anchor': 'middle',\n 'style': 'cursor:pointer',\n 'font-weight': 'bold',\n 'font-size': '20',\n x: x,\n y: y + 7,\n fill: color,\n 'data-minute': i\n });\n svgMinuteText.textContent = i;\n\n if (!this.toggleTime(i, false)) {\n svgMinuteText.className += \" disabled\";\n svgMinuteText.setAttribute('fill', '#bdbdbd');\n } else {\n svgMinuteText.addEventListener('click', this._onSelectMinute.bind(this));\n }\n\n svgClockElement.appendChild(svgMinuteText);\n }\n }\n\n this._centerBox();\n },\n animateHands: function animateHands() {\n var H = this.currentDate.hour();\n var M = this.currentDate.minute();\n var hh = this.$dtpElement.find('.hour-hand');\n hh[0].setAttribute('transform', \"rotate(\" + 360 * H / 12 + \")\");\n var mh = this.$dtpElement.find('.minute-hand');\n mh[0].setAttribute('transform', \"rotate(\" + 360 * M / 60 + \")\");\n },\n createSVGClock: function createSVGClock(isHour) {\n var hl = this.params.shortTime ? -120 : -90;\n var svgElement = this.createSVGElement(\"svg\", {\n class: 'svg-clock',\n viewBox: '0,0,400,400'\n });\n var svgGElement = this.createSVGElement(\"g\", {\n transform: 'translate(200,200) '\n });\n var svgClockFace = this.createSVGElement(\"circle\", {\n r: '192',\n fill: '#eee',\n stroke: '#bdbdbd',\n 'stroke-width': 2\n });\n var svgClockCenter = this.createSVGElement(\"circle\", {\n r: '15',\n fill: '#757575'\n });\n svgGElement.appendChild(svgClockFace);\n\n if (isHour) {\n var svgMinuteHand = this.createSVGElement(\"line\", {\n class: 'minute-hand',\n x1: 0,\n y1: 0,\n x2: 0,\n y2: -150,\n stroke: '#bdbdbd',\n 'stroke-width': 2\n });\n var svgHourHand = this.createSVGElement(\"line\", {\n class: 'hour-hand',\n x1: 0,\n y1: 0,\n x2: 0,\n y2: hl,\n stroke: '#8BC34A',\n 'stroke-width': 8\n });\n svgGElement.appendChild(svgMinuteHand);\n svgGElement.appendChild(svgHourHand);\n } else {\n var svgMinuteHand = this.createSVGElement(\"line\", {\n class: 'minute-hand',\n x1: 0,\n y1: 0,\n x2: 0,\n y2: -150,\n stroke: '#8BC34A',\n 'stroke-width': 2\n });\n var svgHourHand = this.createSVGElement(\"line\", {\n class: 'hour-hand',\n x1: 0,\n y1: 0,\n x2: 0,\n y2: hl,\n stroke: '#bdbdbd',\n 'stroke-width': 8\n });\n svgGElement.appendChild(svgHourHand);\n svgGElement.appendChild(svgMinuteHand);\n }\n\n svgGElement.appendChild(svgClockCenter);\n svgElement.appendChild(svgGElement);\n this.$dtpElement.find(\"#dtp-svg-clock\").empty();\n this.$dtpElement.find(\"#dtp-svg-clock\")[0].appendChild(svgElement);\n this.animateHands();\n return svgGElement;\n },\n createSVGElement: function createSVGElement(tag, attrs) {\n var el = document.createElementNS('http://www.w3.org/2000/svg', tag);\n\n for (var k in attrs) {\n el.setAttribute(k, attrs[k]);\n }\n\n return el;\n },\n isAfterMinDate: function isAfterMinDate(date, checkHour, checkMinute) {\n var _return = true;\n\n if (typeof this.minDate !== 'undefined' && this.minDate !== null) {\n var _minDate = moment(this.minDate);\n\n var _date = moment(date);\n\n if (!checkHour && !checkMinute) {\n _minDate.hour(0);\n\n _minDate.minute(0);\n\n _date.hour(0);\n\n _date.minute(0);\n }\n\n _minDate.second(0);\n\n _date.second(0);\n\n _minDate.millisecond(0);\n\n _date.millisecond(0);\n\n if (!checkMinute) {\n _date.minute(0);\n\n _minDate.minute(0);\n\n _return = parseInt(_date.format(\"X\")) >= parseInt(_minDate.format(\"X\"));\n } else {\n _return = parseInt(_date.format(\"X\")) >= parseInt(_minDate.format(\"X\"));\n }\n }\n\n return _return;\n },\n isBeforeMaxDate: function isBeforeMaxDate(date, checkTime, checkMinute) {\n var _return = true;\n\n if (typeof this.maxDate !== 'undefined' && this.maxDate !== null) {\n var _maxDate = moment(this.maxDate);\n\n var _date = moment(date);\n\n if (!checkTime && !checkMinute) {\n _maxDate.hour(0);\n\n _maxDate.minute(0);\n\n _date.hour(0);\n\n _date.minute(0);\n }\n\n _maxDate.second(0);\n\n _date.second(0);\n\n _maxDate.millisecond(0);\n\n _date.millisecond(0);\n\n if (!checkMinute) {\n _date.minute(0);\n\n _maxDate.minute(0);\n\n _return = parseInt(_date.format(\"X\")) <= parseInt(_maxDate.format(\"X\"));\n } else {\n _return = parseInt(_date.format(\"X\")) <= parseInt(_maxDate.format(\"X\"));\n }\n }\n\n return _return;\n },\n rotateElement: function rotateElement(el, deg) {\n $(el).css({\n WebkitTransform: 'rotate(' + deg + 'deg)',\n '-moz-transform': 'rotate(' + deg + 'deg)'\n });\n },\n showDate: function showDate(date) {\n if (date) {\n this.$dtpElement.find('.dtp-actual-day').html(date.locale(this.params.lang).format('dddd'));\n this.$dtpElement.find('.dtp-actual-month').html(date.locale(this.params.lang).format('MMM').toUpperCase());\n this.$dtpElement.find('.dtp-actual-num').html(date.locale(this.params.lang).format('DD'));\n this.$dtpElement.find('.dtp-actual-year').html(date.locale(this.params.lang).format('YYYY'));\n }\n },\n showTime: function showTime(date) {\n if (date) {\n var minutes = date.minute();\n var content = (this.params.shortTime ? date.format('hh') : date.format('HH')) + ':' + (minutes.toString().length == 2 ? minutes : '0' + minutes) + (this.params.shortTime ? ' ' + date.format('A') : '');\n if (this.params.date) this.$dtpElement.find('.dtp-actual-time').html(content);else {\n if (this.params.shortTime) this.$dtpElement.find('.dtp-actual-day').html(date.format('A'));else this.$dtpElement.find('.dtp-actual-day').html(' ');\n this.$dtpElement.find('.dtp-actual-maxtime').html(content);\n }\n }\n },\n selectDate: function selectDate(date) {\n if (date) {\n this.currentDate.date(date);\n this.showDate(this.currentDate);\n this.$element.trigger('dateSelected', this.currentDate);\n }\n },\n generateCalendar: function generateCalendar(date) {\n var _calendar = {};\n\n if (date !== null) {\n var startOfMonth = moment(date).locale(this.params.lang).startOf('month');\n var endOfMonth = moment(date).locale(this.params.lang).endOf('month');\n var iNumDay = startOfMonth.format('d');\n _calendar.week = this.days;\n _calendar.days = [];\n\n for (var i = startOfMonth.date(); i <= endOfMonth.date(); i++) {\n if (i === startOfMonth.date()) {\n var iWeek = _calendar.week.indexOf(iNumDay.toString());\n\n if (iWeek > 0) {\n for (var x = 0; x < iWeek; x++) {\n _calendar.days.push(0);\n }\n }\n }\n\n _calendar.days.push(moment(startOfMonth).locale(this.params.lang).date(i));\n }\n }\n\n return _calendar;\n },\n constructHTMLCalendar: function constructHTMLCalendar(date, calendar) {\n var _template = \"\";\n _template += '
' + date.locale(this.params.lang).format('MMMM YYYY') + '
';\n _template += '';\n\n for (var i = 0; i < calendar.week.length; i++) {\n _template += '';\n }\n\n _template += '';\n _template += '';\n\n for (var i = 0; i < calendar.days.length; i++) {\n if (i % 7 == 0) _template += '';\n _template += '';\n }\n }\n\n _template += '
' + moment(parseInt(calendar.week[i]), \"d\").locale(this.params.lang).format(\"dd\").substring(0, 1) + '
';\n\n if (calendar.days[i] != 0) {\n if (this.isBeforeMaxDate(moment(calendar.days[i]), false, false) === false || this.isAfterMinDate(moment(calendar.days[i]), false, false) === false || this.params.disabledDays.indexOf(calendar.days[i].isoWeekday()) !== -1) {\n _template += '' + moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") + '';\n } else {\n if (moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") === moment(this.currentDate).locale(this.params.lang).format(\"DD\")) {\n _template += '' + moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") + '';\n } else {\n _template += '' + moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") + '';\n }\n }\n\n _template += '
';\n return _template;\n },\n setName: function setName() {\n var text = \"\";\n var possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\n for (var i = 0; i < 5; i++) {\n text += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n\n return text;\n },\n isPM: function isPM() {\n return this.$dtpElement.find('a.dtp-meridien-pm').hasClass('selected');\n },\n setElementValue: function setElementValue() {\n this.$element.trigger('beforeChange', this.currentDate);\n\n if (typeof $.material !== 'undefined') {\n this.$element.removeClass('empty');\n }\n\n this.$element.val(moment(this.currentDate).locale(this.params.lang).format(this.params.format));\n this.$element.trigger('change', this.currentDate);\n },\n toggleButtons: function toggleButtons(date) {\n if (date && date.isValid()) {\n var startOfMonth = moment(date).locale(this.params.lang).startOf('month');\n var endOfMonth = moment(date).locale(this.params.lang).endOf('month');\n\n if (!this.isAfterMinDate(startOfMonth, false, false)) {\n this.$dtpElement.find('a.dtp-select-month-before').addClass('invisible');\n } else {\n this.$dtpElement.find('a.dtp-select-month-before').removeClass('invisible');\n }\n\n if (!this.isBeforeMaxDate(endOfMonth, false, false)) {\n this.$dtpElement.find('a.dtp-select-month-after').addClass('invisible');\n } else {\n this.$dtpElement.find('a.dtp-select-month-after').removeClass('invisible');\n }\n\n var startOfYear = moment(date).locale(this.params.lang).startOf('year');\n var endOfYear = moment(date).locale(this.params.lang).endOf('year');\n\n if (!this.isAfterMinDate(startOfYear, false, false)) {\n this.$dtpElement.find('a.dtp-select-year-before').addClass('invisible');\n } else {\n this.$dtpElement.find('a.dtp-select-year-before').removeClass('invisible');\n }\n\n if (!this.isBeforeMaxDate(endOfYear, false, false)) {\n this.$dtpElement.find('a.dtp-select-year-after').addClass('invisible');\n } else {\n this.$dtpElement.find('a.dtp-select-year-after').removeClass('invisible');\n }\n }\n },\n toggleTime: function toggleTime(value, isHours) {\n var result = false;\n\n if (isHours) {\n var _date = moment(this.currentDate);\n\n _date.hour(this.convertHours(value)).minute(0).second(0);\n\n result = !(this.isAfterMinDate(_date, true, false) === false || this.isBeforeMaxDate(_date, true, false) === false);\n } else {\n var _date = moment(this.currentDate);\n\n _date.minute(value).second(0);\n\n result = !(this.isAfterMinDate(_date, true, true) === false || this.isBeforeMaxDate(_date, true, true) === false);\n }\n\n return result;\n },\n _attachEvent: function _attachEvent(el, ev, fn) {\n el.on(ev, null, null, fn);\n\n this._attachedEvents.push([el, ev, fn]);\n },\n _detachEvents: function _detachEvents() {\n for (var i = this._attachedEvents.length - 1; i >= 0; i--) {\n this._attachedEvents[i][0].off(this._attachedEvents[i][1], this._attachedEvents[i][2]);\n\n this._attachedEvents.splice(i, 1);\n }\n },\n _fireCalendar: function _fireCalendar() {\n this.currentView = 0;\n this.$element.blur();\n this.initDates();\n this.show();\n\n if (this.params.date) {\n this.$dtpElement.find('.dtp-date').removeClass('hidden');\n this.initDate();\n } else {\n if (this.params.time) {\n this.$dtpElement.find('.dtp-time').removeClass('hidden');\n this.initHours();\n }\n }\n },\n _onBackgroundClick: function _onBackgroundClick(e) {\n e.stopPropagation();\n this.hide();\n },\n _onElementClick: function _onElementClick(e) {\n e.stopPropagation();\n },\n _onKeydown: function _onKeydown(e) {\n if (e.which === 27) {\n this.hide();\n }\n },\n _onCloseClick: function _onCloseClick() {\n this.hide();\n },\n _onClearClick: function _onClearClick() {\n this.currentDate = null;\n this.$element.trigger('beforeChange', this.currentDate);\n this.hide();\n\n if (typeof $.material !== 'undefined') {\n this.$element.addClass('empty');\n }\n\n this.$element.val('');\n this.$element.trigger('change', this.currentDate);\n },\n _onNowClick: function _onNowClick() {\n this.currentDate = moment();\n\n if (this.params.date === true) {\n this.showDate(this.currentDate);\n\n if (this.currentView === 0) {\n this.initDate();\n }\n }\n\n if (this.params.time === true) {\n this.showTime(this.currentDate);\n\n switch (this.currentView) {\n case 1:\n this.initHours();\n break;\n\n case 2:\n this.initMinutes();\n break;\n }\n\n this.animateHands();\n }\n },\n _onOKClick: function _onOKClick() {\n switch (this.currentView) {\n case 0:\n if (this.params.time === true) {\n this.initHours();\n } else {\n this.setElementValue();\n this.hide();\n }\n\n break;\n\n case 1:\n this.initMinutes();\n break;\n\n case 2:\n this.setElementValue();\n this.hide();\n break;\n }\n },\n _onCancelClick: function _onCancelClick() {\n if (this.params.time) {\n switch (this.currentView) {\n case 0:\n this.hide();\n break;\n\n case 1:\n if (this.params.date) {\n this.initDate();\n } else {\n this.hide();\n }\n\n break;\n\n case 2:\n this.initHours();\n break;\n }\n } else {\n this.hide();\n }\n },\n _onMonthBeforeClick: function _onMonthBeforeClick() {\n this.currentDate.subtract(1, 'months');\n this.initDate(this.currentDate);\n\n this._closeYearPicker();\n },\n _onMonthAfterClick: function _onMonthAfterClick() {\n this.currentDate.add(1, 'months');\n this.initDate(this.currentDate);\n\n this._closeYearPicker();\n },\n _onYearBeforeClick: function _onYearBeforeClick() {\n this.currentDate.subtract(1, 'years');\n this.initDate(this.currentDate);\n\n this._closeYearPicker();\n },\n _onYearAfterClick: function _onYearAfterClick() {\n this.currentDate.add(1, 'years');\n this.initDate(this.currentDate);\n\n this._closeYearPicker();\n },\n refreshYearItems: function refreshYearItems() {\n var curYear = this.currentDate.year(),\n midYear = this.midYear;\n var minYear = 1850;\n\n if (typeof this.minDate !== 'undefined' && this.minDate !== null) {\n minYear = moment(this.minDate).year();\n }\n\n var maxYear = 2200;\n\n if (typeof this.maxDate !== 'undefined' && this.maxDate !== null) {\n maxYear = moment(this.maxDate).year();\n }\n\n this.$dtpElement.find(\".dtp-picker-year .invisible\").removeClass(\"invisible\");\n this.$dtpElement.find(\".year-picker-item\").each(function (i, el) {\n var newYear = midYear - 3 + i;\n $(el).attr(\"data-year\", newYear).text(newYear).data(\"year\", newYear);\n\n if (curYear == newYear) {\n $(el).addClass(\"active\");\n } else {\n $(el).removeClass(\"active\");\n }\n\n if (newYear < minYear || newYear > maxYear) {\n $(el).addClass(\"invisible\");\n }\n });\n\n if (minYear >= midYear - 3) {\n this.$dtpElement.find(\".dtp-select-year-range.before\").addClass('invisible');\n }\n\n if (maxYear <= midYear + 3) {\n this.$dtpElement.find(\".dtp-select-year-range.after\").addClass('invisible');\n }\n\n this.$dtpElement.find(\".dtp-select-year-range\").data(\"mid\", midYear);\n },\n _onActualYearClick: function _onActualYearClick() {\n if (this.params.year) {\n if (this.$dtpElement.find('.dtp-picker-year.hidden').length > 0) {\n this.$dtpElement.find('.dtp-picker-datetime').addClass(\"hidden\");\n this.$dtpElement.find('.dtp-picker-calendar').addClass(\"hidden\");\n this.$dtpElement.find('.dtp-picker-year').removeClass(\"hidden\");\n this.midYear = this.currentDate.year();\n this.refreshYearItems();\n } else {\n this._closeYearPicker();\n }\n }\n },\n _onYearRangeBeforeClick: function _onYearRangeBeforeClick() {\n this.midYear -= 7;\n this.refreshYearItems();\n },\n _onYearRangeAfterClick: function _onYearRangeAfterClick() {\n this.midYear += 7;\n this.refreshYearItems();\n },\n _onYearItemClick: function _onYearItemClick(e) {\n var newYear = $(e.currentTarget).data('year');\n var oldYear = this.currentDate.year();\n var diff = newYear - oldYear;\n this.currentDate.add(diff, 'years');\n this.initDate(this.currentDate);\n\n this._closeYearPicker();\n\n this.$element.trigger(\"yearSelected\", this.currentDate);\n },\n _closeYearPicker: function _closeYearPicker() {\n this.$dtpElement.find('.dtp-picker-calendar').removeClass(\"hidden\");\n this.$dtpElement.find('.dtp-picker-year').addClass(\"hidden\");\n },\n enableYearPicker: function enableYearPicker() {\n this.params.year = true;\n this.$dtpElement.find(\".dtp-actual-year\").reomveClass(\"disabled\");\n },\n disableYearPicker: function disableYearPicker() {\n this.params.year = false;\n this.$dtpElement.find(\".dtp-actual-year\").addClass(\"disabled\");\n\n this._closeYearPicker();\n },\n _onSelectDate: function _onSelectDate(e) {\n this.$dtpElement.find('a.dtp-select-day').removeClass('selected');\n $(e.currentTarget).addClass('selected');\n this.selectDate($(e.currentTarget).parent().data(\"date\"));\n if (this.params.switchOnClick === true && this.params.time === true) setTimeout(this.initHours.bind(this), 200);\n\n if (this.params.switchOnClick === true && this.params.time === false) {\n setTimeout(this._onOKClick.bind(this), 200);\n }\n },\n _onSelectHour: function _onSelectHour(e) {\n if (!$(e.target).hasClass('disabled')) {\n var value = $(e.target).data('hour');\n var parent = $(e.target).parent();\n var h = parent.find('.dtp-select-hour');\n\n for (var i = 0; i < h.length; i++) {\n $(h[i]).attr('fill', 'transparent');\n }\n\n var th = parent.find('.dtp-select-hour-text');\n\n for (var i = 0; i < th.length; i++) {\n $(th[i]).attr('fill', '#000');\n }\n\n $(parent.find('#h-' + value)).attr('fill', '#8BC34A');\n $(parent.find('#th-' + value)).attr('fill', '#fff');\n this.currentDate.hour(parseInt(value));\n\n if (this.params.shortTime === true && this.isPM()) {\n this.currentDate.add(12, 'hours');\n }\n\n this.showTime(this.currentDate);\n this.animateHands();\n if (this.params.switchOnClick === true) setTimeout(this.initMinutes.bind(this), 200);\n }\n },\n _onSelectMinute: function _onSelectMinute(e) {\n if (!$(e.target).hasClass('disabled')) {\n var value = $(e.target).data('minute');\n var parent = $(e.target).parent();\n var m = parent.find('.dtp-select-minute');\n\n for (var i = 0; i < m.length; i++) {\n $(m[i]).attr('fill', 'transparent');\n }\n\n var tm = parent.find('.dtp-select-minute-text');\n\n for (var i = 0; i < tm.length; i++) {\n $(tm[i]).attr('fill', '#000');\n }\n\n $(parent.find('#m-' + value)).attr('fill', '#8BC34A');\n $(parent.find('#tm-' + value)).attr('fill', '#fff');\n this.currentDate.minute(parseInt(value));\n this.showTime(this.currentDate);\n this.animateHands();\n if (this.params.switchOnClick === true) setTimeout(function () {\n this.setElementValue();\n this.hide();\n }.bind(this), 200);\n }\n },\n _onSelectAM: function _onSelectAM(e) {\n $('.dtp-actual-meridien').find('a').removeClass('selected');\n $(e.currentTarget).addClass('selected');\n\n if (this.currentDate.hour() >= 12) {\n if (this.currentDate.subtract(12, 'hours')) this.showTime(this.currentDate);\n }\n\n this.toggleTime(this.currentView === 1);\n },\n _onSelectPM: function _onSelectPM(e) {\n $('.dtp-actual-meridien').find('a').removeClass('selected');\n $(e.currentTarget).addClass('selected');\n\n if (this.currentDate.hour() < 12) {\n if (this.currentDate.add(12, 'hours')) this.showTime(this.currentDate);\n }\n\n this.toggleTime(this.currentView === 1);\n },\n _hideCalendar: function _hideCalendar() {\n this.$dtpElement.find('.dtp-picker-calendar').addClass('hidden');\n },\n convertHours: function convertHours(h) {\n var _return = h;\n\n if (this.params.shortTime === true) {\n if (h < 12 && this.isPM()) {\n _return += 12;\n }\n }\n\n return _return;\n },\n setDate: function setDate(date) {\n this.params.currentDate = date;\n this.initDates();\n },\n setMinDate: function setMinDate(date) {\n this.params.minDate = date;\n this.initDates();\n },\n setMaxDate: function setMaxDate(date) {\n this.params.maxDate = date;\n this.initDates();\n },\n destroy: function destroy() {\n this._detachEvents();\n\n this.$dtpElement.remove();\n },\n show: function show() {\n this.$dtpElement.removeClass('hidden');\n\n this._attachEvent($(window), 'keydown', this._onKeydown.bind(this));\n\n this._centerBox();\n\n this.$element.trigger('open');\n\n if (this.params.monthPicker === true) {\n this._hideCalendar();\n }\n },\n hide: function hide() {\n $(window).off('keydown', null, null, this._onKeydown.bind(this));\n this.$dtpElement.addClass('hidden');\n this.$element.trigger('close');\n },\n _centerBox: function _centerBox() {\n var h = (this.$dtpElement.height() - this.$dtpElement.find('.dtp-content').height()) / 2;\n this.$dtpElement.find('.dtp-content').css('marginLeft', -(this.$dtpElement.find('.dtp-content').width() / 2) + 'px');\n this.$dtpElement.find('.dtp-content').css('top', h + 'px');\n },\n enableDays: function enableDays() {\n var enableDays = this.params.enableDays;\n\n if (enableDays) {\n $(\".dtp-picker-days tbody tr td\").each(function () {\n if (!($.inArray($(this).index(), enableDays) >= 0)) {\n $(this).find('a').css({\n \"background\": \"#e3e3e3\",\n \"cursor\": \"no-drop\",\n \"opacity\": \"0.5\"\n }).off(\"click\");\n }\n });\n }\n }\n };\n})(jQuery, moment);","const originalPicker = $.fn.bootstrapMaterialDatePicker\n\n$.fn.bootstrapMaterialDatePicker = function (...args) {\n this.each(function() {\n const newInstance = !$.data(this, 'plugin_bootstrapMaterialDatePicker')\n\n originalPicker.apply($(this), args)\n\n if (newInstance) {\n const $template = $('body').find(`> #${$.data(this, 'plugin_bootstrapMaterialDatePicker').name}`)\n\n // Add animation\n $template.addClass('animated fadeIn')\n\n // Styling buttons\n $template.find('.dtp-btn-now,.dtp-btn-clear,.dtp-btn-cancel').addClass('btn-default btn-sm')\n $template.find('.dtp-btn-ok').addClass('btn-primary btn-sm')\n }\n })\n\n return this\n}\n"],"sourceRoot":""}