text: !function(e,n){var t=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=n);else try{t.innerHTML=n}catch(i){t.innerText=n}}(document,"/* Empty. Add your own CSS if you like */\n\n.numberPickerDecimal {\n  color: #000;\n  padding-top: 45px;\n  text-align: center;\n  font-weight: bold;\n}\n\n.numberPickerArrows {\n  width: 100%;\n}\n\n.numberPickerBoxText {\n  color: #000;\n  height: 40px;\n  text-align: center;\n  border: 1px solid #dddddd;\n  font-size: 16px;\n  padding-top: 5px;\n}\n\n.overflowShow {\n  white-space: normal !important;\n}"),function(e){try{e=angular.module("ionic-numberpicker.templates")}catch(n){e=angular.module("ionic-numberpicker.templates",[])}e.run(["$templateCache",function(e){e.put("ionic-numberpicker-decimal.html",'<div class=DecimalPickerChildDiv><div class=row><label class="col col-offset-10 col-10 numberPickerDecimal" ng-show=isNegative>-</label> <label class="col col-offset-10 col-10 numberPickerDecimal" ng-hide=isNegative></label> <span class="button-small col col-25"><button type=button class="button button-clear button-small button-dark numberPickerArrows marginBottom10" ng-click=increaseWhole()><i class="icon ion-chevron-up"></i></button><div ng-bind=wholeNumber class="ipBoxes numberPickerBoxText"></div><button type=button class="button button-clear button-small button-dark numberPickerArrows marginTop10" ng-click=decreaseWhole()><i class="icon ion-chevron-down"></i></button></span> <label class="col col-10 numberPickerDecimal">{{ decimalCharacter }}</label> <span class="button-small col col-25"><button type=button class="button button-clear button-small button-dark numberPickerArrows marginBottom10" ng-click=increaseDecimal()><i class="icon ion-chevron-up"></i></button><div ng-bind=decimalDisplay() class="ipBoxes numberPickerBoxText"></div><button type=button class="button button-clear button-small button-dark numberPickerArrows marginTop10" ng-click=decreaseDecimal()><i class="icon ion-chevron-down"></i></button></span> <label class="col numberPickerDecimal">{{ unit }}</label></div></div>')}])}(),function(e){try{e=angular.module("ionic-numberpicker.templates")}catch(n){e=angular.module("ionic-numberpicker.templates",[])}e.run(["$templateCache",function(e){e.put("ionic-numberpicker-whole.html",'<div class=WholeNumberPickerChildDiv><div class=row><label class="col col-offset-25 col-10 numberPickerDecimal" ng-show=isNegative>-</label> <label class="col col-offset-25 col-10 numberPickerDecimal" ng-hide=isNegative></label> <span class="button-small col col-25"><button type=button class="button button-clear button-small button-dark numberPickerArrows marginBottom10" ng-click=increaseWhole()><i class="icon ion-chevron-up"></i></button><div ng-bind=wholeNumber class="ipBoxes numberPickerBoxText"></div><button type=button class="button button-clear button-small button-dark numberPickerArrows marginTop10" ng-click=decreaseWhole()><i class="icon ion-chevron-down"></i></button></span> <label class="col numberPickerDecimal">{{ unit }}</label></div></div>')}])}(),function(){"use strict";angular.module("ionic-numberpicker",["ionic","ionic-numberpicker.templates"])}(),function(){"use strict";function e(e){return{restrict:"AE",replace:!0,scope:{inputObj:"=inputObj"},link:function(n,t,i){function l(e,t){var i=parseFloat(e).toFixed(n.precision);return i}function c(e){var t=0;return e>=0?(n.isNegative=!1,t=Math.floor(e)):(n.isNegative=!0,t=Math.ceil(e)),Math.abs(t)}n.inputValue=n.inputObj.inputValue?n.inputObj.inputValue:0,n.minValue=n.inputObj.minValue,n.maxValue=n.inputObj.maxValue,n.precision=n.inputObj.precision?n.inputObj.precision:3,n.format=n.inputObj.format?n.inputObj.format:"DECIMAL",n.unit=n.inputObj.unit?n.inputObj.unit:"",n.titleLabel=n.inputObj.titleLabel?n.inputObj.titleLabel:"Number Picker",n.setLabel=n.inputObj.setLabel?n.inputObj.setLabel:"Set",n.closeLabel=n.inputObj.closeLabel?n.inputObj.closeLabel:"Close",n.decimalStep=n.inputObj.decimalStep?n.inputObj.decimalStep:.25,n.decimalCharacter=n.inputObj.decimalCharacter?n.inputObj.decimalCharacter:".",n.setButtonType=n.inputObj.setButtonType?n.inputObj.setButtonType:"button-positive",n.closeButtonType=n.inputObj.closeButtonType?n.inputObj.closeButtonType:"button-stable",n.wholeNumber=0,n.decimalNumber=0,n.isNegative=!1,n.numericValue=Number(n.wholeNumber+"."+n.decimalNumber),n.changeFormat=function(){n.format="DECIMAL"===n.format?"WHOLE":"DECIMAL"},n.decimalDisplay=function(){var e=n.decimalNumber.toString(),t=e.indexOf(".");return e.substring(t+1)},n.increaseWhole=function(){n.numericValue+=1,n.wholeNumber=c(n.numericValue),n.decimalNumber=l(n.numericValue%1),n.checkMax()},n.decreaseWhole=function(){n.numericValue-=1,n.wholeNumber=c(n.numericValue),n.decimalNumber=l(n.numericValue%1),n.checkMin()},n.increaseDecimal=function(){n.numericValue+=n.decimalStep,n.wholeNumber=c(n.numericValue),n.decimalNumber=l(n.numericValue%1),n.checkMax()},n.decreaseDecimal=function(){n.numericValue-=n.decimalStep,n.wholeNumber=c(n.numericValue),n.decimalNumber=l(n.numericValue%1),n.checkMin()},n.checkMax=function(){n.numericValue>=n.maxValue&&(n.numericValue=n.maxValue,n.wholeNumber=c(n.numericValue),n.decimalNumber=l(n.numericValue%1))},n.checkMin=function(){n.numericValue<=n.minValue&&(n.numericValue=n.minValue,n.wholeNumber=c(n.numericValue),n.decimalNumber=l(n.numericValue%1))},t.on("click",function(){"DECIMAL"==n.format?(n.wholeNumber=c(Number(n.inputValue)),n.decimalNumber=n.inputValue%1,n.numericValue=Number(n.wholeNumber)+Number(l(n.decimalNumber,n.precision)),n.decimalNumber=l(n.numericValue%1),e.show({templateUrl:"ionic-numberpicker-decimal.html",title:n.titleLabel,subTitle:"",scope:n,buttons:[{text:n.closeLabel,type:n.closeButtonType,onTap:function(e){n.inputObj.callback(void 0)}},{text:n.setLabel,type:n.setButtonType,onTap:function(e){n.loadingContent=!0,n.numericValue=Number(n.wholeNumber)+Number(l(n.decimalNumber,n.precision)),n.inputObj.callback(n.numericValue)}}]})):(n.wholeNumber=c(n.inputValue),n.decimalNumber=0,n.numericValue=Number(c(n.wholeNumber))+Number(l(n.decimalNumber,n.precision)),e.show({templateUrl:"ionic-numberpicker-whole.html",title:n.titleLabel,subTitle:"",scope:n,buttons:[{text:n.closeLabel,type:n.closeButtonType,onTap:function(e){n.inputObj.callback(void 0)}},{text:n.setLabel,type:n.setButtonType,onTap:function(e){n.loadingContent=!0,n.inputObj.callback(n.wholeNumber)}}]}))})}}}angular.module("ionic-numberpicker").directive("ionicNumberpicker",e),e.$inject=["$ionicPopup"]}();