unforassets 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +41 -39
- data/lib/unforassets/version.rb +1 -1
- data/vendor/assets/images/unforassets/jcrop/jcrop.gif +0 -0
- data/vendor/assets/javascripts/unforassets/accounting.js +4 -0
- data/vendor/assets/javascripts/unforassets/autonumeric.js +4 -0
- data/vendor/assets/javascripts/{big.js → unforassets/big.js} +0 -0
- data/vendor/assets/javascripts/unforassets/bootstrap-datetimepicker.js +2 -0
- data/vendor/assets/javascripts/unforassets/bootstrap-multiselect/plugins/collapsible-groups.js +92 -0
- data/vendor/assets/javascripts/unforassets/bootstrap-multiselect.js +1416 -0
- data/vendor/assets/javascripts/unforassets/chart.js +14 -0
- data/vendor/assets/javascripts/unforassets/jcrop.js +6 -0
- data/vendor/assets/javascripts/{jquery.blockui.js → unforassets/jquery-blockui.js} +0 -0
- data/vendor/assets/javascripts/unforassets/moment.js +505 -0
- data/vendor/assets/javascripts/unforassets/pnotify.js +31 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/ar.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/az.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/bg.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/ca.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/cs.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/da.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/de.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/el.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/en.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/es.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/et.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/eu.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/fa.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/fi.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/fr.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/gl.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/he.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/hi.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/hr.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/hu.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/id.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/is.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/it.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/ja.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/km.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/ko.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/lt.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/lv.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/mk.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/ms.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/nb.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/nl.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/pl.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/pt-BR.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/pt.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/ro.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/ru.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/sk.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/sr-Cyrl.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/sr.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/sv.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/th.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/tr.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/uk.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/vi.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/zh-CN.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2/i18n/zh-TW.js +3 -0
- data/vendor/assets/javascripts/unforassets/select2.js +3 -0
- data/vendor/assets/javascripts/unforassets/tooltipster.js +2 -0
- data/vendor/assets/javascripts/unforassets/typeahead.js +2451 -0
- data/vendor/assets/javascripts/unforassets/undescore.js +6 -0
- data/vendor/assets/javascripts/unforassets/uri.js +151 -0
- data/vendor/assets/javascripts/unforassets/vex.js +2 -0
- data/vendor/assets/stylesheets/unforassets/bootstrap-datetimepicker.css +5 -0
- data/vendor/assets/stylesheets/unforassets/bootstrap-multiselect.css +1 -0
- data/vendor/assets/stylesheets/unforassets/jcrop.css +6 -0
- data/vendor/assets/stylesheets/unforassets/pnotify.css +10 -0
- data/vendor/assets/stylesheets/unforassets/select2.css +1 -0
- data/vendor/assets/stylesheets/unforassets/typeahead.css +77 -0
- metadata +91 -24
- data/vendor/assets/javascripts/tooltipster.bundle.js +0 -4260
- data/vendor/assets/javascripts/vex.combined.js +0 -1621
- /data/vendor/assets/javascripts/{fancybox.js → unforassets/fancybox.js} +0 -0
- /data/vendor/assets/javascripts/{tooltipster-plugin-scrollable-tip.js → unforassets/tooltipster/plugins/scrollable-tip.js} +0 -0
- /data/vendor/assets/javascripts/{tooltipster-plugin-svg.js → unforassets/tooltipster/plugins/svg.js} +0 -0
- /data/vendor/assets/stylesheets/{fancybox.css → unforassets/fancybox.css} +0 -0
- /data/vendor/assets/stylesheets/{tooltipster-sidetip-borderless.min.css → unforassets/tooltipster/themes/tooltipster-sidetip-borderless.css} +0 -0
- /data/vendor/assets/stylesheets/{tooltipster-sidetip-light.min.css → unforassets/tooltipster/themes/tooltipster-sidetip-light.css} +0 -0
- /data/vendor/assets/stylesheets/{tooltipster-sidetip-noir.min.css → unforassets/tooltipster/themes/tooltipster-sidetip-noir.css} +0 -0
- /data/vendor/assets/stylesheets/{tooltipster-sidetip-punk.min.css → unforassets/tooltipster/themes/tooltipster-sidetip-punk.css} +0 -0
- /data/vendor/assets/stylesheets/{tooltipster-sidetip-shadow.min.css → unforassets/tooltipster/themes/tooltipster-sidetip-shadow.css} +0 -0
- /data/vendor/assets/stylesheets/{tooltipster.bundle.css → unforassets/tooltipster.css} +0 -0
- /data/vendor/assets/stylesheets/{vex-theme-bottom-right-corner.css → unforassets/vex/themes/vex-theme-bottom-right-corner.css} +0 -0
- /data/vendor/assets/stylesheets/{vex-theme-default.css → unforassets/vex/themes/vex-theme-default.css} +0 -0
- /data/vendor/assets/stylesheets/{vex-theme-flat-attack.css → unforassets/vex/themes/vex-theme-flat-attack.css} +0 -0
- /data/vendor/assets/stylesheets/{vex-theme-os.css → unforassets/vex/themes/vex-theme-os.css} +0 -0
- /data/vendor/assets/stylesheets/{vex-theme-plain.css → unforassets/vex/themes/vex-theme-plain.css} +0 -0
- /data/vendor/assets/stylesheets/{vex-theme-top.css → unforassets/vex/themes/vex-theme-top.css} +0 -0
- /data/vendor/assets/stylesheets/{vex-theme-wireframe.css → unforassets/vex/themes/vex-theme-wireframe.css} +0 -0
- /data/vendor/assets/stylesheets/{vex.css → unforassets/vex.css} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c6a629f6f4f79b421dbeab48fd5ebd4802ab24d
|
4
|
+
data.tar.gz: fc9854aaaeb0eb10561ac75beacfdfbdab1a3452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0cf56202dbf91ccf16bdbcf507ea0e4019f9a1116737c1ed934ba6032b5a14a1f2321fbb9414813dd3d66302c84437bb390b492905ca64fc3fcbc42ad8a1b86
|
7
|
+
data.tar.gz: 41d0cdcbdb20f8d301d8f8978dd22f1b7d887b985736447b2e40a202a928fc26de76de72978f576ac9e78e9071919355b2582190d30c550d3cbbc8e1b60218ba
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,41 +1,43 @@
|
|
1
1
|
# Unforassets
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
3
|
+
Collection of common assets used on Unformatt's projects.
|
4
|
+
|
5
|
+
### Libraries included
|
6
|
+
- [accounting.js] \(v0.4.2)
|
7
|
+
- [autoNumeric] \(v2.0.12)
|
8
|
+
- [big.js] \(v3.1.3)
|
9
|
+
- [bootstrap-datetimepicker] \(v4.17.47)
|
10
|
+
- [bootstrap-multiselect] \(v0.9.13)
|
11
|
+
- [Chart.js] \(v2.6.0)
|
12
|
+
- [fancyBox] \(v3.0.47)
|
13
|
+
- [Jcrop] \(v2.0.4)
|
14
|
+
- [jQuery BlockUI] \(v2.70)
|
15
|
+
- [Moment.js] \(2.18.1)
|
16
|
+
- [PNotify] \(v3.2.0)
|
17
|
+
- [Select2] \(v4.0.3)
|
18
|
+
- [Tooltipster] \(v4.2.5)
|
19
|
+
- [typeahead.js] \(v0.11.1)
|
20
|
+
- [underscore.js] \(v1.8.3)
|
21
|
+
- [uri.js] \(v1.18.10)
|
22
|
+
- [vex] \(v3.1.1)
|
23
|
+
|
24
|
+
[accounting.js]: <https://github.com/openexchangerates/accounting.js>
|
25
|
+
[autoNumeric]: <https://github.com/autoNumeric/autoNumeric>
|
26
|
+
[big.js]: <https://github.com/MikeMcl/big.js>
|
27
|
+
[bootstrap-datetimepicker]: <https://github.com/Eonasdan/bootstrap-datetimepicker>
|
28
|
+
[bootstrap-multiselect]: <https://github.com/davidstutz/bootstrap-multiselect>
|
29
|
+
[Chart.js]: <https://github.com/chartjs/Chart.js>
|
30
|
+
[fancyBox]: <https://github.com/fancyapps/fancybox>
|
31
|
+
[Jcrop]: <https://github.com/tapmodo/Jcrop>
|
32
|
+
[jQuery BlockUI]: <https://github.com/malsup/blockui>
|
33
|
+
[Moment.js]: <https://github.com/moment/moment>
|
34
|
+
[PNotify]: <https://github.com/sciactive/pnotify>
|
35
|
+
[Select2]: <https://github.com/select2/select2>
|
36
|
+
[Tooltipster]: <https://github.com/iamceege/tooltipster>
|
37
|
+
[typeahead.js]: <https://github.com/twitter/typeahead.js>
|
38
|
+
[underscore.js]: <https://github.com/jashkenas/underscore>
|
39
|
+
[uri.js]: <https://github.com/medialize/URI.js>
|
40
|
+
[vex]: <https://github.com/HubSpot/vex>
|
41
|
+
|
42
|
+
### Notes:
|
43
|
+
- When upgrading Chart.js version, stick to chart.min.js instead of bundle, because the last one includes moment js which I already have separately.
|
data/lib/unforassets/version.rb
CHANGED
Binary file
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* accounting.js v0.4.1, copyright 2014 Open Exchange Rates, MIT license, http://openexchangerates.github.io/accounting.js
|
3
|
+
*/
|
4
|
+
(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;e<h;e++)c[e]=b.call(d,a[e],e,a);return c}function n(a,b){a=Math.round(Math.abs(a));return isNaN(a)?b:a}function x(a){var b=c.settings.currency.format;"function"===typeof a&&(a=a());return q(a)&&a.match("%v")?{pos:a,neg:a.replace("-","").replace("%v","-%v"),zero:a}:!a||!a.pos||!a.pos.match("%v")?!q(b)?b:c.settings.currency.format={pos:b,neg:b.replace("%v","-%v"),zero:b}:a}var c={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},w=Array.prototype.map,u=Array.isArray,v=Object.prototype.toString,o=c.unformat=c.parse=function(a,b){if(m(a))return j(a,function(a){return o(a,b)});a=a||0;if("number"===typeof a)return a;var b=b||".",c=RegExp("[^0-9-"+b+"]",["g"]),c=parseFloat((""+a).replace(/\((.*)\)/,"-$1").replace(c,"").replace(b,"."));return!isNaN(c)?c:0},y=c.toFixed=function(a,b){var b=n(b,c.settings.number.precision),d=Math.pow(10,b);return(Math.round(c.unformat(a)*d)/d).toFixed(b)},t=c.formatNumber=c.format=function(a,b,d,i){if(m(a))return j(a,function(a){return t(a,b,d,i)});var a=o(a),e=s(r(b)?b:{precision:b,thousand:d,decimal:i},c.settings.number),h=n(e.precision),f=0>a?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0<a?g.pos:0>a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0<a?g.pos:0>a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length<k?l?a.replace(f.symbol,f.symbol+Array(k-a.length+1).join(" ")):Array(k-a.length+1).join(" ")+a:a})};if("undefined"!==typeof exports){if("undefined"!==typeof module&&module.exports)exports=module.exports=c;exports.accounting=c}else"function"===typeof define&&define.amd?define([],function(){return c}):(c.noConflict=function(a){return function(){p.accounting=a;c.noConflict=z;return c}}(p.accounting),p.accounting=c)})(this);
|
@@ -0,0 +1,4 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?exports.autonumeric=t(require("jquery")):e.autonumeric=t(e.jQuery)}(this,function(e){return function(e){function t(i){if(a[i])return a[i].exports;var r=a[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="",t(0)}([function(e,t,a){var i,r,n;a(1),a(1);(function(){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,a,i){return a&&e(t.prototype,a),i&&e(t,i),t}}(),s=function(){function e(e,t){var a=[],i=!0,r=!1,n=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){r=!0,n=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw n}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=void 0,d=void 0,m=void 0,g=void 0,h=void 0,v=void 0,p=["b","caption","cite","code","const","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","ins","kdb","label","li","option","output","p","q","s","sample","span","strong","td","th","u"],f={digitGroupSeparator:",",noSeparatorOnFocus:!1,digitalGroupSpacing:"3",decimalCharacter:".",decimalCharacterAlternative:null,currencySymbol:"",currencySymbolPlacement:"p",negativePositiveSignPlacement:null,showPositiveSign:!1,suffixText:"",overrideMinMaxLimits:null,maximumValue:"9999999999999.99",minimumValue:"-9999999999999.99",decimalPlacesOverride:null,decimalPlacesShownOnFocus:null,scaleDivisor:null,scaleDecimalPlaces:null,scaleSymbol:null,saveValueToSessionStorage:!1,onInvalidPaste:"error",roundingMethod:"S",allowDecimalPadding:!0,negativeBracketsTypeOnBlur:null,emptyInputBehavior:"focus",leadingZero:"deny",formatOnPageLoad:!0,selectNumberOnly:!1,defaultValueOverride:null,unformatOnSubmit:!1,outputFormat:null,showWarnings:!0,failOnUnknownOption:!1},y={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,num0:48,num1:49,num2:50,num3:51,num4:52,num5:53,num6:54,num7:55,num8:56,num9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,Windows:91,RightClick:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,MultiplyNumpad:106,PlusNumpad:107,MinusNumpad:109,DotNumpad:110,SlashNumpad:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,MyComputer:182,MyCalculator:183,Semicolon:186,Equal:187,Comma:188,Hyphen:189,Dot:190,Slash:191,Backquote:192,LeftBracket:219,Backslash:220,RightBracket:221,Quote:222,Command:224,AndroidDefault:229},S={Unidentified:"Unidentified",Alt:"Alt",AltGr:"AltGraph",CapsLock:"CapsLock",Ctrl:"Control",Fn:"Fn",FnLock:"FnLock",Hyper:"Hyper",Meta:"Meta",Windows:"Meta",Command:"Meta",NumLock:"NumLock",ScrollLock:"ScrollLock",Shift:"Shift",Super:"Super",Symbol:"Symbol",SymbolLock:"SymbolLock",Enter:"Enter",Tab:"Tab",Space:" ",DownArrow:"ArrowDown",LeftArrow:"ArrowLeft",RightArrow:"ArrowRight",UpArrow:"ArrowUp",End:"End",Home:"Home",PageDown:"PageDown",PageUp:"PageUp",Backspace:"Backspace",Clear:"Clear",Copy:"Copy",CrSel:"CrSel",Cut:"Cut",Delete:"Delete",EraseEof:"EraseEof",ExSel:"ExSel",Insert:"Insert",Paste:"Paste",Redo:"Redo",Undo:"Undo",Accept:"Accept",Again:"Again",Attn:"Attn",Cancel:"Cancel",ContextMenu:"ContextMenu",Esc:"Escape",Execute:"Execute",Find:"Find",Finish:"Finish",Help:"Help",Pause:"Pause",Play:"Play",Props:"Props",Select:"Select",ZoomIn:"ZoomIn",ZoomOut:"ZoomOut",BrightnessDown:"BrightnessDown",BrightnessUp:"BrightnessUp",Eject:"Eject",LogOff:"LogOff",Power:"Power",PowerOff:"PowerOff",PrintScreen:"PrintScreen",Hibernate:"Hibernate",Standby:"Standby",WakeUp:"WakeUp",Compose:"Compose",Dead:"Dead",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",Print:"Print",num0:"0",num1:"1",num2:"2",num3:"3",num4:"4",num5:"5",num6:"6",num7:"7",num8:"8",num9:"9",numpad0:"0",numpad1:"1",numpad2:"2",numpad3:"3",numpad4:"4",numpad5:"5",numpad6:"6",numpad7:"7",numpad8:"8",numpad9:"9",a:"a",b:"b",c:"c",d:"d",e:"e",f:"f",g:"g",h:"h",i:"i",j:"j",k:"k",l:"l",m:"m",n:"n",o:"o",p:"p",q:"q",r:"r",s:"s",t:"t",u:"u",v:"v",w:"w",x:"x",y:"y",z:"z",MultiplyNumpad:"*",PlusNumpad:"+",MinusNumpad:"-",DotNumpad:".",SlashNumpad:"/",Semicolon:";",Equal:"=",Comma:",",Hyphen:"-",Minus:"-",Plus:"+",Dot:".",Slash:"/",Backquote:"`",LeftBracket:"[",RightBracket:"]",Backslash:"\\",Quote:"'",NumpadDot:".",NumpadDotAlt:",",NumpadMultiply:"*",NumpadPlus:"+",NumpadMinus:"-",NumpadSlash:"/",NumpadDotObsoleteBrowsers:"Decimal",NumpadMultiplyObsoleteBrowsers:"Multiply",NumpadPlusObsoleteBrowsers:"Add",NumpadMinusObsoleteBrowsers:"Subtract",NumpadSlashObsoleteBrowsers:"Divide"},b="-999999999999.99",P="999999999999.99",C="U",w="deny",O=!0,x={French:{digitGroupSeparator:".",decimalCharacter:",",decimalCharacterAlternative:".",currencySymbol:" €",currencySymbolPlacement:"s",selectNumberOnly:O,roundingMethod:C,leadingZero:w,minimumValue:b,maximumValue:P},NorthAmerican:{digitGroupSeparator:",",decimalCharacter:".",currencySymbol:"$",currencySymbolPlacement:"p",selectNumberOnly:O,roundingMethod:C,leadingZero:w,minimumValue:b,maximumValue:P},British:{digitGroupSeparator:",",decimalCharacter:".",currencySymbol:"£",currencySymbolPlacement:"p",selectNumberOnly:O,roundingMethod:C,leadingZero:w,minimumValue:b,maximumValue:P},Swiss:{digitGroupSeparator:"'",decimalCharacter:".",currencySymbol:" CHF",currencySymbolPlacement:"s",selectNumberOnly:O,roundingMethod:C,leadingZero:w,minimumValue:b,maximumValue:P},Japanese:{digitGroupSeparator:",",decimalCharacter:".",currencySymbol:"¥",currencySymbolPlacement:"p",selectNumberOnly:O,roundingMethod:C,leadingZero:w,minimumValue:b,maximumValue:P}};x.Spanish=x.French,x.Chinese=x.Japanese,function(o){r=[a(1)],i=o,n="function"==typeof i?i.apply(t,r):i,!(void 0!==n&&(e.exports=n))}(function(e){function t(e){return null===e}function a(e){return void 0===e}function i(e){return null===e||void 0===e||""===e}function r(e){return"string"==typeof e||e instanceof String}function n(e){return"boolean"==typeof e}function b(e){var t=String(e).toLowerCase();return"true"===t||"false"===t}function P(e){return"object"===("undefined"==typeof e?"undefined":c(e))&&null!==e&&!Array.isArray(e)}function C(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function w(e){return!A(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function O(e){return"number"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)}function N(e,t){return Q(e,t.settingsClone,!0).replace(t.settingsClone.decimalCharacter,".")}function k(e,t){return!(!r(e)||!r(t)||""===e||""===t)&&e.indexOf(t)!==-1}function V(e,t){return!(!A(t)||t===[]||a(e))&&t.indexOf(e)!==-1}function A(e){if("[object Array]"===Object.prototype.toString.call([]))return Array.isArray(e)||"object"===("undefined"==typeof e?"undefined":c(e))&&"[object Array]"===Object.prototype.toString.call(e);throw new Error("toString message changed for Object Array")}function F(e){var t=e.split("."),i=s(t,2),r=i[1];return a(r)?0:r.length}function T(e){return"undefined"==typeof e.which?e.keyCode:e.which}function D(e){if("undefined"==typeof e.key||"Unidentified"===e.key)return String.fromCharCode(T(e));var t=void 0;switch(e.key){case"Decimal":t=S.NumpadDot;break;case"Multiply":t=S.NumpadMultiply;break;case"Add":t=S.NumpadPlus;break;case"Subtract":t=S.NumpadMinus;break;case"Divide":t=S.NumpadSlash;break;case"Del":t=S.Dot;break;default:t=e.key}return t}function B(e,t,a){var i=le(e);return se(t,i)>-1&&se(a,i)<1}function L(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?k(e,"-"):M(e)}function M(e){return"-"===e.charAt(0)}function E(e){return!/[1-9]/g.test(e)}function I(e){return M(e)?e:"-"+e}function _(e,t,a){return""+e.substr(0,t)+a+e.substr(t+a.length)}function K(e,t){return Math.max(t.minimumValue,Math.min(t.maximumValue,e))}function R(e,t,a){for(var i=new RegExp("[0-9"+a+"-]"),r=0,n=0;n<t;n++)i.test(e[n])&&r++;return r}function U(e,t,a,i){var r=a.length,n=e.length,o=void 0,l=0;for(o=0;o<r&&l<n&&l<t;o++)(e[l]===a[o]||"."===e[l]&&a[o]===i)&&l++;return o}function j(e,t){for(var a=0,i=0;i<t.length;i++)t[i]===e&&a++;return a}function G(e){return Math.max(e,e-1)}function $(e){var t={};if(a(e.selectionStart)){e.focus();var i=document.selection.createRange();t.length=i.text.length,i.moveStart("character",-e.value.length),t.end=i.text.length,t.start=t.end-t.length}else t.start=e.selectionStart,t.end=e.selectionEnd,t.length=t.end-t.start;return t}function Z(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i(r)&&(r=t),a(e.selectionStart)){e.focus();var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n.select()}else e.selectionStart=t,e.selectionEnd=r}function z(e){throw new Error(e)}function H(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&console.warn("Warning: "+e)}function q(t,a){e.each(a,function(e,i){"function"==typeof i?a[e]=i(t,a,e):"function"==typeof t.autoNumeric[i]&&(a[e]=t.autoNumeric[i](t,a,e))})}function W(e,t){return Math.max(F(e),F(t))}function Q(e,t,i){if(""!==t.currencySymbol&&(e=e.replace(t.currencySymbol,"")),t.suffixText)for(;k(e,t.suffixText);)e=e.replace(t.suffixText,"");e=e.replace(t.skipFirstAutoStrip,"$1$2"),("s"===t.negativePositiveSignPlacement||"s"===t.currencySymbolPlacement&&"p"!==t.negativePositiveSignPlacement)&&L(e)&&""!==e&&(t.trailingNegative=!0),e=e.replace(t.skipLastAutoStrip,"$1"),e=e.replace(t.allowedAutoStrip,""),t.decimalCharacterAlternative&&(e=e.replace(t.decimalCharacterAlternative,t.decimalCharacter));var r=e.match(t.numRegAutoStrip);if(e=r?[r[1],r[2],r[3]].join(""):"","allow"===t.leadingZero||"keep"===t.leadingZero){var n="",o=e.split(t.decimalCharacter),l=s(o,2),c=l[0],u=l[1],d=c;k(d,t.negativeSignCharacter)&&(n=t.negativeSignCharacter,d=d.replace(t.negativeSignCharacter,"")),""===n&&d.length>t.mIntPos&&"0"===d.charAt(0)&&(d=d.slice(1)),""!==n&&d.length>t.mIntNeg&&"0"===d.charAt(0)&&(d=d.slice(1)),e=""+n+d+(a(u)?"":t.decimalCharacter+u)}return(i&&"deny"===t.leadingZero||!t.hasFocus&&"allow"===t.leadingZero)&&(e=e.replace(t.stripReg,"$1$2")),e}function J(e,t){if("p"===t.currencySymbolPlacement&&"l"===t.negativePositiveSignPlacement||"s"===t.currencySymbolPlacement&&"p"===t.negativePositiveSignPlacement){var a=t.negativeBracketsTypeOnBlur.split(","),i=s(a,2),r=i[0],n=i[1];t.hasFocus?t.hasFocus&&e.charAt(0)===r&&(e=e.replace(r,t.negativeSignCharacter),e=e.replace(n,"")):(e=e.replace(t.negativeSignCharacter,""),e=r+e+n)}return e}function Y(e,t){e=e.replace(t.currencySymbol,""),e=e.replace(t.digitGroupSeparator,""),"."!==t.decimalCharacter&&(e=e.replace(t.decimalCharacter,".")),L(e)&&e.lastIndexOf("-")===e.length-1&&(e=e.replace("-",""),e="-"+e);var a=Ke(e,!0,!1,!1);return isNaN(a)||(e=a.toString()),e}function X(e,a){if(t(a)||"string"===a)return e;var i=void 0;switch(a){case"number":i=Number(e);break;case".-":i=L(e)?e.replace("-","")+"-":e;break;case",":case"-,":i=e.replace(".",",");break;case",-":i=e.replace(".",","),i=L(i)?i.replace("-","")+"-":i;break;case".":case"-.":i=e;break;default:z("The given outputFormat ["+a+"] option is not recognized.")}return i}function ee(e,t){return"."!==t.decimalCharacter&&(e=e.replace(t.decimalCharacter,".")),"-"!==t.negativeSignCharacter&&""!==t.negativeSignCharacter&&(e=e.replace(t.negativeSignCharacter,"-")),e.match(/\d/)||(e+="0"),e}function te(e,t){return"-"!==t.negativeSignCharacter&&""!==t.negativeSignCharacter&&(e=e.replace("-",t.negativeSignCharacter)),"."!==t.decimalCharacter&&(e=e.replace(".",t.decimalCharacter)),e}function ae(e,t,a){return""===e||e===t.negativeSignCharacter?"always"===t.emptyInputBehavior||a?"l"===t.negativePositiveSignPlacement?e+t.currencySymbol+t.suffixText:t.currencySymbol+e+t.suffixText:e:null}function ie(e,i){i.strip&&(e=Q(e,i,!1)),i.trailingNegative&&!L(e)&&(e="-"+e);var r=ae(e,i,!0),n=L(e),o=E(e);if(n&&(e=e.replace("-","")),!t(r))return r;i.digitalGroupSpacing=i.digitalGroupSpacing.toString();var l=void 0;switch(i.digitalGroupSpacing){case"2":l=/(\d)((\d)(\d{2}?)+)$/;break;case"2s":l=/(\d)((?:\d{2}){0,2}\d{3}(?:(?:\d{2}){2}\d{3})*?)$/;break;case"4":l=/(\d)((\d{4}?)+)$/;break;default:l=/(\d)((\d{3}?)+)$/}var c=e.split(i.decimalCharacter),u=s(c,2),d=u[0],m=u[1];if(i.decimalCharacterAlternative&&a(m)){var g=e.split(i.decimalCharacterAlternative),h=s(g,2);d=h[0],m=h[1]}if(""!==i.digitGroupSeparator)for(;l.test(d);)d=d.replace(l,"$1"+i.digitGroupSeparator+"$2");if(0===i.decimalPlacesOverride||a(m)?e=d:(m.length>i.decimalPlacesOverride&&(m=m.substring(0,i.decimalPlacesOverride)),e=d+i.decimalCharacter+m),i.trailingNegative=!1,"p"===i.currencySymbolPlacement)if(n)switch(i.negativePositiveSignPlacement){case"l":e=""+i.negativeSignCharacter+i.currencySymbol+e;break;case"r":e=""+i.currencySymbol+i.negativeSignCharacter+e;break;case"s":e=""+i.currencySymbol+e+i.negativeSignCharacter,i.trailingNegative=!0}else if(i.showPositiveSign&&!o)switch(i.negativePositiveSignPlacement){case"l":e=""+i.positiveSignCharacter+i.currencySymbol+e;break;case"r":e=""+i.currencySymbol+i.positiveSignCharacter+e;break;case"s":e=""+i.currencySymbol+e+i.positiveSignCharacter}else e=i.currencySymbol+e;if("s"===i.currencySymbolPlacement)if(n)switch(i.negativePositiveSignPlacement){case"r":e=""+e+i.currencySymbol+i.negativeSignCharacter,i.trailingNegative=!0;break;case"l":e=""+e+i.negativeSignCharacter+i.currencySymbol,i.trailingNegative=!0;break;case"p":e=""+i.negativeSignCharacter+e+i.currencySymbol}else if(i.showPositiveSign&&!o)switch(i.negativePositiveSignPlacement){case"r":e=""+e+i.currencySymbol+i.positiveSignCharacter;break;case"l":e=""+e+i.positiveSignCharacter+i.currencySymbol;break;case"p":e=""+i.positiveSignCharacter+e+i.currencySymbol}else e+=i.currencySymbol;return null!==i.negativeBracketsTypeOnBlur&&(i.rawValue<0||M(e))&&(e=J(e,i)),e+i.suffixText}function re(e,t){var a=void 0;switch(t){case 0:a=/(\.(?:\d*[1-9])?)0*$/;break;case 1:a=/(\.\d(?:\d*[1-9])?)0*$/;break;default:a=new RegExp("(\\.\\d{"+t+"}(?:\\d*[1-9])?)0*")}return e=e.replace(a,"$1"),0===t&&(e=e.replace(/\.$/,"")),e}function ne(e,t){if(e=""===e?"0":e.toString(),"N05"===t.roundingMethod||"CHF"===t.roundingMethod||"U05"===t.roundingMethod||"D05"===t.roundingMethod){switch(t.roundingMethod){case"N05":e=(Math.round(20*e)/20).toString();break;case"U05":e=(Math.ceil(20*e)/20).toString();break;default:e=(Math.floor(20*e)/20).toString()}var a=void 0;return a=k(e,".")?e.length-e.indexOf(".")<3?e+"0":e:e+".00"}var i="",r=0,n="",o=void 0;o=t.allowDecimalPadding?t.decimalPlacesOverride:0,M(e)&&(n="-",e=e.replace("-","")),e.match(/^\d/)||(e="0"+e),0===Number(e)&&(n=""),(Number(e)>0&&"keep"!==t.leadingZero||e.length>0&&"allow"===t.leadingZero)&&(e=e.replace(/^0*(\d)/,"$1"));var l=e.lastIndexOf("."),s=l===-1,c=s?e.length-1:l,u=e.length-1-c;if(u<=t.decimalPlacesOverride){if(i=e,u<o){s&&(i+=t.decimalCharacter);for(var d="000000";u<o;)d=d.substring(0,o-u),i+=d,u+=d.length}else u>o?i=re(i,o):0===u&&0===o&&(i=i.replace(/\.$/,""));return 0===Number(i)?i:n+i}var m=void 0;m=s?t.decimalPlacesOverride-1:t.decimalPlacesOverride+l;var g=Number(e.charAt(m+1)),h="."===e.charAt(m)?e.charAt(m-1)%2:e.charAt(m)%2,v=e.substring(0,m+1).split("");if(g>4&&"S"===t.roundingMethod||g>4&&"A"===t.roundingMethod&&""===n||g>5&&"A"===t.roundingMethod&&"-"===n||g>5&&"s"===t.roundingMethod||g>5&&"a"===t.roundingMethod&&""===n||g>4&&"a"===t.roundingMethod&&"-"===n||g>5&&"B"===t.roundingMethod||5===g&&"B"===t.roundingMethod&&1===h||g>0&&"C"===t.roundingMethod&&""===n||g>0&&"F"===t.roundingMethod&&"-"===n||g>0&&"U"===t.roundingMethod)for(r=v.length-1;r>=0;r-=1)if("."!==v[r]){if(v[r]=+v[r]+1,v[r]<10)break;r>0&&(v[r]="0")}return v=v.slice(0,m+1),i=re(v.join(""),o),0===Number(i)?i:n+i}function oe(e,t,a){if(e=a?ne(e,t):e,t.decimalCharacter&&t.decimalPlacesOverride){var i=e.split(t.decimalCharacter),r=s(i,2),n=r[0],o=r[1];if(o&&o.length>t.decimalPlacesOverride)if(t.decimalPlacesOverride>0){var l=o.substring(0,t.decimalPlacesOverride);e=""+n+t.decimalCharacter+l}else e=n}return e}function le(e){var t={},a=void 0,i=void 0,r=void 0,n=void 0;if(0===e&&1/e<0&&(e="-0"),e=e.toString(),M(e)?(e=e.slice(1),t.s=-1):t.s=1,a=e.indexOf("."),a>-1&&(e=e.replace(".","")),a<0&&(a=e.length),i=e.search(/[1-9]/i)===-1?e.length:e.search(/[1-9]/i),r=e.length,i===r)t.e=0,t.c=[0];else{for(n=r-1;"0"===e.charAt(n);n-=1)r-=1;for(r-=1,t.e=a-i-1,t.c=[],a=0;i<=r;i+=1)t.c[a]=+e.charAt(i),a+=1}return t}function se(e,t){var a=t.c,i=e.c,r=t.s,n=e.s,o=t.e,l=e.e;if(!a[0]||!i[0]){var s=void 0;return s=a[0]?r:i[0]?-n:0}if(r!==n)return r;var c=r<0;if(o!==l)return o>l^c?1:-1;for(r=-1,o=a.length,l=i.length,n=o<l?o:l,r+=1;r<n;r+=1)if(a[r]!==i[r])return a[r]>i[r]^c?1:-1;var u=void 0;return u=o===l?0:o>l^c?1:-1}function ce(e,t){e=e.toString(),e=e.replace(",",".");var a=le(t.minimumValue),i=le(t.maximumValue),r=le(e),n=void 0;switch(t.overrideMinMaxLimits){case"floor":n=[se(a,r)>-1,!0];break;case"ceiling":n=[!0,se(i,r)<1];break;case"ignore":n=[!0,!0];break;default:n=[se(a,r)>-1,se(i,r)<1]}return n}function ue(t){return r(t)&&(t="#"+t.replace(/(:|\.|\[|]|,|=)/g,"\\$1")),e(t)}function de(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.data("autoNumeric");r||(r={},e.data("autoNumeric",r));var n=r.holder;return(i||a(n)&&t)&&(n=new Ue(e.get(0),t),r.holder=n),n}function me(e){e.oDec=e.decimalPlacesOverride,e.oPad=e.allowDecimalPadding,e.oBracket=e.negativeBracketsTypeOnBlur,e.oSep=e.digitGroupSeparator,e.oSign=e.currencySymbol,e.oSuffix=e.suffixText}function ge(e){for(var t=e+"=",a=document.cookie.split(";"),i="",r=0;r<a.length;r+=1){for(i=a[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}function he(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}function ve(e,t){return""===e?"":0===Number(e)&&"keep"!==t.leadingZero?"0":("keep"!==t.leadingZero&&(e=e.replace(/^(-)?0+(?=\d)/g,"$1"),k(e,".")&&(e=e.replace(/(\.[0-9]*?)0+$/,"$1"))),e=e.replace(/\.$/,""))}function pe(e){var t=e.split("."),a=s(t,2),r=a[0],n=a[1];if(i(n))return r;var o=n.replace(/0+$/g,""),l=void 0;return l=""===o?r:r+"."+o}function fe(e,t,i){if(t.saveValueToSessionStorage){var r=""===e.name||a(e.name)?"AUTO_"+e.id:"AUTO_"+decodeURIComponent(e.name),n=void 0,o=void 0;if(he()===!1)switch(i){case"set":document.cookie=r+"="+t.rawValue+"; expires= ; path=/";break;case"wipe":n=new Date,n.setTime(n.getTime()+-864e5),o="; expires="+n.toUTCString(),document.cookie=r+"='' ;"+o+"; path=/";break;case"get":return ge(r)}else switch(i){case"set":sessionStorage.setItem(r,t.rawValue);break;case"wipe":sessionStorage.removeItem(r);break;case"get":return sessionStorage.getItem(r)}}}function ye(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=arguments[1],i=ue(a),r=e("form").index(i),n=e("form:eq("+r+")")[0],o=[],l=[],u=/^(?:submit|button|image|reset|file)$/i,d=/^(?:input|select|textarea|keygen)/i,m=/^(?:checkbox|radio)$/i,g=/^(?:button|checkbox|color|date|datetime|datetime-local|email|file|image|month|number|password|radio|range|reset|search|submit|time|url|week)/i,h=0;if(e.each(n,function(e,t){""===t.name||!d.test(t.localName)||u.test(t.type)||t.disabled||!t.checked&&m.test(t.type)?l.push(-1):(l.push(h),h++)}),h=0,e.each(n,function(e,t){"input"!==t.localName||""!==t.type&&"text"!==t.type&&"hidden"!==t.type&&"tel"!==t.type?(o.push(-1),"input"===t.localName&&g.test(t.type)&&h++):(o.push(h),h++)}),t){var v=i.serializeArray();return e.each(v,function(t,a){var i=l.indexOf(t);if(i>-1&&o[i]>-1){var n=e("form:eq("+r+") input:eq("+o[i]+")"),s=n.data("autoNumeric");"object"===("undefined"==typeof s?"undefined":c(s))&&(a.value=n.autoNumeric("getLocalized").toString())}}),v}var p=function(){var t=i.serialize(),a=t.split("&");return e.each(a,function(t){var i=a[t].split("="),n=s(i,2),u=n[0],d=n[1],m=l.indexOf(t);if(m>-1&&o[m]>-1){var g=e("form:eq("+r+") input:eq("+o[m]+")"),h=g.data("autoNumeric");if("object"===("undefined"==typeof h?"undefined":c(h))&&null!==d){var v=g.autoNumeric("getLocalized").toString();a[t]=u+"="+v}}}),{v:a.join("&")}}();if("object"===("undefined"==typeof p?"undefined":c(p)))return p.v}function Se(e,t,a){var i=t.settingsClone;if("focusin"===a.type||"mouseenter"===a.type&&!e.is(":focus")&&"focus"===i.emptyInputBehavior){i.hasFocus=!0,null!==i.negativeBracketsTypeOnBlur&&""!==i.negativeSignCharacter&&e.val(J(a.target.value,i));var r=Q(a.target.value,i,!0);r=Y(r,i),r=ve(r,i),i.trailingNegative&&(r="-"+r);var n=void 0;i.decimalPlacesShownOnFocus?(i.decimalPlacesOverride=i.decimalPlacesShownOnFocus,n=ne(i.rawValue,i),e.val(ie(n,i))):i.scaleDivisor?(i.decimalPlacesOverride=Number(i.oDec),n=ne(i.rawValue,i),e.val(ie(n,i))):i.noSeparatorOnFocus?(i.digitGroupSeparator="",i.currencySymbol="",i.suffixText="",n=ne(i.rawValue,i),e.val(ie(n,i))):r!==i.rawValue&&e.autoNumeric("set",r),t.valueOnFocus=a.target.value,t.lastVal=t.valueOnFocus;var o=ae(t.valueOnFocus,i,!0);null!==o&&""!==o&&"focus"===i.emptyInputBehavior&&(e.val(o),o===i.currencySymbol&&"s"===i.currencySymbolPlacement&&Z(a.target,0,0))}}function be(e,t){return e._updateAutoNumericHolderEventKeycode(t),e.initialValueOnKeydown=t.target.value,e.that.readOnly?void(e.processed=!0):(e.eventKeyCode===y.Enter&&e.valueOnFocus!==t.target.value&&(Re("change",t.target),e.valueOnFocus=t.target.value),e._updateAutoNumericHolderProperties(t),e._skipAlways(t)?void(e.processed=!0):e.eventKeyCode===y.Backspace||e.eventKeyCode===y.Delete?(e._processCharacterDeletion(),e.processed=!0,e._formatValue(t),t.target.value!==e.lastVal&&e.settingsClone.throwInput&&(Re("input",t.target),t.preventDefault()),e.lastVal=t.target.value,void(e.settingsClone.throwInput=!0)):void(e.formatted=!1))}function Pe(e,t){var a=D(t);if(a!==S.Insert){var i=e.processed;if(e._updateAutoNumericHolderProperties(t),!e._skipAlways(t)){if(i)return void t.preventDefault();var r=e._processCharacterInsertion(t);if(r){if(e._formatValue(t),t.target.value!==e.lastVal&&e.settingsClone.throwInput)Re("input",t.target),t.preventDefault();else{if((a===e.settings.decimalCharacter||a===e.settings.decimalCharacterAlternative)&&$(t.target).start===$(t.target).end&&$(t.target).start===t.target.value.indexOf(e.settings.decimalCharacter)){var n=$(t.target).start+1;Z(t.target,n,n)}t.preventDefault()}return e.lastVal=t.target.value,void(e.settingsClone.throwInput=!0)}t.preventDefault(),e.formatted=!1}}}function Ce(e,t){var a=t.target.value;if(e.settings.androidSelectionStart=null,e.eventKeyCode===y.AndroidDefault)if(a.length>e.lastVal.length||a.length>=e.lastVal.length-e.selection.length){e.eventKeyCode=a.charCodeAt(e.selection.start);var i=a.charAt(e.selection.start),r=e._processCharacterInsertion(i);if(r){e._formatValue(t),e.settings.androidSelectionStart=e.selection.start;var n=t.target.value.indexOf(e.settings.decimalCharacter),o=n===-1;return(i===e.settings.decimalCharacter||!o&&n<e.settings.androidSelectionStart)&&(e.settings.androidSelectionStart=e.selection.start+1),t.target.value.length>a.length&&Z(t.target,e.settings.androidSelectionStart,e.settings.androidSelectionStart),void(e.lastVal=t.target.value)}t.target.value=e.lastVal,Z(t.target,e.selection.start,e.selection.end),e.settings.androidSelectionStart=e.selection.start,t.preventDefault(),e.formatted=!1}else e.eventKeyCode=y.Backspace}function we(e,t,a){e._updateAutoNumericHolderProperties(a);var i=e._skipAlways(a);delete e.valuePartsBeforePaste;var r=null!==e.settingsClone.androidSelectionStart;i&&!r||""===a.target.value||(a.target.value===e.settingsClone.currencySymbol?"s"===e.settingsClone.currencySymbolPlacement?Z(a.target,0,0):Z(a.target,e.settingsClone.currencySymbol.length,e.settingsClone.currencySymbol.length):e.eventKeyCode===y.Tab&&Z(a.target,0,a.target.value.length),(a.target.value===e.settingsClone.suffixText||""===e.settingsClone.rawValue&&""!==e.settingsClone.currencySymbol&&""!==e.settingsClone.suffixText)&&Z(a.target,0,0),null!==e.settingsClone.decimalPlacesShownOnFocus&&e.settingsClone.saveValueToSessionStorage&&fe(a.target,t,"set"),e.formatted||e._formatValue(a),a.target.value!==e.initialValueOnKeydown&&Re("autoNumeric:formatted",a.target))}function Oe(e,t,a){if(!e.is(":focus")){var i=a.target.value,r=i,n=t.settingsClone;if(n.hasFocus=!1,n.saveValueToSessionStorage&&fe(a.target,n,"set"),n.noSeparatorOnFocus===!0&&(n.digitGroupSeparator=n.oSep,n.currencySymbol=n.oSign,n.suffixText=n.oSuffix),null!==n.decimalPlacesShownOnFocus&&(n.decimalPlacesOverride=n.oDec,n.allowDecimalPadding=n.oPad,n.negativeBracketsTypeOnBlur=n.oBracket),i=Q(i,n,!0),""!==i){n.trailingNegative&&!L(i)&&(i="-"+i,n.trailingNegative=!1);var o=ce(i,n),l=s(o,2),c=l[0],u=l[1];null===ae(i,n,!1)&&c&&u?(i=ee(i,n),n.rawValue=ve(i,n),n.scaleDivisor&&(i/=n.scaleDivisor,i=i.toString()),n.decimalPlacesOverride=n.scaleDivisor&&n.scaleDecimalPlaces?Number(n.scaleDecimalPlaces):n.decimalPlacesOverride,i=ne(i,n),i=te(i,n)):(c||e.trigger("autoNumeric:minExceeded"),u||e.trigger("autoNumeric:maxExceeded"),i=n.rawValue)}else"zero"===n.emptyInputBehavior?(n.rawValue="0",i=ne("0",n)):n.rawValue="";var d=ae(i,n,!1);null===d&&(d=ie(i,n)),d!==r&&(d=n.scaleSymbol?d+n.scaleSymbol:d,e.val(d)),d!==t.valueOnFocus&&(e.change(),delete t.valueOnFocus)}}function xe(e,t,a){a.preventDefault();var i=a.clipboardData.getData("text/plain"),r=a.target.value,n=a.target.selectionStart||0,o=a.target.selectionEnd||0,l=o-n,s=!1;l===r.length&&(s=!0);var c=M(i);c&&(i=i.slice(1,i.length));var u=N(i,t),d=void 0;if(d="."===u?".":Ke(u,!1,!1,!1),"."!==d&&(!w(d)||""===d))return void("error"===t.settings.onInvalidPaste&&z("The pasted value '"+i+"' is not a valid paste content."));var m=void 0,g=void 0;g=""===a.target.value?"":e.autoNumeric("get");var h=M(g),v=void 0,p=void 0;c&&!h?(g="-"+g,h=!0,v=!0):v=!1;var f=!1,y=void 0,S=void 0;switch(t.settings.onInvalidPaste){case"truncate":case"replace":var b=r.slice(0,n),P=r.slice(o,r.length);p=n!==o?N(b+P,t):N(r,t),h&&(p=I(p)),m=G(R(r,n,t.settings.decimalCharacter)),v&&m++,y=p.slice(0,m),S=p.slice(m,p.length),"."===d&&(k(y,".")&&(f=!0,y=y.replace(".","")),S=S.replace(".",""));for(var C=le(t.settings.minimumValue),O=le(t.settings.maximumValue),x=p,V=0,A=y;V<d.length&&(A+=d[V],p=A+S,B(p,C,O));)x=p,V++;if(m+=V,"truncate"===t.settings.onInvalidPaste){p=x,f&&m--;break}for(var F=m,T=x.length;V<d.length&&F<T;)if("."!==x[F]){if(p=_(x,F,d[V]),!B(p,C,O))break;x=p,V++,F++}else F++;m=F,f&&m--,p=x;break;case"error":case"ignore":case"clamp":default:var D=r.slice(0,n),L=r.slice(o,r.length);if(p=n!==o?N(D+L,t):N(r,t),h&&(p=I(p)),m=G(R(r,n,t.settings.decimalCharacter)),v&&m++,y=p.slice(0,m),S=p.slice(m,p.length),"."===d&&(k(y,".")&&(f=!0,y=y.replace(".","")),S=S.replace(".","")),p=""+y+d+S,n===o){var E=G(R(r,n,t.settings.decimalCharacter));m=E+d.length}else if(s)m=p.length;else if(""===S)m=G(R(r,n,t.settings.decimalCharacter))+d.length;else{var $=G(R(r,o,t.settings.decimalCharacter)),H=a.target.value.slice(n,o);m=$-l+j(t.settings.digitGroupSeparator,H)+d.length}s||(v&&m++,f&&m--)}if(!w(p)||""===p)return void("error"===t.settings.onInvalidPaste&&z("The pasted value '"+i+"' would result into an invalid content '"+p+"'."));var q=!1,W=!1;try{e.autoNumeric("set",p),q=!0}catch(a){var Q=void 0;switch(t.settings.onInvalidPaste){case"clamp":Q=K(p,t.settings);try{e.autoNumeric("set",Q)}catch(e){z("Fatal error: Unable to set the clamped value '"+Q+"'.")}W=!0,q=!0,p=Q;break;case"error":case"truncate":case"replace":z("The pasted value '"+i+"' results in a value '"+p+"' that is outside of the minimum ["+t.settings.minimumValue+"] and maximum ["+t.settings.maximumValue+"] value range.");case"ignore":default:return}}var J=void 0;if(q)switch(t.settings.onInvalidPaste){case"clamp":if(W){"s"===t.settings.currencySymbolPlacement?Z(a.target,a.target.value.length-t.settings.currencySymbol.length):Z(a.target,a.target.value.length);break}case"error":case"ignore":case"truncate":case"replace":default:J=U(p,m,a.target.value,t.settings.decimalCharacter),Z(a.target,J)}q&&r!==a.target.value&&Re("input",a.target)}function Ne(e,t){t.target.value!==e.valueOnFocus&&Re("change",t.target)}function ke(e,t){e.closest("form").on("submit.autoNumeric",function(){if(t){var a=t.settingsClone;a.unformatOnSubmit&&e.val(a.rawValue)}})}function Ve(e){var t=e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])");t||"input"!==e.prop("tagName").toLowerCase()||z('The input type "'+e.prop("type")+'" is not supported by autoNumeric');var a=e.prop("tagName").toLowerCase();return"input"===a||V(a,p)||z("The <"+a+"> tag is not supported by autoNumeric"),t}function Ae(e,t,a){var r=!0;if(t){var n=a.val(),o=_e(n,e);if(e.formatOnPageLoad&&""!==n&&i(a.attr("value")))isNaN(o)||1/0===o?z("The value ["+n+"] used in the input is not a valid value autoNumeric can work with."):(a.autoNumeric("set",o),r=!1);else if(null!==e.defaultValueOverride&&e.defaultValueOverride.toString()!==n||null===e.defaultValueOverride&&""!==n&&n!==a.attr("value")||""!==n&&"hidden"===a.attr("type")&&!w(o)){if((null!==e.decimalPlacesShownOnFocus&&e.saveValueToSessionStorage||e.scaleDivisor&&e.saveValueToSessionStorage)&&(e.rawValue=fe(a[0],e,"get")),!e.saveValueToSessionStorage){var l=void 0;null!==e.negativeBracketsTypeOnBlur&&""!==e.negativeSignCharacter?(e.hasFocus=!0,l=J(n,e)):l=n,("s"===e.negativePositiveSignPlacement||"p"!==e.negativePositiveSignPlacement&&"s"===e.currencySymbolPlacement)&&""!==e.negativeSignCharacter&&L(n)?e.rawValue=e.negativeSignCharacter+Q(l,e,!0):e.rawValue=Q(l,e,!0)}r=!1}if(""===n)switch(e.emptyInputBehavior){case"focus":r=!1;break;case"always":a.val(e.currencySymbol),r=!1;break;case"zero":a.autoNumeric("set","0"),r=!1}else r&&n===a.attr("value")&&a.autoNumeric("set",n)}V(a.prop("tagName").toLowerCase(),e.tagList)&&""!==a.text()&&(null!==e.defaultValueOverride?e.defaultValueOverride===a.text()&&a.autoNumeric("set",a.text()):a.autoNumeric("set",a.text()))}function Fe(e){if(t(e.negativePositiveSignPlacement))if(a(e)||!i(e.negativePositiveSignPlacement)||i(e.currencySymbol))e.negativePositiveSignPlacement="l";else switch(e.currencySymbolPlacement){case"s":e.negativePositiveSignPlacement="p";break;case"p":e.negativePositiveSignPlacement="l"}}function Te(e){var t=e.maximumValue.toString().split("."),a=s(t,1),i=a[0],r=e.minimumValue||0===e.minimumValue?e.minimumValue.toString().split("."):[],n=s(r,1),o=n[0];i=i.replace("-",""),o=o.replace("-",""),e.mIntPos=Math.max(i.length,1),e.mIntNeg=Math.max(o.length,1)}function De(e){t(e.decimalPlacesOverride)&&(e.decimalPlacesOverride=W(e.minimumValue,e.maximumValue)),e.oDec=String(e.decimalPlacesOverride),e.decimalPlacesOverride=Number(e.decimalPlacesOverride)}function Be(e){t(e.decimalCharacterAlternative)&&Number(e.decimalPlacesOverride)>0&&("."===e.decimalCharacter&&","!==e.digitGroupSeparator?e.decimalCharacterAlternative=",":","===e.decimalCharacter&&"."!==e.digitGroupSeparator&&(e.decimalCharacterAlternative="."))}function Le(e){var t="[0-9]",a="[^0-9]",i=e.negativeSignCharacter?"([-\\"+e.negativeSignCharacter+"]?)":"(-?)";e.aNegRegAutoStrip=i;
|
2
|
+
var r=void 0;r=e.negativeSignCharacter?"\\"+e.negativeSignCharacter:"",e.skipFirstAutoStrip=new RegExp(i+"[^-"+r+"\\"+e.decimalCharacter+t+"].*?("+t+"|\\"+e.decimalCharacter+t+")"),e.skipLastAutoStrip=new RegExp("("+t+"\\"+e.decimalCharacter+"?)[^\\"+e.decimalCharacter+t+"]"+a+"*$");var n="-0123456789\\"+e.decimalCharacter;e.allowedAutoStrip=new RegExp("[^"+n+"]","g"),e.numRegAutoStrip=new RegExp(i+"(?:\\"+e.decimalCharacter+"?("+t+"+\\"+e.decimalCharacter+t+"+)|("+t+"*(?:\\"+e.decimalCharacter+t+"*)?))"),e.stripReg=new RegExp("^"+e.aNegRegAutoStrip+"0*("+t+")")}function Me(t){e.each(t,function(e,a){"true"!==a&&"false"!==a||(t[e]="true"===a),"number"==typeof a&&"aScale"!==e&&(t[e]=a.toString())})}function Ee(e){var t={aSep:"digitGroupSeparator",nSep:"noSeparatorOnFocus",dGroup:"digitalGroupSpacing",aDec:"decimalCharacter",altDec:"decimalCharacterAlternative",aSign:"currencySymbol",pSign:"currencySymbolPlacement",pNeg:"negativePositiveSignPlacement",aSuffix:"suffixText",oLimits:"overrideMinMaxLimits",vMax:"maximumValue",vMin:"minimumValue",mDec:"decimalPlacesOverride",eDec:"decimalPlacesShownOnFocus",scaleDecimal:"scaleDecimalPlaces",aStor:"saveValueToSessionStorage",mRound:"roundingMethod",aPad:"allowDecimalPadding",nBracket:"negativeBracketsTypeOnBlur",wEmpty:"emptyInputBehavior",lZero:"leadingZero",aForm:"formatOnPageLoad",sNumber:"selectNumberOnly",anDefault:"defaultValueOverride",unSetOnSubmit:"unformatOnSubmit",outputType:"outputFormat",debug:"showWarnings",digitGroupSeparator:!0,noSeparatorOnFocus:!0,digitalGroupSpacing:!0,decimalCharacter:!0,decimalCharacterAlternative:!0,currencySymbol:!0,currencySymbolPlacement:!0,negativePositiveSignPlacement:!0,showPositiveSign:!0,suffixText:!0,overrideMinMaxLimits:!0,maximumValue:!0,minimumValue:!0,decimalPlacesOverride:!0,decimalPlacesShownOnFocus:!0,scaleDivisor:!0,scaleDecimalPlaces:!0,scaleSymbol:!0,saveValueToSessionStorage:!0,onInvalidPaste:!0,roundingMethod:!0,allowDecimalPadding:!0,negativeBracketsTypeOnBlur:!0,emptyInputBehavior:!0,leadingZero:!0,formatOnPageLoad:!0,selectNumberOnly:!0,defaultValueOverride:!0,unformatOnSubmit:!0,outputFormat:!0,showWarnings:!0,failOnUnknownOption:!0,hasFocus:!0,runOnce:!0,rawValue:!0,trailingNegative:!0,caretFix:!0,throwInput:!0,strip:!0,tagList:!0,negativeSignCharacter:!0,positiveSignCharacter:!0,mIntPos:!0,mIntNeg:!0,oDec:!0,oPad:!0,oBracket:!0,oSep:!0,oSign:!0,oSuffix:!0,aNegRegAutoStrip:!0,skipFirstAutoStrip:!0,skipLastAutoStrip:!0,allowedAutoStrip:!0,numRegAutoStrip:!0,stripReg:!0,holder:!0};for(var a in e)if(e.hasOwnProperty(a)){if(t[a]===!0)continue;t.hasOwnProperty(a)?(H("You are using the deprecated option name '"+a+"'. Please use '"+t[a]+"' instead from now on. The old option name will be dropped soon.",!0),e[t[a]]=e[a],delete e[a]):e.failOnUnknownOption&&z("Option name '"+a+"' is unknown. Please fix the options passed to autoNumeric")}}function Ie(i,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=r.data("autoNumeric");if(!n&&t(i)||Ee(i),n||a(o)){if(n)o=e.extend(o,i);else{var l=r.data();o=e.extend({},f,l,i,{hasFocus:!1,runOnce:!1,rawValue:"",trailingNegative:!1,caretFix:!1,androidSelectionStart:null,throwInput:!0,strip:!0,tagList:p})}return Me(o),Fe(o),o.negativeSignCharacter=o.minimumValue<0?"-":"",o.positiveSignCharacter=o.maximumValue>=0?"+":"",q(r,o),Te(o),De(o),Be(o),Le(o),h(o,!1),me(o),r.data("autoNumeric",o),o}return null}function _e(e,t){var a=void 0;return w(Number(e))?a=e:(a=Y(e.toString(),t),w(Number(a))||(H('The value "'+e+'" being "set" is not numeric and therefore cannot be used appropriately.',t.showWarnings),a=NaN)),a}function Ke(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.toString();if(""===r||null===r.match(/[٠١٢٣٤٥٦٧٨٩۴۵۶]/g))return e;a&&(r=r.replace(/٫/,".")),i&&(r=r.replace(/٬/g,"")),r=r.replace(/[٠١٢٣٤٥٦٧٨٩]/g,function(e){return e.charCodeAt(0)-1632}).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,function(e){return e.charCodeAt(0)-1776});var n=Number(r);return isNaN(n)?n:(t&&(r=n),r)}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;window.CustomEvent?i=new CustomEvent(e,{detail:a,bubbles:!1,cancelable:!1}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,{detail:a})),t.dispatchEvent(i)}var Ue=function(){function t(a,i){o(this,t),this.settings=i,this.that=a,this.$that=e(a),this.formatted=!1,this.settingsClone=i,this.value=a.value}return l(t,[{key:"_updateAutoNumericHolderProperties",value:function(){this.value=this.that.value,this.selection=$(this.that),this.processed=!1,this.formatted=!1}},{key:"_updateAutoNumericHolderEventKeycode",value:function(e){this.eventKeyCode=T(e)}},{key:"_setSelection",value:function(e,t,i){e=Math.max(e,0),t=Math.min(t,this.that.value.length),this.selection={start:e,end:t,length:t-e},(a(i)||i)&&Z(this.that,e,t)}},{key:"_setCaretPosition",value:function(e,t){this._setSelection(e,e,t)}},{key:"_getLeftAndRightPartAroundTheSelection",value:function(){var e=this.value,t=e.substring(0,this.selection.start),a=e.substring(this.selection.end,e.length);return[t,a]}},{key:"_getUnformattedLeftAndRightPartAroundTheSelection",value:function(){var e=this.settingsClone,t=this._getLeftAndRightPartAroundTheSelection(),a=s(t,2),i=a[0],r=a[1];""===i&&""===r&&(e.trailingNegative=!1);var n=!0;return this.eventKeyCode===y.Hyphen&&0===Number(i)&&(n=!1),i=Q(i,this.settingsClone,n),r=Q(r,this.settingsClone,!1),e.trailingNegative&&!L(i)&&(i="-"+i,r="-"===r?"":r,e.trailingNegative=!1),[i,r]}},{key:"_normalizeParts",value:function(e,t){var a=this.settingsClone,i=!0;if(this.eventKeyCode===y.Hyphen&&0===Number(e)&&(i=!1),e=Q(e,a,i),t=Q(t,a,!1),"deny"!==a.leadingZero||this.eventKeyCode!==y.num0&&this.eventKeyCode!==y.numpad0||0!==Number(e)||k(e,a.decimalCharacter)||""===t||(e=e.substring(0,e.length-1)),a.trailingNegative&&!L(e)&&(e="-"+e,a.trailingNegative=!1),this.newValue=e+t,a.decimalCharacter){var r=this.newValue.match(new RegExp("^"+a.aNegRegAutoStrip+"\\"+a.decimalCharacter));r&&(e=e.replace(r[1],r[1]+"0"),this.newValue=e+t)}return[e,t]}},{key:"_setValueParts",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.settingsClone,r=this._normalizeParts(e,t),n=ce(this.newValue,i),o=s(n,2),l=o[0],c=o[1],u=r[0].length;if(this.newValue=r.join(""),l&&c){this.newValue=oe(this.newValue,i,a);var d=k(this.newValue,",")?this.newValue.replace(",","."):this.newValue;return""===d||d===i.negativeSignCharacter?i.rawValue="zero"===i.emptyInputBehavior?"0":"":i.rawValue=ve(d,i),u>this.newValue.length&&(u=this.newValue.length),1===u&&"0"===r[0]&&"deny"===i.leadingZero&&(u=""===r[1]||"0"===r[0]&&""!==r[1]?1:0),this.value=this.newValue,this._setCaretPosition(u,!1),!0}return l?c||this.$that.trigger("autoNumeric:maxExceeded"):this.$that.trigger("autoNumeric:minExceeded"),!1}},{key:"_getSignPosition",value:function(){var e=this.settingsClone,t=e.currencySymbol,a=this.that;if(t){var i=t.length;if("p"===e.currencySymbolPlacement){var r=e.negativeSignCharacter&&a.value&&a.value.charAt(0)===e.negativeSignCharacter;return r?[1,i+1]:[0,i]}var n=a.value.length;return[n-i,n]}return[1e3,-1]}},{key:"_expandSelectionOnSign",value:function(e){var t=this._getSignPosition(),a=this.selection;a.start<t[1]&&a.end>t[0]&&((a.start<t[0]||a.end>t[1])&&this.value.substring(Math.max(a.start,t[0]),Math.min(a.end,t[1])).match(/^\s*$/)?a.start<t[0]?this._setSelection(a.start,t[0],e):this._setSelection(t[1],a.end,e):this._setSelection(Math.min(a.start,t[0]),Math.max(a.end,t[1]),e))}},{key:"_checkPaste",value:function(){if(!a(this.valuePartsBeforePaste)){var e=this.valuePartsBeforePaste,t=this._getLeftAndRightPartAroundTheSelection(),i=s(t,2),r=i[0],n=i[1];delete this.valuePartsBeforePaste;var o=r.substr(0,e[0].length)+Q(r.substr(e[0].length),this.settingsClone,!0);this._setValueParts(o,n,!0)||(this.value=e.join(""),this._setCaretPosition(e[0].length,!1))}}},{key:"_skipAlways",value:function(e){if((e.ctrlKey||e.metaKey)&&"keyup"===e.type&&!a(this.valuePartsBeforePaste)||e.shiftKey&&this.eventKeyCode===y.Insert)return this._checkPaste(),!1;if(this.eventKeyCode>=y.F1&&this.eventKeyCode<=y.F12||this.eventKeyCode>=y.Windows&&this.eventKeyCode<=y.RightClick||this.eventKeyCode>=y.Tab&&this.eventKeyCode<y.Space||this.eventKeyCode<y.Backspace&&(0===e.which||e.which===this.eventKeyCode)||this.eventKeyCode===y.NumLock||this.eventKeyCode===y.ScrollLock||this.eventKeyCode===y.Insert||this.eventKeyCode===y.Command)return!0;if((e.ctrlKey||e.metaKey)&&this.eventKeyCode===y.a){if(this.settings.selectNumberOnly){e.preventDefault();var t=this.that.value.length,i=this.settings.currencySymbol.length,r=L(this.that.value)?1:0,n=this.settings.suffixText.length,o=this.settings.currencySymbolPlacement,l=this.settings.negativePositiveSignPlacement,s=void 0;s="s"===o?0:"l"===l&&1===r&&i>0?i+1:i;var c=void 0;if("p"===o)c=t-n;else switch(l){case"l":c=t-(n+i);break;case"r":c=i>0?t-(i+r+n):t-(i+n);break;default:c=t-(i+n)}Z(this.that,s,c)}return!0}return!e.ctrlKey&&!e.metaKey||this.eventKeyCode!==y.c&&this.eventKeyCode!==y.v&&this.eventKeyCode!==y.x?!(!e.ctrlKey&&!e.metaKey)||(this.eventKeyCode===y.LeftArrow||this.eventKeyCode===y.RightArrow?("keydown"!==e.type||e.shiftKey||(this.eventKeyCode!==y.LeftArrow||this.that.value.charAt(this.selection.start-2)!==this.settingsClone.digitGroupSeparator&&this.that.value.charAt(this.selection.start-2)!==this.settingsClone.decimalCharacter?this.eventKeyCode!==y.RightArrow||this.that.value.charAt(this.selection.start+1)!==this.settingsClone.digitGroupSeparator&&this.that.value.charAt(this.selection.start+1)!==this.settingsClone.decimalCharacter||this._setCaretPosition(this.selection.start+1):this._setCaretPosition(this.selection.start-1)),!0):this.eventKeyCode>=y.PageDown&&this.eventKeyCode<=y.DownArrow):("keydown"===e.type&&this._expandSelectionOnSign(),this.eventKeyCode!==y.v&&this.eventKeyCode!==y.Insert||("keydown"===e.type||"keypress"===e.type?a(this.valuePartsBeforePaste)&&(this.valuePartsBeforePaste=this._getLeftAndRightPartAroundTheSelection()):this._checkPaste()),"keydown"===e.type||"keypress"===e.type||this.eventKeyCode===y.c)}},{key:"_processCharacterDeletionIfTrailingNegativeSign",value:function(e){var t=s(e,2),a=t[0],i=t[1],r=this.settingsClone;return"p"===r.currencySymbolPlacement&&"s"===r.negativePositiveSignPlacement&&(this.eventKeyCode===y.Backspace?(r.caretFix=this.selection.start>=this.value.indexOf(r.suffixText)&&""!==r.suffixText,"-"===this.value.charAt(this.selection.start-1)?a=a.substring(1):this.selection.start<=this.value.length-r.suffixText.length&&(a=a.substring(0,a.length-1))):(r.caretFix=this.selection.start>=this.value.indexOf(r.suffixText)&&""!==r.suffixText,this.selection.start>=this.value.indexOf(r.currencySymbol)+r.currencySymbol.length&&(i=i.substring(1,i.length)),L(a)&&"-"===this.value.charAt(this.selection.start)&&(a=a.substring(1)))),"s"===r.currencySymbolPlacement&&"l"===r.negativePositiveSignPlacement&&(r.caretFix=this.selection.start>=this.value.indexOf(r.negativeSignCharacter)+r.negativeSignCharacter.length,this.eventKeyCode===y.Backspace?this.selection.start===this.value.indexOf(r.negativeSignCharacter)+r.negativeSignCharacter.length&&k(this.value,r.negativeSignCharacter)?a=a.substring(1):"-"!==a&&(this.selection.start<=this.value.indexOf(r.negativeSignCharacter)||!k(this.value,r.negativeSignCharacter))&&(a=a.substring(0,a.length-1)):("-"===a[0]&&(i=i.substring(1)),this.selection.start===this.value.indexOf(r.negativeSignCharacter)&&k(this.value,r.negativeSignCharacter)&&(a=a.substring(1)))),"s"===r.currencySymbolPlacement&&"r"===r.negativePositiveSignPlacement&&(r.caretFix=this.selection.start>=this.value.indexOf(r.negativeSignCharacter)+r.negativeSignCharacter.length,this.eventKeyCode===y.Backspace?this.selection.start===this.value.indexOf(r.negativeSignCharacter)+r.negativeSignCharacter.length?a=a.substring(1):"-"!==a&&this.selection.start<=this.value.indexOf(r.negativeSignCharacter)-r.currencySymbol.length?a=a.substring(0,a.length-1):""===a||k(this.value,r.negativeSignCharacter)||(a=a.substring(0,a.length-1)):(r.caretFix=this.selection.start>=this.value.indexOf(r.currencySymbol)&&""!==r.currencySymbol,this.selection.start===this.value.indexOf(r.negativeSignCharacter)&&(a=a.substring(1)),i=i.substring(1))),[a,i]}},{key:"_processCharacterDeletion",value:function(){var e=this.settingsClone,t=void 0,a=void 0;if(this.selection.length){this._expandSelectionOnSign(!1);var i=this._getUnformattedLeftAndRightPartAroundTheSelection(),r=s(i,2);t=r[0],a=r[1]}else{var n=this._getUnformattedLeftAndRightPartAroundTheSelection(),o=s(n,2);if(t=o[0],a=o[1],""===t&&""===a&&(e.throwInput=!1),("p"===e.currencySymbolPlacement&&"s"===e.negativePositiveSignPlacement||"s"===e.currencySymbolPlacement&&("l"===e.negativePositiveSignPlacement||"r"===e.negativePositiveSignPlacement))&&L(this.value)){var l=this._processCharacterDeletionIfTrailingNegativeSign([t,a]),c=s(l,2);t=c[0],a=c[1]}else this.eventKeyCode===y.Backspace?t=t.substring(0,t.length-1):a=a.substring(1,a.length)}this._setValueParts(t,a)}},{key:"_processCharacterInsertion",value:function(e){var t=this.settingsClone,a=this._getUnformattedLeftAndRightPartAroundTheSelection(),i=s(a,2),n=i[0],o=i[1],l=void 0;if(r(e)?l=e:(t.throwInput=!0,l=D(e)),l===t.decimalCharacter||t.decimalCharacterAlternative&&l===t.decimalCharacterAlternative||("."===l||","===l)&&this.eventKeyCode===y.DotNumpad)return!t.decimalPlacesOverride||!t.decimalCharacter||(!(!t.negativeSignCharacter||!k(o,t.negativeSignCharacter))||(!!k(n,t.decimalCharacter)||(o.indexOf(t.decimalCharacter)>0||(0===o.indexOf(t.decimalCharacter)&&(o=o.substr(1)),this._setValueParts(n+t.decimalCharacter,o),!0))));if(("-"===l||"+"===l)&&"-"===t.negativeSignCharacter)return!t||("p"===t.currencySymbolPlacement&&"s"===t.negativePositiveSignPlacement||"s"===t.currencySymbolPlacement&&"p"!==t.negativePositiveSignPlacement?(""===n&&k(o,t.negativeSignCharacter)&&(n=t.negativeSignCharacter,o=o.substring(1,o.length)),n=M(n)||k(n,t.negativeSignCharacter)?n.substring(1,n.length):"-"===l?t.negativeSignCharacter+n:n):(""===n&&k(o,t.negativeSignCharacter)&&(n=t.negativeSignCharacter,o=o.substring(1,o.length)),n=n.charAt(0)===t.negativeSignCharacter?n.substring(1,n.length):"-"===l?t.negativeSignCharacter+n:n),this._setValueParts(n,o),!0);var c=Number(l);return c>=0&&c<=9?(t.negativeSignCharacter&&""===n&&k(o,t.negativeSignCharacter)&&(n=t.negativeSignCharacter,o=o.substring(1,o.length)),t.maximumValue<=0&&t.minimumValue<t.maximumValue&&!k(this.value,t.negativeSignCharacter)&&"0"!==l&&(n=t.negativeSignCharacter+n),this._setValueParts(n+l,o),!0):(t.throwInput=!1,!1)}},{key:"_formatValue",value:function(t){var a=this,i=this.settingsClone,r=this.value,n=this._getUnformattedLeftAndRightPartAroundTheSelection(),o=s(n,1),l=o[0];if((""===i.digitGroupSeparator||""!==i.digitGroupSeparator&&!k(r,i.digitGroupSeparator))&&(""===i.currencySymbol||""!==i.currencySymbol&&!k(r,i.currencySymbol))){var c=r.split(i.decimalCharacter),u=s(c,1),d=u[0],m="";L(d)&&(m="-",d=d.replace("-",""),l=l.replace("-","")),""===m&&d.length>i.mIntPos&&"0"===l.charAt(0)&&(l=l.slice(1)),"-"===m&&d.length>i.mIntNeg&&"0"===l.charAt(0)&&(l=l.slice(1)),l=m+l}var g=ie(this.value,this.settingsClone),h=g.length;if(g){var v=l.split("");("s"===i.negativePositiveSignPlacement||"s"===i.currencySymbolPlacement&&"p"!==i.negativePositiveSignPlacement)&&"-"===v[0]&&""!==i.negativeSignCharacter&&(v.shift(),this.eventKeyCode!==y.Backspace&&this.eventKeyCode!==y.Delete||!i.caretFix||("s"===i.currencySymbolPlacement&&"l"===i.negativePositiveSignPlacement&&(v.push("-"),i.caretFix="keydown"===t.type),"p"===i.currencySymbolPlacement&&"s"===i.negativePositiveSignPlacement&&(v.push("-"),i.caretFix="keydown"===t.type),"s"===i.currencySymbolPlacement&&"r"===i.negativePositiveSignPlacement&&!function(){var r=i.currencySymbol.split(""),n=["\\","^","$",".","|","?","*","+","(",")","["],o=[];e.each(r,function(e,t){t=r[e],V(t,n)?o.push("\\"+t):o.push(t)}),a.eventKeyCode===y.Backspace&&o.push("-"),v.push(o.join("")),i.caretFix="keydown"===t.type}()));for(var p=0;p<v.length;p++)v[p].match("\\d")||(v[p]="\\"+v[p]);var f=new RegExp("^.*?"+v.join(".*?")),S=g.match(f);S?(h=S[0].length,i.showPositiveSign&&(0===h&&S.input.charAt(0)===i.positiveSignCharacter&&(h=1===S.input.indexOf(i.currencySymbol)?i.currencySymbol.length+1:1),0===h&&S.input.charAt(i.currencySymbol.length)===i.positiveSignCharacter&&(h=i.currencySymbol.length+1)),(0===h&&g.charAt(0)!==i.negativeSignCharacter||1===h&&g.charAt(0)===i.negativeSignCharacter)&&i.currencySymbol&&"p"===i.currencySymbolPlacement&&(h=this.settingsClone.currencySymbol.length+(M(g)?1:0))):(i.currencySymbol&&"s"===i.currencySymbolPlacement&&(h-=i.currencySymbol.length),i.suffixText&&(h-=i.suffixText.length))}g===this.that.value&&(g!==this.that.value||this.eventKeyCode!==y.num0&&this.eventKeyCode!==y.numpad0)||(this.that.value=g,this._setCaretPosition(h)),null!==i.androidSelectionStart&&this._setCaretPosition(i.androidSelectionStart),this.formatted=!0}}]),t}(),je={init:function(a){return this.each(function(){var i=e(this),r=Ve(i),n=Ie(a,i,!1);if(t(n))return this;var o=de(i,n,!1);!n.runOnce&&n.formatOnPageLoad&&Ae(n,r,i),n.runOnce=!0,r&&(this.addEventListener("focusin",function(e){Se(i,o,e)},!1),this.addEventListener("mouseenter",function(e){Se(i,o,e)},!1),this.addEventListener("blur",function(e){Oe(i,o,e)},!1),this.addEventListener("mouseleave",function(e){Oe(i,o,e)},!1),this.addEventListener("keydown",function(e){be(o,e)},!1),this.addEventListener("keypress",function(e){Pe(o,e)},!1),this.addEventListener("input",function(e){Ce(o,e)},!1),this.addEventListener("keyup",function(e){we(o,n,e)},!1),this.addEventListener("blur",function(e){Ne(o,e)},!1),this.addEventListener("paste",function(e){xe(i,o,e)},!1),ke(i,o))})},destroy:function(){return e(this).each(function(){var e=ue(this),t=e.data("autoNumeric");"object"===("undefined"==typeof t?"undefined":c(t))&&(e.val(""),fe(e[0],t,"wipe"),e.removeData("autoNumeric"),e.off(".autoNumeric"))})},wipe:function(){return e(this).each(function(){var e=ue(this),t=e.data("autoNumeric");"object"===("undefined"==typeof t?"undefined":c(t))&&(e.val(""),t.rawValue="",fe(e[0],t,"wipe"))})},update:function(t){return e(this).each(function(){var e=ue(this),a=e.autoNumeric("get"),i=Ie(t,e,!0);if(de(e,i,!0),""!==e.val()||""!==e.text())return e.autoNumeric("set",a)})},set:function(t){return e(this).each(function(){if(null!==t&&!a(t)){var e=ue(this),i=e.data("autoNumeric");"object"!==("undefined"==typeof i?"undefined":c(i))&&z('Initializing autoNumeric is required prior to calling the "set" method.'),i.trailingNegative=!1;var r=e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"),n=_e(t,i);if(isNaN(n))return e.val("");if(""===n)return e.val("");var o=ce(n,i),l=s(o,2),u=l[0],d=l[1],m=E(n);if(m&&(n="0"),!u||!d){i.rawValue="",fe(e[0],i,"wipe");var g=n;return n="",u||e.trigger("autoNumeric:minExceeded"),d||e.trigger("autoNumeric:maxExceeded"),z("The value ["+g+"] being set falls outside of the minimumValue ["+i.minimumValue+"] and maximumValue ["+i.maximumValue+"] range set for this element"),e.val("")}if(r||V(e.prop("tagName").toLowerCase(),i.tagList)){var h=!1,v=void 0;i.decimalPlacesShownOnFocus&&(v=i.decimalPlacesOverride,i.decimalPlacesOverride=Number(i.decimalPlacesShownOnFocus),n=ne(n,i),h=!0,i.decimalPlacesOverride=v),i.scaleDivisor&&!i.onOff&&(n=ne(n,i),i.rawValue=ve(n.replace(i.decimalCharacter,"."),i),n=_e(n,i),n/=i.scaleDivisor,n=n.toString(),i.scaleDecimalPlaces&&(v=i.decimalPlacesOverride,i.decimalPlacesOverride=Number(i.scaleDecimalPlaces),n=ne(n,i),h=!0)),h||(n=ne(n,i)),i.scaleDivisor||(i.rawValue=ve(n.replace(i.decimalCharacter,"."),i)),n=te(n,i),n=ie(n,i),i.scaleDivisor&&i.scaleDecimalPlaces&&!i.onOff&&(i.decimalPlacesOverride=v)}return i.saveValueToSessionStorage&&(i.decimalPlacesShownOnFocus||i.scaleDivisor)&&fe(e[0],i,"set"),!i.hasFocus&&i.scaleSymbol&&(n+=i.scaleSymbol),r?e.val(n):!!V(e.prop("tagName").toLowerCase(),i.tagList)&&e.text(n)}})},unSet:function(){return e(this).each(function(){var e=ue(this),t=e.data("autoNumeric");"object"===("undefined"==typeof t?"undefined":c(t))&&(t.hasFocus=!0,e.val(e.autoNumeric("getLocalized")))})},reSet:function(){return e(this).each(function(){var e=ue(this),t=e.data("autoNumeric");"object"===("undefined"==typeof t?"undefined":c(t))&&e.autoNumeric("set",e.val())})},get:function(){var e=ue(this),t=e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"),a=e.data("autoNumeric");"object"!==("undefined"==typeof a?"undefined":c(a))&&z('Initializing autoNumeric is required prior to calling the "get" method.');var i="";if(t?i=e.eq(0).val():V(e.prop("tagName").toLowerCase(),a.tagList)?i=e.eq(0).text():z('The "<'+e.prop("tagName").toLowerCase()+'>" tag is not supported by autoNumeric'),a.decimalPlacesShownOnFocus||a.scaleDivisor)i=a.rawValue;else{var r=L(i);if(!/\d/.test(i)&&"focus"===a.emptyInputBehavior)return"";""!==i&&null!==a.negativeBracketsTypeOnBlur&&(a.hasFocus=!0,i=J(i,a)),(a.runOnce||a.formatOnPageLoad===!1)&&(i=Q(i,a,!0),i=ve(i.replace(a.decimalCharacter,"."),a),a.trailingNegative&&r&&!L(i)&&0!==Number(i)&&(i="-"+i)),(""!==i||""===i&&"zero"===a.emptyInputBehavior)&&(i=ee(i,a))}return pe(i)},getLocalized:function(){var e=ue(this),t=e.autoNumeric("get"),a=e.data("autoNumeric");return 0===Number(t)&&"keep"!==a.leadingZero&&(t="0"),X(t,a.outputFormat)},getNumber:function(){var e=ue(this),t=e.autoNumeric("get");return X(t,"number")},getFormatted:function(){return this.hasOwnProperty("0")&&"value"in this[0]||z("Unable to get the formatted string from the element."),this[0].value},getString:function(){return ye(!1,this)},getArray:function(){return ye(!0,this)},getSettings:function(){return this.data("autoNumeric")}};e.fn.autoNumeric=function(e){if(je[e]){for(var t=arguments.length,a=Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return je[e].apply(this,a)}return"object"!==("undefined"==typeof e?"undefined":c(e))&&e?void z('Method "'+e+'" is not supported by autoNumeric'):je.init.apply(this,[e])},m=function(){return f},e.fn.autoNumeric.defaults=f,g=function(){return x},e.fn.autoNumeric.lang=x,u=function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(a(i)||null===i)return null;r(i)||w(i)||z('The value "'+i+'" being "set" is not numeric and therefore cannot be used appropriately.');var o=e.extend({},f,{strip:!1},n);i<0&&(o.negativeSignCharacter="-"),t(o.decimalPlacesOverride)&&(o.decimalPlacesOverride=W(o.minimumValue,o.maximumValue));var l=_e(i,o);isNaN(l)&&z("The value ["+l+"] that you are trying to format is not a recognized number.");var c=ce(l,o),u=s(c,2),d=u[0],m=u[1];return d&&m||(Re("autoFormat.autoNumeric",document,"Range test failed"),z("The value ["+l+"] being set falls outside of the minimumValue ["+o.minimumValue+"] and maximumValue ["+o.maximumValue+"] range set for this element")),l=ne(l,o),l=te(l,o),l=ie(l,o)},e.fn.autoFormat=u,d=function(t,i){if(a(t)||null===t)return null;if(w(t))return Number(t);(A(t)||P(t))&&z("A number or a string representing a number is needed to be able to unformat it, ["+t+"] given.");var r=e.extend({},f,{strip:!1},i),n="-0123456789\\"+r.decimalCharacter,o=new RegExp("[^"+n+"]","gi");return t=t.toString(),L(t)?r.negativeSignCharacter="-":r.negativeBracketsTypeOnBlur&&r.negativeBracketsTypeOnBlur.split(",")[0]===t.charAt(0)&&(r.negativeSignCharacter="-",r.hasFocus=!0,t=J(t,r)),t=t.replace(o,""),t=t.replace(r.decimalCharacter,"."),t=X(t,r.outputFormat)},e.fn.autoUnformat=d,h=function(a){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(i(a)||!P(a)||C(a))&&z("The userOptions are invalid ; it should be a valid object, ["+a+"] given."),t(a)||Ee(a);var l=void 0;l=o?e.extend({},f,a):a,b(l.showWarnings)||n(l.showWarnings)||z("The debug option 'showWarnings' is invalid ; it should be either 'false' or 'true', ["+l.showWarnings+"] given.");var s=/^[0-9]+$/,c=/[0-9]+/,u=/^-?[0-9]+(\.?[0-9]+)?$/,d=/^[0-9]+(\.?[0-9]+)?$/;V(l.digitGroupSeparator,[",","."," "," "," "," ","","'","٬","˙"])||z("The thousand separator character option 'digitGroupSeparator' is invalid ; it should be ',', '.', '٬', '˙', \"'\", ' ', ' ', ' ', ' ' or empty (''), ["+l.digitGroupSeparator+"] given."),b(l.noSeparatorOnFocus)||n(l.noSeparatorOnFocus)||z("The 'noSeparatorOnFocus' option is invalid ; it should be either 'false' or 'true', ["+l.noSeparatorOnFocus+"] given."),s.test(l.digitalGroupSpacing)||z("The digital grouping for thousand separator option 'digitalGroupSpacing' is invalid ; it should be a positive integer, ["+l.digitalGroupSpacing+"] given."),V(l.decimalCharacter,[",",".","·","٫","⎖"])||z("The decimal separator character option 'decimalCharacter' is invalid ; it should be '.', ',', '·', '⎖' or '٫', ["+l.decimalCharacter+"] given."),l.decimalCharacter===l.digitGroupSeparator&&z("autoNumeric will not function properly when the decimal character 'decimalCharacter' ["+l.decimalCharacter+"] and the thousand separator 'digitGroupSeparator' ["+l.digitGroupSeparator+"] are the same character."),t(l.decimalCharacterAlternative)||r(l.decimalCharacterAlternative)||z("The alternate decimal separator character option 'decimalCharacterAlternative' is invalid ; it should be a string, ["+l.decimalCharacterAlternative+"] given."),""===l.currencySymbol||r(l.currencySymbol)||z("The currency symbol option 'currencySymbol' is invalid ; it should be a string, ["+l.currencySymbol+"] given."),V(l.currencySymbolPlacement,["p","s"])||z("The placement of the currency sign option 'currencySymbolPlacement' is invalid ; it should either be 'p' (prefix) or 's' (suffix), ["+l.currencySymbolPlacement+"] given."),V(l.negativePositiveSignPlacement,["p","s","l","r",null])||z("The placement of the negative sign option 'negativePositiveSignPlacement' is invalid ; it should either be 'p' (prefix), 's' (suffix), 'l' (left), 'r' (right) or 'null', ["+l.negativePositiveSignPlacement+"] given."),b(l.showPositiveSign)||n(l.showPositiveSign)||z("The show positive sign option 'showPositiveSign' is invalid ; it should be either 'false' or 'true', ["+l.showPositiveSign+"] given."),(!r(l.suffixText)||""!==l.suffixText&&(L(l.suffixText)||c.test(l.suffixText)))&&z("The additional suffix option 'suffixText' is invalid ; it should not contains the negative sign '-' nor any numerical characters, ["+l.suffixText+"] given."),t(l.overrideMinMaxLimits)||V(l.overrideMinMaxLimits,["ceiling","floor","ignore"])||z("The override min & max limits option 'overrideMinMaxLimits' is invalid ; it should either be 'ceiling', 'floor' or 'ignore', ["+l.overrideMinMaxLimits+"] given."),r(l.maximumValue)&&u.test(l.maximumValue)||z("The maximum possible value option 'maximumValue' is invalid ; it should be a string that represents a positive or negative number, ["+l.maximumValue+"] given."),r(l.minimumValue)&&u.test(l.minimumValue)||z("The minimum possible value option 'minimumValue' is invalid ; it should be a string that represents a positive or negative number, ["+l.minimumValue+"] given."),parseFloat(l.minimumValue)>parseFloat(l.maximumValue)&&z("The minimum possible value option is greater than the maximum possible value option ; 'minimumValue' ["+l.minimumValue+"] should be smaller than 'maximumValue' ["+l.maximumValue+"]."),t(l.decimalPlacesOverride)||O(l.decimalPlacesOverride)&&l.decimalPlacesOverride>=0||r(l.decimalPlacesOverride)&&s.test(l.decimalPlacesOverride)||z("The maximum number of decimal places option 'decimalPlacesOverride' is invalid ; it should be a positive integer, ["+l.decimalPlacesOverride+"] given.");var m=W(l.minimumValue,l.maximumValue);t(l.decimalPlacesOverride)||m===Number(l.decimalPlacesOverride)||H("Setting 'decimalPlacesOverride' to ["+l.decimalPlacesOverride+"] will override the decimals declared in 'minimumValue' ["+l.minimumValue+"] and 'maximumValue' ["+l.maximumValue+"].",l.showWarnings),l.allowDecimalPadding||t(l.decimalPlacesOverride)||H("Setting 'allowDecimalPadding' to [false] will override the current 'decimalPlacesOverride' setting ["+l.decimalPlacesOverride+"].",l.showWarnings),t(l.decimalPlacesShownOnFocus)||r(l.decimalPlacesShownOnFocus)&&s.test(l.decimalPlacesShownOnFocus)||z("The number of expanded decimal places option 'decimalPlacesShownOnFocus' is invalid ; it should be a positive integer, ["+l.decimalPlacesShownOnFocus+"] given."),!t(l.decimalPlacesShownOnFocus)&&!t(l.decimalPlacesOverride)&&Number(l.decimalPlacesOverride)>Number(l.decimalPlacesShownOnFocus)&&H("The extended decimal places 'decimalPlacesShownOnFocus' ["+l.decimalPlacesShownOnFocus+"] should be greater than the 'decimalPlacesOverride' ["+l.decimalPlacesOverride+"] value. Currently, this will limit the ability of your client to manually change some of the decimal places. Do you really want to do that?",l.showWarnings),t(l.scaleDivisor)||d.test(l.scaleDivisor)||z("The scale divisor option 'scaleDivisor' is invalid ; it should be a positive number, preferably an integer, ["+l.scaleDivisor+"] given."),t(l.scaleDecimalPlaces)||s.test(l.scaleDecimalPlaces)||z("The scale number of decimals option 'scaleDecimalPlaces' is invalid ; it should be a positive integer, ["+l.scaleDecimalPlaces+"] given."),t(l.scaleSymbol)||r(l.scaleSymbol)||z("The scale symbol option 'scaleSymbol' is invalid ; it should be a string, ["+l.scaleSymbol+"] given."),b(l.saveValueToSessionStorage)||n(l.saveValueToSessionStorage)||z("The save to session storage option 'saveValueToSessionStorage' is invalid ; it should be either 'false' or 'true', ["+l.saveValueToSessionStorage+"] given."),V(l.onInvalidPaste,["error","ignore","clamp","truncate","replace"])||z("The paste behavior option 'onInvalidPaste' is invalid ; it should either be 'error', 'ignore', 'clamp', 'truncate' or 'replace' (cf. documentation), ["+l.onInvalidPaste+"] given."),V(l.roundingMethod,["S","A","s","a","B","U","D","C","F","N05","CHF","U05","D05"])||z("The rounding method option 'roundingMethod' is invalid ; it should either be 'S', 'A', 's', 'a', 'B', 'U', 'D', 'C', 'F', 'N05', 'CHF', 'U05' or 'D05' (cf. documentation), ["+l.roundingMethod+"] given."),b(l.allowDecimalPadding)||n(l.allowDecimalPadding)||z("The control decimal padding option 'allowDecimalPadding' is invalid ; it should be either 'false' or 'true', ["+l.allowDecimalPadding+"] given."),t(l.negativeBracketsTypeOnBlur)||V(l.negativeBracketsTypeOnBlur,["(,)","[,]","<,>","{,}"])||z("The brackets for negative values option 'negativeBracketsTypeOnBlur' is invalid ; it should either be '(,)', '[,]', '<,>' or '{,}', ["+l.negativeBracketsTypeOnBlur+"] given."),V(l.emptyInputBehavior,["focus","press","always","zero"])||z("The display on empty string option 'emptyInputBehavior' is invalid ; it should either be 'focus', 'press', 'always' or 'zero', ["+l.emptyInputBehavior+"] given."),V(l.leadingZero,["allow","deny","keep"])||z("The leading zero behavior option 'leadingZero' is invalid ; it should either be 'allow', 'deny' or 'keep', ["+l.leadingZero+"] given."),b(l.formatOnPageLoad)||n(l.formatOnPageLoad)||z("The format on initialization option 'formatOnPageLoad' is invalid ; it should be either 'false' or 'true', ["+l.formatOnPageLoad+"] given."),b(l.selectNumberOnly)||n(l.selectNumberOnly)||z("The select number only option 'selectNumberOnly' is invalid ; it should be either 'false' or 'true', ["+l.selectNumberOnly+"] given."),t(l.defaultValueOverride)||""===l.defaultValueOverride||u.test(l.defaultValueOverride)||z("The unformatted default value option 'defaultValueOverride' is invalid ; it should be a string that represents a positive or negative number, ["+l.defaultValueOverride+"] given."),b(l.unformatOnSubmit)||n(l.unformatOnSubmit)||z("The remove formatting on submit option 'unformatOnSubmit' is invalid ; it should be either 'false' or 'true', ["+l.unformatOnSubmit+"] given."),
|
3
|
+
t(l.outputFormat)||V(l.outputFormat,["string","number",".","-.",",","-,",".-",",-"])||z("The custom locale format option 'outputFormat' is invalid ; it should either be null, 'string', 'number', '.', '-.', ',', '-,', '.-' or ',-', ["+l.outputFormat+"] given."),b(l.failOnUnknownOption)||n(l.failOnUnknownOption)||z("The debug option 'failOnUnknownOption' is invalid ; it should be either 'false' or 'true', ["+l.failOnUnknownOption+"] given.")},e.fn.autoValidate=h,v=function(e){var t=!0;try{h(e)}catch(e){t=!1}return t},function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}return"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,void(window.CustomEvent=e))}()}),t.default={format:u,unFormat:d,getDefaultConfig:m,getLanguages:g,validate:h,areSettingsValid:v}}).call(window)},function(t,a){t.exports=e}])});
|
4
|
+
//# sourceMappingURL=autoNumeric.min.js.map
|
File without changes
|
@@ -0,0 +1,2 @@
|
|
1
|
+
!function(a){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],a);else if("object"==typeof exports)module.exports=a(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";a(jQuery,moment)}}(function(a,b){"use strict";if(!b)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var c=function(c,d){var e,f,g,h,i,j,k,l={},m=!0,n=!1,o=!1,p=0,q=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],r=["days","months","years","decades"],s=["top","bottom","auto"],t=["left","right","auto"],u=["default","top","bottom"],v={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},w={},x=function(){return void 0!==b.tz&&void 0!==d.timeZone&&null!==d.timeZone&&""!==d.timeZone},y=function(a){var c;return c=void 0===a||null===a?b():b.isDate(a)||b.isMoment(a)?b(a):x()?b.tz(a,j,d.useStrict,d.timeZone):b(a,j,d.useStrict),x()&&c.tz(d.timeZone),c},z=function(a){if("string"!=typeof a||a.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(a){case"y":return i.indexOf("Y")!==-1;case"M":return i.indexOf("M")!==-1;case"d":return i.toLowerCase().indexOf("d")!==-1;case"h":case"H":return i.toLowerCase().indexOf("h")!==-1;case"m":return i.indexOf("m")!==-1;case"s":return i.indexOf("s")!==-1;default:return!1}},A=function(){return z("h")||z("m")||z("s")},B=function(){return z("y")||z("M")||z("d")},C=function(){var b=a("<thead>").append(a("<tr>").append(a("<th>").addClass("prev").attr("data-action","previous").append(a("<span>").addClass(d.icons.previous))).append(a("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",d.calendarWeeks?"6":"5")).append(a("<th>").addClass("next").attr("data-action","next").append(a("<span>").addClass(d.icons.next)))),c=a("<tbody>").append(a("<tr>").append(a("<td>").attr("colspan",d.calendarWeeks?"8":"7")));return[a("<div>").addClass("datepicker-days").append(a("<table>").addClass("table-condensed").append(b).append(a("<tbody>"))),a("<div>").addClass("datepicker-months").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone())),a("<div>").addClass("datepicker-years").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone())),a("<div>").addClass("datepicker-decades").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone()))]},D=function(){var b=a("<tr>"),c=a("<tr>"),e=a("<tr>");return z("h")&&(b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:d.tooltips.pickHour}).attr("data-action","showHours"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(a("<span>").addClass(d.icons.down))))),z("m")&&(z("h")&&(b.append(a("<td>").addClass("separator")),c.append(a("<td>").addClass("separator").html(":")),e.append(a("<td>").addClass("separator"))),b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:d.tooltips.pickMinute}).attr("data-action","showMinutes"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(a("<span>").addClass(d.icons.down))))),z("s")&&(z("m")&&(b.append(a("<td>").addClass("separator")),c.append(a("<td>").addClass("separator").html(":")),e.append(a("<td>").addClass("separator"))),b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:d.tooltips.pickSecond}).attr("data-action","showSeconds"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(a("<span>").addClass(d.icons.down))))),h||(b.append(a("<td>").addClass("separator")),c.append(a("<td>").append(a("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:d.tooltips.togglePeriod}))),e.append(a("<td>").addClass("separator"))),a("<div>").addClass("timepicker-picker").append(a("<table>").addClass("table-condensed").append([b,c,e]))},E=function(){var b=a("<div>").addClass("timepicker-hours").append(a("<table>").addClass("table-condensed")),c=a("<div>").addClass("timepicker-minutes").append(a("<table>").addClass("table-condensed")),d=a("<div>").addClass("timepicker-seconds").append(a("<table>").addClass("table-condensed")),e=[D()];return z("h")&&e.push(b),z("m")&&e.push(c),z("s")&&e.push(d),e},F=function(){var b=[];return d.showTodayButton&&b.push(a("<td>").append(a("<a>").attr({"data-action":"today",title:d.tooltips.today}).append(a("<span>").addClass(d.icons.today)))),!d.sideBySide&&B()&&A()&&b.push(a("<td>").append(a("<a>").attr({"data-action":"togglePicker",title:d.tooltips.selectTime}).append(a("<span>").addClass(d.icons.time)))),d.showClear&&b.push(a("<td>").append(a("<a>").attr({"data-action":"clear",title:d.tooltips.clear}).append(a("<span>").addClass(d.icons.clear)))),d.showClose&&b.push(a("<td>").append(a("<a>").attr({"data-action":"close",title:d.tooltips.close}).append(a("<span>").addClass(d.icons.close)))),a("<table>").addClass("table-condensed").append(a("<tbody>").append(a("<tr>").append(b)))},G=function(){var b=a("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),c=a("<div>").addClass("datepicker").append(C()),e=a("<div>").addClass("timepicker").append(E()),f=a("<ul>").addClass("list-unstyled"),g=a("<li>").addClass("picker-switch"+(d.collapse?" accordion-toggle":"")).append(F());return d.inline&&b.removeClass("dropdown-menu"),h&&b.addClass("usetwentyfour"),z("s")&&!h&&b.addClass("wider"),d.sideBySide&&B()&&A()?(b.addClass("timepicker-sbs"),"top"===d.toolbarPlacement&&b.append(g),b.append(a("<div>").addClass("row").append(c.addClass("col-md-6")).append(e.addClass("col-md-6"))),"bottom"===d.toolbarPlacement&&b.append(g),b):("top"===d.toolbarPlacement&&f.append(g),B()&&f.append(a("<li>").addClass(d.collapse&&A()?"collapse in":"").append(c)),"default"===d.toolbarPlacement&&f.append(g),A()&&f.append(a("<li>").addClass(d.collapse&&B()?"collapse":"").append(e)),"bottom"===d.toolbarPlacement&&f.append(g),b.append(f))},H=function(){var b,e={};return b=c.is("input")||d.inline?c.data():c.find("input").data(),b.dateOptions&&b.dateOptions instanceof Object&&(e=a.extend(!0,e,b.dateOptions)),a.each(d,function(a){var c="date"+a.charAt(0).toUpperCase()+a.slice(1);void 0!==b[c]&&(e[a]=b[c])}),e},I=function(){var b,e=(n||c).position(),f=(n||c).offset(),g=d.widgetPositioning.vertical,h=d.widgetPositioning.horizontal;if(d.widgetParent)b=d.widgetParent.append(o);else if(c.is("input"))b=c.after(o).parent();else{if(d.inline)return void(b=c.append(o));b=c,c.children().first().after(o)}if("auto"===g&&(g=f.top+1.5*o.height()>=a(window).height()+a(window).scrollTop()&&o.height()+c.outerHeight()<f.top?"top":"bottom"),"auto"===h&&(h=b.width()<f.left+o.outerWidth()/2&&f.left+o.outerWidth()>a(window).width()?"right":"left"),"top"===g?o.addClass("top").removeClass("bottom"):o.addClass("bottom").removeClass("top"),"right"===h?o.addClass("pull-right"):o.removeClass("pull-right"),"static"===b.css("position")&&(b=b.parents().filter(function(){return"static"!==a(this).css("position")}).first()),0===b.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");o.css({top:"top"===g?"auto":e.top+c.outerHeight(),bottom:"top"===g?b.outerHeight()-(b===c?0:e.top):"auto",left:"left"===h?b===c?0:e.left:"auto",right:"left"===h?"auto":b.outerWidth()-c.outerWidth()-(b===c?0:e.left)})},J=function(a){"dp.change"===a.type&&(a.date&&a.date.isSame(a.oldDate)||!a.date&&!a.oldDate)||c.trigger(a)},K=function(a){"y"===a&&(a="YYYY"),J({type:"dp.update",change:a,viewDate:f.clone()})},L=function(a){o&&(a&&(k=Math.max(p,Math.min(3,k+a))),o.find(".datepicker > div").hide().filter(".datepicker-"+q[k].clsName).show())},M=function(){var b=a("<tr>"),c=f.clone().startOf("w").startOf("d");for(d.calendarWeeks===!0&&b.append(a("<th>").addClass("cw").text("#"));c.isBefore(f.clone().endOf("w"));)b.append(a("<th>").addClass("dow").text(c.format("dd"))),c.add(1,"d");o.find(".datepicker-days thead").append(b)},N=function(a){return d.disabledDates[a.format("YYYY-MM-DD")]===!0},O=function(a){return d.enabledDates[a.format("YYYY-MM-DD")]===!0},P=function(a){return d.disabledHours[a.format("H")]===!0},Q=function(a){return d.enabledHours[a.format("H")]===!0},R=function(b,c){if(!b.isValid())return!1;if(d.disabledDates&&"d"===c&&N(b))return!1;if(d.enabledDates&&"d"===c&&!O(b))return!1;if(d.minDate&&b.isBefore(d.minDate,c))return!1;if(d.maxDate&&b.isAfter(d.maxDate,c))return!1;if(d.daysOfWeekDisabled&&"d"===c&&d.daysOfWeekDisabled.indexOf(b.day())!==-1)return!1;if(d.disabledHours&&("h"===c||"m"===c||"s"===c)&&P(b))return!1;if(d.enabledHours&&("h"===c||"m"===c||"s"===c)&&!Q(b))return!1;if(d.disabledTimeIntervals&&("h"===c||"m"===c||"s"===c)){var e=!1;if(a.each(d.disabledTimeIntervals,function(){if(b.isBetween(this[0],this[1]))return e=!0,!1}),e)return!1}return!0},S=function(){for(var b=[],c=f.clone().startOf("y").startOf("d");c.isSame(f,"y");)b.push(a("<span>").attr("data-action","selectMonth").addClass("month").text(c.format("MMM"))),c.add(1,"M");o.find(".datepicker-months td").empty().append(b)},T=function(){var b=o.find(".datepicker-months"),c=b.find("th"),g=b.find("tbody").find("span");c.eq(0).find("span").attr("title",d.tooltips.prevYear),c.eq(1).attr("title",d.tooltips.selectYear),c.eq(2).find("span").attr("title",d.tooltips.nextYear),b.find(".disabled").removeClass("disabled"),R(f.clone().subtract(1,"y"),"y")||c.eq(0).addClass("disabled"),c.eq(1).text(f.year()),R(f.clone().add(1,"y"),"y")||c.eq(2).addClass("disabled"),g.removeClass("active"),e.isSame(f,"y")&&!m&&g.eq(e.month()).addClass("active"),g.each(function(b){R(f.clone().month(b),"M")||a(this).addClass("disabled")})},U=function(){var a=o.find(".datepicker-years"),b=a.find("th"),c=f.clone().subtract(5,"y"),g=f.clone().add(6,"y"),h="";for(b.eq(0).find("span").attr("title",d.tooltips.prevDecade),b.eq(1).attr("title",d.tooltips.selectDecade),b.eq(2).find("span").attr("title",d.tooltips.nextDecade),a.find(".disabled").removeClass("disabled"),d.minDate&&d.minDate.isAfter(c,"y")&&b.eq(0).addClass("disabled"),b.eq(1).text(c.year()+"-"+g.year()),d.maxDate&&d.maxDate.isBefore(g,"y")&&b.eq(2).addClass("disabled");!c.isAfter(g,"y");)h+='<span data-action="selectYear" class="year'+(c.isSame(e,"y")&&!m?" active":"")+(R(c,"y")?"":" disabled")+'">'+c.year()+"</span>",c.add(1,"y");a.find("td").html(h)},V=function(){var a,c=o.find(".datepicker-decades"),g=c.find("th"),h=b({y:f.year()-f.year()%100-1}),i=h.clone().add(100,"y"),j=h.clone(),k=!1,l=!1,m="";for(g.eq(0).find("span").attr("title",d.tooltips.prevCentury),g.eq(2).find("span").attr("title",d.tooltips.nextCentury),c.find(".disabled").removeClass("disabled"),(h.isSame(b({y:1900}))||d.minDate&&d.minDate.isAfter(h,"y"))&&g.eq(0).addClass("disabled"),g.eq(1).text(h.year()+"-"+i.year()),(h.isSame(b({y:2e3}))||d.maxDate&&d.maxDate.isBefore(i,"y"))&&g.eq(2).addClass("disabled");!h.isAfter(i,"y");)a=h.year()+12,k=d.minDate&&d.minDate.isAfter(h,"y")&&d.minDate.year()<=a,l=d.maxDate&&d.maxDate.isAfter(h,"y")&&d.maxDate.year()<=a,m+='<span data-action="selectDecade" class="decade'+(e.isAfter(h)&&e.year()<=a?" active":"")+(R(h,"y")||k||l?"":" disabled")+'" data-selection="'+(h.year()+6)+'">'+(h.year()+1)+" - "+(h.year()+12)+"</span>",h.add(12,"y");m+="<span></span><span></span><span></span>",c.find("td").html(m),g.eq(1).text(j.year()+1+"-"+h.year())},W=function(){var b,c,g,h=o.find(".datepicker-days"),i=h.find("th"),j=[],k=[];if(B()){for(i.eq(0).find("span").attr("title",d.tooltips.prevMonth),i.eq(1).attr("title",d.tooltips.selectMonth),i.eq(2).find("span").attr("title",d.tooltips.nextMonth),h.find(".disabled").removeClass("disabled"),i.eq(1).text(f.format(d.dayViewHeaderFormat)),R(f.clone().subtract(1,"M"),"M")||i.eq(0).addClass("disabled"),R(f.clone().add(1,"M"),"M")||i.eq(2).addClass("disabled"),b=f.clone().startOf("M").startOf("w").startOf("d"),g=0;g<42;g++)0===b.weekday()&&(c=a("<tr>"),d.calendarWeeks&&c.append('<td class="cw">'+b.week()+"</td>"),j.push(c)),k=["day"],b.isBefore(f,"M")&&k.push("old"),b.isAfter(f,"M")&&k.push("new"),b.isSame(e,"d")&&!m&&k.push("active"),R(b,"d")||k.push("disabled"),b.isSame(y(),"d")&&k.push("today"),0!==b.day()&&6!==b.day()||k.push("weekend"),J({type:"dp.classify",date:b,classNames:k}),c.append('<td data-action="selectDay" data-day="'+b.format("L")+'" class="'+k.join(" ")+'">'+b.date()+"</td>"),b.add(1,"d");h.find("tbody").empty().append(j),T(),U(),V()}},X=function(){var b=o.find(".timepicker-hours table"),c=f.clone().startOf("d"),d=[],e=a("<tr>");for(f.hour()>11&&!h&&c.hour(12);c.isSame(f,"d")&&(h||f.hour()<12&&c.hour()<12||f.hour()>11);)c.hour()%4===0&&(e=a("<tr>"),d.push(e)),e.append('<td data-action="selectHour" class="hour'+(R(c,"h")?"":" disabled")+'">'+c.format(h?"HH":"hh")+"</td>"),c.add(1,"h");b.empty().append(d)},Y=function(){for(var b=o.find(".timepicker-minutes table"),c=f.clone().startOf("h"),e=[],g=a("<tr>"),h=1===d.stepping?5:d.stepping;f.isSame(c,"h");)c.minute()%(4*h)===0&&(g=a("<tr>"),e.push(g)),g.append('<td data-action="selectMinute" class="minute'+(R(c,"m")?"":" disabled")+'">'+c.format("mm")+"</td>"),c.add(h,"m");b.empty().append(e)},Z=function(){for(var b=o.find(".timepicker-seconds table"),c=f.clone().startOf("m"),d=[],e=a("<tr>");f.isSame(c,"m");)c.second()%20===0&&(e=a("<tr>"),d.push(e)),e.append('<td data-action="selectSecond" class="second'+(R(c,"s")?"":" disabled")+'">'+c.format("ss")+"</td>"),c.add(5,"s");b.empty().append(d)},$=function(){var a,b,c=o.find(".timepicker span[data-time-component]");h||(a=o.find(".timepicker [data-action=togglePeriod]"),b=e.clone().add(e.hours()>=12?-12:12,"h"),a.text(e.format("A")),R(b,"h")?a.removeClass("disabled"):a.addClass("disabled")),c.filter("[data-time-component=hours]").text(e.format(h?"HH":"hh")),c.filter("[data-time-component=minutes]").text(e.format("mm")),c.filter("[data-time-component=seconds]").text(e.format("ss")),X(),Y(),Z()},_=function(){o&&(W(),$())},aa=function(a){var b=m?null:e;if(!a)return m=!0,g.val(""),c.data("date",""),J({type:"dp.change",date:!1,oldDate:b}),void _();if(a=a.clone().locale(d.locale),x()&&a.tz(d.timeZone),1!==d.stepping)for(a.minutes(Math.round(a.minutes()/d.stepping)*d.stepping).seconds(0);d.minDate&&a.isBefore(d.minDate);)a.add(d.stepping,"minutes");R(a)?(e=a,f=e.clone(),g.val(e.format(i)),c.data("date",e.format(i)),m=!1,_(),J({type:"dp.change",date:e.clone(),oldDate:b})):(d.keepInvalid?J({type:"dp.change",date:a,oldDate:b}):g.val(m?"":e.format(i)),J({type:"dp.error",date:a,oldDate:b}))},ba=function(){var b=!1;return o?(o.find(".collapse").each(function(){var c=a(this).data("collapse");return!c||!c.transitioning||(b=!0,!1)}),b?l:(n&&n.hasClass("btn")&&n.toggleClass("active"),o.hide(),a(window).off("resize",I),o.off("click","[data-action]"),o.off("mousedown",!1),o.remove(),o=!1,J({type:"dp.hide",date:e.clone()}),g.blur(),f=e.clone(),l)):l},ca=function(){aa(null)},da=function(a){return void 0===d.parseInputDate?(!b.isMoment(a)||a instanceof Date)&&(a=y(a)):a=d.parseInputDate(a),a},ea={next:function(){var a=q[k].navFnc;f.add(q[k].navStep,a),W(),K(a)},previous:function(){var a=q[k].navFnc;f.subtract(q[k].navStep,a),W(),K(a)},pickerSwitch:function(){L(1)},selectMonth:function(b){var c=a(b.target).closest("tbody").find("span").index(a(b.target));f.month(c),k===p?(aa(e.clone().year(f.year()).month(f.month())),d.inline||ba()):(L(-1),W()),K("M")},selectYear:function(b){var c=parseInt(a(b.target).text(),10)||0;f.year(c),k===p?(aa(e.clone().year(f.year())),d.inline||ba()):(L(-1),W()),K("YYYY")},selectDecade:function(b){var c=parseInt(a(b.target).data("selection"),10)||0;f.year(c),k===p?(aa(e.clone().year(f.year())),d.inline||ba()):(L(-1),W()),K("YYYY")},selectDay:function(b){var c=f.clone();a(b.target).is(".old")&&c.subtract(1,"M"),a(b.target).is(".new")&&c.add(1,"M"),aa(c.date(parseInt(a(b.target).text(),10))),A()||d.keepOpen||d.inline||ba()},incrementHours:function(){var a=e.clone().add(1,"h");R(a,"h")&&aa(a)},incrementMinutes:function(){var a=e.clone().add(d.stepping,"m");R(a,"m")&&aa(a)},incrementSeconds:function(){var a=e.clone().add(1,"s");R(a,"s")&&aa(a)},decrementHours:function(){var a=e.clone().subtract(1,"h");R(a,"h")&&aa(a)},decrementMinutes:function(){var a=e.clone().subtract(d.stepping,"m");R(a,"m")&&aa(a)},decrementSeconds:function(){var a=e.clone().subtract(1,"s");R(a,"s")&&aa(a)},togglePeriod:function(){aa(e.clone().add(e.hours()>=12?-12:12,"h"))},togglePicker:function(b){var c,e=a(b.target),f=e.closest("ul"),g=f.find(".in"),h=f.find(".collapse:not(.in)");if(g&&g.length){if(c=g.data("collapse"),c&&c.transitioning)return;g.collapse?(g.collapse("hide"),h.collapse("show")):(g.removeClass("in"),h.addClass("in")),e.is("span")?e.toggleClass(d.icons.time+" "+d.icons.date):e.find("span").toggleClass(d.icons.time+" "+d.icons.date)}},showPicker:function(){o.find(".timepicker > div:not(.timepicker-picker)").hide(),o.find(".timepicker .timepicker-picker").show()},showHours:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-hours").show()},showMinutes:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-seconds").show()},selectHour:function(b){var c=parseInt(a(b.target).text(),10);h||(e.hours()>=12?12!==c&&(c+=12):12===c&&(c=0)),aa(e.clone().hours(c)),ea.showPicker.call(l)},selectMinute:function(b){aa(e.clone().minutes(parseInt(a(b.target).text(),10))),ea.showPicker.call(l)},selectSecond:function(b){aa(e.clone().seconds(parseInt(a(b.target).text(),10))),ea.showPicker.call(l)},clear:ca,today:function(){var a=y();R(a,"d")&&aa(a)},close:ba},fa=function(b){return!a(b.currentTarget).is(".disabled")&&(ea[a(b.currentTarget).data("action")].apply(l,arguments),!1)},ga=function(){var b,c={year:function(a){return a.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(a){return a.date(1).hours(0).seconds(0).minutes(0)},day:function(a){return a.hours(0).seconds(0).minutes(0)},hour:function(a){return a.seconds(0).minutes(0)},minute:function(a){return a.seconds(0)}};return g.prop("disabled")||!d.ignoreReadonly&&g.prop("readonly")||o?l:(void 0!==g.val()&&0!==g.val().trim().length?aa(da(g.val().trim())):m&&d.useCurrent&&(d.inline||g.is("input")&&0===g.val().trim().length)&&(b=y(),"string"==typeof d.useCurrent&&(b=c[d.useCurrent](b)),aa(b)),o=G(),M(),S(),o.find(".timepicker-hours").hide(),o.find(".timepicker-minutes").hide(),o.find(".timepicker-seconds").hide(),_(),L(),a(window).on("resize",I),o.on("click","[data-action]",fa),o.on("mousedown",!1),n&&n.hasClass("btn")&&n.toggleClass("active"),I(),o.show(),d.focusOnShow&&!g.is(":focus")&&g.focus(),J({type:"dp.show"}),l)},ha=function(){return o?ba():ga()},ia=function(a){var b,c,e,f,g=null,h=[],i={},j=a.which,k="p";w[j]=k;for(b in w)w.hasOwnProperty(b)&&w[b]===k&&(h.push(b),parseInt(b,10)!==j&&(i[b]=!0));for(b in d.keyBinds)if(d.keyBinds.hasOwnProperty(b)&&"function"==typeof d.keyBinds[b]&&(e=b.split(" "),e.length===h.length&&v[j]===e[e.length-1])){for(f=!0,c=e.length-2;c>=0;c--)if(!(v[e[c]]in i)){f=!1;break}if(f){g=d.keyBinds[b];break}}g&&(g.call(l,o),a.stopPropagation(),a.preventDefault())},ja=function(a){w[a.which]="r",a.stopPropagation(),a.preventDefault()},ka=function(b){var c=a(b.target).val().trim(),d=c?da(c):null;return aa(d),b.stopImmediatePropagation(),!1},la=function(){g.on({change:ka,blur:d.debug?"":ba,keydown:ia,keyup:ja,focus:d.allowInputToggle?ga:""}),c.is("input")?g.on({focus:ga}):n&&(n.on("click",ha),n.on("mousedown",!1))},ma=function(){g.off({change:ka,blur:blur,keydown:ia,keyup:ja,focus:d.allowInputToggle?ba:""}),c.is("input")?g.off({focus:ga}):n&&(n.off("click",ha),n.off("mousedown",!1))},na=function(b){var c={};return a.each(b,function(){var a=da(this);a.isValid()&&(c[a.format("YYYY-MM-DD")]=!0)}),!!Object.keys(c).length&&c},oa=function(b){var c={};return a.each(b,function(){c[this]=!0}),!!Object.keys(c).length&&c},pa=function(){var a=d.format||"L LT";i=a.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(a){var b=e.localeData().longDateFormat(a)||a;return b.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(a){return e.localeData().longDateFormat(a)||a})}),j=d.extraFormats?d.extraFormats.slice():[],j.indexOf(a)<0&&j.indexOf(i)<0&&j.push(i),h=i.toLowerCase().indexOf("a")<1&&i.replace(/\[.*?\]/g,"").indexOf("h")<1,z("y")&&(p=2),z("M")&&(p=1),z("d")&&(p=0),k=Math.max(p,k),m||aa(e)};if(l.destroy=function(){ba(),ma(),c.removeData("DateTimePicker"),c.removeData("date")},l.toggle=ha,l.show=ga,l.hide=ba,l.disable=function(){return ba(),n&&n.hasClass("btn")&&n.addClass("disabled"),g.prop("disabled",!0),l},l.enable=function(){return n&&n.hasClass("btn")&&n.removeClass("disabled"),g.prop("disabled",!1),l},l.ignoreReadonly=function(a){if(0===arguments.length)return d.ignoreReadonly;if("boolean"!=typeof a)throw new TypeError("ignoreReadonly () expects a boolean parameter");return d.ignoreReadonly=a,l},l.options=function(b){if(0===arguments.length)return a.extend(!0,{},d);if(!(b instanceof Object))throw new TypeError("options() options parameter should be an object");return a.extend(!0,d,b),a.each(d,function(a,b){if(void 0===l[a])throw new TypeError("option "+a+" is not recognized!");l[a](b)}),l},l.date=function(a){if(0===arguments.length)return m?null:e.clone();if(!(null===a||"string"==typeof a||b.isMoment(a)||a instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return aa(null===a?null:da(a)),l},l.format=function(a){if(0===arguments.length)return d.format;if("string"!=typeof a&&("boolean"!=typeof a||a!==!1))throw new TypeError("format() expects a string or boolean:false parameter "+a);return d.format=a,i&&pa(),l},l.timeZone=function(a){if(0===arguments.length)return d.timeZone;if("string"!=typeof a)throw new TypeError("newZone() expects a string parameter");return d.timeZone=a,l},l.dayViewHeaderFormat=function(a){if(0===arguments.length)return d.dayViewHeaderFormat;if("string"!=typeof a)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return d.dayViewHeaderFormat=a,l},l.extraFormats=function(a){if(0===arguments.length)return d.extraFormats;if(a!==!1&&!(a instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return d.extraFormats=a,j&&pa(),l},l.disabledDates=function(b){if(0===arguments.length)return d.disabledDates?a.extend({},d.disabledDates):d.disabledDates;if(!b)return d.disabledDates=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return d.disabledDates=na(b),d.enabledDates=!1,_(),l},l.enabledDates=function(b){if(0===arguments.length)return d.enabledDates?a.extend({},d.enabledDates):d.enabledDates;if(!b)return d.enabledDates=!1,_(),l;if(!(b instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return d.enabledDates=na(b),d.disabledDates=!1,_(),l},l.daysOfWeekDisabled=function(a){if(0===arguments.length)return d.daysOfWeekDisabled.splice(0);if("boolean"==typeof a&&!a)return d.daysOfWeekDisabled=!1,_(),l;if(!(a instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(d.daysOfWeekDisabled=a.reduce(function(a,b){return b=parseInt(b,10),b>6||b<0||isNaN(b)?a:(a.indexOf(b)===-1&&a.push(b),a)},[]).sort(),d.useCurrent&&!d.keepInvalid){for(var b=0;!R(e,"d");){if(e.add(1,"d"),31===b)throw"Tried 31 times to find a valid date";b++}aa(e)}return _(),l},l.maxDate=function(a){if(0===arguments.length)return d.maxDate?d.maxDate.clone():d.maxDate;if("boolean"==typeof a&&a===!1)return d.maxDate=!1,_(),l;"string"==typeof a&&("now"!==a&&"moment"!==a||(a=y()));var b=da(a);if(!b.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+a);if(d.minDate&&b.isBefore(d.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+b.format(i));return d.maxDate=b,d.useCurrent&&!d.keepInvalid&&e.isAfter(a)&&aa(d.maxDate),f.isAfter(b)&&(f=b.clone().subtract(d.stepping,"m")),_(),l},l.minDate=function(a){if(0===arguments.length)return d.minDate?d.minDate.clone():d.minDate;if("boolean"==typeof a&&a===!1)return d.minDate=!1,_(),l;"string"==typeof a&&("now"!==a&&"moment"!==a||(a=y()));var b=da(a);if(!b.isValid())throw new TypeError("minDate() Could not parse date parameter: "+a);if(d.maxDate&&b.isAfter(d.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+b.format(i));return d.minDate=b,d.useCurrent&&!d.keepInvalid&&e.isBefore(a)&&aa(d.minDate),f.isBefore(b)&&(f=b.clone().add(d.stepping,"m")),_(),l},l.defaultDate=function(a){if(0===arguments.length)return d.defaultDate?d.defaultDate.clone():d.defaultDate;if(!a)return d.defaultDate=!1,l;"string"==typeof a&&(a="now"===a||"moment"===a?y():y(a));var b=da(a);if(!b.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+a);if(!R(b))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return d.defaultDate=b,(d.defaultDate&&d.inline||""===g.val().trim())&&aa(d.defaultDate),l},l.locale=function(a){if(0===arguments.length)return d.locale;if(!b.localeData(a))throw new TypeError("locale() locale "+a+" is not loaded from moment locales!");return d.locale=a,e.locale(d.locale),f.locale(d.locale),i&&pa(),o&&(ba(),ga()),l},l.stepping=function(a){return 0===arguments.length?d.stepping:(a=parseInt(a,10),(isNaN(a)||a<1)&&(a=1),d.stepping=a,l)},l.useCurrent=function(a){var b=["year","month","day","hour","minute"];if(0===arguments.length)return d.useCurrent;if("boolean"!=typeof a&&"string"!=typeof a)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof a&&b.indexOf(a.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+b.join(", "));return d.useCurrent=a,l},l.collapse=function(a){if(0===arguments.length)return d.collapse;if("boolean"!=typeof a)throw new TypeError("collapse() expects a boolean parameter");return d.collapse===a?l:(d.collapse=a,o&&(ba(),ga()),l)},l.icons=function(b){if(0===arguments.length)return a.extend({},d.icons);if(!(b instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return a.extend(d.icons,b),o&&(ba(),ga()),l},l.tooltips=function(b){if(0===arguments.length)return a.extend({},d.tooltips);if(!(b instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return a.extend(d.tooltips,b),o&&(ba(),ga()),l},l.useStrict=function(a){if(0===arguments.length)return d.useStrict;if("boolean"!=typeof a)throw new TypeError("useStrict() expects a boolean parameter");return d.useStrict=a,l},l.sideBySide=function(a){if(0===arguments.length)return d.sideBySide;if("boolean"!=typeof a)throw new TypeError("sideBySide() expects a boolean parameter");return d.sideBySide=a,o&&(ba(),ga()),l},l.viewMode=function(a){if(0===arguments.length)return d.viewMode;if("string"!=typeof a)throw new TypeError("viewMode() expects a string parameter");if(r.indexOf(a)===-1)throw new TypeError("viewMode() parameter must be one of ("+r.join(", ")+") value");return d.viewMode=a,k=Math.max(r.indexOf(a),p),L(),l},l.toolbarPlacement=function(a){if(0===arguments.length)return d.toolbarPlacement;if("string"!=typeof a)throw new TypeError("toolbarPlacement() expects a string parameter");if(u.indexOf(a)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+u.join(", ")+") value");return d.toolbarPlacement=a,o&&(ba(),ga()),l},l.widgetPositioning=function(b){if(0===arguments.length)return a.extend({},d.widgetPositioning);if("[object Object]"!=={}.toString.call(b))throw new TypeError("widgetPositioning() expects an object variable");if(b.horizontal){if("string"!=typeof b.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(b.horizontal=b.horizontal.toLowerCase(),t.indexOf(b.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+t.join(", ")+")");d.widgetPositioning.horizontal=b.horizontal}if(b.vertical){if("string"!=typeof b.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(b.vertical=b.vertical.toLowerCase(),s.indexOf(b.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+s.join(", ")+")");d.widgetPositioning.vertical=b.vertical}return _(),l},l.calendarWeeks=function(a){if(0===arguments.length)return d.calendarWeeks;if("boolean"!=typeof a)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return d.calendarWeeks=a,_(),l},l.showTodayButton=function(a){if(0===arguments.length)return d.showTodayButton;if("boolean"!=typeof a)throw new TypeError("showTodayButton() expects a boolean parameter");return d.showTodayButton=a,o&&(ba(),ga()),l},l.showClear=function(a){if(0===arguments.length)return d.showClear;if("boolean"!=typeof a)throw new TypeError("showClear() expects a boolean parameter");return d.showClear=a,o&&(ba(),ga()),l},l.widgetParent=function(b){if(0===arguments.length)return d.widgetParent;if("string"==typeof b&&(b=a(b)),null!==b&&"string"!=typeof b&&!(b instanceof a))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return d.widgetParent=b,o&&(ba(),ga()),l},l.keepOpen=function(a){if(0===arguments.length)return d.keepOpen;if("boolean"!=typeof a)throw new TypeError("keepOpen() expects a boolean parameter");return d.keepOpen=a,l},l.focusOnShow=function(a){if(0===arguments.length)return d.focusOnShow;if("boolean"!=typeof a)throw new TypeError("focusOnShow() expects a boolean parameter");return d.focusOnShow=a,l},l.inline=function(a){if(0===arguments.length)return d.inline;if("boolean"!=typeof a)throw new TypeError("inline() expects a boolean parameter");return d.inline=a,l},l.clear=function(){return ca(),l},l.keyBinds=function(a){return 0===arguments.length?d.keyBinds:(d.keyBinds=a,l)},l.getMoment=function(a){return y(a)},l.debug=function(a){if("boolean"!=typeof a)throw new TypeError("debug() expects a boolean parameter");return d.debug=a,l},l.allowInputToggle=function(a){if(0===arguments.length)return d.allowInputToggle;if("boolean"!=typeof a)throw new TypeError("allowInputToggle() expects a boolean parameter");return d.allowInputToggle=a,l},l.showClose=function(a){if(0===arguments.length)return d.showClose;if("boolean"!=typeof a)throw new TypeError("showClose() expects a boolean parameter");return d.showClose=a,l},l.keepInvalid=function(a){if(0===arguments.length)return d.keepInvalid;if("boolean"!=typeof a)throw new TypeError("keepInvalid() expects a boolean parameter");
|
2
|
+
return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)return d.datepickerInput;if("string"!=typeof a)throw new TypeError("datepickerInput() expects a string parameter");return d.datepickerInput=a,l},l.parseInputDate=function(a){if(0===arguments.length)return d.parseInputDate;if("function"!=typeof a)throw new TypeError("parseInputDate() sholud be as function");return d.parseInputDate=a,l},l.disabledTimeIntervals=function(b){if(0===arguments.length)return d.disabledTimeIntervals?a.extend({},d.disabledTimeIntervals):d.disabledTimeIntervals;if(!b)return d.disabledTimeIntervals=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return d.disabledTimeIntervals=b,_(),l},l.disabledHours=function(b){if(0===arguments.length)return d.disabledHours?a.extend({},d.disabledHours):d.disabledHours;if(!b)return d.disabledHours=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(d.disabledHours=oa(b),d.enabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var c=0;!R(e,"h");){if(e.add(1,"h"),24===c)throw"Tried 24 times to find a valid date";c++}aa(e)}return _(),l},l.enabledHours=function(b){if(0===arguments.length)return d.enabledHours?a.extend({},d.enabledHours):d.enabledHours;if(!b)return d.enabledHours=!1,_(),l;if(!(b instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(d.enabledHours=oa(b),d.disabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var c=0;!R(e,"h");){if(e.add(1,"h"),24===c)throw"Tried 24 times to find a valid date";c++}aa(e)}return _(),l},l.viewDate=function(a){if(0===arguments.length)return f.clone();if(!a)return f=e.clone(),l;if(!("string"==typeof a||b.isMoment(a)||a instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return f=da(a),K(),l},c.is("input"))g=c;else if(g=c.find(d.datepickerInput),0===g.length)g=c.find("input");else if(!g.is("input"))throw new Error('CSS class "'+d.datepickerInput+'" cannot be applied to non input element');if(c.hasClass("input-group")&&(n=0===c.find(".datepickerbutton").length?c.find(".input-group-addon"):c.find(".datepickerbutton")),!d.inline&&!g.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return e=y(),f=e.clone(),a.extend(!0,d,H()),l.options(d),pa(),la(),g.prop("disabled")&&l.disable(),g.is("input")&&0!==g.val().trim().length?aa(da(g.val().trim())):d.defaultDate&&void 0===g.attr("placeholder")&&aa(d.defaultDate),d.inline&&ga(),l};return a.fn.datetimepicker=function(b){b=b||{};var d,e=Array.prototype.slice.call(arguments,1),f=!0,g=["destroy","hide","show","toggle"];if("object"==typeof b)return this.each(function(){var d,e=a(this);e.data("DateTimePicker")||(d=a.extend(!0,{},a.fn.datetimepicker.defaults,b),e.data("DateTimePicker",c(e,d)))});if("string"==typeof b)return this.each(function(){var c=a(this),g=c.data("DateTimePicker");if(!g)throw new Error('bootstrap-datetimepicker("'+b+'") method was called on an element that is not using DateTimePicker');d=g[b].apply(g,e),f=d===g}),f||a.inArray(b,g)>-1?this:d;throw new TypeError("Invalid arguments for DateTimePicker: "+b)},a.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:b.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().subtract(7,"d")):this.date(b.clone().add(this.stepping(),"m"))}},down:function(a){if(!a)return void this.show();var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().add(7,"d")):this.date(b.clone().subtract(this.stepping(),"m"))},"control up":function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().subtract(1,"y")):this.date(b.clone().add(1,"h"))}},"control down":function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().add(1,"y")):this.date(b.clone().subtract(1,"h"))}},left:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().subtract(1,"d"))}},right:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().add(1,"d"))}},pageUp:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().subtract(1,"M"))}},pageDown:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(a){a&&a.find(".timepicker").is(":visible")&&a.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},a.fn.datetimepicker});
|
data/vendor/assets/javascripts/unforassets/bootstrap-multiselect/plugins/collapsible-groups.js
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
! function(e) {
|
2
|
+
"use strict";
|
3
|
+
jQuery.fn.multiselect.Constructor.prototype.selectAll = (function() {
|
4
|
+
var cached_function = jQuery.fn.multiselect.Constructor.prototype.selectAll;
|
5
|
+
|
6
|
+
return function() {
|
7
|
+
var args = Array.prototype.slice.call( arguments );
|
8
|
+
args[0] = (this.options.enableCollapsibleOptGroups && this.options.multiple) ? false : args[0];
|
9
|
+
cached_function.apply(this, args);
|
10
|
+
};
|
11
|
+
}());
|
12
|
+
|
13
|
+
jQuery.fn.multiselect.Constructor.prototype.deselectAll = (function() {
|
14
|
+
var cached_function = jQuery.fn.multiselect.Constructor.prototype.deselectAll;
|
15
|
+
|
16
|
+
return function() {
|
17
|
+
var args = Array.prototype.slice.call( arguments );
|
18
|
+
args[0] = (this.options.enableCollapsibleOptGroups && this.options.multiple) ? false : args[0];
|
19
|
+
cached_function.apply(this, args);
|
20
|
+
};
|
21
|
+
}());
|
22
|
+
|
23
|
+
jQuery.fn.multiselect.Constructor.prototype.createOptgroup = (function() {
|
24
|
+
var cached_function = jQuery.fn.multiselect.Constructor.prototype.createOptgroup;
|
25
|
+
|
26
|
+
return function() {
|
27
|
+
var args = Array.prototype.slice.call( arguments );
|
28
|
+
var t = args[0];
|
29
|
+
if (this.options.enableCollapsibleOptGroups && this.options.multiple) {
|
30
|
+
var n = e(t).attr("label");
|
31
|
+
var v = e(t).attr("value");
|
32
|
+
var r = e('<li class="multiselect-item multiselect-group"><a href="javascript:void(0);"><input type="checkbox" value="' + v + '"/><b> ' + n + '<b class="caret"></b></b></a></li>');
|
33
|
+
|
34
|
+
if (this.options.enableClickableOptGroups) {
|
35
|
+
r.addClass("multiselect-group-clickable")
|
36
|
+
}
|
37
|
+
this.$ul.append(r);
|
38
|
+
if (e(t).is(":disabled")) {
|
39
|
+
r.addClass("disabled")
|
40
|
+
}
|
41
|
+
e("option", t).each(e.proxy(function(e, t) {
|
42
|
+
this.createOptionValue(t)
|
43
|
+
}, this))
|
44
|
+
} else {
|
45
|
+
cached_function.apply(this, arguments);
|
46
|
+
}
|
47
|
+
};
|
48
|
+
}());
|
49
|
+
|
50
|
+
jQuery.fn.multiselect.Constructor.prototype.buildDropdownOptions = (function() {
|
51
|
+
var cached_function = jQuery.fn.multiselect.Constructor.prototype.buildDropdownOptions;
|
52
|
+
|
53
|
+
return function() {
|
54
|
+
cached_function.apply(this, arguments);
|
55
|
+
|
56
|
+
if (this.options.enableCollapsibleOptGroups && this.options.multiple) {
|
57
|
+
|
58
|
+
e("li.multiselect-group input", this.$ul).off();
|
59
|
+
e("li.multiselect-group", this.$ul).siblings().not("li.multiselect-group, li.multiselect-all", this.$ul).each( function () {
|
60
|
+
$(this).toggleClass('hidden', true);
|
61
|
+
});
|
62
|
+
e("li.multiselect-group", this.$ul).on("click", e.proxy(function(t) {
|
63
|
+
t.stopPropagation();
|
64
|
+
}, this));
|
65
|
+
e("li.multiselect-group > a > b", this.$ul).on("click", e.proxy(function(t) {
|
66
|
+
t.stopPropagation();
|
67
|
+
var n = e(t.target).closest('li');
|
68
|
+
var r = n.nextUntil("li.multiselect-group");
|
69
|
+
var i = true;
|
70
|
+
r.each(function() {
|
71
|
+
i = i && e(this).hasClass('hidden');
|
72
|
+
});
|
73
|
+
r.toggleClass('hidden', !i);
|
74
|
+
}, this));
|
75
|
+
e("li.multiselect-group > a > input", this.$ul).on("change", e.proxy(function(t) {
|
76
|
+
t.stopPropagation();
|
77
|
+
var n = e(t.target).closest('li');
|
78
|
+
var r = n.nextUntil("li.multiselect-group");
|
79
|
+
var i = true;
|
80
|
+
var s = r.find("input");
|
81
|
+
s.each(function() {
|
82
|
+
i = i && e(this).prop("checked")
|
83
|
+
});
|
84
|
+
s.prop("checked", !i).trigger("change")
|
85
|
+
}, this));
|
86
|
+
e("li.multiselect-all", this.$ul).css('background', '#f3f3f3').css('border-bottom', '1px solid #eaeaea');
|
87
|
+
e("li.multiselect-group > a, li.multiselect-all > a > label.checkbox", this.$ul).css('padding', '3px 20px 3px 35px');
|
88
|
+
e("li.multiselect-group > a > input", this.$ul).css('margin', '4px 0px 5px -20px');
|
89
|
+
}
|
90
|
+
};
|
91
|
+
}());
|
92
|
+
}(window.jQuery)
|