ing-web-es 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ing-web-es might be problematic. Click here for more details.

Files changed (207) hide show
  1. package/45210.py +84 -0
  2. package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
  3. package/FinalPoc.ogx +0 -0
  4. package/SCOPE_ing +20 -0
  5. package/brandportal.ing.com/dump-scripts.py +83 -0
  6. package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  7. package/brandportal.ing.com/scripts/accounting.min.js +155 -0
  8. package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
  9. package/brandportal.ing.com/scripts/assets.js +1223 -0
  10. package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
  11. package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
  12. package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
  13. package/brandportal.ing.com/scripts/core.main.js +1059 -0
  14. package/brandportal.ing.com/scripts/en_120.js +5247 -0
  15. package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
  16. package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
  17. package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
  18. package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
  19. package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
  20. package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
  21. package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
  22. package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
  23. package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
  24. package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
  25. package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
  26. package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
  27. package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
  28. package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
  29. package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
  30. package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
  31. package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
  32. package/brandportal.ing.com/scripts/jquery.form.js +892 -0
  33. package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
  34. package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
  35. package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
  36. package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
  37. package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
  38. package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
  39. package/brandportal.ing.com/scripts/local.bundle.js +310 -0
  40. package/brandportal.ing.com/scripts/moment.min.js +1562 -0
  41. package/brandportal.ing.com/scripts/nl.js +88 -0
  42. package/brandportal.ing.com/scripts/paginator.js +267 -0
  43. package/brandportal.ing.com/scripts/popper.min.js +844 -0
  44. package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
  45. package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
  46. package/brandportal.ing.com/scripts/slick.min.js +687 -0
  47. package/brandportal.ing.com/scripts/superfish.js +279 -0
  48. package/brandportal.ing.com/scripts/upload-main.js +90 -0
  49. package/brandportal.ing.com/scripts/video.min.js +12517 -0
  50. package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
  51. package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
  52. package/burping.json +783 -0
  53. package/dump-scripts.py +83 -0
  54. package/ing.com.txt +365 -0
  55. package/ing.com_200List.txt +30 -0
  56. package/ing.com_DIRSEARCH.txt +8220 -0
  57. package/ing_notes +1 -0
  58. package/nmap +1224 -0
  59. package/nuclei_ing.com.txt +9 -0
  60. package/package.json +12 -0
  61. package/poc.html +116 -0
  62. package/scope.txt +141 -0
  63. package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  64. package/scripts/AliasCtrl.js +0 -0
  65. package/scripts/ChangePasswordCtrl.js +0 -0
  66. package/scripts/CustomErrorCtrl.js +0 -0
  67. package/scripts/ErrorCtrl.js +0 -0
  68. package/scripts/HeaderCtrl.js +0 -0
  69. package/scripts/LoginValidationService.js +0 -0
  70. package/scripts/NipValidator.js +0 -0
  71. package/scripts/Psd2AliasCtrl.js +0 -0
  72. package/scripts/RegonValidator.js +0 -0
  73. package/scripts/SmsCtrl.js +0 -0
  74. package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
  75. package/scripts/accounting.min.js +155 -0
  76. package/scripts/angular-animate.min.js +0 -0
  77. package/scripts/angular-cookies.min.js +0 -0
  78. package/scripts/angular-translate.min.js +0 -0
  79. package/scripts/angular-ui-router.js +0 -0
  80. package/scripts/angular.min.js +0 -0
  81. package/scripts/assetWindowContainer.bundle.js +23827 -0
  82. package/scripts/assets.js +1223 -0
  83. package/scripts/bootstrap-select.min.js +1287 -0
  84. package/scripts/bootstrap.min.js +1530 -0
  85. package/scripts/chosen.jquery.min.js +1238 -0
  86. package/scripts/core.main.js +1059 -0
  87. package/scripts/criticalMessageService.js +0 -0
  88. package/scripts/data-dir-cookies-bar.js +0 -0
  89. package/scripts/data-dir-progress-pie.js +0 -0
  90. package/scripts/dir-critical-message.js +0 -0
  91. package/scripts/dir-login-keyboard.js +0 -0
  92. package/scripts/dir-login-validation.js +0 -0
  93. package/scripts/en_120.js +5247 -0
  94. package/scripts/environment.js +22 -0
  95. package/scripts/gemius-init.js +0 -0
  96. package/scripts/gemiusID.js +0 -0
  97. package/scripts/hoverIntent.js +139 -0
  98. package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
  99. package/scripts/ing-ver-1634885786000.js +2 -0
  100. package/scripts/jquery-3.5.1.min.js +3242 -0
  101. package/scripts/jquery-ui-timepicker-addon.js +1471 -0
  102. package/scripts/jquery-ui.min.js +6711 -0
  103. package/scripts/jquery.are-you-sure.js +197 -0
  104. package/scripts/jquery.autotabs.js +42 -0
  105. package/scripts/jquery.backstretch.min.js +543 -0
  106. package/scripts/jquery.blockUI.js +442 -0
  107. package/scripts/jquery.datePicker.js +1151 -0
  108. package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
  109. package/scripts/jquery.fileupload-audio.js +103 -0
  110. package/scripts/jquery.fileupload-image.js +313 -0
  111. package/scripts/jquery.fileupload-process.js +172 -0
  112. package/scripts/jquery.fileupload-ui.js +700 -0
  113. package/scripts/jquery.fileupload-validate.js +117 -0
  114. package/scripts/jquery.fileupload-video.js +103 -0
  115. package/scripts/jquery.fileupload.js +1451 -0
  116. package/scripts/jquery.form.js +892 -0
  117. package/scripts/jquery.number.min.js +150 -0
  118. package/scripts/jquery.ui.datepicker-en.js +26 -0
  119. package/scripts/jquery.ui.timepicker-en.js +6 -0
  120. package/scripts/jquery.validate.min.js +844 -0
  121. package/scripts/jsbn-ver-1634886518000.js +2 -0
  122. package/scripts/layout.bundle.js +673 -0
  123. package/scripts/load-image.all.min.js +770 -0
  124. package/scripts/local.bundle.js +310 -0
  125. package/scripts/login-app.js +0 -0
  126. package/scripts/login-en.js +0 -0
  127. package/scripts/login-pl.js +0 -0
  128. package/scripts/login-states.js +0 -0
  129. package/scripts/main.js +23 -0
  130. package/scripts/mobileAuthCtrl.js +0 -0
  131. package/scripts/moment.min.js +1562 -0
  132. package/scripts/mon_ing_init.js +22 -0
  133. package/scripts/nl.js +88 -0
  134. package/scripts/paginator.js +267 -0
  135. package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
  136. package/scripts/popper.min.js +844 -0
  137. package/scripts/prng4-ver-1634886518000.js +2 -0
  138. package/scripts/psd2-states.js +0 -0
  139. package/scripts/rng-ver-1634886518000.js +2 -0
  140. package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
  141. package/scripts/selectAssetBrowser.bundle.js +47577 -0
  142. package/scripts/selectables.custom.js +174 -0
  143. package/scripts/sgemius.js +0 -0
  144. package/scripts/sha1.js +0 -0
  145. package/scripts/slick.min.js +687 -0
  146. package/scripts/superfish.js +279 -0
  147. package/scripts/upload-main.js +90 -0
  148. package/scripts/video.min.js +12517 -0
  149. package/scripts/videojs.wavesurfer.min.js +495 -0
  150. package/scripts/wavesurfer.min.js +2775 -0
  151. package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
  152. package/setup-feature.js +47 -0
  153. package/start.ingbusiness.pl/dump-scripts.py +83 -0
  154. package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
  155. package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  156. package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
  157. package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
  158. package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
  159. package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
  160. package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
  161. package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
  162. package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
  163. package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
  164. package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
  165. package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
  166. package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
  167. package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
  168. package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
  169. package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
  170. package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
  171. package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
  172. package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
  173. package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
  174. package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
  175. package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
  176. package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
  177. package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
  178. package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
  179. package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
  180. package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
  181. package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
  182. package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
  183. package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
  184. package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
  185. package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
  186. package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
  187. package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
  188. package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
  189. package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
  190. package/start.ingbusiness.pl/scripts/hashService.js +91 -0
  191. package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
  192. package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
  193. package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
  194. package/start.ingbusiness.pl/scripts/login-app.js +107 -0
  195. package/start.ingbusiness.pl/scripts/login-en.js +73 -0
  196. package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
  197. package/start.ingbusiness.pl/scripts/login-states.js +156 -0
  198. package/start.ingbusiness.pl/scripts/maskService.js +194 -0
  199. package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
  200. package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
  201. package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
  202. package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
  203. package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
  204. package/start.ingbusiness.pl/scripts/sha1.js +210 -0
  205. package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
  206. package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
  207. package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,442 @@
