ext_sprockets 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (505) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +114 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +21 -0
  5. data/Gemfile.lock +77 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README.md +3 -0
  8. data/bin/yarn +12 -0
  9. data/ext_sprockets.gemspec +22 -0
  10. data/lib/ext_sprockets.rb +5 -0
  11. data/lib/ext_sprockets/engine.rb +11 -0
  12. data/lib/ext_sprockets/version.rb +3 -0
  13. data/node_modules/.yarn-integrity +60 -0
  14. data/node_modules/bootswatch/cerulean/_bootswatch.scss +131 -0
  15. data/node_modules/bootswatch/cerulean/_variables.scss +870 -0
  16. data/node_modules/bootswatch/cosmo/_bootswatch.scss +262 -0
  17. data/node_modules/bootswatch/cosmo/_variables.scss +870 -0
  18. data/node_modules/bootswatch/cyborg/_bootswatch.scss +243 -0
  19. data/node_modules/bootswatch/cyborg/_variables.scss +870 -0
  20. data/node_modules/bootswatch/darkly/_bootswatch.scss +351 -0
  21. data/node_modules/bootswatch/darkly/_variables.scss +870 -0
  22. data/node_modules/bootswatch/flatly/_bootswatch.scss +330 -0
  23. data/node_modules/bootswatch/flatly/_variables.scss +870 -0
  24. data/node_modules/bootswatch/journal/_bootswatch.scss +145 -0
  25. data/node_modules/bootswatch/journal/_variables.scss +870 -0
  26. data/node_modules/bootswatch/lumen/_bootswatch.scss +523 -0
  27. data/node_modules/bootswatch/lumen/_variables.scss +870 -0
  28. data/node_modules/bootswatch/package.json +26 -0
  29. data/node_modules/bootswatch/paper/_bootswatch.scss +620 -0
  30. data/node_modules/bootswatch/paper/_variables.scss +870 -0
  31. data/node_modules/bootswatch/readable/_bootswatch.scss +183 -0
  32. data/node_modules/bootswatch/readable/_variables.scss +870 -0
  33. data/node_modules/bootswatch/sandstone/_bootswatch.scss +196 -0
  34. data/node_modules/bootswatch/sandstone/_variables.scss +870 -0
  35. data/node_modules/bootswatch/simplex/_bootswatch.scss +170 -0
  36. data/node_modules/bootswatch/simplex/_variables.scss +870 -0
  37. data/node_modules/bootswatch/slate/_bootswatch.scss +448 -0
  38. data/node_modules/bootswatch/slate/_variables.scss +870 -0
  39. data/node_modules/bootswatch/spacelab/_bootswatch.scss +142 -0
  40. data/node_modules/bootswatch/spacelab/_variables.scss +870 -0
  41. data/node_modules/bootswatch/superhero/_bootswatch.scss +360 -0
  42. data/node_modules/bootswatch/superhero/_variables.scss +870 -0
  43. data/node_modules/bootswatch/united/_bootswatch.scss +56 -0
  44. data/node_modules/bootswatch/united/_variables.scss +870 -0
  45. data/node_modules/bootswatch/yeti/_bootswatch.scss +445 -0
  46. data/node_modules/bootswatch/yeti/_variables.scss +870 -0
  47. data/node_modules/chart.js/dist/Chart.bundle.js +18608 -0
  48. data/node_modules/chart.js/dist/Chart.js +14145 -0
  49. data/node_modules/chart.js/package.json +54 -0
  50. data/node_modules/chartkick/chartkick.js +1866 -0
  51. data/node_modules/chartkick/package.json +25 -0
  52. data/node_modules/eonasdan-bootstrap-datetimepicker/package.json +51 -0
  53. data/node_modules/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +2636 -0
  54. data/node_modules/eonasdan-bootstrap-datetimepicker/src/sass/_bootstrap-datetimepicker.scss +344 -0
  55. data/node_modules/eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build.scss +16 -0
  56. data/node_modules/file-saver/FileSaver.js +188 -0
  57. data/node_modules/file-saver/package.json +28 -0
  58. data/node_modules/jquery-pjax/jquery.pjax.js +903 -0
  59. data/node_modules/jquery-pjax/package.json +18 -0
  60. data/node_modules/jquery-ui/package.json +74 -0
  61. data/node_modules/jquery-ui/themes/base/accordion.css +23 -0
  62. data/node_modules/jquery-ui/themes/base/all.css +12 -0
  63. data/node_modules/jquery-ui/themes/base/autocomplete.css +16 -0
  64. data/node_modules/jquery-ui/themes/base/base.css +30 -0
  65. data/node_modules/jquery-ui/themes/base/button.css +82 -0
  66. data/node_modules/jquery-ui/themes/base/checkboxradio.css +34 -0
  67. data/node_modules/jquery-ui/themes/base/controlgroup.css +65 -0
  68. data/node_modules/jquery-ui/themes/base/core.css +97 -0
  69. data/node_modules/jquery-ui/themes/base/datepicker.css +185 -0
  70. data/node_modules/jquery-ui/themes/base/dialog.css +101 -0
  71. data/node_modules/jquery-ui/themes/base/draggable.css +12 -0
  72. data/node_modules/jquery-ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  73. data/node_modules/jquery-ui/themes/base/images/ui-icons_444444_256x240.png +0 -0
  74. data/node_modules/jquery-ui/themes/base/images/ui-icons_555555_256x240.png +0 -0
  75. data/node_modules/jquery-ui/themes/base/images/ui-icons_777620_256x240.png +0 -0
  76. data/node_modules/jquery-ui/themes/base/images/ui-icons_777777_256x240.png +0 -0
  77. data/node_modules/jquery-ui/themes/base/images/ui-icons_cc0000_256x240.png +0 -0
  78. data/node_modules/jquery-ui/themes/base/images/ui-icons_ffffff_256x240.png +0 -0
  79. data/node_modules/jquery-ui/themes/base/menu.css +64 -0
  80. data/node_modules/jquery-ui/themes/base/progressbar.css +28 -0
  81. data/node_modules/jquery-ui/themes/base/resizable.css +78 -0
  82. data/node_modules/jquery-ui/themes/base/selectable.css +17 -0
  83. data/node_modules/jquery-ui/themes/base/selectmenu.css +50 -0
  84. data/node_modules/jquery-ui/themes/base/slider.css +75 -0
  85. data/node_modules/jquery-ui/themes/base/sortable.css +12 -0
  86. data/node_modules/jquery-ui/themes/base/spinner.css +52 -0
  87. data/node_modules/jquery-ui/themes/base/tabs.css +51 -0
  88. data/node_modules/jquery-ui/themes/base/theme.css +443 -0
  89. data/node_modules/jquery-ui/themes/base/tooltip.css +19 -0
  90. data/node_modules/jquery-ui/ui/core.js +21 -0
  91. data/node_modules/jquery-ui/ui/data.js +39 -0
  92. data/node_modules/jquery-ui/ui/disable-selection.js +46 -0
  93. data/node_modules/jquery-ui/ui/effect.js +1635 -0
  94. data/node_modules/jquery-ui/ui/effects/effect-blind.js +70 -0
  95. data/node_modules/jquery-ui/ui/effects/effect-bounce.js +110 -0
  96. data/node_modules/jquery-ui/ui/effects/effect-clip.js +65 -0
  97. data/node_modules/jquery-ui/ui/effects/effect-drop.js +69 -0
  98. data/node_modules/jquery-ui/ui/effects/effect-explode.js +111 -0
  99. data/node_modules/jquery-ui/ui/effects/effect-fade.js +47 -0
  100. data/node_modules/jquery-ui/ui/effects/effect-fold.js +89 -0
  101. data/node_modules/jquery-ui/ui/effects/effect-highlight.js +57 -0
  102. data/node_modules/jquery-ui/ui/effects/effect-puff.js +42 -0
  103. data/node_modules/jquery-ui/ui/effects/effect-pulsate.js +64 -0
  104. data/node_modules/jquery-ui/ui/effects/effect-scale.js +56 -0
  105. data/node_modules/jquery-ui/ui/effects/effect-shake.js +74 -0
  106. data/node_modules/jquery-ui/ui/effects/effect-size.js +191 -0
  107. data/node_modules/jquery-ui/ui/effects/effect-slide.js +76 -0
  108. data/node_modules/jquery-ui/ui/effects/effect-transfer.js +40 -0
  109. data/node_modules/jquery-ui/ui/escape-selector.js +21 -0
  110. data/node_modules/jquery-ui/ui/focusable.js +84 -0
  111. data/node_modules/jquery-ui/ui/form-reset-mixin.js +77 -0
  112. data/node_modules/jquery-ui/ui/form.js +20 -0
  113. data/node_modules/jquery-ui/ui/i18n/datepicker-af.js +37 -0
  114. data/node_modules/jquery-ui/ui/i18n/datepicker-ar-DZ.js +39 -0
  115. data/node_modules/jquery-ui/ui/i18n/datepicker-ar.js +39 -0
  116. data/node_modules/jquery-ui/ui/i18n/datepicker-az.js +37 -0
  117. data/node_modules/jquery-ui/ui/i18n/datepicker-be.js +37 -0
  118. data/node_modules/jquery-ui/ui/i18n/datepicker-bg.js +38 -0
  119. data/node_modules/jquery-ui/ui/i18n/datepicker-bs.js +37 -0
  120. data/node_modules/jquery-ui/ui/i18n/datepicker-ca.js +37 -0
  121. data/node_modules/jquery-ui/ui/i18n/datepicker-cs.js +37 -0
  122. data/node_modules/jquery-ui/ui/i18n/datepicker-cy-GB.js +45 -0
  123. data/node_modules/jquery-ui/ui/i18n/datepicker-da.js +37 -0
  124. data/node_modules/jquery-ui/ui/i18n/datepicker-de.js +37 -0
  125. data/node_modules/jquery-ui/ui/i18n/datepicker-el.js +37 -0
  126. data/node_modules/jquery-ui/ui/i18n/datepicker-en-AU.js +37 -0
  127. data/node_modules/jquery-ui/ui/i18n/datepicker-en-GB.js +37 -0
  128. data/node_modules/jquery-ui/ui/i18n/datepicker-en-NZ.js +37 -0
  129. data/node_modules/jquery-ui/ui/i18n/datepicker-eo.js +37 -0
  130. data/node_modules/jquery-ui/ui/i18n/datepicker-es.js +37 -0
  131. data/node_modules/jquery-ui/ui/i18n/datepicker-et.js +45 -0
  132. data/node_modules/jquery-ui/ui/i18n/datepicker-eu.js +36 -0
  133. data/node_modules/jquery-ui/ui/i18n/datepicker-fa.js +73 -0
  134. data/node_modules/jquery-ui/ui/i18n/datepicker-fi.js +37 -0
  135. data/node_modules/jquery-ui/ui/i18n/datepicker-fo.js +45 -0
  136. data/node_modules/jquery-ui/ui/i18n/datepicker-fr-CA.js +37 -0
  137. data/node_modules/jquery-ui/ui/i18n/datepicker-fr-CH.js +37 -0
  138. data/node_modules/jquery-ui/ui/i18n/datepicker-fr.js +39 -0
  139. data/node_modules/jquery-ui/ui/i18n/datepicker-gl.js +37 -0
  140. data/node_modules/jquery-ui/ui/i18n/datepicker-he.js +37 -0
  141. data/node_modules/jquery-ui/ui/i18n/datepicker-hi.js +37 -0
  142. data/node_modules/jquery-ui/ui/i18n/datepicker-hr.js +37 -0
  143. data/node_modules/jquery-ui/ui/i18n/datepicker-hu.js +36 -0
  144. data/node_modules/jquery-ui/ui/i18n/datepicker-hy.js +37 -0
  145. data/node_modules/jquery-ui/ui/i18n/datepicker-id.js +37 -0
  146. data/node_modules/jquery-ui/ui/i18n/datepicker-is.js +45 -0
  147. data/node_modules/jquery-ui/ui/i18n/datepicker-it-CH.js +37 -0
  148. data/node_modules/jquery-ui/ui/i18n/datepicker-it.js +37 -0
  149. data/node_modules/jquery-ui/ui/i18n/datepicker-ja.js +37 -0
  150. data/node_modules/jquery-ui/ui/i18n/datepicker-ka.js +48 -0
  151. data/node_modules/jquery-ui/ui/i18n/datepicker-kk.js +37 -0
  152. data/node_modules/jquery-ui/ui/i18n/datepicker-km.js +37 -0
  153. data/node_modules/jquery-ui/ui/i18n/datepicker-ko.js +37 -0
  154. data/node_modules/jquery-ui/ui/i18n/datepicker-ky.js +38 -0
  155. data/node_modules/jquery-ui/ui/i18n/datepicker-lb.js +45 -0
  156. data/node_modules/jquery-ui/ui/i18n/datepicker-lt.js +45 -0
  157. data/node_modules/jquery-ui/ui/i18n/datepicker-lv.js +45 -0
  158. data/node_modules/jquery-ui/ui/i18n/datepicker-mk.js +37 -0
  159. data/node_modules/jquery-ui/ui/i18n/datepicker-ml.js +37 -0
  160. data/node_modules/jquery-ui/ui/i18n/datepicker-ms.js +37 -0
  161. data/node_modules/jquery-ui/ui/i18n/datepicker-nb.js +49 -0
  162. data/node_modules/jquery-ui/ui/i18n/datepicker-nl-BE.js +37 -0
  163. data/node_modules/jquery-ui/ui/i18n/datepicker-nl.js +37 -0
  164. data/node_modules/jquery-ui/ui/i18n/datepicker-nn.js +49 -0
  165. data/node_modules/jquery-ui/ui/i18n/datepicker-no.js +50 -0
  166. data/node_modules/jquery-ui/ui/i18n/datepicker-pl.js +37 -0
  167. data/node_modules/jquery-ui/ui/i18n/datepicker-pt-BR.js +45 -0
  168. data/node_modules/jquery-ui/ui/i18n/datepicker-pt.js +44 -0
  169. data/node_modules/jquery-ui/ui/i18n/datepicker-rm.js +61 -0
  170. data/node_modules/jquery-ui/ui/i18n/datepicker-ro.js +40 -0
  171. data/node_modules/jquery-ui/ui/i18n/datepicker-ru.js +37 -0
  172. data/node_modules/jquery-ui/ui/i18n/datepicker-sk.js +37 -0
  173. data/node_modules/jquery-ui/ui/i18n/datepicker-sl.js +38 -0
  174. data/node_modules/jquery-ui/ui/i18n/datepicker-sq.js +37 -0
  175. data/node_modules/jquery-ui/ui/i18n/datepicker-sr-SR.js +37 -0
  176. data/node_modules/jquery-ui/ui/i18n/datepicker-sr.js +37 -0
  177. data/node_modules/jquery-ui/ui/i18n/datepicker-sv.js +37 -0
  178. data/node_modules/jquery-ui/ui/i18n/datepicker-ta.js +53 -0
  179. data/node_modules/jquery-ui/ui/i18n/datepicker-th.js +37 -0
  180. data/node_modules/jquery-ui/ui/i18n/datepicker-tj.js +37 -0
  181. data/node_modules/jquery-ui/ui/i18n/datepicker-tr.js +37 -0
  182. data/node_modules/jquery-ui/ui/i18n/datepicker-uk.js +38 -0
  183. data/node_modules/jquery-ui/ui/i18n/datepicker-vi.js +37 -0
  184. data/node_modules/jquery-ui/ui/i18n/datepicker-zh-CN.js +37 -0
  185. data/node_modules/jquery-ui/ui/i18n/datepicker-zh-HK.js +37 -0
  186. data/node_modules/jquery-ui/ui/i18n/datepicker-zh-TW.js +37 -0
  187. data/node_modules/jquery-ui/ui/ie.js +15 -0
  188. data/node_modules/jquery-ui/ui/jquery-1-7.js +89 -0
  189. data/node_modules/jquery-ui/ui/keycode.js +45 -0
  190. data/node_modules/jquery-ui/ui/labels.js +62 -0
  191. data/node_modules/jquery-ui/ui/plugin.js +44 -0
  192. data/node_modules/jquery-ui/ui/position.js +498 -0
  193. data/node_modules/jquery-ui/ui/safe-active-element.js +40 -0
  194. data/node_modules/jquery-ui/ui/safe-blur.js +21 -0
  195. data/node_modules/jquery-ui/ui/scroll-parent.js +45 -0
  196. data/node_modules/jquery-ui/ui/tabbable.js +35 -0
  197. data/node_modules/jquery-ui/ui/unique-id.js +49 -0
  198. data/node_modules/jquery-ui/ui/version.js +17 -0
  199. data/node_modules/jquery-ui/ui/widget.js +733 -0
  200. data/node_modules/jquery-ui/ui/widgets/accordion.js +613 -0
  201. data/node_modules/jquery-ui/ui/widgets/autocomplete.js +682 -0
  202. data/node_modules/jquery-ui/ui/widgets/button.js +386 -0
  203. data/node_modules/jquery-ui/ui/widgets/checkboxradio.js +286 -0
  204. data/node_modules/jquery-ui/ui/widgets/controlgroup.js +298 -0
  205. data/node_modules/jquery-ui/ui/widgets/datepicker.js +2120 -0
  206. data/node_modules/jquery-ui/ui/widgets/dialog.js +940 -0
  207. data/node_modules/jquery-ui/ui/widgets/draggable.js +1250 -0
  208. data/node_modules/jquery-ui/ui/widgets/droppable.js +497 -0
  209. data/node_modules/jquery-ui/ui/widgets/menu.js +673 -0
  210. data/node_modules/jquery-ui/ui/widgets/mouse.js +226 -0
  211. data/node_modules/jquery-ui/ui/widgets/progressbar.js +178 -0
  212. data/node_modules/jquery-ui/ui/widgets/resizable.js +1201 -0
  213. data/node_modules/jquery-ui/ui/widgets/selectable.js +310 -0
  214. data/node_modules/jquery-ui/ui/widgets/selectmenu.js +687 -0
  215. data/node_modules/jquery-ui/ui/widgets/slider.js +752 -0
  216. data/node_modules/jquery-ui/ui/widgets/sortable.js +1554 -0
  217. data/node_modules/jquery-ui/ui/widgets/spinner.js +575 -0
  218. data/node_modules/jquery-ui/ui/widgets/tabs.js +924 -0
  219. data/node_modules/jquery-ui/ui/widgets/tooltip.js +520 -0
  220. data/node_modules/jquery-ujs/package.json +26 -0
  221. data/node_modules/jquery-ujs/src/rails.js +555 -0
  222. data/node_modules/jquery/dist/jquery.js +10253 -0
  223. data/node_modules/jquery/dist/jquery.slim.js +8160 -0
  224. data/node_modules/jquery/package.json +97 -0
  225. data/node_modules/js-cookie/package.json +49 -0
  226. data/node_modules/js-cookie/src/js.cookie.js +165 -0
  227. data/node_modules/jstz/dist/jstz.js +1428 -0
  228. data/node_modules/jstz/package.json +57 -0
  229. data/node_modules/lodash/core.js +3836 -0
  230. data/node_modules/lodash/lodash.js +17084 -0
  231. data/node_modules/lodash/package.json +17 -0
  232. data/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js +1204 -0
  233. data/node_modules/moment-timezone/builds/moment-timezone-with-data.js +1204 -0
  234. data/node_modules/moment-timezone/moment-timezone-utils.js +316 -0
  235. data/node_modules/moment-timezone/moment-timezone.js +605 -0
  236. data/node_modules/moment-timezone/package.json +50 -0
  237. data/node_modules/moment/locale/af.js +74 -0
  238. data/node_modules/moment/locale/ar-dz.js +60 -0
  239. data/node_modules/moment/locale/ar-kw.js +60 -0
  240. data/node_modules/moment/locale/ar-ly.js +127 -0
  241. data/node_modules/moment/locale/ar-ma.js +61 -0
  242. data/node_modules/moment/locale/ar-sa.js +106 -0
  243. data/node_modules/moment/locale/ar-tn.js +60 -0
  244. data/node_modules/moment/locale/ar.js +143 -0
  245. data/node_modules/moment/locale/az.js +106 -0
  246. data/node_modules/moment/locale/be.js +135 -0
  247. data/node_modules/moment/locale/bg.js +91 -0
  248. data/node_modules/moment/locale/bm.js +60 -0
  249. data/node_modules/moment/locale/bn.js +120 -0
  250. data/node_modules/moment/locale/bo.js +120 -0
  251. data/node_modules/moment/locale/br.js +109 -0
  252. data/node_modules/moment/locale/bs.js +153 -0
  253. data/node_modules/moment/locale/ca.js +89 -0
  254. data/node_modules/moment/locale/cs.js +180 -0
  255. data/node_modules/moment/locale/cv.js +64 -0
  256. data/node_modules/moment/locale/cy.js +82 -0
  257. data/node_modules/moment/locale/da.js +61 -0
  258. data/node_modules/moment/locale/de-at.js +80 -0
  259. data/node_modules/moment/locale/de-ch.js +79 -0
  260. data/node_modules/moment/locale/de.js +79 -0
  261. data/node_modules/moment/locale/dv.js +101 -0
  262. data/node_modules/moment/locale/el.js +101 -0
  263. data/node_modules/moment/locale/en-au.js +68 -0
  264. data/node_modules/moment/locale/en-ca.js +64 -0
  265. data/node_modules/moment/locale/en-gb.js +68 -0
  266. data/node_modules/moment/locale/en-ie.js +68 -0
  267. data/node_modules/moment/locale/en-nz.js +68 -0
  268. data/node_modules/moment/locale/eo.js +74 -0
  269. data/node_modules/moment/locale/es-do.js +92 -0
  270. data/node_modules/moment/locale/es-us.js +84 -0
  271. data/node_modules/moment/locale/es.js +93 -0
  272. data/node_modules/moment/locale/et.js +82 -0
  273. data/node_modules/moment/locale/eu.js +67 -0
  274. data/node_modules/moment/locale/fa.js +108 -0
  275. data/node_modules/moment/locale/fi.js +110 -0
  276. data/node_modules/moment/locale/fo.js +61 -0
  277. data/node_modules/moment/locale/fr-ca.js +75 -0
  278. data/node_modules/moment/locale/fr-ch.js +79 -0
  279. data/node_modules/moment/locale/fr.js +84 -0
  280. data/node_modules/moment/locale/fy.js +76 -0
  281. data/node_modules/moment/locale/gd.js +77 -0
  282. data/node_modules/moment/locale/gl.js +78 -0
  283. data/node_modules/moment/locale/gom-latn.js +124 -0
  284. data/node_modules/moment/locale/gu.js +125 -0
  285. data/node_modules/moment/locale/he.js +100 -0
  286. data/node_modules/moment/locale/hi.js +125 -0
  287. data/node_modules/moment/locale/hr.js +155 -0
  288. data/node_modules/moment/locale/hu.js +111 -0
  289. data/node_modules/moment/locale/hy-am.js +96 -0
  290. data/node_modules/moment/locale/id.js +84 -0
  291. data/node_modules/moment/locale/is.js +133 -0
  292. data/node_modules/moment/locale/it.js +71 -0
  293. data/node_modules/moment/locale/ja.js +81 -0
  294. data/node_modules/moment/locale/jv.js +84 -0
  295. data/node_modules/moment/locale/ka.js +90 -0
  296. data/node_modules/moment/locale/kk.js +88 -0
  297. data/node_modules/moment/locale/km.js +59 -0
  298. data/node_modules/moment/locale/kn.js +127 -0
  299. data/node_modules/moment/locale/ko.js +83 -0
  300. data/node_modules/moment/locale/ky.js +89 -0
  301. data/node_modules/moment/locale/lb.js +138 -0
  302. data/node_modules/moment/locale/lo.js +71 -0
  303. data/node_modules/moment/locale/lt.js +119 -0
  304. data/node_modules/moment/locale/lv.js +99 -0
  305. data/node_modules/moment/locale/me.js +113 -0
  306. data/node_modules/moment/locale/mi.js +65 -0
  307. data/node_modules/moment/locale/mk.js +91 -0
  308. data/node_modules/moment/locale/ml.js +82 -0
  309. data/node_modules/moment/locale/mr.js +162 -0
  310. data/node_modules/moment/locale/ms-my.js +84 -0
  311. data/node_modules/moment/locale/ms.js +83 -0
  312. data/node_modules/moment/locale/mt.js +61 -0
  313. data/node_modules/moment/locale/my.js +97 -0
  314. data/node_modules/moment/locale/nb.js +64 -0
  315. data/node_modules/moment/locale/ne.js +124 -0
  316. data/node_modules/moment/locale/nl-be.js +89 -0
  317. data/node_modules/moment/locale/nl.js +89 -0
  318. data/node_modules/moment/locale/nn.js +61 -0
  319. data/node_modules/moment/locale/pa-in.js +125 -0
  320. data/node_modules/moment/locale/pl.js +127 -0
  321. data/node_modules/moment/locale/pt-br.js +62 -0
  322. data/node_modules/moment/locale/pt.js +66 -0
  323. data/node_modules/moment/locale/ro.js +77 -0
  324. data/node_modules/moment/locale/ru.js +185 -0
  325. data/node_modules/moment/locale/sd.js +99 -0
  326. data/node_modules/moment/locale/se.js +62 -0
  327. data/node_modules/moment/locale/si.js +72 -0
  328. data/node_modules/moment/locale/sk.js +158 -0
  329. data/node_modules/moment/locale/sl.js +174 -0
  330. data/node_modules/moment/locale/sq.js +71 -0
  331. data/node_modules/moment/locale/sr-cyrl.js +112 -0
  332. data/node_modules/moment/locale/sr.js +112 -0
  333. data/node_modules/moment/locale/ss.js +90 -0
  334. data/node_modules/moment/locale/sv.js +70 -0
  335. data/node_modules/moment/locale/sw.js +60 -0
  336. data/node_modules/moment/locale/ta.js +131 -0
  337. data/node_modules/moment/locale/te.js +90 -0
  338. data/node_modules/moment/locale/tet.js +69 -0
  339. data/node_modules/moment/locale/th.js +68 -0
  340. data/node_modules/moment/locale/tl-ph.js +63 -0
  341. data/node_modules/moment/locale/tlh.js +123 -0
  342. data/node_modules/moment/locale/tr.js +91 -0
  343. data/node_modules/moment/locale/tzl.js +93 -0
  344. data/node_modules/moment/locale/tzm-latn.js +59 -0
  345. data/node_modules/moment/locale/tzm.js +59 -0
  346. data/node_modules/moment/locale/uk.js +153 -0
  347. data/node_modules/moment/locale/ur.js +100 -0
  348. data/node_modules/moment/locale/uz-latn.js +59 -0
  349. data/node_modules/moment/locale/uz.js +59 -0
  350. data/node_modules/moment/locale/vi.js +80 -0
  351. data/node_modules/moment/locale/x-pseudo.js +69 -0
  352. data/node_modules/moment/locale/yo.js +61 -0
  353. data/node_modules/moment/locale/zh-cn.js +112 -0
  354. data/node_modules/moment/locale/zh-hk.js +106 -0
  355. data/node_modules/moment/locale/zh-tw.js +105 -0
  356. data/node_modules/moment/min/locales.js +9769 -0
  357. data/node_modules/moment/min/moment-with-locales.js +14289 -0
  358. data/node_modules/moment/moment.js +4535 -0
  359. data/node_modules/moment/package.json +99 -0
  360. data/node_modules/nprogress/nprogress.css +74 -0
  361. data/node_modules/nprogress/nprogress.js +480 -0
  362. data/node_modules/nprogress/package.json +47 -0
  363. data/node_modules/nprogress/support/extras.css +4 -0
  364. data/node_modules/roboto-fontface/css/mixins.scss +36 -0
  365. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-bold-italic.scss +3 -0
  366. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-bold.scss +3 -0
  367. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-light-italic.scss +3 -0
  368. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-light.scss +3 -0
  369. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-regular-italic.scss +3 -0
  370. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-regular.scss +3 -0
  371. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface.scss +6 -0
  372. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-bold.scss +3 -0
  373. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-light.scss +3 -0
  374. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-regular.scss +3 -0
  375. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-thin.scss +3 -0
  376. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface.scss +4 -0
  377. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-black-italic.scss +3 -0
  378. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-black.scss +3 -0
  379. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-bold-italic.scss +3 -0
  380. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-bold.scss +3 -0
  381. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-light-italic.scss +3 -0
  382. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-light.scss +3 -0
  383. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-medium-italic.scss +3 -0
  384. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-medium.scss +3 -0
  385. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-regular-italic.scss +3 -0
  386. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-regular.scss +3 -0
  387. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-thin-italic.scss +3 -0
  388. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-thin.scss +3 -0
  389. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface.scss +12 -0
  390. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.eot +0 -0
  391. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.svg +643 -0
  392. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.ttf +0 -0
  393. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.woff +0 -0
  394. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.woff2 +0 -0
  395. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.eot +0 -0
  396. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.svg +643 -0
  397. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.ttf +0 -0
  398. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.woff +0 -0
  399. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.woff2 +0 -0
  400. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.eot +0 -0
  401. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.svg +643 -0
  402. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.ttf +0 -0
  403. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.woff +0 -0
  404. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.woff2 +0 -0
  405. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.eot +0 -0
  406. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.svg +643 -0
  407. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.ttf +0 -0
  408. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.woff +0 -0
  409. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.woff2 +0 -0
  410. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.eot +0 -0
  411. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.svg +644 -0
  412. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.ttf +0 -0
  413. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff +0 -0
  414. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2 +0 -0
  415. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.eot +0 -0
  416. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.svg +644 -0
  417. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.ttf +0 -0
  418. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.woff +0 -0
  419. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.woff2 +0 -0
  420. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.eot +0 -0
  421. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.svg +679 -0
  422. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.ttf +0 -0
  423. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.woff +0 -0
  424. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.woff2 +0 -0
  425. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.eot +0 -0
  426. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.svg +678 -0
  427. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.ttf +0 -0
  428. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.woff +0 -0
  429. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.woff2 +0 -0
  430. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.eot +0 -0
  431. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.svg +678 -0
  432. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.ttf +0 -0
  433. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.woff +0 -0
  434. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.woff2 +0 -0
  435. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.eot +0 -0
  436. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.svg +678 -0
  437. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.ttf +0 -0
  438. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.woff +0 -0
  439. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.woff2 +0 -0
  440. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.eot +0 -0
  441. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.svg +10968 -0
  442. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.ttf +0 -0
  443. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.woff +0 -0
  444. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.woff2 +0 -0
  445. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.eot +0 -0
  446. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.svg +11086 -0
  447. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.ttf +0 -0
  448. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff +0 -0
  449. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff2 +0 -0
  450. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.eot +0 -0
  451. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.svg +11010 -0
  452. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.ttf +0 -0
  453. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff +0 -0
  454. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff2 +0 -0
  455. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.eot +0 -0
  456. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.svg +11096 -0
  457. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.ttf +0 -0
  458. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff +0 -0
  459. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff2 +0 -0
  460. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.eot +0 -0
  461. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.svg +10564 -0
  462. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.ttf +0 -0
  463. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff +0 -0
  464. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff2 +0 -0
  465. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.eot +0 -0
  466. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.svg +10646 -0
  467. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.ttf +0 -0
  468. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff +0 -0
  469. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff2 +0 -0
  470. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.eot +0 -0
  471. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.svg +10999 -0
  472. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.ttf +0 -0
  473. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff +0 -0
  474. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff2 +0 -0
  475. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.eot +0 -0
  476. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.svg +11100 -0
  477. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.ttf +0 -0
  478. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff +0 -0
  479. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff2 +0 -0
  480. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.eot +0 -0
  481. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.svg +10520 -0
  482. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.ttf +0 -0
  483. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff +0 -0
  484. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff2 +0 -0
  485. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.eot +0 -0
  486. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.svg +10629 -0
  487. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.ttf +0 -0
  488. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff +0 -0
  489. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff2 +0 -0
  490. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.eot +0 -0
  491. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.svg +10617 -0
  492. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.ttf +0 -0
  493. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff +0 -0
  494. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff2 +0 -0
  495. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.eot +0 -0
  496. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.svg +10726 -0
  497. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.ttf +0 -0
  498. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff +0 -0
  499. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff2 +0 -0
  500. data/node_modules/roboto-fontface/package.json +28 -0
  501. data/node_modules/signature_pad/dist/signature_pad.js +610 -0
  502. data/node_modules/signature_pad/package.json +41 -0
  503. data/package.json +23 -0
  504. data/yarn.lock +118 -0
  505. metadata +575 -0
