text: !function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(a){n.innerText=t}}(document,".selected_date_full {\n  color: #387EF5;\n  font-weight: bold;\n  text-align: center;\n  padding-bottom: 5px;\n}\n\n.color_blue {\n  color: rgb(56, 126, 245) !important;\n}\n\n.bg_color_blue {\n  background-color: rgb(56, 126, 245);\n}\n\n.date_col:hover {\n  background-color: rgba(56, 126, 245, 0.5);\n  cursor: pointer;\n}\n\n.date_col:active {\n  background-color: rgba(56, 126, 245, 1);\n  cursor: pointer;\n}\n\n.no_padding {\n  padding: 0;\n}\n\n.date_cell {\n  padding: 5px;\n}\n\n.date_selected {\n  background-color: rgba(56, 126, 245, 1) !important;\n}\n\n.today {\n  background-color: rgba(186, 186, 186, 1);\n}\n\n.pointer_events_none {\n  pointer-events: none !important;\n  color: #AAAAAA;\n}\n\n.select_section {\n  padding: 0;\n}\n\n.select_section label {\n  padding: 12px;\n}\n\n.select_section select {\n  font-size: 12px;\n  font-weight: bold;\n  padding: 2px 10px;\n  direction: ltr;\n  left: 0;\n  width: 100%;\n  max-width: 100%;\n}\n\n.select_section .item-select:after {\n  right: 4px;\n  border-top: 4px solid;\n  border-right: 4px solid rgba(0, 0, 0, 0);\n  border-left: 4px solid rgba(0, 0, 0, 0);\n}\n\n.left_arrow {\n  direction: rtl;\n}\n\n.right_arrow {\n\n}\n.ionic_datepicker_modal_content .selected_date_full {\n  font-size: 20px;\n}\n.font_22px {\n  font-size: 22px;\n}\n.ionic_datepicker_modal_content {\n  padding-top: 10%;\n}\n.ionic_datepicker_modal_content .selected_date_full{\n  padding: 20px;\n}\n@media (min-width: 680px) {\n  .ionic_datepicker_modal_content {\n    padding-top: 0;\n  }\n  .ionic_datepicker_modal_content .selected_date_full {\n    font-size: inherit;\n  }\n  .ionic_datepicker_modal_content .selected_date_full{\n    padding: 10px 0 0 0;\n  }\n}"),function(e){try{e=angular.module("ionic-datepicker.templates")}catch(t){e=angular.module("ionic-datepicker.templates",[])}e.run(["$templateCache",function(e){e.put("ionic-datepicker-modal.html",'<ion-modal-view class=ionic_datepicker_modal><ion-header-bar ng-class=modalHeaderColor><h1 class=title>{{titleLabel}}</h1></ion-header-bar><ion-content class=ionic_datepicker_modal_content><div class=ionic_datepicker><div class=selected_date_full>{{selectedDateFull | date:"dd-MM-yyyy"}}</div><div class=row><div class="col col-10 left_arrow" ng-click=prevMonth() ng-class="{\'pointer_events_none\':(enableDatesFrom.isSet && enableDatesFrom.epoch > currentMonthFirstDayEpoch)}"><button class="button-clear font_22px" ng-class="{\'color_blue\':((enableDatesFrom.isSet && enableDatesFrom.epoch < currentMonthFirstDayEpoch) || (!enableDatesFrom.isSet))}"><i class="icon ion-chevron-left"></i></button></div><div class="col col-80 drop_down"><div class="row select_section"><div class="col col-50 month_dropdown"><div class=list><label class="item item-input item-select"><select ng-model=currentMonth ng-change=monthChanged(currentMonth) class=month_select><option value={{month}} ng-repeat="month in monthsList" ng-selected="month == currentMonthSelected">{{month}}</option></select></label></div></div><div class="col col-50 year_dropdown"><div class=list><label class="item item-input item-select"><select ng-model=currentYear ng-change=yearChanged(currentYear) class=year_select><option value={{year}} ng-repeat="year in yearsList" ng-selected="year == currentYearSelected">{{year}}</option></select></label></div></div></div></div><div class="col col-10 right_arrow" ng-click=nextMonth() ng-class="{\'pointer_events_none\':(enableDatesTo.isSet && enableDatesTo.epoch < currentMonthLastDayEpoch)}"><button class="button-clear font_22px" ng-class="{\'color_blue\':((enableDatesTo.isSet && enableDatesTo.epoch > currentMonthLastDayEpoch) || (!enableDatesTo.isSet))}"><i class="icon ion-chevron-right"></i></button></div></div><div class=calendar_grid><div class=row><div class="col text-center" ng-repeat="weekName in weekNames track by $index" style="font-weight: bold">{{ weekName }}</div></div><div><div class=row ng-repeat="row in rows track by $index" style="text-align: center;"><div class="col no_padding" ng-repeat="col in cols track by $index" ng-class="{\'date_col\': (dayList[$parent.$index * numColumns + $index].day != undefined), \'date_selected\': (dayList[$parent.$index * numColumns + $index].dateString === selctedDateStringCopy && dayList[$parent.$index * numColumns + $index].day != undefined) , \'today\' : (dayList[$parent.$index * numColumns + $index].date == today.date && dayList[$parent.$index * numColumns + $index].month == today.month && dayList[$parent.$index * numColumns + $index].year == today.year)}"><div class=date_cell ng-click="dateSelected(dayList[$parent.$index * numColumns + $index])" ng-class="{\'pointer_events_none\':(disabledDates.indexOf(dayList[$parent.$index * numColumns + $index].epochLocal) > -1) || (enableDatesFrom.isSet && enableDatesFrom.epoch > dayList[$parent.$index * numColumns + $index].epochLocal) || (enableDatesTo.isSet && enableDatesTo.epoch < dayList[$parent.$index * numColumns + $index].epochLocal)}">{{ dayList[$parent.$index * numColumns + $index].date }}</div></div></div></div></div><div class="error_msg padding-horizontal" ng-show="date_selection.submitted === true && date_selection.selected === false">{{errorMsgLabel}}</div></div></ion-content><ion-footer-bar ng-class=modalFooterColor><div class="row no_padding"><div class="col-33 text-center" ng-click=closeIonicDatePickerModal()><button class="button button-clear">{{closeLabel}}</button></div><div class="col-34 text-center" ng-click=setIonicDatePickerTodayDate()><button class="button button-clear">{{todayLabel}}</button></div><div class="col-33 text-center" ng-click=setIonicDatePickerDate()><button class="button button-clear">{{setLabel}}</button></div></div></ion-footer-bar></ion-modal-view>')}])}(),function(e){try{e=angular.module("ionic-datepicker.templates")}catch(t){e=angular.module("ionic-datepicker.templates",[])}e.run(["$templateCache",function(e){e.put("ionic-datepicker-popup.html",'<div class=ionic-datepicker><div class=selected_date_full>{{selectedDateFull | date:"dd-MM-yyyy"}}</div><div class="row no_padding"><div class="col col-10 left_arrow" ng-click=prevMonth() ng-class="{\'pointer_events_none\':(enableDatesFrom.isSet && enableDatesFrom.epoch > currentMonthFirstDayEpoch)}"><button class=button-clear ng-class="{\'color_blue\':((enableDatesFrom.isSet && enableDatesFrom.epoch < currentMonthFirstDayEpoch) || (!enableDatesFrom.isSet))}"><i class="icon ion-chevron-left"></i></button></div><div class="col col-80 drop_down no_padding"><div class="row select_section"><div class="col col-50 month_dropdown"><div class=list><label class="item item-input item-select"><select ng-model=currentMonth ng-change=monthChanged(currentMonth) class=month_select><option value={{month}} ng-repeat="month in monthsList" ng-selected="month == currentMonthSelected">{{month}}</option></select></label></div></div><div class="col col-50 year_dropdown"><div class=list><label class="item item-input item-select"><select ng-model=currentYear ng-change=yearChanged(currentYear) class=year_select><option value={{year}} ng-repeat="year in yearsList" ng-selected="year == currentYearSelected">{{year}}</option></select></label></div></div></div></div><div class="col col-10 right_arrow" ng-click=nextMonth() ng-class="{\'pointer_events_none\':(enableDatesTo.isSet && enableDatesTo.epoch < currentMonthLastDayEpoch)}"><button class=button-clear ng-class="{\'color_blue\':((enableDatesTo.isSet && enableDatesTo.epoch > currentMonthLastDayEpoch) || (!enableDatesTo.isSet))}"><i class="icon ion-chevron-right"></i></button></div></div><div class=calendar_grid><div class=row><div class=col ng-repeat="weekName in weekNames track by $index" style="font-weight: bold">{{ weekName }}</div></div><div style="height: 180px;"><div class=row ng-repeat="row in rows track by $index" style="text-align: center;"><div class="col no_padding" ng-repeat="col in cols track by $index" ng-class="{\'date_col\': (dayList[$parent.$index * numColumns + $index].day != undefined), \'date_selected\': (dayList[$parent.$index * numColumns + $index].dateString === selctedDateStringCopy && dayList[$parent.$index * numColumns + $index].day != undefined) , \'today\' : (dayList[$parent.$index * numColumns + $index].date == today.date && dayList[$parent.$index * numColumns + $index].month == today.month && dayList[$parent.$index * numColumns + $index].year == today.year)}"><div class=date_cell ng-click="dateSelected(dayList[$parent.$index * numColumns + $index])" ng-class="{\'pointer_events_none\':(disabledDates.indexOf(dayList[$parent.$index * numColumns + $index].epochLocal) > -1) || (enableDatesFrom.isSet && enableDatesFrom.epoch > dayList[$parent.$index * numColumns + $index].epochLocal) || (enableDatesTo.isSet && enableDatesTo.epoch < dayList[$parent.$index * numColumns + $index].epochLocal)}">{{ dayList[$parent.$index * numColumns + $index].date }}</div></div></div></div></div><div class="error_msg padding-horizontal" ng-show="date_selection.submitted === true && date_selection.selected === false">{{errorMsgLabel}}</div></div>')}])}(),function(){"use strict";angular.module("ionic-datepicker",["ionic","ionic-datepicker.templates"])}(),function(){"use strict";function e(e,t,n){return{restrict:"AE",replace:!0,scope:{inputObj:"=inputObj"},link:function(a,o,i){function l(){a.date_selection.submitted=!0,a.date_selection.selected===!0&&a.inputObj.callback(a.date_selection.selectedDate)}function s(){var e=new Date;e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0);var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n={date:e.getDate(),month:e.getMonth(),year:e.getFullYear(),day:e.getDay(),dateString:e.toString(),epochLocal:t.getTime(),epochUTC:t.getTime()+60*t.getTimezoneOffset()*1e3};a.selctedDateString=n.dateString,a.selctedDateStringCopy=angular.copy(a.selctedDateString),a.date_selection.selected=!0,a.date_selection.selectedDate=new Date(n.dateString),p(new Date)}a.currentMonth="",a.currentYear="",a.disabledDates=[],a.titleLabel=a.inputObj.titleLabel?a.inputObj.titleLabel:"Select Date",a.todayLabel=a.inputObj.todayLabel?a.inputObj.todayLabel:"Today",a.closeLabel=a.inputObj.closeLabel?a.inputObj.closeLabel:"Close",a.setLabel=a.inputObj.setLabel?a.inputObj.setLabel:"Set",a.errorMsgLabel=a.inputObj.errorMsgLabel?a.inputObj.errorMsgLabel:"Please select a date.",a.setButtonType=a.inputObj.setButtonType?a.inputObj.setButtonType:"button-positive",a.todayButtonType=a.inputObj.todayButtonType?a.inputObj.todayButtonType:"button-stable",a.closeButtonType=a.inputObj.closeButtonType?a.inputObj.closeButtonType:"button-stable",a.templateType=a.inputObj.templateType?a.inputObj.templateType:"modal",a.modalHeaderColor=a.inputObj.modalHeaderColor?a.inputObj.modalHeaderColor:"bar-stable",a.modalFooterColor=a.inputObj.modalFooterColor?a.inputObj.modalFooterColor:"bar-stable",a.enableDatesFrom={epoch:0,isSet:!1},a.enableDatesTo={epoch:0,isSet:!1},a.inputObj.from&&(a.enableDatesFrom.isSet=!0,a.enableDatesFrom.epoch=a.inputObj.from.getTime()),a.inputObj.to&&(a.enableDatesTo.isSet=!0,a.enableDatesTo.epoch=a.inputObj.to.getTime()),a.ipDate=a.inputObj.inputDate?a.inputObj.inputDate:new Date,a.selectedDateFull=a.ipDate,a.monthsList=[],a.monthsList=a.inputObj.monthList&&12===a.inputObj.monthList.length?a.inputObj.monthList:n.monthsList,a.weekNames=a.inputObj.weekDaysList&&7===a.inputObj.weekDaysList.length?a.inputObj.weekDaysList:["S","M","T","W","T","F","S"],a.yearsList=n.yearsList,a.mondayFirst=a.inputObj.mondayFirst?!0:!1,a.inputObj.disabledDates&&0===a.inputObj.disabledDates.length?a.disabledDates=[]:angular.forEach(a.inputObj.disabledDates,function(e,t){e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),a.disabledDates.push(e.getTime())});var c=angular.copy(a.ipDate);if(c.setHours(0),c.setMinutes(0),c.setSeconds(0),c.setMilliseconds(0),a.selctedDateString=c.toString(),a.today={},a.mondayFirst===!0){var d=a.weekNames.shift();a.weekNames.push(d)}var r=new Date,u=new Date(r.getFullYear(),r.getMonth(),r.getDate());a.today={dateObj:r,date:u.getDate(),month:u.getMonth(),year:u.getFullYear(),day:u.getDay(),dateString:u.toString(),epochLocal:u.getTime(),epochUTC:u.getTime()+60*u.getTimezoneOffset()*1e3};var p=function(e){e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),a.selctedDateString=new Date(e).toString(),c=angular.copy(e);var t=new Date(e.getFullYear(),e.getMonth(),1).getDate(),n=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();a.dayList=[];for(var o=t;n>=o;o++){var i=new Date(e.getFullYear(),e.getMonth(),o);a.dayList.push({date:i.getDate(),month:i.getMonth(),year:i.getFullYear(),day:i.getDay(),dateString:i.toString(),epochLocal:i.getTime(),epochUTC:i.getTime()+60*i.getTimezoneOffset()*1e3})}var l=a.dayList[0].day-a.mondayFirst;l=0>l?6:l,a.currentMonthFirstDayEpoch=a.dayList[0].epochLocal,a.currentMonthLastDayEpoch=a.dayList[a.dayList.length-1].epochLocal;for(var s=0;l>s;s++)a.dayList.unshift({});a.rows=[],a.cols=[],a.currentMonth=a.monthsList[e.getMonth()],a.currentYear=e.getFullYear(),a.currentMonthSelected=a.currentMonth,a.currentYearSelected=a.currentYear,a.numColumns=7,a.rows.length=6,a.cols.length=a.numColumns};a.monthChanged=function(e){var t=a.monthsList.indexOf(e);c.setMonth(t),p(c)},a.yearChanged=function(e){c.setFullYear(e),p(c)},a.prevMonth=function(){1===c.getMonth()&&c.setFullYear(c.getFullYear()),c.setMonth(c.getMonth()-1),a.currentMonth=a.monthsList[c.getMonth()],a.currentYear=c.getFullYear(),p(c)},a.nextMonth=function(){11===c.getMonth()&&c.setFullYear(c.getFullYear()),c.setMonth(c.getMonth()+1),a.currentMonth=a.monthsList[c.getMonth()],a.currentYear=c.getFullYear(),p(c)},a.date_selection={selected:!1,selectedDate:"",submitted:!1},a.date_selection.selected=!0,a.date_selection.selectedDate=a.ipDate,a.dateSelected=function(e){e&&(a.selctedDateString=e.dateString,a.selctedDateStringCopy=angular.copy(a.selctedDateString),a.date_selection.selected=!0,a.date_selection.selectedDate=new Date(e.dateString),a.selectedDateFull=a.date_selection.selectedDate)},a.closeIonicDatePickerModal=function(){a.inputObj.callback(void 0),a.closeModal()},a.setIonicDatePickerTodayDate=function(){s()},a.setIonicDatePickerDate=function(){l(),a.closeModal()},t.fromTemplateUrl("ionic-datepicker-modal.html",{scope:a,animation:"slide-in-up"}).then(function(e){a.modal=e}),a.openModal=function(){a.modal.show()},a.closeModal=function(){a.modal.hide()},o.on("click",function(){p(a.date_selection.selectedDate?a.date_selection.selectedDate:a.ipDate?angular.copy(a.ipDate):new Date),"modal"===a.templateType.toLowerCase()?a.openModal():e.show({templateUrl:"ionic-datepicker-popup.html",title:a.titleLabel,subTitle:"",scope:a,buttons:[{text:a.closeLabel,type:a.closeButtonType,onTap:function(e){a.inputObj.callback(void 0)}},{text:a.todayLabel,type:a.todayButtonType,onTap:function(e){s(),e.preventDefault()}},{text:a.setLabel,type:a.setButtonType,onTap:function(){l()}}]})})}}}angular.module("ionic-datepicker").directive("ionicDatepicker",e),e.$inject=["$ionicPopup","$ionicModal","IonicDatepickerService"]}(),function(){"use strict";function e(){this.monthsList=["January","February","March","April","May","June","July","August","September","October","November","December"],this.yearsList=[1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100]}angular.module("ionic-datepicker").service("IonicDatepickerService",e),e.$inject=[]}();