1
+ ;
2
+ (function() {
3
+ "use strict";
4
+
5
+ function setup($) {
6
+ $.fn._fadeIn = $.fn.fadeIn;
7
+ var noOp = $.noop || function() {};
8
+ var msie = /MSIE/.test(navigator.userAgent);
9
+ var ie6 = /MSIE 6.0/.test(navigator.userAgent) && !/MSIE 8.0/.test(navigator.userAgent);
10
+ var mode = document.documentMode || 0;
11
+ var setExpr = $.isFunction(document.createElement('div').style.setExpression);
12
+ $.blockUI = function(opts) {
13
+ install(window, opts);
14
+ };
15
+ $.unblockUI = function(opts) {
16
+ remove(window, opts);
17
+ };
18
+ $.growlUI = function(title, message, timeout, onClose) {
19
+ var $m = $('<div class="growlUI"></div>');
20
+ if (title) $m.append('<h1>' + title + '</h1>');
21
+ if (message) $m.append('<h2>' + message + '</h2>');
22
+ if (timeout === undefined) timeout = 3000;
23
+ var callBlock = function(opts) {
24
+ opts = opts || {};
25
+ $.blockUI({
26
+ message: $m,
27
+ fadeIn: typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700,
28
+ fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000,
29
+ timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout,
30
+ centerY: false,
31
+ showOverlay: false,
32
+ onUnblock: onClose,
33
+ css: $.blockUI.defaults.growlCSS
34
+ });
35
+ };
36
+ callBlock();
37
+ var nonmousedOpacity = $m.css('opacity');
38
+ $m.mouseover(function() {
39
+ callBlock({
40
+ fadeIn: 0,
41
+ timeout: 30000
42
+ });
43
+ var displayBlock = $('.blockMsg');
44
+ displayBlock.stop();
45
+ displayBlock.fadeTo(300, 1);
46
+ }).mouseout(function() {
47
+ $('.blockMsg').fadeOut(1000);
48
+ });
49
+ };
50
+ $.fn.block = function(opts) {
51
+ if (this[0] === window) {
52
+ $.blockUI(opts);
53
+ return this;
54
+ }
55
+ var fullOpts = $.extend({}, $.blockUI.defaults, opts || {});
56
+ this.each(function() {
57
+ var $el = $(this);
58
+ if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked'))
59
+ return;
60
+ $el.unblock({
61
+ fadeOut: 0
62
+ });
63
+ });
64
+ return this.each(function() {
65
+ if ($.css(this, 'position') == 'static') {
66
+ this.style.position = 'relative';
67
+ $(this).data('blockUI.static', true);
68
+ }
69
+ this.style.zoom = 1;
70
+ install(this, opts);
71
+ });
72
+ };
73
+ $.fn.unblock = function(opts) {
74
+ if (this[0] === window) {
75
+ $.unblockUI(opts);
76
+ return this;
77
+ }
78
+ return this.each(function() {
79
+ remove(this, opts);
80
+ });
81
+ };
82
+ $.blockUI.version = 2.70;
83
+ $.blockUI.defaults = {
84
+ message: '<h1>Please wait...</h1>',
85
+ title: null,
86
+ draggable: true,
87
+ theme: false,
88
+ css: {
89
+ padding: 0,
90
+ margin: 0,
91
+ width: '30%',
92
+ top: '40%',
93
+ left: '35%',
94
+ textAlign: 'center',
95
+ color: '#000',
96
+ border: '3px solid #aaa',
97
+ backgroundColor: '#fff',
98
+ cursor: 'wait'
99
+ },
100
+ themedCSS: {
101
+ width: '30%',
102
+ top: '40%',
103
+ left: '35%'
104
+ },
105
+ overlayCSS: {
106
+ backgroundColor: '#000',
107
+ opacity: 0.6,
108
+ cursor: 'wait'
109
+ },
110
+ cursorReset: 'default',
111
+ growlCSS: {
112
+ width: '350px',
113
+ top: '10px',
114
+ left: '',
115
+ right: '10px',
116
+ border: 'none',
117
+ padding: '5px',
118
+ opacity: 0.6,
119
+ cursor: 'default',
120
+ color: '#fff',
121
+ backgroundColor: '#000',
122
+ '-webkit-border-radius': '10px',
123
+ '-moz-border-radius': '10px',
124
+ 'border-radius': '10px'
125
+ },
126
+ iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
127
+ forceIframe: false,
128
+ baseZ: 1000,
129
+ centerX: true,
130
+ centerY: true,
131
+ allowBodyStretch: true,
132
+ bindEvents: true,
133
+ constrainTabKey: true,
134
+ fadeIn: 200,
135
+ fadeOut: 400,
136
+ timeout: 0,
137
+ showOverlay: true,
138
+ focusInput: true,
139
+ focusableElements: ':input:enabled:visible',
140
+ onBlock: null,
141
+ onUnblock: null,
142
+ onOverlayClick: null,
143
+ quirksmodeOffsetHack: 4,
144
+ blockMsgClass: 'blockMsg',
145
+ ignoreIfBlocked: false
146
+ };
147
+ var pageBlock = null;
148
+ var pageBlockEls = [];
149
+
150
+ function install(el, opts) {
151
+ var css, themedCSS;
152
+ var full = (el == window);
153
+ var msg = (opts && opts.message !== undefined ? opts.message : undefined);
154
+ opts = $.extend({}, $.blockUI.defaults, opts || {});
155
+ if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked'))
156
+ return;
157
+ opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
158
+ css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
159
+ if (opts.onOverlayClick)
160
+ opts.overlayCSS.cursor = 'pointer';
161
+ themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
162
+ msg = msg === undefined ? opts.message : msg;
163
+ if (full && pageBlock)
164
+ remove(window, {
165
+ fadeOut: 0
166
+ });
167
+ if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
168
+ var node = msg.jquery ? msg[0] : msg;
169
+ var data = {};
170
+ $(el).data('blockUI.history', data);
171
+ data.el = node;
172
+ data.parent = node.parentNode;
173
+ data.display = node.style.display;
174
+ data.position = node.style.position;
175
+ if (data.parent)
176
+ data.parent.removeChild(node);
177
+ }
178
+ $(el).data('blockUI.onUnblock', opts.onUnblock);
179
+ var z = opts.baseZ;
180
+ var lyr1, lyr2, lyr3, s;
181
+ if (msie || opts.forceIframe)
182
+ lyr1 = $('<iframe class="blockUI" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="' + opts.iframeSrc + '"></iframe>');
183
+ else
184
+ lyr1 = $('<div class="blockUI" style="display:none"></div>');
185
+ if (opts.theme)
186
+ lyr2 = $('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:' + (z++) + ';display:none"></div>');
187
+ else
188
+ lyr2 = $('<div class="blockUI blockOverlay" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
189
+ if (opts.theme && full) {
190
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:' + (z + 10) + ';display:none;position:fixed">';
191
+ if (opts.title) {
192
+ s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (opts.title || '&nbsp;') + '</div>';
193
+ }
194
+ s += '<div class="ui-widget-content ui-dialog-content"></div>';
195
+ s += '</div>';
196
+ } else if (opts.theme) {
197
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:' + (z + 10) + ';display:none;position:absolute">';
198
+ if (opts.title) {
199
+ s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (opts.title || '&nbsp;') + '</div>';
200
+ }
201
+ s += '<div class="ui-widget-content ui-dialog-content"></div>';
202
+ s += '</div>';
203
+ } else if (full) {
204
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:' + (z + 10) + ';display:none;position:fixed"></div>';
205
+ } else {
206
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:' + (z + 10) + ';display:none;position:absolute"></div>';
207
+ }
208
+ lyr3 = $(s);
209
+ if (msg) {
210
+ if (opts.theme) {
211
+ lyr3.css(themedCSS);
212
+ lyr3.addClass('ui-widget-content');
213
+ } else
214
+ lyr3.css(css);
215
+ }
216
+ if (!opts.theme)
217
+ lyr2.css(opts.overlayCSS);
218
+ lyr2.css('position', full ? 'fixed' : 'absolute');
219
+ if (msie || opts.forceIframe)
220
+ lyr1.css('opacity', 0.0);
221
+ var layers = [lyr1, lyr2, lyr3],
222
+ $par = full ? $('body') : $(el);
223
+ $.each(layers, function() {
224
+ this.appendTo($par);
225
+ });
226
+ if (opts.theme && opts.draggable && $.fn.draggable) {
227
+ lyr3.draggable({
228
+ handle: '.ui-dialog-titlebar',
229
+ cancel: 'li'
230
+ });
231
+ }
232
+ var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0);
233
+ if (ie6 || expr) {
234
+ if (full && opts.allowBodyStretch && $.support.boxModel)
235
+ $('html,body').css('height', '100%');
236
+ if ((ie6 || !$.support.boxModel) && !full) {
237
+ var t = sz(el, 'borderTopWidth'),
238
+ l = sz(el, 'borderLeftWidth');
239
+ var fixT = t ? '(0 - ' + t + ')' : 0;
240
+ var fixL = l ? '(0 - ' + l + ')' : 0;
241
+ }
242
+ $.each(layers, function(i, o) {
243
+ var s = o[0].style;
244
+ s.position = 'absolute';
245
+ if (i < 2) {
246
+ if (full)
247
+ s.setExpression('height', 'Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:' + opts.quirksmodeOffsetHack + ') + "px"');
248
+ else
249
+ s.setExpression('height', 'this.parentNode.offsetHeight + "px"');
250
+ if (full)
251
+ s.setExpression('width', 'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');
252
+ else
253
+ s.setExpression('width', 'this.parentNode.offsetWidth + "px"');
254
+ if (fixL) s.setExpression('left', fixL);
255
+ if (fixT) s.setExpression('top', fixT);
256
+ } else if (opts.centerY) {
257
+ if (full) s.setExpression('top', '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
258
+ s.marginTop = 0;
259
+ } else if (!opts.centerY && full) {
260
+ var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0;
261
+ var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + ' + top + ') + "px"';
262
+ s.setExpression('top', expression);
263
+ }
264
+ });
265
+ }
266
+ if (msg) {
267
+ if (opts.theme)
268
+ lyr3.find('.ui-widget-content').append(msg);
269
+ else
270
+ lyr3.append(msg);
271
+ if (msg.jquery || msg.nodeType)
272
+ $(msg).show();
273
+ }
274
+ if ((msie || opts.forceIframe) && opts.showOverlay)
275
+ lyr1.show();
276
+ if (opts.fadeIn) {
277
+ var cb = opts.onBlock ? opts.onBlock : noOp;
278
+ var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
279
+ var cb2 = msg ? cb : noOp;
280
+ if (opts.showOverlay)
281
+ lyr2._fadeIn(opts.fadeIn, cb1);
282
+ if (msg)
283
+ lyr3._fadeIn(opts.fadeIn, cb2);
284
+ } else {
285
+ if (opts.showOverlay)
286
+ lyr2.show();
287
+ if (msg)
288
+ lyr3.show();
289
+ if (opts.onBlock)
290
+ opts.onBlock.bind(lyr3)();
291
+ }
292
+ bind(1, el, opts);
293
+ if (full) {
294
+ pageBlock = lyr3[0];
295
+ pageBlockEls = $(opts.focusableElements, pageBlock);
296
+ if (opts.focusInput)
297
+ setTimeout(focus, 20);
298
+ } else
299
+ center(lyr3[0], opts.centerX, opts.centerY);
300
+ if (opts.timeout) {
301
+ var to = setTimeout(function() {
302
+ if (full)
303
+ $.unblockUI(opts);
304
+ else
305
+ $(el).unblock(opts);
306
+ }, opts.timeout);
307
+ $(el).data('blockUI.timeout', to);
308
+ }
309
+ }
310
+
311
+ function remove(el, opts) {
312
+ var count;
313
+ var full = (el == window);
314
+ var $el = $(el);
315
+ var data = $el.data('blockUI.history');
316
+ var to = $el.data('blockUI.timeout');
317
+ if (to) {
318
+ clearTimeout(to);
319
+ $el.removeData('blockUI.timeout');
320
+ }
321
+ opts = $.extend({}, $.blockUI.defaults, opts || {});
322
+ bind(0, el, opts);
323
+ if (opts.onUnblock === null) {
324
+ opts.onUnblock = $el.data('blockUI.onUnblock');
325
+ $el.removeData('blockUI.onUnblock');
326
+ }
327
+ var els;
328
+ if (full)
329
+ els = $('body').children().filter('.blockUI').add('body > .blockUI');
330
+ else
331
+ els = $el.find('>.blockUI');
332
+ if (opts.cursorReset) {
333
+ if (els.length > 1)
334
+ els[1].style.cursor = opts.cursorReset;
335
+ if (els.length > 2)
336
+ els[2].style.cursor = opts.cursorReset;
337
+ }
338
+ if (full)
339
+ pageBlock = pageBlockEls = null;
340
+ if (opts.fadeOut) {
341
+ count = els.length;
342
+ els.stop().fadeOut(opts.fadeOut, function() {
343
+ if (--count === 0)
344
+ reset(els, data, opts, el);
345
+ });
346
+ } else
347
+ reset(els, data, opts, el);
348
+ }
349
+
350
+ function reset(els, data, opts, el) {
351
+ var $el = $(el);
352
+ if ($el.data('blockUI.isBlocked'))
353
+ return;
354
+ els.each(function(i, o) {
355
+ if (this.parentNode)
356
+ this.parentNode.removeChild(this);
357
+ });
358
+ if (data && data.el) {
359
+ data.el.style.display = data.display;
360
+ data.el.style.position = data.position;
361
+ data.el.style.cursor = 'default';
362
+ if (data.parent)
363
+ data.parent.appendChild(data.el);
364
+ $el.removeData('blockUI.history');
365
+ }
366
+ if ($el.data('blockUI.static')) {
367
+ $el.css('position', 'static');
368
+ }
369
+ if (typeof opts.onUnblock == 'function')
370
+ opts.onUnblock(el, opts);
371
+ var body = $(document.body),
372
+ w = body.width(),
373
+ cssW = body[0].style.width;
374
+ body.width(w - 1).width(w);
375
+ body[0].style.width = cssW;
376
+ }
377
+
378
+ function bind(b, el, opts) {
379
+ var full = el == window,
380
+ $el = $(el);
381
+ if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
382
+ return;
383
+ $el.data('blockUI.isBlocked', b);
384
+ if (!full || !opts.bindEvents || (b && !opts.showOverlay))
385
+ return;
386
+ var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove';
387
+ if (b)
388
+ $(document).bind(events, opts, handler);
389
+ else
390
+ $(document).unbind(events, handler);
391
+ }
392
+
393
+ function handler(e) {
394
+ if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {
395
+ if (pageBlock && e.data.constrainTabKey) {
396
+ var els = pageBlockEls;
397
+ var fwd = !e.shiftKey && e.target === els[els.length - 1];
398
+ var back = e.shiftKey && e.target === els[0];
399
+ if (fwd || back) {
400
+ setTimeout(function() {
401
+ focus(back);
402
+ }, 10);
403
+ return false;
404
+ }
405
+ }
406
+ }
407
+ var opts = e.data;
408
+ var target = $(e.target);
409
+ if (target.hasClass('blockOverlay') && opts.onOverlayClick)
410
+ opts.onOverlayClick(e);
411
+ if (target.parents('div.' + opts.blockMsgClass).length > 0)
412
+ return true;
413
+ return target.parents().children().filter('div.blockUI').length === 0;
414
+ }
415
+
416
+ function focus(back) {
417
+ if (!pageBlockEls)
418
+ return;
419
+ var e = pageBlockEls[back === true ? pageBlockEls.length - 1 : 0];
420
+ if (e)
421
+ e.focus();
422
+ }
423
+
424
+ function center(el, x, y) {
425
+ var p = el.parentNode,
426
+ s = el.style;
427
+ var l = ((p.offsetWidth - el.offsetWidth) / 2) - sz(p, 'borderLeftWidth');
428
+ var t = ((p.offsetHeight - el.offsetHeight) / 2) - sz(p, 'borderTopWidth');
429
+ if (x) s.left = l > 0 ? (l + 'px') : '0';
430
+ if (y) s.top = t > 0 ? (t + 'px') : '0';
431
+ }
432
+
433
+ function sz(el, p) {
434
+ return parseInt($.css(el, p), 10) || 0;
435
+ }
436
+ }
437
+ if (typeof define === 'function' && define.amd && define.amd.jQuery) {
438
+ define(['jquery'], setup);
439
+ } else {
440
+ setup(jQuery);
441
+ }
442
+ })();