@@ -0,0 +1,940 @@
1
+ /*!
2
+ * jQuery UI Dialog 1.12.1
3
+ * http://jqueryui.com
4
+ *
5
+ * Copyright jQuery Foundation and other contributors
6
+ * Released under the MIT license.
7
+ * http://jquery.org/license
8
+ */
9
+
10
+ //>>label: Dialog
11
+ //>>group: Widgets
12
+ //>>description: Displays customizable dialog windows.
13
+ //>>docs: http://api.jqueryui.com/dialog/
14
+ //>>demos: http://jqueryui.com/dialog/
15
+ //>>css.structure: ../../themes/base/core.css
16
+ //>>css.structure: ../../themes/base/dialog.css
17
+ //>>css.theme: ../../themes/base/theme.css
18
+
19
+ ( function( factory ) {
20
+ if ( typeof define === "function" && define.amd ) {
21
+
22
+ // AMD. Register as an anonymous module.
23
+ define( [
24
+ "jquery",
25
+ "./button",
26
+ "./draggable",
27
+ "./mouse",
28
+ "./resizable",
29
+ "../focusable",
30
+ "../keycode",
31
+ "../position",
32
+ "../safe-active-element",
33
+ "../safe-blur",
34
+ "../tabbable",
35
+ "../unique-id",
36
+ "../version",
37
+ "../widget"
38
+ ], factory );
39
+ } else {
40
+
41
+ // Browser globals
42
+ factory( jQuery );
43
+ }
44
+ }( function( $ ) {
45
+
46
+ $.widget( "ui.dialog", {
47
+ version: "1.12.1",
48
+ options: {
49
+ appendTo: "body",
50
+ autoOpen: true,
51
+ buttons: [],
52
+ classes: {
53
+ "ui-dialog": "ui-corner-all",
54
+ "ui-dialog-titlebar": "ui-corner-all"
55
+ },
56
+ closeOnEscape: true,
57
+ closeText: "Close",
58
+ draggable: true,
59
+ hide: null,
60
+ height: "auto",
61
+ maxHeight: null,
62
+ maxWidth: null,
63
+ minHeight: 150,
64
+ minWidth: 150,
65
+ modal: false,
66
+ position: {
67
+ my: "center",
68
+ at: "center",
69
+ of: window,
70
+ collision: "fit",
71
+
72
+ // Ensure the titlebar is always visible
73
+ using: function( pos ) {
74
+ var topOffset = $( this ).css( pos ).offset().top;
75
+ if ( topOffset < 0 ) {
76
+ $( this ).css( "top", pos.top - topOffset );
77
+ }
78
+ }
79
+ },
80
+ resizable: true,
81
+ show: null,
82
+ title: null,
83
+ width: 300,
84
+
85
+ // Callbacks
86
+ beforeClose: null,
87
+ close: null,
88
+ drag: null,
89
+ dragStart: null,
90
+ dragStop: null,
91
+ focus: null,
92
+ open: null,
93
+ resize: null,
94
+ resizeStart: null,
95
+ resizeStop: null
96
+ },
97
+
98
+ sizeRelatedOptions: {
99
+ buttons: true,
100
+ height: true,
101
+ maxHeight: true,
102
+ maxWidth: true,
103
+ minHeight: true,
104
+ minWidth: true,
105
+ width: true
106
+ },
107
+
108
+ resizableRelatedOptions: {
109
+ maxHeight: true,
110
+ maxWidth: true,
111
+ minHeight: true,
112
+ minWidth: true
113
+ },
114
+
115
+ _create: function() {
116
+ this.originalCss = {
117
+ display: this.element[ 0 ].style.display,
118
+ width: this.element[ 0 ].style.width,
119
+ minHeight: this.element[ 0 ].style.minHeight,
120
+ maxHeight: this.element[ 0 ].style.maxHeight,
121
+ height: this.element[ 0 ].style.height
122
+ };
123
+ this.originalPosition = {
124
+ parent: this.element.parent(),
125
+ index: this.element.parent().children().index( this.element )
126
+ };
127
+ this.originalTitle = this.element.attr( "title" );
128
+ if ( this.options.title == null && this.originalTitle != null ) {
129
+ this.options.title = this.originalTitle;
130
+ }
131
+
132
+ // Dialogs can't be disabled
133
+ if ( this.options.disabled ) {
134
+ this.options.disabled = false;
135
+ }
136
+
137
+ this._createWrapper();
138
+
139
+ this.element
140
+ .show()
141
+ .removeAttr( "title" )
142
+ .appendTo( this.uiDialog );
143
+
144
+ this._addClass( "ui-dialog-content", "ui-widget-content" );
145
+
146
+ this._createTitlebar();
147
+ this._createButtonPane();
148
+
149
+ if ( this.options.draggable && $.fn.draggable ) {
150
+ this._makeDraggable();
151
+ }
152
+ if ( this.options.resizable && $.fn.resizable ) {
153
+ this._makeResizable();
154
+ }
155
+
156
+ this._isOpen = false;
157
+
158
+ this._trackFocus();
159
+ },
160
+
161
+ _init: function() {
162
+ if ( this.options.autoOpen ) {
163
+ this.open();
164
+ }
165
+ },
166
+
167
+ _appendTo: function() {
168
+ var element = this.options.appendTo;
169
+ if ( element && ( element.jquery || element.nodeType ) ) {
170
+ return $( element );
171
+ }
172
+ return this.document.find( element || "body" ).eq( 0 );
173
+ },
174
+
175
+ _destroy: function() {
176
+ var next,
177
+ originalPosition = this.originalPosition;
178
+
179
+ this._untrackInstance();
180
+ this._destroyOverlay();
181
+
182
+ this.element
183
+ .removeUniqueId()
184
+ .css( this.originalCss )
185
+
186
+ // Without detaching first, the following becomes really slow
187
+ .detach();
188
+
189
+ this.uiDialog.remove();
190
+
191
+ if ( this.originalTitle ) {
192
+ this.element.attr( "title", this.originalTitle );
193
+ }
194
+
195
+ next = originalPosition.parent.children().eq( originalPosition.index );
196
+
197
+ // Don't try to place the dialog next to itself (#8613)
198
+ if ( next.length && next[ 0 ] !== this.element[ 0 ] ) {
199
+ next.before( this.element );
200
+ } else {
201
+ originalPosition.parent.append( this.element );
202
+ }
203
+ },
204
+
205
+ widget: function() {
206
+ return this.uiDialog;
207
+ },
208
+
209
+ disable: $.noop,
210
+ enable: $.noop,
211
+
212
+ close: function( event ) {
213
+ var that = this;
214
+
215
+ if ( !this._isOpen || this._trigger( "beforeClose", event ) === false ) {
216
+ return;
217
+ }
218
+
219
+ this._isOpen = false;
220
+ this._focusedElement = null;
221
+ this._destroyOverlay();
222
+ this._untrackInstance();
223
+
224
+ if ( !this.opener.filter( ":focusable" ).trigger( "focus" ).length ) {
225
+
226
+ // Hiding a focused element doesn't trigger blur in WebKit
227
+ // so in case we have nothing to focus on, explicitly blur the active element
228
+ // https://bugs.webkit.org/show_bug.cgi?id=47182
229
+ $.ui.safeBlur( $.ui.safeActiveElement( this.document[ 0 ] ) );
230
+ }
231
+
232
+ this._hide( this.uiDialog, this.options.hide, function() {
233
+ that._trigger( "close", event );
234
+ } );
235
+ },
236
+
237
+ isOpen: function() {
238
+ return this._isOpen;
239
+ },
240
+
241
+ moveToTop: function() {
242
+ this._moveToTop();
243
+ },
244
+
245
+ _moveToTop: function( event, silent ) {
246
+ var moved = false,
247
+ zIndices = this.uiDialog.siblings( ".ui-front:visible" ).map( function() {
248
+ return +$( this ).css( "z-index" );
249
+ } ).get(),
250
+ zIndexMax = Math.max.apply( null, zIndices );
251
+
252
+ if ( zIndexMax >= +this.uiDialog.css( "z-index" ) ) {
253
+ this.uiDialog.css( "z-index", zIndexMax + 1 );
254
+ moved = true;
255
+ }
256
+
257
+ if ( moved && !silent ) {
258
+ this._trigger( "focus", event );
259
+ }
260
+ return moved;
261
+ },
262
+
263
+ open: function() {
264
+ var that = this;
265
+ if ( this._isOpen ) {
266
+ if ( this._moveToTop() ) {
267
+ this._focusTabbable();
268
+ }
269
+ return;
270
+ }
271
+
272
+ this._isOpen = true;
273
+ this.opener = $( $.ui.safeActiveElement( this.document[ 0 ] ) );
274
+
275
+ this._size();
276
+ this._position();
277
+ this._createOverlay();
278
+ this._moveToTop( null, true );
279
+
280
+ // Ensure the overlay is moved to the top with the dialog, but only when
281
+ // opening. The overlay shouldn't move after the dialog is open so that
282
+ // modeless dialogs opened after the modal dialog stack properly.
283
+ if ( this.overlay ) {
284
+ this.overlay.css( "z-index", this.uiDialog.css( "z-index" ) - 1 );
285
+ }
286
+
287
+ this._show( this.uiDialog, this.options.show, function() {
288
+ that._focusTabbable();
289
+ that._trigger( "focus" );
290
+ } );
291
+
292
+ // Track the dialog immediately upon openening in case a focus event
293
+ // somehow occurs outside of the dialog before an element inside the
294
+ // dialog is focused (#10152)
295
+ this._makeFocusTarget();
296
+
297
+ this._trigger( "open" );
298
+ },
299
+
300
+ _focusTabbable: function() {
301
+
302
+ // Set focus to the first match:
303
+ // 1. An element that was focused previously
304
+ // 2. First element inside the dialog matching [autofocus]
305
+ // 3. Tabbable element inside the content element
306
+ // 4. Tabbable element inside the buttonpane
307
+ // 5. The close button
308
+ // 6. The dialog itself
309
+ var hasFocus = this._focusedElement;
310
+ if ( !hasFocus ) {
311
+ hasFocus = this.element.find( "[autofocus]" );
312
+ }
313
+ if ( !hasFocus.length ) {
314
+ hasFocus = this.element.find( ":tabbable" );
315
+ }
316
+ if ( !hasFocus.length ) {
317
+ hasFocus = this.uiDialogButtonPane.find( ":tabbable" );
318
+ }
319
+ if ( !hasFocus.length ) {
320
+ hasFocus = this.uiDialogTitlebarClose.filter( ":tabbable" );
321
+ }
322
+ if ( !hasFocus.length ) {
323
+ hasFocus = this.uiDialog;
324
+ }
325
+ hasFocus.eq( 0 ).trigger( "focus" );
326
+ },
327
+
328
+ _keepFocus: function( event ) {
329
+ function checkFocus() {
330
+ var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
331
+ isActive = this.uiDialog[ 0 ] === activeElement ||
332
+ $.contains( this.uiDialog[ 0 ], activeElement );
333
+ if ( !isActive ) {
334
+ this._focusTabbable();
335
+ }
336
+ }
337
+ event.preventDefault();
338
+ checkFocus.call( this );
339
+
340
+ // support: IE
341
+ // IE <= 8 doesn't prevent moving focus even with event.preventDefault()
342
+ // so we check again later
343
+ this._delay( checkFocus );
344
+ },
345
+
346
+ _createWrapper: function() {
347
+ this.uiDialog = $( "<div>" )
348
+ .hide()
349
+ .attr( {
350
+
351
+ // Setting tabIndex makes the div focusable
352
+ tabIndex: -1,
353
+ role: "dialog"
354
+ } )
355
+ .appendTo( this._appendTo() );
356
+
357
+ this._addClass( this.uiDialog, "ui-dialog", "ui-widget ui-widget-content ui-front" );
358
+ this._on( this.uiDialog, {
359
+ keydown: function( event ) {
360
+ if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
361
+ event.keyCode === $.ui.keyCode.ESCAPE ) {
362
+ event.preventDefault();
363
+ this.close( event );
364
+ return;
365
+ }
366
+
367
+ // Prevent tabbing out of dialogs
368
+ if ( event.keyCode !== $.ui.keyCode.TAB || event.isDefaultPrevented() ) {
369
+ return;
370
+ }
371
+ var tabbables = this.uiDialog.find( ":tabbable" ),
372
+ first = tabbables.filter( ":first" ),
373
+ last = tabbables.filter( ":last" );
374
+
375
+ if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) &&
376
+ !event.shiftKey ) {
377
+ this._delay( function() {
378
+ first.trigger( "focus" );
379
+ } );
380
+ event.preventDefault();
381
+ } else if ( ( event.target === first[ 0 ] ||
382
+ event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) {
383
+ this._delay( function() {
384
+ last.trigger( "focus" );
385
+ } );
386
+ event.preventDefault();
387
+ }
388
+ },
389
+ mousedown: function( event ) {
390
+ if ( this._moveToTop( event ) ) {
391
+ this._focusTabbable();
392
+ }
393
+ }
394
+ } );
395
+
396
+ // We assume that any existing aria-describedby attribute means
397
+ // that the dialog content is marked up properly
398
+ // otherwise we brute force the content as the description
399
+ if ( !this.element.find( "[aria-describedby]" ).length ) {
400
+ this.uiDialog.attr( {
401
+ "aria-describedby": this.element.uniqueId().attr( "id" )
402
+ } );
403
+ }
404
+ },
405
+
406
+ _createTitlebar: function() {
407
+ var uiDialogTitle;
408
+
409
+ this.uiDialogTitlebar = $( "<div>" );
410
+ this._addClass( this.uiDialogTitlebar,
411
+ "ui-dialog-titlebar", "ui-widget-header ui-helper-clearfix" );
412
+ this._on( this.uiDialogTitlebar, {
413
+ mousedown: function( event ) {
414
+
415
+ // Don't prevent click on close button (#8838)
416
+ // Focusing a dialog that is partially scrolled out of view
417
+ // causes the browser to scroll it into view, preventing the click event
418
+ if ( !$( event.target ).closest( ".ui-dialog-titlebar-close" ) ) {
419
+
420
+ // Dialog isn't getting focus when dragging (#8063)
421
+ this.uiDialog.trigger( "focus" );
422
+ }
423
+ }
424
+ } );
425
+
426
+ // Support: IE
427
+ // Use type="button" to prevent enter keypresses in textboxes from closing the
428
+ // dialog in IE (#9312)
429
+ this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
430
+ .button( {
431
+ label: $( "<a>" ).text( this.options.closeText ).html(),
432
+ icon: "ui-icon-closethick",
433
+ showLabel: false
434
+ } )
435
+ .appendTo( this.uiDialogTitlebar );
436
+
437
+ this._addClass( this.uiDialogTitlebarClose, "ui-dialog-titlebar-close" );
438
+ this._on( this.uiDialogTitlebarClose, {
439
+ click: function( event ) {
440
+ event.preventDefault();
441
+ this.close( event );
442
+ }
443
+ } );
444
+
445
+ uiDialogTitle = $( "<span>" ).uniqueId().prependTo( this.uiDialogTitlebar );
446
+ this._addClass( uiDialogTitle, "ui-dialog-title" );
447
+ this._title( uiDialogTitle );
448
+
449
+ this.uiDialogTitlebar.prependTo( this.uiDialog );
450
+
451
+ this.uiDialog.attr( {
452
+ "aria-labelledby": uiDialogTitle.attr( "id" )
453
+ } );
454
+ },
455
+
456
+ _title: function( title ) {
457
+ if ( this.options.title ) {
458
+ title.text( this.options.title );
459
+ } else {
460
+ title.html( "&#160;" );
461
+ }
462
+ },
463
+
464
+ _createButtonPane: function() {
465
+ this.uiDialogButtonPane = $( "<div>" );
466
+ this._addClass( this.uiDialogButtonPane, "ui-dialog-buttonpane",
467
+ "ui-widget-content ui-helper-clearfix" );
468
+
469
+ this.uiButtonSet = $( "<div>" )
470
+ .appendTo( this.uiDialogButtonPane );
471
+ this._addClass( this.uiButtonSet, "ui-dialog-buttonset" );
472
+
473
+ this._createButtons();
474
+ },
475
+
476
+ _createButtons: function() {
477
+ var that = this,
478
+ buttons = this.options.buttons;
479
+
480
+ // If we already have a button pane, remove it
481
+ this.uiDialogButtonPane.remove();
482
+ this.uiButtonSet.empty();
483
+
484
+ if ( $.isEmptyObject( buttons ) || ( $.isArray( buttons ) && !buttons.length ) ) {
485
+ this._removeClass( this.uiDialog, "ui-dialog-buttons" );
486
+ return;
487
+ }
488
+
489
+ $.each( buttons, function( name, props ) {
490
+ var click, buttonOptions;
491
+ props = $.isFunction( props ) ?
492
+ { click: props, text: name } :
493
+ props;
494
+
495
+ // Default to a non-submitting button
496
+ props = $.extend( { type: "button" }, props );
497
+
498
+ // Change the context for the click callback to be the main element
499
+ click = props.click;
500
+ buttonOptions = {
501
+ icon: props.icon,
502
+ iconPosition: props.iconPosition,
503
+ showLabel: props.showLabel,
504
+
505
+ // Deprecated options
506
+ icons: props.icons,
507
+ text: props.text
508
+ };
509
+
510
+ delete props.click;
511
+ delete props.icon;
512
+ delete props.iconPosition;
513
+ delete props.showLabel;
514
+
515
+ // Deprecated options
516
+ delete props.icons;
517
+ if ( typeof props.text === "boolean" ) {
518
+ delete props.text;
519
+ }
520
+
521
+ $( "<button></button>", props )
522
+ .button( buttonOptions )
523
+ .appendTo( that.uiButtonSet )
524
+ .on( "click", function() {
525
+ click.apply( that.element[ 0 ], arguments );
526
+ } );
527
+ } );
528
+ this._addClass( this.uiDialog, "ui-dialog-buttons" );
529
+ this.uiDialogButtonPane.appendTo( this.uiDialog );
530
+ },
531
+
532
+ _makeDraggable: function() {
533
+ var that = this,
534
+ options = this.options;
535
+
536
+ function filteredUi( ui ) {
537
+ return {
538
+ position: ui.position,
539
+ offset: ui.offset
540
+ };
541
+ }
542
+
543
+ this.uiDialog.draggable( {
544
+ cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
545
+ handle: ".ui-dialog-titlebar",
546
+ containment: "document",
547
+ start: function( event, ui ) {
548
+ that._addClass( $( this ), "ui-dialog-dragging" );
549
+ that._blockFrames();
550
+ that._trigger( "dragStart", event, filteredUi( ui ) );
551
+ },
552
+ drag: function( event, ui ) {
553
+ that._trigger( "drag", event, filteredUi( ui ) );
554
+ },
555
+ stop: function( event, ui ) {
556
+ var left = ui.offset.left - that.document.scrollLeft(),
557
+ top = ui.offset.top - that.document.scrollTop();
558
+
559
+ options.position = {
560
+ my: "left top",
561
+ at: "left" + ( left >= 0 ? "+" : "" ) + left + " " +
562
+ "top" + ( top >= 0 ? "+" : "" ) + top,
563
+ of: that.window
564
+ };
565
+ that._removeClass( $( this ), "ui-dialog-dragging" );
566
+ that._unblockFrames();
567
+ that._trigger( "dragStop", event, filteredUi( ui ) );
568
+ }
569
+ } );
570
+ },
571
+
572
+ _makeResizable: function() {
573
+ var that = this,
574
+ options = this.options,
575
+ handles = options.resizable,
576
+
577
+ // .ui-resizable has position: relative defined in the stylesheet
578
+ // but dialogs have to use absolute or fixed positioning
579
+ position = this.uiDialog.css( "position" ),
580
+ resizeHandles = typeof handles === "string" ?
581
+ handles :
582
+ "n,e,s,w,se,sw,ne,nw";
583
+
584
+ function filteredUi( ui ) {
585
+ return {
586
+ originalPosition: ui.originalPosition,
587
+ originalSize: ui.originalSize,
588
+ position: ui.position,
589
+ size: ui.size
590
+ };
591
+ }
592
+
593
+ this.uiDialog.resizable( {
594
+ cancel: ".ui-dialog-content",
595
+ containment: "document",
596
+ alsoResize: this.element,
597
+ maxWidth: options.maxWidth,
598
+ maxHeight: options.maxHeight,
599
+ minWidth: options.minWidth,
600
+ minHeight: this._minHeight(),
601
+ handles: resizeHandles,
602
+ start: function( event, ui ) {
603
+ that._addClass( $( this ), "ui-dialog-resizing" );
604
+ that._blockFrames();
605
+ that._trigger( "resizeStart", event, filteredUi( ui ) );
606
+ },
607
+ resize: function( event, ui ) {
608
+ that._trigger( "resize", event, filteredUi( ui ) );
609
+ },
610
+ stop: function( event, ui ) {
611
+ var offset = that.uiDialog.offset(),
612
+ left = offset.left - that.document.scrollLeft(),
613
+ top = offset.top - that.document.scrollTop();
614
+
615
+ options.height = that.uiDialog.height();
616
+ options.width = that.uiDialog.width();
617
+ options.position = {
618
+ my: "left top",
619
+ at: "left" + ( left >= 0 ? "+" : "" ) + left + " " +
620
+ "top" + ( top >= 0 ? "+" : "" ) + top,
621
+ of: that.window
622
+ };
623
+ that._removeClass( $( this ), "ui-dialog-resizing" );
624
+ that._unblockFrames();
625
+ that._trigger( "resizeStop", event, filteredUi( ui ) );
626
+ }
627
+ } )
628
+ .css( "position", position );
629
+ },
630
+
631
+ _trackFocus: function() {
632
+ this._on( this.widget(), {
633
+ focusin: function( event ) {
634
+ this._makeFocusTarget();
635
+ this._focusedElement = $( event.target );
636
+ }
637
+ } );
638
+ },
639
+
640
+ _makeFocusTarget: function() {
641
+ this._untrackInstance();
642
+ this._trackingInstances().unshift( this );
643
+ },
644
+
645
+ _untrackInstance: function() {
646
+ var instances = this._trackingInstances(),
647
+ exists = $.inArray( this, instances );
648
+ if ( exists !== -1 ) {
649
+ instances.splice( exists, 1 );
650
+ }
651
+ },
652
+
653
+ _trackingInstances: function() {
654
+ var instances = this.document.data( "ui-dialog-instances" );
655
+ if ( !instances ) {
656
+ instances = [];
657
+ this.document.data( "ui-dialog-instances", instances );
658
+ }
659
+ return instances;
660
+ },
661
+
662
+ _minHeight: function() {
663
+ var options = this.options;
664
+
665
+ return options.height === "auto" ?
666
+ options.minHeight :
667
+ Math.min( options.minHeight, options.height );
668
+ },
669
+
670
+ _position: function() {
671
+
672
+ // Need to show the dialog to get the actual offset in the position plugin
673
+ var isVisible = this.uiDialog.is( ":visible" );
674
+ if ( !isVisible ) {
675
+ this.uiDialog.show();
676
+ }
677
+ this.uiDialog.position( this.options.position );
678
+ if ( !isVisible ) {
679
+ this.uiDialog.hide();
680
+ }
681
+ },
682
+
683
+ _setOptions: function( options ) {
684
+ var that = this,
685
+ resize = false,
686
+ resizableOptions = {};
687
+
688
+ $.each( options, function( key, value ) {
689
+ that._setOption( key, value );
690
+
691
+ if ( key in that.sizeRelatedOptions ) {
692
+ resize = true;
693
+ }
694
+ if ( key in that.resizableRelatedOptions ) {
695
+ resizableOptions[ key ] = value;
696
+ }
697
+ } );
698
+
699
+ if ( resize ) {
700
+ this._size();
701
+ this._position();
702
+ }
703
+ if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
704
+ this.uiDialog.resizable( "option", resizableOptions );
705
+ }
706
+ },
707
+
708
+ _setOption: function( key, value ) {
709
+ var isDraggable, isResizable,
710
+ uiDialog = this.uiDialog;
711
+
712
+ if ( key === "disabled" ) {
713
+ return;
714
+ }
715
+
716
+ this._super( key, value );
717
+
718
+ if ( key === "appendTo" ) {
719
+ this.uiDialog.appendTo( this._appendTo() );
720
+ }
721
+
722
+ if ( key === "buttons" ) {
723
+ this._createButtons();
724
+ }
725
+
726
+ if ( key === "closeText" ) {
727
+ this.uiDialogTitlebarClose.button( {
728
+
729
+ // Ensure that we always pass a string
730
+ label: $( "<a>" ).text( "" + this.options.closeText ).html()
731
+ } );
732
+ }
733
+
734
+ if ( key === "draggable" ) {
735
+ isDraggable = uiDialog.is( ":data(ui-draggable)" );
736
+ if ( isDraggable && !value ) {
737
+ uiDialog.draggable( "destroy" );
738
+ }
739
+
740
+ if ( !isDraggable && value ) {
741
+ this._makeDraggable();
742
+ }
743
+ }
744
+
745
+ if ( key === "position" ) {
746
+ this._position();
747
+ }
748
+
749
+ if ( key === "resizable" ) {
750
+
751
+ // currently resizable, becoming non-resizable
752
+ isResizable = uiDialog.is( ":data(ui-resizable)" );
753
+ if ( isResizable && !value ) {
754
+ uiDialog.resizable( "destroy" );
755
+ }
756
+
757
+ // Currently resizable, changing handles
758
+ if ( isResizable && typeof value === "string" ) {
759
+ uiDialog.resizable( "option", "handles", value );
760
+ }
761
+
762
+ // Currently non-resizable, becoming resizable
763
+ if ( !isResizable && value !== false ) {
764
+ this._makeResizable();
765
+ }
766
+ }
767
+
768
+ if ( key === "title" ) {
769
+ this._title( this.uiDialogTitlebar.find( ".ui-dialog-title" ) );
770
+ }
771
+ },
772
+
773
+ _size: function() {
774
+
775
+ // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
776
+ // divs will both have width and height set, so we need to reset them
777
+ var nonContentHeight, minContentHeight, maxContentHeight,
778
+ options = this.options;
779
+
780
+ // Reset content sizing
781
+ this.element.show().css( {
782
+ width: "auto",
783
+ minHeight: 0,
784
+ maxHeight: "none",
785
+ height: 0
786
+ } );
787
+
788
+ if ( options.minWidth > options.width ) {
789
+ options.width = options.minWidth;
790
+ }
791
+
792
+ // Reset wrapper sizing
793
+ // determine the height of all the non-content elements
794
+ nonContentHeight = this.uiDialog.css( {
795
+ height: "auto",
796
+ width: options.width
797
+ } )
798
+ .outerHeight();
799
+ minContentHeight = Math.max( 0, options.minHeight - nonContentHeight );
800
+ maxContentHeight = typeof options.maxHeight === "number" ?
801
+ Math.max( 0, options.maxHeight - nonContentHeight ) :
802
+ "none";
803
+
804
+ if ( options.height === "auto" ) {
805
+ this.element.css( {
806
+ minHeight: minContentHeight,
807
+ maxHeight: maxContentHeight,
808
+ height: "auto"
809
+ } );
810
+ } else {
811
+ this.element.height( Math.max( 0, options.height - nonContentHeight ) );
812
+ }
813
+
814
+ if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
815
+ this.uiDialog.resizable( "option", "minHeight", this._minHeight() );
816
+ }
817
+ },
818
+
819
+ _blockFrames: function() {
820
+ this.iframeBlocks = this.document.find( "iframe" ).map( function() {
821
+ var iframe = $( this );
822
+
823
+ return $( "<div>" )
824
+ .css( {
825
+ position: "absolute",
826
+ width: iframe.outerWidth(),
827
+ height: iframe.outerHeight()
828
+ } )
829
+ .appendTo( iframe.parent() )
830
+ .offset( iframe.offset() )[ 0 ];
831
+ } );
832
+ },
833
+
834
+ _unblockFrames: function() {
835
+ if ( this.iframeBlocks ) {
836
+ this.iframeBlocks.remove();
837
+ delete this.iframeBlocks;
838
+ }
839
+ },
840
+
841
+ _allowInteraction: function( event ) {
842
+ if ( $( event.target ).closest( ".ui-dialog" ).length ) {
843
+ return true;
844
+ }
845
+
846
+ // TODO: Remove hack when datepicker implements
847
+ // the .ui-front logic (#8989)
848
+ return !!$( event.target ).closest( ".ui-datepicker" ).length;
849
+ },
850
+
851
+ _createOverlay: function() {
852
+ if ( !this.options.modal ) {
853
+ return;
854
+ }
855
+
856
+ // We use a delay in case the overlay is created from an
857
+ // event that we're going to be cancelling (#2804)
858
+ var isOpening = true;
859
+ this._delay( function() {
860
+ isOpening = false;
861
+ } );
862
+
863
+ if ( !this.document.data( "ui-dialog-overlays" ) ) {
864
+
865
+ // Prevent use of anchors and inputs
866
+ // Using _on() for an event handler shared across many instances is
867
+ // safe because the dialogs stack and must be closed in reverse order
868
+ this._on( this.document, {
869
+ focusin: function( event ) {
870
+ if ( isOpening ) {
871
+ return;
872
+ }
873
+
874
+ if ( !this._allowInteraction( event ) ) {
875
+ event.preventDefault();
876
+ this._trackingInstances()[ 0 ]._focusTabbable();
877
+ }
878
+ }
879
+ } );
880
+ }
881
+
882
+ this.overlay = $( "<div>" )
883
+ .appendTo( this._appendTo() );
884
+
885
+ this._addClass( this.overlay, null, "ui-widget-overlay ui-front" );
886
+ this._on( this.overlay, {
887
+ mousedown: "_keepFocus"
888
+ } );
889
+ this.document.data( "ui-dialog-overlays",
890
+ ( this.document.data( "ui-dialog-overlays" ) || 0 ) + 1 );
891
+ },
892
+
893
+ _destroyOverlay: function() {
894
+ if ( !this.options.modal ) {
895
+ return;
896
+ }
897
+
898
+ if ( this.overlay ) {
899
+ var overlays = this.document.data( "ui-dialog-overlays" ) - 1;
900
+
901
+ if ( !overlays ) {
902
+ this._off( this.document, "focusin" );
903
+ this.document.removeData( "ui-dialog-overlays" );
904
+ } else {
905
+ this.document.data( "ui-dialog-overlays", overlays );
906
+ }
907
+
908
+ this.overlay.remove();
909
+ this.overlay = null;
910
+ }
911
+ }
912
+ } );
913
+
914
+ // DEPRECATED
915
+ // TODO: switch return back to widget declaration at top of file when this is removed
916
+ if ( $.uiBackCompat !== false ) {
917
+
918
+ // Backcompat for dialogClass option
919
+ $.widget( "ui.dialog", $.ui.dialog, {
920
+ options: {
921
+ dialogClass: ""
922
+ },
923
+ _createWrapper: function() {
924
+ this._super();
925
+ this.uiDialog.addClass( this.options.dialogClass );
926
+ },
927
+ _setOption: function( key, value ) {
928
+ if ( key === "dialogClass" ) {
929
+ this.uiDialog
930
+ .removeClass( this.options.dialogClass )
931
+ .addClass( value );
932
+ }
933
+ this._superApply( arguments );
934
+ }
935
+ } );
936
+ }
937
+
938
+ return $.ui.dialog;
939
+
940
+ } ) );