Caldera Forms – More Than Contact Forms - Version 1.5.0.3

Version Description

Download this release

Release Info

Developer Shelob9
Plugin Icon 128x128 Caldera Forms – More Than Contact Forms
Version 1.5.0.3
Comparing to
See all releases

Code changes from version 1.5.0.2 to 1.5.0.3

Files changed (608) hide show
  1. LICENSE +0 -0
  2. README.md +0 -0
  3. assets/build/css/admin.min.css +0 -0
  4. assets/build/css/caldera-alert.min.css +0 -0
  5. assets/build/css/caldera-form.min.css +0 -0
  6. assets/build/css/caldera-forms-front.min.css +0 -0
  7. assets/build/css/caldera-grid.min.css +0 -0
  8. assets/build/css/caldera-modals.min.css +0 -0
  9. assets/build/css/caldera-table.min.css +0 -0
  10. assets/build/css/cfont.min.css +0 -0
  11. assets/build/css/dashicon.min.css +0 -0
  12. assets/build/css/editor-grid.min.css +0 -0
  13. assets/build/css/entry-viewer-2.min.css +0 -0
  14. assets/build/css/fields.min.css +0 -0
  15. assets/build/css/fonts/caldera-forms.eot +0 -0
  16. assets/build/css/fonts/caldera-forms.svg +0 -0
  17. assets/build/css/fonts/caldera-forms.ttf +0 -0
  18. assets/build/css/fonts/caldera-forms.woff +0 -0
  19. assets/build/css/fonts/cf-raty.eot +0 -0
  20. assets/build/css/fonts/cf-raty.svg +0 -0
  21. assets/build/css/fonts/cf-raty.ttf +0 -0
  22. assets/build/css/fonts/cf-raty.woff +0 -0
  23. assets/build/css/fonts/cfont.eot +0 -0
  24. assets/build/css/fonts/cfont.svg +0 -0
  25. assets/build/css/fonts/cfont.ttf +0 -0
  26. assets/build/css/fonts/cfont.woff +0 -0
  27. assets/build/css/fonts/icon.eot +0 -0
  28. assets/build/css/fonts/icon.svg +0 -0
  29. assets/build/css/fonts/icon.ttf +0 -0
  30. assets/build/css/fonts/icon.woff +0 -0
  31. assets/build/css/minicolor-colors.png +0 -0
  32. assets/build/css/minicolor-trigger.png +0 -0
  33. assets/build/css/modals.min.css +0 -0
  34. assets/build/css/processors-edit.min.css +0 -0
  35. assets/build/css/remodal-default-theme.min.css +0 -0
  36. assets/build/css/remodal.min.css +0 -0
  37. assets/build/css/theme-default.min.css +0 -0
  38. assets/build/images/align-justify.svg +0 -0
  39. assets/build/images/calculator.svg +0 -0
  40. assets/build/images/caldera-globe-logo-sm.png +0 -0
  41. assets/build/images/cart-plus.svg +0 -0
  42. assets/build/images/cc-amex.svg +0 -0
  43. assets/build/images/cc-discover.svg +0 -0
  44. assets/build/images/cc-mastercard.svg +0 -0
  45. assets/build/images/cc-paypal.svg +0 -0
  46. assets/build/images/cc-stripe.svg +0 -0
  47. assets/build/images/cc-visa.svg +0 -0
  48. assets/build/images/chain.svg +0 -0
  49. assets/build/images/checkmark.png +0 -0
  50. assets/build/images/cloud-upload.svg +0 -0
  51. assets/build/images/cog.svg +0 -0
  52. assets/build/images/credit-card.svg +0 -0
  53. assets/build/images/envelope-o.svg +0 -0
  54. assets/build/images/envelope-square.svg +0 -0
  55. assets/build/images/eye.svg +0 -0
  56. assets/build/images/field.png +0 -0
  57. assets/build/images/folder-open-o.svg +0 -0
  58. assets/build/images/howto.gif +0 -0
  59. assets/build/images/lgo-icon.png +0 -0
  60. assets/build/images/list.svg +0 -0
  61. assets/build/images/loading.gif +0 -0
  62. assets/build/images/lock.svg +0 -0
  63. assets/build/images/mobile.svg +0 -0
  64. assets/build/images/new-icon.png +0 -0
  65. assets/build/images/paint-brush.svg +0 -0
  66. assets/build/images/paypal.svg +0 -0
  67. assets/build/images/plus.svg +0 -0
  68. assets/build/images/processor.png +0 -0
  69. assets/build/images/ra.svg +0 -0
  70. assets/build/images/slack.svg +0 -0
  71. assets/build/images/star.svg +0 -0
  72. assets/build/images/user.svg +0 -0
  73. assets/build/images/volume-control-phone.svg +0 -0
  74. assets/build/images/wordpress.svg +0 -0
  75. assets/build/js/admin.min.js +0 -0
  76. assets/build/js/ajax-core.min.js +0 -0
  77. assets/build/js/caldera-clippy.min.js +0 -0
  78. assets/build/js/caldera-forms-front.min.js +0 -0
  79. assets/build/js/caldera-modals.min.js +0 -0
  80. assets/build/js/conditionals.min.js +0 -0
  81. assets/build/js/edit.min.js +0 -0
  82. assets/build/js/entry-viewer-2.min.js +0 -0
  83. assets/build/js/field-config.min.js +0 -0
  84. assets/build/js/fields.min.js +0 -0
  85. assets/build/js/formobject.min.js +0 -0
  86. assets/build/js/frontend-script-init.min.js +0 -0
  87. assets/build/js/handlebars.min.js +0 -0
  88. assets/build/js/html5.min.js +0 -0
  89. assets/build/js/i18n/ar.js +0 -0
  90. assets/build/js/i18n/bg.js +0 -0
  91. assets/build/js/i18n/ca.js +0 -0
  92. assets/build/js/i18n/cs.extra.js +0 -0
  93. assets/build/js/i18n/cs.js +0 -0
  94. assets/build/js/i18n/da.js +0 -0
  95. assets/build/js/i18n/de.extra.js +0 -0
  96. assets/build/js/i18n/de.js +0 -0
  97. assets/build/js/i18n/el.extra.js +0 -0
  98. assets/build/js/i18n/el.js +0 -0
  99. assets/build/js/i18n/en.extra.js +0 -0
  100. assets/build/js/i18n/en.js +0 -0
  101. assets/build/js/i18n/es.js +0 -0
  102. assets/build/js/i18n/fa.js +0 -0
  103. assets/build/js/i18n/fi.extra.js +0 -0
  104. assets/build/js/i18n/fi.js +0 -0
  105. assets/build/js/i18n/fr.extra.js +0 -0
  106. assets/build/js/i18n/fr.js +0 -0
  107. assets/build/js/i18n/he.extra.js +0 -0
  108. assets/build/js/i18n/he.js +0 -0
  109. assets/build/js/i18n/id.extra.js +0 -0
  110. assets/build/js/i18n/id.js +0 -0
  111. assets/build/js/i18n/it.extra.js +0 -0
  112. assets/build/js/i18n/it.js +0 -0
  113. assets/build/js/i18n/ja.js +0 -0
  114. assets/build/js/i18n/ko.js +0 -0
  115. assets/build/js/i18n/ms_MY.extra.js +0 -0
  116. assets/build/js/i18n/ms_MY.js +0 -0
  117. assets/build/js/i18n/nl.extra.js +0 -0
  118. assets/build/js/i18n/nl.js +0 -0
  119. assets/build/js/i18n/no.js +0 -0
  120. assets/build/js/i18n/pl.js +0 -0
  121. assets/build/js/i18n/pt-br.js +0 -0
  122. assets/build/js/i18n/pt-pt.js +0 -0
  123. assets/build/js/i18n/ro.extra.js +0 -0
  124. assets/build/js/i18n/ro.js +0 -0
  125. assets/build/js/i18n/ru.extra.js +0 -0
  126. assets/build/js/i18n/ru.js +0 -0
  127. assets/build/js/i18n/sq.js +0 -0
  128. assets/build/js/i18n/sv.extra.js +0 -0
  129. assets/build/js/i18n/sv.js +0 -0
  130. assets/build/js/i18n/th.js +0 -0
  131. assets/build/js/i18n/tr.js +0 -0
  132. assets/build/js/i18n/uk.extra.js +0 -0
  133. assets/build/js/i18n/uk.js +0 -0
  134. assets/build/js/i18n/zh_cn.extra.js +0 -0
  135. assets/build/js/i18n/zh_cn.js +0 -0
  136. assets/build/js/i18n/zh_tw.js +0 -0
  137. assets/build/js/jquery-baldrick.min.js +0 -0
  138. assets/build/js/jquery.min.js +0 -0
  139. assets/build/js/modals.min.js +0 -0
  140. assets/build/js/parsley.min.js +0 -0
  141. assets/build/js/polyfiller.min.js +0 -0
  142. assets/build/js/remodal.min.js +0 -0
  143. assets/build/js/shortcode-insert.min.js +0 -0
  144. assets/build/js/support-page.min.js +0 -0
  145. assets/build/js/vue.min.js +0 -0
  146. assets/build/js/wp-baldrick-full.min.js +0 -0
  147. assets/css/caldera-forms-front.min.css +0 -1
  148. assets/css/caldera-modals.css +0 -0
  149. assets/css/caldera-modals.min.css +0 -1
  150. assets/css/caldera-table.css +0 -0
  151. assets/css/cfont.css +0 -0
  152. assets/css/entry-viewer-2.css +0 -0
  153. assets/css/fields.min.css +0 -59
  154. assets/css/fonts/cfont.eot +0 -0
  155. assets/css/fonts/cfont.svg +0 -0
  156. assets/css/fonts/cfont.ttf +0 -0
  157. assets/css/fonts/cfont.woff +0 -0
  158. assets/css/ie7/ie7.css +43 -0
  159. assets/css/ie7/ie7.js +45 -0
  160. assets/css/remodal-default-theme.css +0 -0
  161. assets/css/remodal-default-theme.min.css +0 -1
  162. assets/css/remodal.css +0 -0
  163. assets/css/remodal.min.css +0 -1
  164. assets/css/theme-default.min.css +0 -0
  165. assets/images/align-justify.svg +0 -0
  166. assets/images/calculator.svg +0 -0
  167. assets/images/cart-plus.svg +0 -0
  168. assets/images/cc-amex.svg +0 -0
  169. assets/images/cc-discover.svg +0 -0
  170. assets/images/cc-mastercard.svg +0 -0
  171. assets/images/cc-paypal.svg +0 -0
  172. assets/images/cc-stripe.svg +0 -0
  173. assets/images/cc-visa.svg +0 -0
  174. assets/images/chain.svg +0 -0
  175. assets/images/cloud-upload.svg +0 -0
  176. assets/images/cog.svg +0 -0
  177. assets/images/credit-card.svg +0 -0
  178. assets/images/envelope-o.svg +0 -0
  179. assets/images/envelope-square.svg +0 -0
  180. assets/images/eye.svg +0 -0
  181. assets/images/folder-open-o.svg +0 -0
  182. assets/images/list.svg +0 -0
  183. assets/images/lock.svg +0 -0
  184. assets/images/mobile.svg +0 -0
  185. assets/images/paint-brush.svg +0 -0
  186. assets/images/paypal.svg +0 -0
  187. assets/images/plus.svg +0 -0
  188. assets/images/ra.svg +0 -0
  189. assets/images/slack.svg +0 -0
  190. assets/images/star.svg +0 -0
  191. assets/images/user.svg +0 -0
  192. assets/images/volume-control-phone.svg +0 -0
  193. assets/images/wordpress.svg +0 -0
  194. assets/js/ajax-core.js +0 -0
  195. assets/js/ajax-core.min.js +0 -1
  196. assets/js/api/client.js +0 -0
  197. assets/js/api/stores.js +0 -0
  198. assets/js/caldera-forms-front.js +0 -0
  199. assets/js/caldera-modals.js +0 -0
  200. assets/js/caldera-modals.min.js +0 -1
  201. assets/js/conditionals.min.js +0 -1
  202. assets/js/entry-viewer-2.js +0 -0
  203. assets/js/field-config.js +0 -0
  204. assets/js/fields.js +0 -0
  205. assets/js/fields.min.js +0 -4
  206. assets/js/formobject.js +0 -0
  207. assets/js/formobject.min.js +0 -1
  208. assets/js/frontend-script-init.min.js +0 -1
  209. assets/js/html5.js +0 -0
  210. assets/js/i18n/ar.js +0 -0
  211. assets/js/i18n/bg.js +0 -0
  212. assets/js/i18n/ca.js +0 -0
  213. assets/js/i18n/cs.extra.js +0 -0
  214. assets/js/i18n/cs.js +0 -0
  215. assets/js/i18n/da.js +0 -0
  216. assets/js/i18n/de.extra.js +0 -0
  217. assets/js/i18n/de.js +0 -0
  218. assets/js/i18n/el.extra.js +0 -0
  219. assets/js/i18n/el.js +0 -0
  220. assets/js/i18n/en.extra.js +0 -0
  221. assets/js/i18n/en.js +0 -0
  222. assets/js/i18n/es.js +0 -0
  223. assets/js/i18n/fa.js +0 -0
  224. assets/js/i18n/fi.extra.js +0 -0
  225. assets/js/i18n/fi.js +0 -0
  226. assets/js/i18n/fr.extra.js +0 -0
  227. assets/js/i18n/fr.js +0 -0
  228. assets/js/i18n/he.extra.js +0 -0
  229. assets/js/i18n/he.js +0 -0
  230. assets/js/i18n/id.extra.js +0 -0
  231. assets/js/i18n/id.js +0 -0
  232. assets/js/i18n/it.extra.js +0 -0
  233. assets/js/i18n/it.js +0 -0
  234. assets/js/i18n/ja.js +0 -0
  235. assets/js/i18n/ko.js +0 -0
  236. assets/js/i18n/ms_MY.extra.js +0 -0
  237. assets/js/i18n/ms_MY.js +0 -0
  238. assets/js/i18n/nl.extra.js +0 -0
  239. assets/js/i18n/nl.js +0 -0
  240. assets/js/i18n/no.js +0 -0
  241. assets/js/i18n/pl.js +0 -0
  242. assets/js/i18n/pt-br.js +0 -0
  243. assets/js/i18n/pt-pt.js +0 -0
  244. assets/js/i18n/ro.extra.js +0 -0
  245. assets/js/i18n/ro.js +0 -0
  246. assets/js/i18n/ru.extra.js +0 -0
  247. assets/js/i18n/ru.js +0 -0
  248. assets/js/i18n/sq.js +0 -0
  249. assets/js/i18n/sv.extra.js +0 -0
  250. assets/js/i18n/sv.js +0 -0
  251. assets/js/i18n/th.js +0 -0
  252. assets/js/i18n/tr.js +0 -0
  253. assets/js/i18n/uk.extra.js +0 -0
  254. assets/js/i18n/uk.js +0 -0
  255. assets/js/i18n/zh_cn.extra.js +0 -0
  256. assets/js/i18n/zh_cn.js +0 -0
  257. assets/js/i18n/zh_tw.js +0 -0
  258. assets/js/jquery-baldrick.js +0 -0
  259. assets/js/jquery.baldrick.js +0 -586
  260. assets/js/jquery.baldrick.min.js +0 -1
  261. assets/js/jquery.form-validator.min.js +0 -8
  262. assets/js/parsley.js +0 -0
  263. assets/js/parsley.min.js +0 -2
  264. assets/js/polyfiller.min.js +0 -2
  265. assets/js/remodal.js +0 -0
  266. assets/js/remodal.min.js +0 -10
  267. assets/js/shims/color-picker.js +0 -0
  268. assets/js/shims/combos/1.js +0 -0
  269. assets/js/shims/combos/10.js +0 -0
  270. assets/js/shims/combos/11.js +0 -0
  271. assets/js/shims/combos/12.js +0 -0
  272. assets/js/shims/combos/13.js +0 -0
  273. assets/js/shims/combos/14.js +0 -0
  274. assets/js/shims/combos/15.js +0 -0
  275. assets/js/shims/combos/16.js +0 -0
  276. assets/js/shims/combos/17.js +0 -0
  277. assets/js/shims/combos/18.js +0 -0
  278. assets/js/shims/combos/2.js +0 -0
  279. assets/js/shims/combos/21.js +0 -0
  280. assets/js/shims/combos/22.js +0 -0
  281. assets/js/shims/combos/23.js +0 -0
  282. assets/js/shims/combos/25.js +0 -0
  283. assets/js/shims/combos/27.js +0 -0
  284. assets/js/shims/combos/28.js +0 -0
  285. assets/js/shims/combos/29.js +0 -0
  286. assets/js/shims/combos/3.js +0 -0
  287. assets/js/shims/combos/30.js +0 -0
  288. assets/js/shims/combos/31.js +0 -0
  289. assets/js/shims/combos/33.js +0 -0
  290. assets/js/shims/combos/34.js +0 -0
  291. assets/js/shims/combos/4.js +0 -0
  292. assets/js/shims/combos/5.js +0 -0
  293. assets/js/shims/combos/6.js +0 -0
  294. assets/js/shims/combos/7.js +0 -0
  295. assets/js/shims/combos/8.js +0 -0
  296. assets/js/shims/combos/9.js +0 -0
  297. assets/js/shims/combos/97.js +0 -0
  298. assets/js/shims/combos/98.js +0 -0
  299. assets/js/shims/combos/99.js +0 -0
  300. assets/js/shims/details.js +0 -0
  301. assets/js/shims/dom-extend.js +0 -0
  302. assets/js/shims/es5.js +0 -0
  303. assets/js/shims/es6.js +0 -0
  304. assets/js/shims/excanvas.js +0 -0
  305. assets/js/shims/filereader-xhr.js +0 -0
  306. assets/js/shims/form-combat.js +0 -0
  307. assets/js/shims/form-core.js +0 -0
  308. assets/js/shims/form-datalist-lazy.js +0 -0
  309. assets/js/shims/form-datalist.js +0 -0
  310. assets/js/shims/form-fixrangechange.js +0 -0
  311. assets/js/shims/form-inputmode.js +0 -0
  312. assets/js/shims/form-message.js +0 -0
  313. assets/js/shims/form-native-extend.js +0 -0
  314. assets/js/shims/form-number-date-api.js +0 -0
  315. assets/js/shims/form-number-date-ui.js +0 -0
  316. assets/js/shims/form-shim-extend.js +0 -0
  317. assets/js/shims/form-shim-extend2.js +0 -0
  318. assets/js/shims/form-validation.js +0 -0
  319. assets/js/shims/form-validators.js +0 -0
  320. assets/js/shims/forms-picker.js +0 -0
  321. assets/js/shims/geolocation.js +0 -0
  322. assets/js/shims/i18n/formcfg-ar.js +0 -0
  323. assets/js/shims/i18n/formcfg-bg.js +0 -0
  324. assets/js/shims/i18n/formcfg-ca.js +0 -0
  325. assets/js/shims/i18n/formcfg-ch-CN.js +0 -0
  326. assets/js/shims/i18n/formcfg-cs.js +0 -0
  327. assets/js/shims/i18n/formcfg-de.js +0 -0
  328. assets/js/shims/i18n/formcfg-el.js +0 -0
  329. assets/js/shims/i18n/formcfg-en.js +0 -0
  330. assets/js/shims/i18n/formcfg-es.js +0 -0
  331. assets/js/shims/i18n/formcfg-fa.js +0 -0
  332. assets/js/shims/i18n/formcfg-fi.js +0 -0
  333. assets/js/shims/i18n/formcfg-fr.js +0 -0
  334. assets/js/shims/i18n/formcfg-he.js +0 -0
  335. assets/js/shims/i18n/formcfg-hi.js +0 -0
  336. assets/js/shims/i18n/formcfg-hu.js +0 -0
  337. assets/js/shims/i18n/formcfg-it.js +0 -0
  338. assets/js/shims/i18n/formcfg-ja.js +0 -0
  339. assets/js/shims/i18n/formcfg-lt.js +0 -0
  340. assets/js/shims/i18n/formcfg-nl.js +0 -0
  341. assets/js/shims/i18n/formcfg-no.js +0 -0
  342. assets/js/shims/i18n/formcfg-pl.js +0 -0
  343. assets/js/shims/i18n/formcfg-pt-BR.js +0 -0
  344. assets/js/shims/i18n/formcfg-pt-PT.js +0 -0
  345. assets/js/shims/i18n/formcfg-pt.js +0 -0
  346. assets/js/shims/i18n/formcfg-ru.js +0 -0
  347. assets/js/shims/i18n/formcfg-sv.js +0 -0
  348. assets/js/shims/i18n/formcfg-zh-CN.js +0 -0
  349. assets/js/shims/i18n/formcfg-zh-TW.js +0 -0
  350. assets/js/shims/matchMedia.js +0 -0
  351. assets/js/shims/mediacapture-picker.js +0 -0
  352. assets/js/shims/mediacapture.js +0 -0
  353. assets/js/shims/moxie/flash/Moxie.cdn.swf +0 -0
  354. assets/js/shims/moxie/flash/Moxie.min.swf +0 -0
  355. assets/js/shims/moxie/js/moxie-html4.js +0 -0
  356. assets/js/shims/moxie/js/moxie-swf.js +0 -0
  357. assets/js/shims/picture.js +0 -0
  358. assets/js/shims/plugins/jquery.ui.position.js +0 -0
  359. assets/js/shims/range-ui.js +0 -0
  360. assets/js/shims/sizzle.js +0 -0
  361. assets/js/shims/sticky.js +0 -0
  362. assets/js/shims/styles/color-picker.png +0 -0
  363. assets/js/shims/styles/forms-ext.css +0 -0
  364. assets/js/shims/styles/forms-picker.css +0 -0
  365. assets/js/shims/styles/progress.gif +0 -0
  366. assets/js/shims/styles/progress.png +0 -0
  367. assets/js/shims/styles/shim-ext.css +0 -0
  368. assets/js/shims/styles/shim.css +0 -0
  369. assets/js/shims/styles/transparent.png +0 -0
  370. assets/js/shims/styles/widget.eot +0 -0
  371. assets/js/shims/styles/widget.svg +0 -0
  372. assets/js/shims/styles/widget.ttf +0 -0
  373. assets/js/shims/styles/widget.woff +0 -0
  374. assets/js/shims/track-ui.js +0 -0
  375. assets/js/shims/track.js +0 -0
  376. assets/js/shims/url.js +0 -0
  377. assets/js/shims/usermedia-core.js +0 -0
  378. assets/js/shims/usermedia-shim.js +0 -0
  379. assets/js/shortcode-insert.min.js +0 -1
  380. assets/js/support-page.js +0 -0
  381. assets/js/viewer/init.js +0 -0
  382. assets/js/viewer/viewer.js +0 -0
  383. assets/js/vue.js +0 -0
  384. assets/js/vue/vue-filter.js +0 -0
  385. assets/js/vue/vue.js +0 -0
  386. caldera-core.php +2 -2
  387. classes/admin/apeasypods.php +0 -0
  388. classes/admin/apeasyqueries.php +0 -0
  389. classes/admin/apsetup.php +0 -0
  390. classes/admin/apsetupinterface.php +0 -0
  391. classes/admin/assets.php +0 -0
  392. classes/admin/extend.php +0 -0
  393. classes/admin/feed.php +0 -0
  394. classes/admin/panel.php +0 -0
  395. classes/api/entries.php +0 -0
  396. classes/api/form.php +0 -0
  397. classes/api/forms.php +0 -0
  398. classes/api/jsconfig.php +0 -0
  399. classes/api/settings.php +0 -0
  400. classes/api/token.php +0 -0
  401. classes/api/tokens.php +0 -0
  402. classes/autoloader.php +0 -0
  403. classes/db/base.php +0 -0
  404. classes/db/track.php +0 -0
  405. classes/email/attachment.php +0 -0
  406. classes/email/callbacks.php +0 -0
  407. classes/email/client.php +0 -0
  408. classes/email/interface.php +0 -0
  409. classes/email/preview.php +0 -0
  410. classes/email/previews.php +0 -0
  411. classes/email/save.php +0 -0
  412. classes/email/sendgrid.php +0 -0
  413. classes/email/sendgrid/lib/SendGrid.php +0 -0
  414. classes/email/sendgrid/lib/helpers/mail/Mail.php +0 -0
  415. classes/email/sendgrid/lib/helpers/mail/README.md +0 -0
  416. classes/email/sendgrid/sendgrid-php.php +0 -0
  417. classes/email/sendgrid/vendor/autoload.php +0 -0
  418. classes/email/sendgrid/vendor/composer/ClassLoader.php +0 -0
  419. classes/email/sendgrid/vendor/composer/LICENSE +0 -0
  420. classes/email/sendgrid/vendor/composer/autoload_classmap.php +0 -0
  421. classes/email/sendgrid/vendor/composer/autoload_files.php +0 -0
  422. classes/email/sendgrid/vendor/composer/autoload_namespaces.php +0 -0
  423. classes/email/sendgrid/vendor/composer/autoload_psr4.php +0 -0
  424. classes/email/sendgrid/vendor/composer/autoload_real.php +0 -0
  425. classes/email/sendgrid/vendor/composer/autoload_static.php +0 -0
  426. classes/email/sendgrid/vendor/composer/installed.json +0 -0
  427. classes/email/sendgrid/vendor/sendgrid/php-http-client/CHANGELOG.md +0 -0
  428. classes/email/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md +0 -0
  429. classes/email/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt +0 -0
  430. classes/email/sendgrid/vendor/sendgrid/php-http-client/README.md +0 -0
  431. classes/email/sendgrid/vendor/sendgrid/php-http-client/examples/example.php +0 -0
  432. classes/email/sendgrid/vendor/sendgrid/php-http-client/lib/SendGrid/Client.php +0 -0
  433. classes/email/settings.php +0 -0
  434. classes/entry.php +0 -0
  435. classes/entry/bulk.php +0 -0
  436. classes/entry/entries.php +0 -0
  437. classes/entry/entry.php +0 -0
  438. classes/entry/field.php +0 -0
  439. classes/entry/meta.php +0 -0
  440. classes/entry/object.php +0 -0
  441. classes/entry/shortcode.php +0 -0
  442. classes/entry/ui.php +0 -0
  443. classes/entry/update.php +0 -0
  444. classes/entry/viewer.php +0 -0
  445. classes/entry/vue.php +0 -0
  446. classes/field/credit.php +0 -0
  447. classes/field/html.php +0 -0
  448. classes/field/input.php +0 -0
  449. classes/field/js.php +0 -0
  450. classes/field/localizer.php +0 -0
  451. classes/fields.php +0 -0
  452. classes/forms.php +0 -0
  453. classes/magic.php +0 -0
  454. classes/magic/doer.php +0 -0
  455. classes/magic/parser.php +0 -0
  456. classes/magic/summary.php +0 -0
  457. classes/magic/util.php +0 -0
  458. classes/object.php +0 -0
  459. classes/render/assets.php +0 -0
  460. classes/render/autopopulation.php +0 -0
  461. classes/render/footer.php +0 -0
  462. classes/render/nonce.php +0 -0
  463. classes/render/notices.php +0 -0
  464. classes/render/util.php +0 -0
  465. classes/save.php +0 -0
  466. classes/support.php +0 -0
  467. classes/sync/calc.php +0 -0
  468. classes/sync/factory.php +0 -0
  469. classes/sync/html.php +0 -0
  470. classes/sync/summary.php +0 -0
  471. classes/sync/sync.php +0 -0
  472. classes/tracking.php +0 -0
  473. classes/transient.php +0 -0
  474. composer.json +0 -0
  475. fields/advanced_file/config_template.php +0 -0
  476. fields/advanced_file/field.php +0 -0
  477. fields/advanced_file/preview.php +0 -0
  478. fields/advanced_file/uploader.js +0 -0
  479. fields/advanced_file/uploader.min.js +0 -0
  480. fields/color_picker/field.php +0 -7
  481. fields/color_picker/minicolors.min.css +0 -0
  482. fields/credit_card_cvc/config.php +0 -0
  483. fields/credit_card_cvc/preview.php +0 -0
  484. fields/credit_card_exp/config.php +0 -0
  485. fields/credit_card_exp/preview.php +0 -0
  486. fields/credit_card_number/config.php +0 -0
  487. fields/credit_card_number/credit-card.js +0 -0
  488. fields/credit_card_number/preview.php +0 -0
  489. fields/date_picker/js/setup.js +0 -0
  490. fields/email/field.php +0 -13
  491. fields/file/uploader.js +0 -0
  492. fields/file/uploader.min.js +0 -0
  493. fields/generic-input.php +0 -0
  494. fields/number/config.php +0 -0
  495. fields/number/preview.php +0 -0
  496. fields/phone/field.php +0 -19
  497. fields/phone_better/assets/css/demo.css +0 -0
  498. fields/phone_better/assets/css/intlTelInput.css +0 -0
  499. fields/phone_better/assets/img/flags.png +0 -0
  500. fields/phone_better/assets/img/flags@2x.png +0 -0
  501. fields/phone_better/assets/js/intlTelInput.js +0 -0
  502. fields/phone_better/assets/js/intlTelInput.min.js +0 -0
  503. fields/phone_better/assets/js/utils.js +0 -0
  504. fields/phone_better/config.php +0 -0
  505. fields/phone_better/preview.php +0 -0
  506. fields/section-break/config.php +0 -0
  507. fields/section-break/section-break.php +0 -0
  508. fields/select2/field/config.php +0 -0
  509. fields/select2/field/field.php +0 -0
  510. fields/select2/field/preview.php +0 -0
  511. fields/select2/js/select2.js +0 -0
  512. fields/select2/js/select2.min.js +0 -0
  513. fields/select2/select2.php +0 -0
  514. fields/summary/config.php +0 -0
  515. fields/summary/field.php +0 -0
  516. fields/summary/preview.php +0 -0
  517. fields/text/field.php +0 -36
  518. fields/url/config.php +0 -0
  519. fields/url/preview.php +0 -0
  520. fields/wysiwyg/config_template.php +0 -0
  521. fields/wysiwyg/field.php +0 -0
  522. fields/wysiwyg/langs/ar.min.js +0 -0
  523. fields/wysiwyg/langs/ca.min.js +0 -0
  524. fields/wysiwyg/langs/cs.min.js +0 -0
  525. fields/wysiwyg/langs/da.min.js +0 -0
  526. fields/wysiwyg/langs/de.min.js +0 -0
  527. fields/wysiwyg/langs/el.min.js +0 -0
  528. fields/wysiwyg/langs/es.min.js +0 -0
  529. fields/wysiwyg/langs/es_ar.min.js +0 -0
  530. fields/wysiwyg/langs/fa.min.js +0 -0
  531. fields/wysiwyg/langs/fi.min.js +0 -0
  532. fields/wysiwyg/langs/fr.min.js +0 -0
  533. fields/wysiwyg/langs/he.min.js +0 -0
  534. fields/wysiwyg/langs/hr.min.js +0 -0
  535. fields/wysiwyg/langs/hu.min.js +0 -0
  536. fields/wysiwyg/langs/id.min.js +0 -0
  537. fields/wysiwyg/langs/it.min.js +0 -0
  538. fields/wysiwyg/langs/ja.min.js +0 -0
  539. fields/wysiwyg/langs/ko.min.js +0 -0
  540. fields/wysiwyg/langs/my.min.js +0 -0
  541. fields/wysiwyg/langs/nl.min.js +0 -0
  542. fields/wysiwyg/langs/no_nb.min.js +0 -0
  543. fields/wysiwyg/langs/ph.min.js +0 -0
  544. fields/wysiwyg/langs/pl.min.js +0 -0
  545. fields/wysiwyg/langs/pt.min.js +0 -0
  546. fields/wysiwyg/langs/ro.min.js +0 -0
  547. fields/wysiwyg/langs/rs.min.js +0 -0
  548. fields/wysiwyg/langs/rs_latin.min.js +0 -0
  549. fields/wysiwyg/langs/ru.min.js +0 -0
  550. fields/wysiwyg/langs/sk.min.js +0 -0
  551. fields/wysiwyg/langs/sv.min.js +0 -0
  552. fields/wysiwyg/langs/tr.min.js +0 -0
  553. fields/wysiwyg/langs/ua.min.js +0 -0
  554. fields/wysiwyg/langs/vi.min.js +0 -0
  555. fields/wysiwyg/langs/zh_cn.min.js +0 -0
  556. fields/wysiwyg/langs/zh_tw.min.js +0 -0
  557. fields/wysiwyg/preview.php +0 -0
  558. fields/wysiwyg/ui/icons.svg +0 -0
  559. fields/wysiwyg/wysiwyg.css +0 -0
  560. fields/wysiwyg/wysiwyg.js +0 -0
  561. fields/wysiwyg/wysiwyg.min.css +0 -0
  562. fields/wysiwyg/wysiwyg.min.js +0 -0
  563. includes/ajax.php +0 -0
  564. includes/compat.php +0 -0
  565. includes/functions.php +0 -0
  566. includes/presets/countries_iso_alpha_2.txt +0 -0
  567. includes/presets/countries_names.txt +0 -0
  568. includes/templates/job-application-form-example.php +0 -0
  569. includes/templates/rate-our-service-example.php +0 -0
  570. includes/templates/registration-form-example.php +0 -0
  571. includes/templates/simple-booking-form-example.php +0 -0
  572. includes/templates/starter-contact-form.php +0 -0
  573. includes/templates/variable-price-example.php +0 -0
  574. includes/updater.php +0 -0
  575. languages/caldera-forms-pt_BR.mo +0 -0
  576. languages/caldera-forms-pt_BR.po +0 -0
  577. languages/caldera-forms-pt_PT.mo +0 -0
  578. languages/caldera-forms-pt_PT.po +0 -0
  579. languages/caldera-forms-tr_TR.mo +0 -0
  580. languages/caldera-forms-tr_TR.po +0 -0
  581. processors/classes/conditional_recipient.php +0 -0
  582. processors/classes/get_data.php +0 -0
  583. processors/classes/interfaces/newsletter.php +0 -0
  584. processors/classes/interfaces/payment.php +0 -0
  585. processors/classes/interfaces/process.php +0 -0
  586. processors/classes/load.php +0 -0
  587. processors/classes/newsletter.php +0 -0
  588. processors/classes/payment.php +0 -0
  589. processors/classes/processor.php +0 -0
  590. processors/classes/ui.php +0 -0
  591. processors/conditional_recipient/config.php +3 -0
  592. processors/functions.php +0 -0
  593. readme.txt +1 -1
  594. ui/community.php +0 -50
  595. ui/emails/email-preview.php +0 -0
  596. ui/emails/settings.php +0 -0
  597. ui/entries/pagination.php +22 -0
  598. ui/entries/scripts_templates.php +388 -0
  599. ui/{entries_toolbar.php → entries/toolbar.php} +23 -4
  600. ui/entries/viewer.php +19 -0
  601. ui/entry_navigation.php +0 -188
  602. ui/panels/conditions.php +0 -0
  603. ui/panels/layout_toolbar.php +0 -0
  604. ui/support/page.php +0 -0
  605. ui/support/panels/beta.php +0 -0
  606. ui/support/panels/debug.php +0 -0
  607. ui/support/panels/support.php +0 -0
  608. ui/viewer-two/viewer.php +70 -0
LICENSE CHANGED
File without changes
README.md CHANGED
File without changes
assets/build/css/admin.min.css CHANGED
File without changes
assets/build/css/caldera-alert.min.css CHANGED
File without changes
assets/build/css/caldera-form.min.css CHANGED
File without changes
assets/build/css/caldera-forms-front.min.css CHANGED
File without changes
assets/build/css/caldera-grid.min.css CHANGED
File without changes
assets/build/css/caldera-modals.min.css CHANGED
File without changes
assets/build/css/caldera-table.min.css CHANGED
File without changes
assets/build/css/cfont.min.css CHANGED
File without changes
assets/build/css/dashicon.min.css CHANGED
File without changes
assets/build/css/editor-grid.min.css CHANGED
File without changes
assets/build/css/entry-viewer-2.min.css CHANGED
File without changes
assets/build/css/fields.min.css CHANGED
File without changes
assets/build/css/fonts/caldera-forms.eot CHANGED
File without changes
assets/build/css/fonts/caldera-forms.svg CHANGED
File without changes
assets/build/css/fonts/caldera-forms.ttf CHANGED
File without changes
assets/build/css/fonts/caldera-forms.woff CHANGED
File without changes
assets/build/css/fonts/cf-raty.eot CHANGED
File without changes
assets/build/css/fonts/cf-raty.svg CHANGED
File without changes
assets/build/css/fonts/cf-raty.ttf CHANGED
File without changes
assets/build/css/fonts/cf-raty.woff CHANGED
File without changes
assets/build/css/fonts/cfont.eot CHANGED
File without changes
assets/build/css/fonts/cfont.svg CHANGED
File without changes
assets/build/css/fonts/cfont.ttf CHANGED
File without changes
assets/build/css/fonts/cfont.woff CHANGED
File without changes
assets/build/css/fonts/icon.eot CHANGED
File without changes
assets/build/css/fonts/icon.svg CHANGED
File without changes
assets/build/css/fonts/icon.ttf CHANGED
File without changes
assets/build/css/fonts/icon.woff CHANGED
File without changes
assets/build/css/minicolor-colors.png CHANGED
File without changes
assets/build/css/minicolor-trigger.png CHANGED
File without changes
assets/build/css/modals.min.css CHANGED
File without changes
assets/build/css/processors-edit.min.css CHANGED
File without changes
assets/build/css/remodal-default-theme.min.css CHANGED
File without changes
assets/build/css/remodal.min.css CHANGED
File without changes
assets/build/css/theme-default.min.css CHANGED
File without changes
assets/build/images/align-justify.svg CHANGED
File without changes
assets/build/images/calculator.svg CHANGED
File without changes
assets/build/images/caldera-globe-logo-sm.png CHANGED
File without changes
assets/build/images/cart-plus.svg CHANGED
File without changes
assets/build/images/cc-amex.svg CHANGED
File without changes
assets/build/images/cc-discover.svg CHANGED
File without changes
assets/build/images/cc-mastercard.svg CHANGED
File without changes
assets/build/images/cc-paypal.svg CHANGED
File without changes
assets/build/images/cc-stripe.svg CHANGED
File without changes
assets/build/images/cc-visa.svg CHANGED
File without changes
assets/build/images/chain.svg CHANGED
File without changes
assets/build/images/checkmark.png CHANGED
File without changes
assets/build/images/cloud-upload.svg CHANGED
File without changes
assets/build/images/cog.svg CHANGED
File without changes
assets/build/images/credit-card.svg CHANGED
File without changes
assets/build/images/envelope-o.svg CHANGED
File without changes
assets/build/images/envelope-square.svg CHANGED
File without changes
assets/build/images/eye.svg CHANGED
File without changes
assets/build/images/field.png CHANGED
File without changes
assets/build/images/folder-open-o.svg CHANGED
File without changes
assets/build/images/howto.gif CHANGED
File without changes
assets/build/images/lgo-icon.png CHANGED
File without changes
assets/build/images/list.svg CHANGED
File without changes
assets/build/images/loading.gif CHANGED
File without changes
assets/build/images/lock.svg CHANGED
File without changes
assets/build/images/mobile.svg CHANGED
File without changes
assets/build/images/new-icon.png CHANGED
File without changes
assets/build/images/paint-brush.svg CHANGED
File without changes
assets/build/images/paypal.svg CHANGED
File without changes
assets/build/images/plus.svg CHANGED
File without changes
assets/build/images/processor.png CHANGED
File without changes
assets/build/images/ra.svg CHANGED
File without changes
assets/build/images/slack.svg CHANGED
File without changes
assets/build/images/star.svg CHANGED
File without changes
assets/build/images/user.svg CHANGED
File without changes
assets/build/images/volume-control-phone.svg CHANGED
File without changes
assets/build/images/wordpress.svg CHANGED
File without changes
assets/build/js/admin.min.js CHANGED
File without changes
assets/build/js/ajax-core.min.js CHANGED
File without changes
assets/build/js/caldera-clippy.min.js CHANGED
File without changes
assets/build/js/caldera-forms-front.min.js CHANGED
File without changes
assets/build/js/caldera-modals.min.js CHANGED
File without changes
assets/build/js/conditionals.min.js CHANGED
File without changes
assets/build/js/edit.min.js CHANGED
File without changes
assets/build/js/entry-viewer-2.min.js CHANGED
File without changes
assets/build/js/field-config.min.js CHANGED
File without changes
assets/build/js/fields.min.js CHANGED
File without changes
assets/build/js/formobject.min.js CHANGED
File without changes
assets/build/js/frontend-script-init.min.js CHANGED
File without changes
assets/build/js/handlebars.min.js CHANGED
File without changes
assets/build/js/html5.min.js CHANGED
File without changes
assets/build/js/i18n/ar.js CHANGED
File without changes
assets/build/js/i18n/bg.js CHANGED
File without changes
assets/build/js/i18n/ca.js CHANGED
File without changes
assets/build/js/i18n/cs.extra.js CHANGED
File without changes
assets/build/js/i18n/cs.js CHANGED
File without changes
assets/build/js/i18n/da.js CHANGED
File without changes
assets/build/js/i18n/de.extra.js CHANGED
File without changes
assets/build/js/i18n/de.js CHANGED
File without changes
assets/build/js/i18n/el.extra.js CHANGED
File without changes
assets/build/js/i18n/el.js CHANGED
File without changes
assets/build/js/i18n/en.extra.js CHANGED
File without changes
assets/build/js/i18n/en.js CHANGED
File without changes
assets/build/js/i18n/es.js CHANGED
File without changes
assets/build/js/i18n/fa.js CHANGED
File without changes
assets/build/js/i18n/fi.extra.js CHANGED
File without changes
assets/build/js/i18n/fi.js CHANGED
File without changes
assets/build/js/i18n/fr.extra.js CHANGED
File without changes
assets/build/js/i18n/fr.js CHANGED
File without changes
assets/build/js/i18n/he.extra.js CHANGED
File without changes
assets/build/js/i18n/he.js CHANGED
File without changes
assets/build/js/i18n/id.extra.js CHANGED
File without changes
assets/build/js/i18n/id.js CHANGED
File without changes
assets/build/js/i18n/it.extra.js CHANGED
File without changes
assets/build/js/i18n/it.js CHANGED
File without changes
assets/build/js/i18n/ja.js CHANGED
File without changes
assets/build/js/i18n/ko.js CHANGED
File without changes
assets/build/js/i18n/ms_MY.extra.js CHANGED
File without changes
assets/build/js/i18n/ms_MY.js CHANGED
File without changes
assets/build/js/i18n/nl.extra.js CHANGED
File without changes
assets/build/js/i18n/nl.js CHANGED
File without changes
assets/build/js/i18n/no.js CHANGED
File without changes
assets/build/js/i18n/pl.js CHANGED
File without changes
assets/build/js/i18n/pt-br.js CHANGED
File without changes
assets/build/js/i18n/pt-pt.js CHANGED
File without changes
assets/build/js/i18n/ro.extra.js CHANGED
File without changes
assets/build/js/i18n/ro.js CHANGED
File without changes
assets/build/js/i18n/ru.extra.js CHANGED
File without changes
assets/build/js/i18n/ru.js CHANGED
File without changes
assets/build/js/i18n/sq.js CHANGED
File without changes
assets/build/js/i18n/sv.extra.js CHANGED
File without changes
assets/build/js/i18n/sv.js CHANGED
File without changes
assets/build/js/i18n/th.js CHANGED
File without changes
assets/build/js/i18n/tr.js CHANGED
File without changes
assets/build/js/i18n/uk.extra.js CHANGED
File without changes
assets/build/js/i18n/uk.js CHANGED
File without changes
assets/build/js/i18n/zh_cn.extra.js CHANGED
File without changes
assets/build/js/i18n/zh_cn.js CHANGED
File without changes
assets/build/js/i18n/zh_tw.js CHANGED
File without changes
assets/build/js/jquery-baldrick.min.js CHANGED
File without changes
assets/build/js/jquery.min.js CHANGED
File without changes
assets/build/js/modals.min.js CHANGED
File without changes
assets/build/js/parsley.min.js CHANGED
File without changes
assets/build/js/polyfiller.min.js CHANGED
File without changes
assets/build/js/remodal.min.js CHANGED
File without changes
assets/build/js/shortcode-insert.min.js CHANGED
File without changes
assets/build/js/support-page.min.js CHANGED
File without changes
assets/build/js/vue.min.js CHANGED
File without changes
assets/build/js/wp-baldrick-full.min.js CHANGED
File without changes
assets/css/caldera-forms-front.min.css DELETED
@@ -1 +0,0 @@
1
- @media (min-width:768px){.caldera-grid .container{width:750px}}@media (min-width:992px){.caldera-grid .container{width:970px}}@media (min-width:1200px){.caldera-grid .container{width:1170px}}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid a{background:0 0;text-decoration:none}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid *,.caldera-grid :after,.caldera-grid :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid html{font-size:62.5%;-webkit-tap-highlight-color:transparent}.caldera-grid body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}.caldera-grid button,.caldera-grid input,.caldera-grid select,.caldera-grid textarea{font-family:inherit;font-size:inherit;line-height:inherit}.caldera-grid a:focus,.caldera-grid a:hover{color:#2a6496;text-decoration:underline}.caldera-grid a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid img{vertical-align:middle}.caldera-grid .img-responsive{display:block;max-width:100%;height:auto}.caldera-grid .img-rounded{border-radius:6px}.caldera-grid .img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.caldera-grid .img-circle{border-radius:50%}.caldera-grid hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.caldera-grid .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.caldera-grid .container,.caldera-grid .container-fluid{margin-right:auto;margin-left:auto;padding-left:7.5px;padding-right:7.5px}@media (min-width:768px){.caldera-grid .container{width:735px}}@media (min-width:992px){.caldera-grid .container{width:955px}}@media (min-width:1200px){.caldera-grid .container{width:1155px}}.caldera-grid .row{margin-left:-7.5px;margin-right:-7.5px}.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9,.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9,.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9,.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{position:relative;min-height:1px;padding-left:7.5px;padding-right:7.5px}.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{float:left}.caldera-grid .col-xs-12{width:100%}.caldera-grid .col-xs-11{width:91.66666667%}.caldera-grid .col-xs-10{width:83.33333333%}.caldera-grid .col-xs-9{width:75%}.caldera-grid .col-xs-8{width:66.66666667%}.caldera-grid .col-xs-7{width:58.33333333%}.caldera-grid .col-xs-6{width:50%}.caldera-grid .col-xs-5{width:41.66666667%}.caldera-grid .col-xs-4{width:33.33333333%}.caldera-grid .col-xs-3{width:25%}.caldera-grid .col-xs-2{width:16.66666667%}.caldera-grid .col-xs-1{width:8.33333333%}.caldera-grid .col-xs-pull-12{right:100%}.caldera-grid .col-xs-pull-11{right:91.66666667%}.caldera-grid .col-xs-pull-10{right:83.33333333%}.caldera-grid .col-xs-pull-9{right:75%}.caldera-grid .col-xs-pull-8{right:66.66666667%}.caldera-grid .col-xs-pull-7{right:58.33333333%}.caldera-grid .col-xs-pull-6{right:50%}.caldera-grid .col-xs-pull-5{right:41.66666667%}.caldera-grid .col-xs-pull-4{right:33.33333333%}.caldera-grid .col-xs-pull-3{right:25%}.caldera-grid .col-xs-pull-2{right:16.66666667%}.caldera-grid .col-xs-pull-1{right:8.33333333%}.caldera-grid .col-xs-pull-0{right:0}.caldera-grid .col-xs-push-12{left:100%}.caldera-grid .col-xs-push-11{left:91.66666667%}.caldera-grid .col-xs-push-10{left:83.33333333%}.caldera-grid .col-xs-push-9{left:75%}.caldera-grid .col-xs-push-8{left:66.66666667%}.caldera-grid .col-xs-push-7{left:58.33333333%}.caldera-grid .col-xs-push-6{left:50%}.caldera-grid .col-xs-push-5{left:41.66666667%}.caldera-grid .col-xs-push-4{left:33.33333333%}.caldera-grid .col-xs-push-3{left:25%}.caldera-grid .col-xs-push-2{left:16.66666667%}.caldera-grid .col-xs-push-1{left:8.33333333%}.caldera-grid .col-xs-push-0{left:0}.caldera-grid .col-xs-offset-12{margin-left:100%}.caldera-grid .col-xs-offset-11{margin-left:91.66666667%}.caldera-grid .col-xs-offset-10{margin-left:83.33333333%}.caldera-grid .col-xs-offset-9{margin-left:75%}.caldera-grid .col-xs-offset-8{margin-left:66.66666667%}.caldera-grid .col-xs-offset-7{margin-left:58.33333333%}.caldera-grid .col-xs-offset-6{margin-left:50%}.caldera-grid .col-xs-offset-5{margin-left:41.66666667%}.caldera-grid .col-xs-offset-4{margin-left:33.33333333%}.caldera-grid .col-xs-offset-3{margin-left:25%}.caldera-grid .col-xs-offset-2{margin-left:16.66666667%}.caldera-grid .col-xs-offset-1{margin-left:8.33333333%}.caldera-grid .col-xs-offset-0{margin-left:0}@media (min-width:768px){.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9{float:left}.caldera-grid .col-sm-12{width:100%}.caldera-grid .col-sm-11{width:91.66666667%}.caldera-grid .col-sm-10{width:83.33333333%}.caldera-grid .col-sm-9{width:75%}.caldera-grid .col-sm-8{width:66.66666667%}.caldera-grid .col-sm-7{width:58.33333333%}.caldera-grid .col-sm-6{width:50%}.caldera-grid .col-sm-5{width:41.66666667%}.caldera-grid .col-sm-4{width:33.33333333%}.caldera-grid .col-sm-3{width:25%}.caldera-grid .col-sm-2{width:16.66666667%}.caldera-grid .col-sm-1{width:8.33333333%}.caldera-grid .col-sm-pull-12{right:100%}.caldera-grid .col-sm-pull-11{right:91.66666667%}.caldera-grid .col-sm-pull-10{right:83.33333333%}.caldera-grid .col-sm-pull-9{right:75%}.caldera-grid .col-sm-pull-8{right:66.66666667%}.caldera-grid .col-sm-pull-7{right:58.33333333%}.caldera-grid .col-sm-pull-6{right:50%}.caldera-grid .col-sm-pull-5{right:41.66666667%}.caldera-grid .col-sm-pull-4{right:33.33333333%}.caldera-grid .col-sm-pull-3{right:25%}.caldera-grid .col-sm-pull-2{right:16.66666667%}.caldera-grid .col-sm-pull-1{right:8.33333333%}.caldera-grid .col-sm-pull-0{right:0}.caldera-grid .col-sm-push-12{left:100%}.caldera-grid .col-sm-push-11{left:91.66666667%}.caldera-grid .col-sm-push-10{left:83.33333333%}.caldera-grid .col-sm-push-9{left:75%}.caldera-grid .col-sm-push-8{left:66.66666667%}.caldera-grid .col-sm-push-7{left:58.33333333%}.caldera-grid .col-sm-push-6{left:50%}.caldera-grid .col-sm-push-5{left:41.66666667%}.caldera-grid .col-sm-push-4{left:33.33333333%}.caldera-grid .col-sm-push-3{left:25%}.caldera-grid .col-sm-push-2{left:16.66666667%}.caldera-grid .col-sm-push-1{left:8.33333333%}.caldera-grid .col-sm-push-0{left:0}.caldera-grid .col-sm-offset-12{margin-left:100%}.caldera-grid .col-sm-offset-11{margin-left:91.66666667%}.caldera-grid .col-sm-offset-10{margin-left:83.33333333%}.caldera-grid .col-sm-offset-9{margin-left:75%}.caldera-grid .col-sm-offset-8{margin-left:66.66666667%}.caldera-grid .col-sm-offset-7{margin-left:58.33333333%}.caldera-grid .col-sm-offset-6{margin-left:50%}.caldera-grid .col-sm-offset-5{margin-left:41.66666667%}.caldera-grid .col-sm-offset-4{margin-left:33.33333333%}.caldera-grid .col-sm-offset-3{margin-left:25%}.caldera-grid .col-sm-offset-2{margin-left:16.66666667%}.caldera-grid .col-sm-offset-1{margin-left:8.33333333%}.caldera-grid .col-sm-offset-0{margin-left:0}}@media (min-width:992px){.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9{float:left}.caldera-grid .col-md-12{width:100%}.caldera-grid .col-md-11{width:91.66666667%}.caldera-grid .col-md-10{width:83.33333333%}.caldera-grid .col-md-9{width:75%}.caldera-grid .col-md-8{width:66.66666667%}.caldera-grid .col-md-7{width:58.33333333%}.caldera-grid .col-md-6{width:50%}.caldera-grid .col-md-5{width:41.66666667%}.caldera-grid .col-md-4{width:33.33333333%}.caldera-grid .col-md-3{width:25%}.caldera-grid .col-md-2{width:16.66666667%}.caldera-grid .col-md-1{width:8.33333333%}.caldera-grid .col-md-pull-12{right:100%}.caldera-grid .col-md-pull-11{right:91.66666667%}.caldera-grid .col-md-pull-10{right:83.33333333%}.caldera-grid .col-md-pull-9{right:75%}.caldera-grid .col-md-pull-8{right:66.66666667%}.caldera-grid .col-md-pull-7{right:58.33333333%}.caldera-grid .col-md-pull-6{right:50%}.caldera-grid .col-md-pull-5{right:41.66666667%}.caldera-grid .col-md-pull-4{right:33.33333333%}.caldera-grid .col-md-pull-3{right:25%}.caldera-grid .col-md-pull-2{right:16.66666667%}.caldera-grid .col-md-pull-1{right:8.33333333%}.caldera-grid .col-md-pull-0{right:0}.caldera-grid .col-md-push-12{left:100%}.caldera-grid .col-md-push-11{left:91.66666667%}.caldera-grid .col-md-push-10{left:83.33333333%}.caldera-grid .col-md-push-9{left:75%}.caldera-grid .col-md-push-8{left:66.66666667%}.caldera-grid .col-md-push-7{left:58.33333333%}.caldera-grid .col-md-push-6{left:50%}.caldera-grid .col-md-push-5{left:41.66666667%}.caldera-grid .col-md-push-4{left:33.33333333%}.caldera-grid .col-md-push-3{left:25%}.caldera-grid .col-md-push-2{left:16.66666667%}.caldera-grid .col-md-push-1{left:8.33333333%}.caldera-grid .col-md-push-0{left:0}.caldera-grid .col-md-offset-12{margin-left:100%}.caldera-grid .col-md-offset-11{margin-left:91.66666667%}.caldera-grid .col-md-offset-10{margin-left:83.33333333%}.caldera-grid .col-md-offset-9{margin-left:75%}.caldera-grid .col-md-offset-8{margin-left:66.66666667%}.caldera-grid .col-md-offset-7{margin-left:58.33333333%}.caldera-grid .col-md-offset-6{margin-left:50%}.caldera-grid .col-md-offset-5{margin-left:41.66666667%}.caldera-grid .col-md-offset-4{margin-left:33.33333333%}.caldera-grid .col-md-offset-3{margin-left:25%}.caldera-grid .col-md-offset-2{margin-left:16.66666667%}.caldera-grid .col-md-offset-1{margin-left:8.33333333%}.caldera-grid .col-md-offset-0{margin-left:0}}@-ms-viewport{width:device-width}@media (min-width:1200px){.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9{float:left}.caldera-grid .col-lg-12{width:100%}.caldera-grid .col-lg-11{width:91.66666667%}.caldera-grid .col-lg-10{width:83.33333333%}.caldera-grid .col-lg-9{width:75%}.caldera-grid .col-lg-8{width:66.66666667%}.caldera-grid .col-lg-7{width:58.33333333%}.caldera-grid .col-lg-6{width:50%}.caldera-grid .col-lg-5{width:41.66666667%}.caldera-grid .col-lg-4{width:33.33333333%}.caldera-grid .col-lg-3{width:25%}.caldera-grid .col-lg-2{width:16.66666667%}.caldera-grid .col-lg-1{width:8.33333333%}.caldera-grid .col-lg-pull-12{right:100%}.caldera-grid .col-lg-pull-11{right:91.66666667%}.caldera-grid .col-lg-pull-10{right:83.33333333%}.caldera-grid .col-lg-pull-9{right:75%}.caldera-grid .col-lg-pull-8{right:66.66666667%}.caldera-grid .col-lg-pull-7{right:58.33333333%}.caldera-grid .col-lg-pull-6{right:50%}.caldera-grid .col-lg-pull-5{right:41.66666667%}.caldera-grid .col-lg-pull-4{right:33.33333333%}.caldera-grid .col-lg-pull-3{right:25%}.caldera-grid .col-lg-pull-2{right:16.66666667%}.caldera-grid .col-lg-pull-1{right:8.33333333%}.caldera-grid .col-lg-pull-0{right:0}.caldera-grid .col-lg-push-12{left:100%}.caldera-grid .col-lg-push-11{left:91.66666667%}.caldera-grid .col-lg-push-10{left:83.33333333%}.caldera-grid .col-lg-push-9{left:75%}.caldera-grid .col-lg-push-8{left:66.66666667%}.caldera-grid .col-lg-push-7{left:58.33333333%}.caldera-grid .col-lg-push-6{left:50%}.caldera-grid .col-lg-push-5{left:41.66666667%}.caldera-grid .col-lg-push-4{left:33.33333333%}.caldera-grid .col-lg-push-3{left:25%}.caldera-grid .col-lg-push-2{left:16.66666667%}.caldera-grid .col-lg-push-1{left:8.33333333%}.caldera-grid .col-lg-push-0{left:0}.caldera-grid .col-lg-offset-12{margin-left:100%}.caldera-grid .col-lg-offset-11{margin-left:91.66666667%}.caldera-grid .col-lg-offset-10{margin-left:83.33333333%}.caldera-grid .col-lg-offset-9{margin-left:75%}.caldera-grid .col-lg-offset-8{margin-left:66.66666667%}.caldera-grid .col-lg-offset-7{margin-left:58.33333333%}.caldera-grid .col-lg-offset-6{margin-left:50%}.caldera-grid .col-lg-offset-5{margin-left:41.66666667%}.caldera-grid .col-lg-offset-4{margin-left:33.33333333%}.caldera-grid .col-lg-offset-3{margin-left:25%}.caldera-grid .col-lg-offset-2{margin-left:16.66666667%}.caldera-grid .col-lg-offset-1{margin-left:8.33333333%}.caldera-grid .col-lg-offset-0{margin-left:0}}.caldera-grid .clearfix:after,.caldera-grid .clearfix:before,.caldera-grid .container-fluid:after,.caldera-grid .container-fluid:before,.caldera-grid .container:after,.caldera-grid .container:before,.caldera-grid .row:after,.caldera-grid .row:before{content:" ";display:table}.caldera-grid .clearfix:after,.caldera-grid .container-fluid:after,.caldera-grid .container:after,.caldera-grid .row:after{clear:both}.caldera-grid .center-block{display:block;margin-left:auto;margin-right:auto}.caldera-grid .pull-right{float:right!important}.caldera-grid .pull-left{float:left!important}.caldera-grid .hide{display:none!important}.caldera-grid .show{display:block!important}.caldera-grid .hidden,.caldera-grid .visible-lg,.caldera-grid .visible-md,.caldera-grid .visible-sm,.caldera-grid .visible-xs{display:none!important}.caldera-grid .invisible{visibility:hidden}.caldera-grid .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.caldera-grid .hidden{visibility:hidden!important}.caldera-grid .affix{position:fixed}@-ms-viewport{width:device-width}@media (max-width:767px){.caldera-grid .visible-xs{display:block!important}.caldera-grid table.visible-xs{display:table}.caldera-grid tr.visible-xs{display:table-row!important}.caldera-grid td.visible-xs,.caldera-grid th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .visible-sm{display:block!important}.caldera-grid table.visible-sm{display:table}.caldera-grid tr.visible-sm{display:table-row!important}.caldera-grid td.visible-sm,.caldera-grid th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .visible-md{display:block!important}.caldera-grid table.visible-md{display:table}.caldera-grid tr.visible-md{display:table-row!important}.caldera-grid td.visible-md,.caldera-grid th.visible-md{display:table-cell!important}}@media (min-width:1200px){.caldera-grid .visible-lg{display:block!important}.caldera-grid table.visible-lg{display:table}.caldera-grid tr.visible-lg{display:table-row!important}.caldera-grid td.visible-lg,.caldera-grid th.visible-lg{display:table-cell!important}.caldera-grid .hidden-lg{display:none!important}}@media (max-width:767px){.caldera-grid .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .hidden-md{display:none!important}}.caldera-grid .visible-print{display:none!important}@media print{.caldera-grid .visible-print{display:block!important}.caldera-grid table.visible-print{display:table}.caldera-grid tr.visible-print{display:table-row!important}.caldera-grid td.visible-print,.caldera-grid th.visible-print{display:table-cell!important}.caldera-grid .hidden-print{display:none!important}}input.parsley-success,select.parsley-success,textarea.parsley-success{color:#468847;background-color:#DFF0D8;border:1px solid #D6E9C6}input.parsley-error,select.parsley-error,textarea.parsley-error{color:#B94A48;background-color:#F2DEDE;border:1px solid #EED3D7}.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.parsley-errors-list.filled{opacity:1}.caldera-grid html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.caldera-grid body{margin:0}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid menu,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid audio,.caldera-grid canvas,.caldera-grid progress,.caldera-grid video{display:inline-block;vertical-align:baseline}.caldera-grid audio:not([controls]){display:none;height:0}.caldera-grid [hidden],.caldera-grid template{display:none}.caldera-grid a{background-color:transparent}.caldera-grid a:active,.caldera-grid a:hover{outline:0}.caldera-grid abbr[title]{border-bottom:1px dotted}.caldera-grid b,.caldera-grid strong{font-weight:700}.caldera-grid dfn{font-style:italic}.caldera-grid h1{font-size:2em;margin:.67em 0}.caldera-grid mark{background:#ff0;color:#000}.caldera-grid small{font-size:80%}.caldera-grid sub,.caldera-grid sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.caldera-grid sup{top:-.5em}.caldera-grid sub{bottom:-.25em}.caldera-grid img{border:0}.caldera-grid svg:not(:root){overflow:hidden}.caldera-grid figure{margin:1em 40px}.caldera-grid hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.caldera-grid pre{overflow:auto}.caldera-grid code,.caldera-grid kbd,.caldera-grid pre,.caldera-grid samp{font-family:monospace,monospace;font-size:1em}.caldera-grid button,.caldera-grid input,.caldera-grid optgroup,.caldera-grid select,.caldera-grid textarea{font:inherit;margin:0}.caldera-grid button{overflow:visible}.caldera-grid button,.caldera-grid select{text-transform:none}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid button[disabled],.caldera-grid html input[disabled]{cursor:default}.caldera-grid button::-moz-focus-inner,.caldera-grid input::-moz-focus-inner{border:0;padding:0}.caldera-grid input{line-height:normal}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid textarea{overflow:auto}.caldera-grid optgroup{font-weight:700}.caldera-grid table{border-collapse:collapse;border-spacing:0}.caldera-grid td,.caldera-grid th{padding:0}@media print{.caldera-grid *,.caldera-grid :after,.caldera-grid :before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}.caldera-grid a,.caldera-grid a:visited{text-decoration:underline}.caldera-grid a[href]:after{content:" (" attr(href) ")"}.caldera-grid abbr[title]:after{content:" (" attr(title) ")"}.caldera-grid a[href^="#"]:after,.caldera-grid a[href^="javascript:"]:after{content:""}.caldera-grid blockquote,.caldera-grid pre{border:1px solid #999;page-break-inside:avoid}.caldera-grid thead{display:table-header-group}.caldera-grid img,.caldera-grid tr{page-break-inside:avoid}.caldera-grid img{max-width:100%!important}.caldera-grid h2,.caldera-grid h3,.caldera-grid p{orphans:3;widows:3}.caldera-grid h2,.caldera-grid h3{page-break-after:avoid}.caldera-grid select{background:#fff!important}.caldera-grid .navbar{display:none}.caldera-grid .btn>.caret,.caldera-grid .dropup>.btn>.caret{border-top-color:#000!important}.caldera-grid .label{border:1px solid #000}.caldera-grid .table{border-collapse:collapse!important}.caldera-grid .table td,.caldera-grid .table th{background-color:#fff!important}.caldera-grid .table-bordered td,.caldera-grid .table-bordered th{border:1px solid #ddd!important}}.caldera-grid .btn,.caldera-grid .btn-danger.active,.caldera-grid .btn-danger:active,.caldera-grid .btn-default.active,.caldera-grid .btn-default:active,.caldera-grid .btn-info.active,.caldera-grid .btn-info:active,.caldera-grid .btn-primary.active,.caldera-grid .btn-primary:active,.caldera-grid .btn-success.active,.caldera-grid .btn-success:active,.caldera-grid .btn-warning.active,.caldera-grid .btn-warning:active,.caldera-grid .form-control,.open>.dropdown-toggle.caldera-grid .btn-danger,.open>.dropdown-toggle.caldera-grid .btn-default,.open>.dropdown-toggle.caldera-grid .btn-info,.open>.dropdown-toggle.caldera-grid .btn-primary,.open>.dropdown-toggle.caldera-grid .btn-success,.open>.dropdown-toggle.caldera-grid .btn-warning{background-image:none}.caldera-grid fieldset{padding:0;margin:0;border:0;min-width:0}.caldera-grid legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}.caldera-grid label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{margin:0;line-height:normal}.caldera-grid .form-control,.caldera-grid output{font-size:14px;line-height:1.42857143;color:#555;display:block}.caldera-grid input[type=file]{display:block}.caldera-grid input[type=range]{display:block;width:100%}.caldera-grid select[multiple],.caldera-grid select[size]{height:auto}.caldera-grid input[type=checkbox]:focus,.caldera-grid input[type=file]:focus,.caldera-grid input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid input[type=checkbox]{-webkit-appearance:checkbox}.caldera-grid input[type=radio]{-webkit-appearance:radio}.caldera-grid output{padding-top:7px}.caldera-grid .form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;border:1px solid #ccc;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.caldera-grid .form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.caldera-grid .form-control::-moz-placeholder{color:#999;opacity:1}.caldera-grid .form-control:-ms-input-placeholder{color:#999}.caldera-grid .form-control::-webkit-input-placeholder{color:#999}.caldera-grid .has-success .checkbox,.caldera-grid .has-success .checkbox-inline,.caldera-grid .has-success .control-label,.caldera-grid .has-success .form-control-feedback,.caldera-grid .has-success .help-block,.caldera-grid .has-success .radio,.caldera-grid .has-success .radio-inline,.caldera-grid .has-success.checkbox label,.caldera-grid .has-success.checkbox-inline label,.caldera-grid .has-success.radio label,.caldera-grid .has-success.radio-inline label{color:#3c763d}.caldera-grid .form-control[disabled],.caldera-grid .form-control[readonly],fieldset[disabled] .caldera-grid .form-control{background-color:#eee;opacity:1}.caldera-grid .form-control[disabled],fieldset[disabled] .caldera-grid .form-control{cursor:not-allowed}textarea .caldera-grid .form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){.caldera-grid input[type=date],.caldera-grid input[type=datetime-local],.caldera-grid input[type=month],.caldera-grid input[type=time]{line-height:34px}.caldera-grid input[type=date].input-sm,.caldera-grid input[type=datetime-local].input-sm,.caldera-grid input[type=month].input-sm,.caldera-grid input[type=time].input-sm,.input-group-sm .caldera-grid input[type=date],.input-group-sm .caldera-grid input[type=datetime-local],.input-group-sm .caldera-grid input[type=month],.input-group-sm .caldera-grid input[type=time]{line-height:30px}.caldera-grid input[type=date].input-lg,.caldera-grid input[type=datetime-local].input-lg,.caldera-grid input[type=month].input-lg,.caldera-grid input[type=time].input-lg,.input-group-lg .caldera-grid input[type=date],.input-group-lg .caldera-grid input[type=datetime-local],.input-group-lg .caldera-grid input[type=month],.input-group-lg .caldera-grid input[type=time]{line-height:46px}}.caldera-grid .form-group{margin-bottom:15px}.caldera-grid .checkbox,.caldera-grid .radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.caldera-grid .checkbox label,.caldera-grid .radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.caldera-grid .checkbox input[type=checkbox],.caldera-grid .checkbox-inline input[type=checkbox],.caldera-grid .radio input[type=radio],.caldera-grid .radio-inline input[type=radio]{margin-left:-20px}.caldera-grid .checkbox+.checkbox,.caldera-grid .radio+.radio{margin-top:-5px}.caldera-grid .checkbox-inline,.caldera-grid .radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.caldera-grid .checkbox-inline+.checkbox-inline,.caldera-grid .radio-inline+.radio-inline{margin-top:0;margin-left:10px}.caldera-grid .checkbox-inline.disabled,.caldera-grid .checkbox.disabled label,.caldera-grid .radio-inline.disabled,.caldera-grid .radio.disabled label,.caldera-grid input[type=checkbox].disabled,.caldera-grid input[type=checkbox][disabled],.caldera-grid input[type=radio].disabled,.caldera-grid input[type=radio][disabled],fieldset[disabled] .caldera-grid .checkbox label,fieldset[disabled] .caldera-grid .checkbox-inline,fieldset[disabled] .caldera-grid .radio label,fieldset[disabled] .caldera-grid .radio-inline,fieldset[disabled] .caldera-grid input[type=checkbox],fieldset[disabled] .caldera-grid input[type=radio]{cursor:not-allowed}.caldera-grid .form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.caldera-grid .form-control-static.input-lg,.caldera-grid .form-control-static.input-sm{padding-left:0;padding-right:0}.caldera-grid .input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .input-sm{height:30px;line-height:30px}select[multiple].caldera-grid .input-sm,textarea.caldera-grid .input-sm{height:auto}.caldera-grid .form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .form-group-sm .form-control{height:30px;line-height:30px}select[multiple].caldera-grid .form-group-sm .form-control,textarea.caldera-grid .form-group-sm .form-control{height:auto}.caldera-grid .form-group-sm .form-control-static{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;min-height:32px}.caldera-grid .input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .input-lg{height:46px;line-height:46px}select[multiple].caldera-grid .input-lg,textarea.caldera-grid .input-lg{height:auto}.caldera-grid .form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .form-group-lg .form-control{height:46px;line-height:46px}select[multiple].caldera-grid .form-group-lg .form-control,textarea.caldera-grid .form-group-lg .form-control{height:auto}.caldera-grid .form-group-lg .form-control-static{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;min-height:38px}.caldera-grid .has-feedback{position:relative}.caldera-grid .has-feedback .form-control{padding-right:42.5px}.caldera-grid .form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.caldera-grid .input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.caldera-grid .input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.caldera-grid .has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.caldera-grid .has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.caldera-grid .has-warning .checkbox,.caldera-grid .has-warning .checkbox-inline,.caldera-grid .has-warning .control-label,.caldera-grid .has-warning .form-control-feedback,.caldera-grid .has-warning .help-block,.caldera-grid .has-warning .radio,.caldera-grid .has-warning .radio-inline,.caldera-grid .has-warning.checkbox label,.caldera-grid .has-warning.checkbox-inline label,.caldera-grid .has-warning.radio label,.caldera-grid .has-warning.radio-inline label{color:#8a6d3b}.caldera-grid .has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.caldera-grid .has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline,.caldera-grid .has-error.checkbox label,.caldera-grid .has-error.checkbox-inline label,.caldera-grid .has-error.radio label,.caldera-grid .has-error.radio-inline label{color:#a94442}.caldera-grid .has-error .form-control:focus{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.caldera-grid .has-feedback label~.form-control-feedback{top:25px}.caldera-grid .has-feedback label.sr-only~.form-control-feedback{top:0}.caldera-grid .help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.caldera-grid .form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.caldera-grid .form-inline .form-control-static{display:inline-block}.caldera-grid .form-inline .input-group{display:inline-table;vertical-align:middle}.caldera-grid .form-inline .input-group .form-control,.caldera-grid .form-inline .input-group .input-group-addon,.caldera-grid .form-inline .input-group .input-group-btn{width:auto}.caldera-grid .form-inline .input-group>.form-control{width:100%}.caldera-grid .form-inline .control-label{margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox,.caldera-grid .form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox label,.caldera-grid .form-inline .radio label{padding-left:0}.caldera-grid .form-inline .checkbox input[type=checkbox],.caldera-grid .form-inline .radio input[type=radio]{position:relative;margin-left:0}.caldera-grid .form-inline .has-feedback .form-control-feedback{top:0}.caldera-grid .form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .checkbox-inline,.caldera-grid .form-horizontal .radio,.caldera-grid .form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .radio{min-height:27px}.caldera-grid .form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.caldera-grid .form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.caldera-grid .form-horizontal .form-group-lg .control-label{padding-top:14.33px}.caldera-grid .form-horizontal .form-group-sm .control-label{padding-top:6px}}.caldera-grid .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.caldera-grid .btn.active.focus,.caldera-grid .btn.active:focus,.caldera-grid .btn.focus,.caldera-grid .btn:active.focus,.caldera-grid .btn:active:focus,.caldera-grid .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid .btn.focus,.caldera-grid .btn:focus,.caldera-grid .btn:hover{color:#333;text-decoration:none}.caldera-grid .btn.active,.caldera-grid .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.caldera-grid .btn.disabled,.caldera-grid .btn[disabled],fieldset[disabled] .caldera-grid .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-default{color:#333;background-color:#fff;border-color:#ccc}.caldera-grid .btn-default.active,.caldera-grid .btn-default.focus,.caldera-grid .btn-default:active,.caldera-grid .btn-default:focus,.caldera-grid .btn-default:hover,.open>.dropdown-toggle.caldera-grid .btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.caldera-grid .btn-default.disabled,.caldera-grid .btn-default.disabled.active,.caldera-grid .btn-default.disabled.focus,.caldera-grid .btn-default.disabled:active,.caldera-grid .btn-default.disabled:focus,.caldera-grid .btn-default.disabled:hover,.caldera-grid .btn-default[disabled],.caldera-grid .btn-default[disabled].active,.caldera-grid .btn-default[disabled].focus,.caldera-grid .btn-default[disabled]:active,.caldera-grid .btn-default[disabled]:focus,.caldera-grid .btn-default[disabled]:hover,fieldset[disabled] .caldera-grid .btn-default,fieldset[disabled] .caldera-grid .btn-default.active,fieldset[disabled] .caldera-grid .btn-default.focus,fieldset[disabled] .caldera-grid .btn-default:active,fieldset[disabled] .caldera-grid .btn-default:focus,fieldset[disabled] .caldera-grid .btn-default:hover{background-color:#fff;border-color:#ccc}.caldera-grid .btn-default .badge{color:#fff;background-color:#333}.caldera-grid .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary.active,.caldera-grid .btn-primary.focus,.caldera-grid .btn-primary:active,.caldera-grid .btn-primary:focus,.caldera-grid .btn-primary:hover,.open>.dropdown-toggle.caldera-grid .btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.caldera-grid .btn-primary.disabled,.caldera-grid .btn-primary.disabled.active,.caldera-grid .btn-primary.disabled.focus,.caldera-grid .btn-primary.disabled:active,.caldera-grid .btn-primary.disabled:focus,.caldera-grid .btn-primary.disabled:hover,.caldera-grid .btn-primary[disabled],.caldera-grid .btn-primary[disabled].active,.caldera-grid .btn-primary[disabled].focus,.caldera-grid .btn-primary[disabled]:active,.caldera-grid .btn-primary[disabled]:focus,.caldera-grid .btn-primary[disabled]:hover,fieldset[disabled] .caldera-grid .btn-primary,fieldset[disabled] .caldera-grid .btn-primary.active,fieldset[disabled] .caldera-grid .btn-primary.focus,fieldset[disabled] .caldera-grid .btn-primary:active,fieldset[disabled] .caldera-grid .btn-primary:focus,fieldset[disabled] .caldera-grid .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary .badge{color:#337ab7;background-color:#fff}.caldera-grid .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success.active,.caldera-grid .btn-success.focus,.caldera-grid .btn-success:active,.caldera-grid .btn-success:focus,.caldera-grid .btn-success:hover,.open>.dropdown-toggle.caldera-grid .btn-success{color:#fff;background-color:#449d44;border-color:#398439}.caldera-grid .btn-success.disabled,.caldera-grid .btn-success.disabled.active,.caldera-grid .btn-success.disabled.focus,.caldera-grid .btn-success.disabled:active,.caldera-grid .btn-success.disabled:focus,.caldera-grid .btn-success.disabled:hover,.caldera-grid .btn-success[disabled],.caldera-grid .btn-success[disabled].active,.caldera-grid .btn-success[disabled].focus,.caldera-grid .btn-success[disabled]:active,.caldera-grid .btn-success[disabled]:focus,.caldera-grid .btn-success[disabled]:hover,fieldset[disabled] .caldera-grid .btn-success,fieldset[disabled] .caldera-grid .btn-success.active,fieldset[disabled] .caldera-grid .btn-success.focus,fieldset[disabled] .caldera-grid .btn-success:active,fieldset[disabled] .caldera-grid .btn-success:focus,fieldset[disabled] .caldera-grid .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success .badge{color:#5cb85c;background-color:#fff}.caldera-grid .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info.active,.caldera-grid .btn-info.focus,.caldera-grid .btn-info:active,.caldera-grid .btn-info:focus,.caldera-grid .btn-info:hover,.open>.dropdown-toggle.caldera-grid .btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.caldera-grid .btn-info.disabled,.caldera-grid .btn-info.disabled.active,.caldera-grid .btn-info.disabled.focus,.caldera-grid .btn-info.disabled:active,.caldera-grid .btn-info.disabled:focus,.caldera-grid .btn-info.disabled:hover,.caldera-grid .btn-info[disabled],.caldera-grid .btn-info[disabled].active,.caldera-grid .btn-info[disabled].focus,.caldera-grid .btn-info[disabled]:active,.caldera-grid .btn-info[disabled]:focus,.caldera-grid .btn-info[disabled]:hover,fieldset[disabled] .caldera-grid .btn-info,fieldset[disabled] .caldera-grid .btn-info.active,fieldset[disabled] .caldera-grid .btn-info.focus,fieldset[disabled] .caldera-grid .btn-info:active,fieldset[disabled] .caldera-grid .btn-info:focus,fieldset[disabled] .caldera-grid .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info .badge{color:#5bc0de;background-color:#fff}.caldera-grid .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning.active,.caldera-grid .btn-warning.focus,.caldera-grid .btn-warning:active,.caldera-grid .btn-warning:focus,.caldera-grid .btn-warning:hover,.open>.dropdown-toggle.caldera-grid .btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.caldera-grid .btn-warning.disabled,.caldera-grid .btn-warning.disabled.active,.caldera-grid .btn-warning.disabled.focus,.caldera-grid .btn-warning.disabled:active,.caldera-grid .btn-warning.disabled:focus,.caldera-grid .btn-warning.disabled:hover,.caldera-grid .btn-warning[disabled],.caldera-grid .btn-warning[disabled].active,.caldera-grid .btn-warning[disabled].focus,.caldera-grid .btn-warning[disabled]:active,.caldera-grid .btn-warning[disabled]:focus,.caldera-grid .btn-warning[disabled]:hover,fieldset[disabled] .caldera-grid .btn-warning,fieldset[disabled] .caldera-grid .btn-warning.active,fieldset[disabled] .caldera-grid .btn-warning.focus,fieldset[disabled] .caldera-grid .btn-warning:active,fieldset[disabled] .caldera-grid .btn-warning:focus,fieldset[disabled] .caldera-grid .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning .badge{color:#f0ad4e;background-color:#fff}.caldera-grid .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger.active,.caldera-grid .btn-danger.focus,.caldera-grid .btn-danger:active,.caldera-grid .btn-danger:focus,.caldera-grid .btn-danger:hover,.open>.dropdown-toggle.caldera-grid .btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.caldera-grid .btn-danger.disabled,.caldera-grid .btn-danger.disabled.active,.caldera-grid .btn-danger.disabled.focus,.caldera-grid .btn-danger.disabled:active,.caldera-grid .btn-danger.disabled:focus,.caldera-grid .btn-danger.disabled:hover,.caldera-grid .btn-danger[disabled],.caldera-grid .btn-danger[disabled].active,.caldera-grid .btn-danger[disabled].focus,.caldera-grid .btn-danger[disabled]:active,.caldera-grid .btn-danger[disabled]:focus,.caldera-grid .btn-danger[disabled]:hover,fieldset[disabled] .caldera-grid .btn-danger,fieldset[disabled] .caldera-grid .btn-danger.active,fieldset[disabled] .caldera-grid .btn-danger.focus,fieldset[disabled] .caldera-grid .btn-danger:active,fieldset[disabled] .caldera-grid .btn-danger:focus,fieldset[disabled] .caldera-grid .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger .badge{color:#d9534f;background-color:#fff}.caldera-grid .btn-link{color:#337ab7;font-weight:400;border-radius:0}.caldera-grid .btn-link,.caldera-grid .btn-link.active,.caldera-grid .btn-link:active,.caldera-grid .btn-link[disabled],fieldset[disabled] .caldera-grid .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-link,.caldera-grid .btn-link:active,.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{border-color:transparent}.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.caldera-grid .btn-link[disabled]:focus,.caldera-grid .btn-link[disabled]:hover,fieldset[disabled] .caldera-grid .btn-link:focus,fieldset[disabled] .caldera-grid .btn-link:hover{color:#777;text-decoration:none}.caldera-grid .btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}.caldera-grid .btn-sm,.caldera-grid .btn-xs{font-size:12px;line-height:1.5;border-radius:1px}.caldera-grid .btn-sm{padding:5px 10px}.caldera-grid .btn-xs{padding:1px 5px}.caldera-grid .btn-block{display:block;width:100%}.caldera-grid .btn-block+.btn-block{margin-top:5px}.caldera-grid input[type=button].btn-block,.caldera-grid input[type=reset].btn-block,.caldera-grid input[type=submit].btn-block{width:100%}.caldera-grid textarea.form-control{padding-right:4px;height:auto}.caldera-grid .breadcrumb{padding:6px 12px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.caldera-grid .breadcrumb>li{display:inline-block;margin:0}.caldera-grid .breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.caldera-grid .breadcrumb>.active,.caldera-grid .breadcrumb>.active>a{color:#777}.breadcrumb>li.active.error>a,.breadcrumb>li.error>a{color:red}.caldera-grid .alert{padding:8px;margin-bottom:18px;border-radius:2px}.caldera-grid .alert .alert-link{font-weight:700}.caldera-grid .alert-dismissable{padding-right:28px}.caldera-grid .alert-success{background-color:#dff0d8;border-color:#a3d48e;color:#3c763d}.caldera-grid .alert-success hr{border-top-color:#93cd7c}.caldera-grid .alert-success .alert-link{color:#2b542c}.caldera-grid .alert-info{background-color:#d9edf7;border-color:#85c5e5;color:#31708f}.caldera-grid .alert-info hr{border-top-color:#70bbe1}.caldera-grid .alert-info .alert-link{color:#245269}.caldera-grid .alert-warning{background-color:#f9edbe;border-color:#f0c36d;color:#333}.caldera-grid .alert-warning hr{border-top-color:#eeb956}.caldera-grid .alert-warning .alert-link{color:#1a1a1a}.caldera-grid .alert-danger,.caldera-grid .alert-error{background-color:#f2dede;border-color:#d59595;color:#a94442}.caldera-grid .alert-danger hr,.caldera-grid .alert-error hr{border-top-color:#ce8383}.caldera-grid .alert-danger .alert-link,.caldera-grid .alert-error .alert-link{color:#843534}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .form-control-feedback,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline{color:#dd4b39}.caldera-grid .alert-danger,.caldera-grid .alert-error,.caldera-grid .alert-info,.caldera-grid .alert-success,.caldera-grid .alert-warning{text-shadow:0 1px 0 rgba(255,255,255,.5)}.caldera-grid .has-error .form-control{border-color:#dd4b39;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .has-error .input-group-addon{color:#dd4b39;border-color:#dd4b39;background-color:#f2dede}.caldera-grid .has-error .form-control:focus,.caldera-grid .has-error .form-control:hover{border-color:#dd4b39}.caldera-grid.cf_processing{background:url(../images/loading.gif) center center/30px auto no-repeat rgba(0,0,0,0)}.caldera-grid.cf_processing>*{opacity:.5}
 
assets/css/caldera-modals.css CHANGED
File without changes
assets/css/caldera-modals.min.css DELETED
@@ -1 +0,0 @@
1
- .caldera-modal-wrap .spinner.loading{background-position:center center;display:inline-block;float:none;height:auto;position:absolute;width:auto}html.has-caldera-modal{overflow:hidden}body{overflow-y:scroll}.caldera-backdrop{background-color:rgba(0,0,0,.3);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:100100}.caldera-modal-wrap{background-color:#FFF;box-shadow:0 3px 6px rgba(0,0,0,.3);display:block;position:relative;margin:0 auto;z-index:100105}.caldera-modal-wrap.caldera-animate{transform:translate(0,0)!important}.caldera-modal-title{border-bottom:1px solid #EFEFEF}.caldera-modal-closer{color:grey;position:absolute;right:0;top:0;font-size:32px;text-decoration:none!important;line-height:0;border:0}.caldera-modal-closer:hover{background-color:rgba(0,0,0,.1)}.caldera-modal-title>h3{font-weight:400;margin:0;padding:12px 40px 12px 12px;clear:none}.caldera-modal-body{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:auto}.caldera-modal-body.has-buttons{bottom:53px}.caldera-modal-footer{background:#EFEFEF;border-top:1px solid #E0E0E0}@media (max-width:600px){.caldera-modal-wrap.caldera-front-modal-wrap{bottom:0;display:block;left:0;margin:0!important;overflow:auto;padding:0!important;top:0;width:100%!important}}.caldera-modal-wrap .navtabs{background-color:#f1f1f1;border-right:1px solid #dfdfdf;bottom:0;box-sizing:padding-box;float:left;left:0;margin:0;padding:12px 0 0;overflow:auto;overflow-x:hidden;white-space:nowrap;position:absolute;top:0;width:150px}.caldera-modal-wrap .navtabs>li{margin:0}.caldera-modal-wrap .navtabs>li:hover{background-color:#dfdfdf}.caldera-modal-wrap .navtabs>li a{color:#afaf00;display:block;padding:8px 12px;text-decoration:none;text-overflow:ellipsis;overflow:hidden}.caldera-modal-body.has-tabs{margin-left:150px}.caldera-modal-wrap .navtabs>li.selected>a{background:#afaf00;color:#fff!important}.caldera-sticky-modal{z-index:100099;position:fixed}.caldera-sticky-modal>.caldera-modal-title{cursor:pointer}.caldera-sticky-modal.bottom-left{bottom:0;left:0}.caldera-sticky-modal.bottom-right{bottom:0;right:0}.caldera-sticky-modal.top-left{top:0;left:0}.caldera-sticky-modal.top-right{top:0;right:0}.caldera-sticky-modal.top-left .caldera-modal-title,.caldera-sticky-modal.top-right .caldera-modal-title{border-bottom:0;border-top:1px solid #EFEFEF}
 
assets/css/caldera-table.css CHANGED
File without changes
assets/css/cfont.css CHANGED
File without changes
assets/css/entry-viewer-2.css CHANGED
File without changes
assets/css/fields.min.css DELETED
@@ -1,59 +0,0 @@
1
- @font-face{font-family:cf-raty;src:url(fonts/cf-raty.eot?40481674);src:url(fonts/cf-raty.eot?40481674#iefix) format('embedded-opentype'),url(fonts/cf-raty.woff?40481674) format('woff'),url(fonts/cf-raty.ttf?40481674) format('truetype'),url(fonts/cf-raty.svg?40481674#cf-raty) format('svg');font-weight:400;font-style:normal}[class*=" raty-"]:before,[class^=raty-]:before{font-family:cf-raty;font-style:normal;font-weight:400;speak:none;font-size:2em;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.raty-heart-on:before{content:'\e800'}.raty-heart-off:before{content:'\e801'}.raty-star-on:before{content:'\e802'}.raty-star-off:before{content:'\e803'}.raty-circle-on:before{content:'\e804'}.raty-circle-off:before{content:'\e805'}.raty-dot-off:before{content:'\e806'}.raty-dot-on:before{content:'\e807'}.raty-face-off:before{content:'\e808'}.raty-face-on:before{content:'\e809'}.raty-cancel-off:before{content:'\e80a'}.raty-cancel-on:before{content:'\e80b'}.calculation-group{background:#FFF;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:6px;margin:6px 0}.preview-color-selector{background:#F0F0F0;border:1px solid #E2E2E2;display:inline;margin-left:-1px;padding:3px 12px;box-shadow:0 0 0 2px #fff inset}.miniColors-trigger{border:1px solid #999;-mz-border-radius:0 1px 1px 0;-webkit-border-radius:0 1px 1px 0;display:inline-block;height:24px;margin:0 0 -8px -1px;width:30px}.miniColors-selector{background:#FFF;border:1px solid #999;-moz-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);-webkit-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);box-shadow:0 3px 0 -1px rgba(0,0,0,.05);height:162px;padding:5px;position:absolute;width:187px;z-index:999999;margin-top:-1px}.miniColors-selector.black{background:#000;border-color:#000}.miniColors-colors{position:absolute;top:5px;left:5px;width:150px;height:150px;background:url(minicolor-colors.png) right no-repeat;cursor:crosshair}.miniColors-hues{position:absolute;top:5px;left:160px;width:20px;height:150px;background:url(minicolor-colors.png) left no-repeat;cursor:crosshair}.miniColors-colorPicker{position:absolute;width:9px;height:9px;border:1px solid #fff;-moz-border-radius:11px;-webkit-border-radius:11px;border-radius:11px}.miniColors-colorPicker-inner{position:absolute;top:0;left:0;width:7px;height:7px;border:1px solid #000;-moz-border-radius:9px;-webkit-border-radius:9px;border-radius:9px}.miniColors-huePicker{position:absolute;left:-3px;width:24px;height:1px;border:1px solid #fff;border-radius:2px;background:#000}.cf-color-picker .form-control::-moz-placeholder{color:#999;opacity:1}.cf-color-picker .form-control:-ms-input-placeholder{color:#999}.cf-color-picker .form-control::-webkit-input-placeholder{color:#999}.cf-color-picker .form-control[disabled],.cf-color-picker .form-control[readonly],.cf-color-picker fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}.cf-color-picker .form-group{margin-bottom:15px}.cf-color-picker .input-group{position:relative;display:table;border-collapse:separate}.cf-color-picker .input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.cf-color-picker .input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.cf-color-picker .input-group-lg>.form-control,.cf-color-picker .input-group-lg>.input-group-addon,.cf-color-picker .input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-color-picker .input-group-sm>.form-control,.cf-color-picker .input-group-sm>.input-group-addon,.cf-color-picker .input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-color-picker .input-group .form-control,.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{display:table-cell}.cf-color-picker .input-group .form-control:not(:first-child):not(:last-child),.cf-color-picker .input-group-addon:not(:first-child):not(:last-child),.cf-color-picker .input-group-btn:not(:first-child):not(:last-child){border-radius:0}.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.cf-color-picker .input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.cf-color-picker .input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.cf-color-picker .input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.cf-color-picker .input-group .form-control:first-child,.cf-color-picker .input-group-addon:first-child,.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group>.btn,.cf-color-picker .input-group-btn:first-child>.dropdown-toggle,.cf-color-picker .input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.cf-color-picker .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-color-picker .input-group-addon:first-child{border-right:0}.cf-color-picker .input-group .form-control:last-child,.cf-color-picker .input-group-addon:last-child,.cf-color-picker .input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.cf-color-picker .input-group-btn:first-child>.btn:not(:first-child),.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group>.btn,.cf-color-picker .input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.cf-color-picker .input-group-addon:last-child{border-left:0}.cf-color-picker .input-group-btn{position:relative;font-size:0;white-space:nowrap}.cf-color-picker .input-group-btn>.btn{position:relative}.cf-color-picker .input-group-btn>.btn+.btn{margin-left:-1px}.cf-color-picker .input-group-btn>.btn:active,.cf-color-picker .input-group-btn>.btn:focus,.cf-color-picker .input-group-btn>.btn:hover{z-index:2}.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group{margin-right:-1px}.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group{margin-left:-1px}.cf-color-picker .clearfix:after,.cf-color-picker .clearfix:before,.cf-color-picker .form-horizontal .form-group:after,.cf-color-picker .form-horizontal .form-group:before{content:" ";display:table}.cf-color-picker .clearfix:after,.cf-color-picker .form-horizontal .form-group:after{clear:both}.cf-color-picker .center-block{display:block;margin-left:auto;margin-right:auto}.cf-color-picker .pull-right{float:right!important}.cf-color-picker .pull-left{float:left!important}.cf-color-picker .hide{display:none!important}.cf-color-picker .show{display:block!important}.cf-color-picker .invisible{visibility:hidden}.cf-color-picker .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.cf-color-picker .hidden{display:none!important;visibility:hidden!important}.cf-color-picker .affix{position:fixed}@-ms-viewport{width:device-width}.cf-color-picker .visible-lg,.cf-color-picker .visible-md,.cf-color-picker .visible-print,.cf-color-picker .visible-sm,.cf-color-picker .visible-xs{display:none!important}@media (max-width:767px){.cf-color-picker .visible-xs{display:block!important}.cf-color-picker table.visible-xs{display:table}.cf-color-picker tr.visible-xs{display:table-row!important}.cf-color-picker td.visible-xs,.cf-color-picker th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .visible-sm{display:block!important}.cf-color-picker table.visible-sm{display:table}.cf-color-picker tr.visible-sm{display:table-row!important}.cf-color-picker td.visible-sm,.cf-color-picker th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .visible-md{display:block!important}.cf-color-picker table.visible-md{display:table}.cf-color-picker tr.visible-md{display:table-row!important}.cf-color-picker td.visible-md,.cf-color-picker th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-color-picker .visible-lg{display:block!important}.cf-color-picker table.visible-lg{display:table}.cf-color-picker tr.visible-lg{display:table-row!important}.cf-color-picker td.visible-lg,.cf-color-picker th.visible-lg{display:table-cell!important}}@media (max-width:767px){.cf-color-picker .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .hidden-md{display:none!important}}@media (min-width:1200px){.cf-color-picker .hidden-lg{display:none!important}}@media print{.cf-color-picker .visible-print{display:block!important}.cf-color-picker table.visible-print{display:table}.cf-color-picker tr.visible-print{display:table-row!important}.cf-color-picker td.visible-print,.cf-color-picker th.visible-print{display:table-cell!important}}@media print{.cf-color-picker .hidden-print{display:none!important}}.cf-color-picker .input-group{max-width:120px}
2
- .cfdatepicker{padding:4px;border-radius:4px;direction:ltr}.cfdatepicker-inline{width:220px}.cfdatepicker.cfdatepicker-rtl{direction:rtl}.cfdatepicker.cfdatepicker-rtl table tr td span{float:right}.cfdatepicker-dropdown{top:0;left:0}.cfdatepicker-dropdown:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-top:0;border-bottom-color:rgba(0,0,0,.2);position:absolute}.cfdatepicker-dropdown:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;border-top:0;position:absolute}.cfdatepicker-dropdown.cfdatepicker-orient-left:before{left:6px}.cfdatepicker-dropdown.cfdatepicker-orient-left:after{left:7px}.cfdatepicker-dropdown.cfdatepicker-orient-right:before{right:6px}.cfdatepicker-dropdown.cfdatepicker-orient-right:after{right:7px}.cfdatepicker-dropdown.cfdatepicker-orient-top:before{top:-7px}.cfdatepicker-dropdown.cfdatepicker-orient-top:after{top:-6px}.cfdatepicker-dropdown.cfdatepicker-orient-bottom:before{bottom:-7px;border-bottom:0;border-top:7px solid #999}.cfdatepicker-dropdown.cfdatepicker-orient-bottom:after{bottom:-6px;border-bottom:0;border-top:6px solid #fff}.cfdatepicker>div{display:none}.cfdatepicker.days div.cfdatepicker-days,.cfdatepicker.months div.cfdatepicker-months,.cfdatepicker.years div.cfdatepicker-years{display:block}.cfdatepicker table{border: 0 none;width: auto;margin:0;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cfdatepicker table tr td,.cfdatepicker table tr th{text-align:center;width:10px;height:10px;border-radius:4px;border:none}.table-striped .cfdatepicker table tr td,.table-striped .cfdatepicker table tr th{background-color:transparent}.cfdatepicker table tr td.day.focused,.cfdatepicker table tr td.day:hover{background:#eee;cursor:pointer}.cfdatepicker table tr td.new,.cfdatepicker table tr td.old{color:#999}.cfdatepicker table tr td.disabled,.cfdatepicker table tr td.disabled:hover{background:0 0;color:#999;cursor:default}.cfdatepicker table tr td.today,.cfdatepicker table tr td.today.disabled,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today:hover{color:#000;background-color:#ffdb99;border-color:#ffb733}.cfdatepicker table tr td.today.active,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:focus,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today.disabled:hover.active,.cfdatepicker table tr td.today.disabled:hover:active,.cfdatepicker table tr td.today.disabled:hover:focus,.cfdatepicker table tr td.today.disabled:hover:hover,.cfdatepicker table tr td.today:active,.cfdatepicker table tr td.today:focus,.cfdatepicker table tr td.today:hover,.cfdatepicker table tr td.today:hover.active,.cfdatepicker table tr td.today:hover:active,.cfdatepicker table tr td.today:hover:focus,.cfdatepicker table tr td.today:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.today,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.today:hover{color:#000;background-color:#ffcd70;border-color:#f59e00}.cfdatepicker table tr td.today.active,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:hover.active,.cfdatepicker table tr td.today.disabled:hover:active,.cfdatepicker table tr td.today:active,.cfdatepicker table tr td.today:hover.active,.cfdatepicker table tr td.today:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.today,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.today:hover{background-image:none}.cfdatepicker table tr td.today.disabled,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled.disabled,.cfdatepicker table tr td.today.disabled.disabled.active,.cfdatepicker table tr td.today.disabled.disabled:active,.cfdatepicker table tr td.today.disabled.disabled:focus,.cfdatepicker table tr td.today.disabled.disabled:hover,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:focus,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today.disabled:hover.disabled,.cfdatepicker table tr td.today.disabled:hover.disabled.active,.cfdatepicker table tr td.today.disabled:hover.disabled:active,.cfdatepicker table tr td.today.disabled:hover.disabled:focus,.cfdatepicker table tr td.today.disabled:hover.disabled:hover,.cfdatepicker table tr td.today.disabled:hover[disabled],.cfdatepicker table tr td.today.disabled:hover[disabled].active,.cfdatepicker table tr td.today.disabled:hover[disabled]:active,.cfdatepicker table tr td.today.disabled:hover[disabled]:focus,.cfdatepicker table tr td.today.disabled:hover[disabled]:hover,.cfdatepicker table tr td.today.disabled[disabled],.cfdatepicker table tr td.today.disabled[disabled].active,.cfdatepicker table tr td.today.disabled[disabled]:active,.cfdatepicker table tr td.today.disabled[disabled]:focus,.cfdatepicker table tr td.today.disabled[disabled]:hover,.cfdatepicker table tr td.today:hover.disabled,.cfdatepicker table tr td.today:hover.disabled.active,.cfdatepicker table tr td.today:hover.disabled:active,.cfdatepicker table tr td.today:hover.disabled:focus,.cfdatepicker table tr td.today:hover.disabled:hover,.cfdatepicker table tr td.today:hover[disabled],.cfdatepicker table tr td.today:hover[disabled].active,.cfdatepicker table tr td.today:hover[disabled]:active,.cfdatepicker table tr td.today:hover[disabled]:focus,.cfdatepicker table tr td.today:hover[disabled]:hover,.cfdatepicker table tr td.today[disabled],.cfdatepicker table tr td.today[disabled].active,.cfdatepicker table tr td.today[disabled]:active,.cfdatepicker table tr td.today[disabled]:focus,.cfdatepicker table tr td.today[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.today,fieldset[disabled] .cfdatepicker table tr td.today.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled,fieldset[disabled] .cfdatepicker table tr td.today.disabled.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.today:active,fieldset[disabled] .cfdatepicker table tr td.today:focus,fieldset[disabled] .cfdatepicker table tr td.today:hover,fieldset[disabled] .cfdatepicker table tr td.today:hover.active,fieldset[disabled] .cfdatepicker table tr td.today:hover:active,fieldset[disabled] .cfdatepicker table tr td.today:hover:focus,fieldset[disabled] .cfdatepicker table tr td.today:hover:hover{background-color:#ffdb99;border-color:#ffb733}.cfdatepicker table tr td.today:hover:hover{color:#000}.cfdatepicker table tr td.today.active:hover{color:#fff}.cfdatepicker table tr td.range,.cfdatepicker table tr td.range.disabled,.cfdatepicker table tr td.range.disabled:hover,.cfdatepicker table tr td.range:hover{background:#eee;border-radius:0}.cfdatepicker table tr td.range.today,.cfdatepicker table tr td.range.today.disabled,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today:hover{color:#000;background-color:#f7ca77;border-color:#f1a417;border-radius:0}.cfdatepicker table tr td.range.today.active,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover.active,.cfdatepicker table tr td.range.today.disabled:hover:active,.cfdatepicker table tr td.range.today.disabled:hover:focus,.cfdatepicker table tr td.range.today.disabled:hover:hover,.cfdatepicker table tr td.range.today:active,.cfdatepicker table tr td.range.today:focus,.cfdatepicker table tr td.range.today:hover,.cfdatepicker table tr td.range.today:hover.active,.cfdatepicker table tr td.range.today:hover:active,.cfdatepicker table tr td.range.today:hover:focus,.cfdatepicker table tr td.range.today:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today:hover{color:#000;background-color:#f4bb51;border-color:#bf800c}.cfdatepicker table tr td.range.today.active,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:hover.active,.cfdatepicker table tr td.range.today.disabled:hover:active,.cfdatepicker table tr td.range.today:active,.cfdatepicker table tr td.range.today:hover.active,.cfdatepicker table tr td.range.today:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.range.today,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today:hover{background-image:none}.cfdatepicker table tr td.range.today.disabled,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled.disabled,.cfdatepicker table tr td.range.today.disabled.disabled.active,.cfdatepicker table tr td.range.today.disabled.disabled:active,.cfdatepicker table tr td.range.today.disabled.disabled:focus,.cfdatepicker table tr td.range.today.disabled.disabled:hover,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover.disabled,.cfdatepicker table tr td.range.today.disabled:hover.disabled.active,.cfdatepicker table tr td.range.today.disabled:hover.disabled:active,.cfdatepicker table tr td.range.today.disabled:hover.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover[disabled],.cfdatepicker table tr td.range.today.disabled:hover[disabled].active,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:active,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:focus,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:hover,.cfdatepicker table tr td.range.today.disabled[disabled],.cfdatepicker table tr td.range.today.disabled[disabled].active,.cfdatepicker table tr td.range.today.disabled[disabled]:active,.cfdatepicker table tr td.range.today.disabled[disabled]:focus,.cfdatepicker table tr td.range.today.disabled[disabled]:hover,.cfdatepicker table tr td.range.today:hover.disabled,.cfdatepicker table tr td.range.today:hover.disabled.active,.cfdatepicker table tr td.range.today:hover.disabled:active,.cfdatepicker table tr td.range.today:hover.disabled:focus,.cfdatepicker table tr td.range.today:hover.disabled:hover,.cfdatepicker table tr td.range.today:hover[disabled],.cfdatepicker table tr td.range.today:hover[disabled].active,.cfdatepicker table tr td.range.today:hover[disabled]:active,.cfdatepicker table tr td.range.today:hover[disabled]:focus,.cfdatepicker table tr td.range.today:hover[disabled]:hover,.cfdatepicker table tr td.range.today[disabled],.cfdatepicker table tr td.range.today[disabled].active,.cfdatepicker table tr td.range.today[disabled]:active,.cfdatepicker table tr td.range.today[disabled]:focus,.cfdatepicker table tr td.range.today[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.range.today,fieldset[disabled] .cfdatepicker table tr td.range.today.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.range.today:active,fieldset[disabled] .cfdatepicker table tr td.range.today:focus,fieldset[disabled] .cfdatepicker table tr td.range.today:hover,fieldset[disabled] .cfdatepicker table tr td.range.today:hover.active,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:active,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:focus,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:hover{background-color:#f7ca77;border-color:#f1a417}.cfdatepicker table tr td.selected,.cfdatepicker table tr td.selected.disabled,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected:hover{color:#fff;background-color:#999;border-color:#555;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td.selected.active,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover.active,.cfdatepicker table tr td.selected.disabled:hover:active,.cfdatepicker table tr td.selected.disabled:hover:focus,.cfdatepicker table tr td.selected.disabled:hover:hover,.cfdatepicker table tr td.selected:active,.cfdatepicker table tr td.selected:focus,.cfdatepicker table tr td.selected:hover,.cfdatepicker table tr td.selected:hover.active,.cfdatepicker table tr td.selected:hover:active,.cfdatepicker table tr td.selected:hover:focus,.cfdatepicker table tr td.selected:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected:hover{color:#fff;background-color:#858585;border-color:#373737}.cfdatepicker table tr td.selected.active,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:hover.active,.cfdatepicker table tr td.selected.disabled:hover:active,.cfdatepicker table tr td.selected:active,.cfdatepicker table tr td.selected:hover.active,.cfdatepicker table tr td.selected:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.selected,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected:hover{background-image:none}.cfdatepicker table tr td.selected.disabled,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled.disabled,.cfdatepicker table tr td.selected.disabled.disabled.active,.cfdatepicker table tr td.selected.disabled.disabled:active,.cfdatepicker table tr td.selected.disabled.disabled:focus,.cfdatepicker table tr td.selected.disabled.disabled:hover,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover.disabled,.cfdatepicker table tr td.selected.disabled:hover.disabled.active,.cfdatepicker table tr td.selected.disabled:hover.disabled:active,.cfdatepicker table tr td.selected.disabled:hover.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover[disabled],.cfdatepicker table tr td.selected.disabled:hover[disabled].active,.cfdatepicker table tr td.selected.disabled:hover[disabled]:active,.cfdatepicker table tr td.selected.disabled:hover[disabled]:focus,.cfdatepicker table tr td.selected.disabled:hover[disabled]:hover,.cfdatepicker table tr td.selected.disabled[disabled],.cfdatepicker table tr td.selected.disabled[disabled].active,.cfdatepicker table tr td.selected.disabled[disabled]:active,.cfdatepicker table tr td.selected.disabled[disabled]:focus,.cfdatepicker table tr td.selected.disabled[disabled]:hover,.cfdatepicker table tr td.selected:hover.disabled,.cfdatepicker table tr td.selected:hover.disabled.active,.cfdatepicker table tr td.selected:hover.disabled:active,.cfdatepicker table tr td.selected:hover.disabled:focus,.cfdatepicker table tr td.selected:hover.disabled:hover,.cfdatepicker table tr td.selected:hover[disabled],.cfdatepicker table tr td.selected:hover[disabled].active,.cfdatepicker table tr td.selected:hover[disabled]:active,.cfdatepicker table tr td.selected:hover[disabled]:focus,.cfdatepicker table tr td.selected:hover[disabled]:hover,.cfdatepicker table tr td.selected[disabled],.cfdatepicker table tr td.selected[disabled].active,.cfdatepicker table tr td.selected[disabled]:active,.cfdatepicker table tr td.selected[disabled]:focus,.cfdatepicker table tr td.selected[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.selected,fieldset[disabled] .cfdatepicker table tr td.selected.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled,fieldset[disabled] .cfdatepicker table tr td.selected.disabled.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.selected:active,fieldset[disabled] .cfdatepicker table tr td.selected:focus,fieldset[disabled] .cfdatepicker table tr td.selected:hover,fieldset[disabled] .cfdatepicker table tr td.selected:hover.active,fieldset[disabled] .cfdatepicker table tr td.selected:hover:active,fieldset[disabled] .cfdatepicker table tr td.selected:hover:focus,fieldset[disabled] .cfdatepicker table tr td.selected:hover:hover{background-color:#999;border-color:#555}.cfdatepicker table tr td.active,.cfdatepicker table tr td.active.disabled,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active:hover{color:#fff;background-color:#428bca;border-color:#357ebd;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td.active.active,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:focus,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active.disabled:hover.active,.cfdatepicker table tr td.active.disabled:hover:active,.cfdatepicker table tr td.active.disabled:hover:focus,.cfdatepicker table tr td.active.disabled:hover:hover,.cfdatepicker table tr td.active:active,.cfdatepicker table tr td.active:focus,.cfdatepicker table tr td.active:hover,.cfdatepicker table tr td.active:hover.active,.cfdatepicker table tr td.active:hover:active,.cfdatepicker table tr td.active:hover:focus,.cfdatepicker table tr td.active:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.active,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.active:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.cfdatepicker table tr td.active.active,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:hover.active,.cfdatepicker table tr td.active.disabled:hover:active,.cfdatepicker table tr td.active:active,.cfdatepicker table tr td.active:hover.active,.cfdatepicker table tr td.active:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.active,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.active:hover{background-image:none}.cfdatepicker table tr td.active.disabled,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled.disabled,.cfdatepicker table tr td.active.disabled.disabled.active,.cfdatepicker table tr td.active.disabled.disabled:active,.cfdatepicker table tr td.active.disabled.disabled:focus,.cfdatepicker table tr td.active.disabled.disabled:hover,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:focus,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active.disabled:hover.disabled,.cfdatepicker table tr td.active.disabled:hover.disabled.active,.cfdatepicker table tr td.active.disabled:hover.disabled:active,.cfdatepicker table tr td.active.disabled:hover.disabled:focus,.cfdatepicker table tr td.active.disabled:hover.disabled:hover,.cfdatepicker table tr td.active.disabled:hover[disabled],.cfdatepicker table tr td.active.disabled:hover[disabled].active,.cfdatepicker table tr td.active.disabled:hover[disabled]:active,.cfdatepicker table tr td.active.disabled:hover[disabled]:focus,.cfdatepicker table tr td.active.disabled:hover[disabled]:hover,.cfdatepicker table tr td.active.disabled[disabled],.cfdatepicker table tr td.active.disabled[disabled].active,.cfdatepicker table tr td.active.disabled[disabled]:active,.cfdatepicker table tr td.active.disabled[disabled]:focus,.cfdatepicker table tr td.active.disabled[disabled]:hover,.cfdatepicker table tr td.active:hover.disabled,.cfdatepicker table tr td.active:hover.disabled.active,.cfdatepicker table tr td.active:hover.disabled:active,.cfdatepicker table tr td.active:hover.disabled:focus,.cfdatepicker table tr td.active:hover.disabled:hover,.cfdatepicker table tr td.active:hover[disabled],.cfdatepicker table tr td.active:hover[disabled].active,.cfdatepicker table tr td.active:hover[disabled]:active,.cfdatepicker table tr td.active:hover[disabled]:focus,.cfdatepicker table tr td.active:hover[disabled]:hover,.cfdatepicker table tr td.active[disabled],.cfdatepicker table tr td.active[disabled].active,.cfdatepicker table tr td.active[disabled]:active,.cfdatepicker table tr td.active[disabled]:focus,.cfdatepicker table tr td.active[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.active,fieldset[disabled] .cfdatepicker table tr td.active.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled,fieldset[disabled] .cfdatepicker table tr td.active.disabled.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.active:active,fieldset[disabled] .cfdatepicker table tr td.active:focus,fieldset[disabled] .cfdatepicker table tr td.active:hover,fieldset[disabled] .cfdatepicker table tr td.active:hover.active,fieldset[disabled] .cfdatepicker table tr td.active:hover:active,fieldset[disabled] .cfdatepicker table tr td.active:hover:focus,fieldset[disabled] .cfdatepicker table tr td.active:hover:hover{background-color:#428bca;border-color:#357ebd}.cfdatepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;border-radius:4px}.cfdatepicker table tr td span:hover{background:#eee}.cfdatepicker table tr td span.disabled,.cfdatepicker table tr td span.disabled:hover{background:0 0;color:#999;cursor:default}.cfdatepicker table tr td span.active,.cfdatepicker table tr td span.active.disabled,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active:hover{color:#fff;background-color:#428bca;border-color:#357ebd;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td span.active.active,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover.active,.cfdatepicker table tr td span.active.disabled:hover:active,.cfdatepicker table tr td span.active.disabled:hover:focus,.cfdatepicker table tr td span.active.disabled:hover:hover,.cfdatepicker table tr td span.active:active,.cfdatepicker table tr td span.active:focus,.cfdatepicker table tr td span.active:hover,.cfdatepicker table tr td span.active:hover.active,.cfdatepicker table tr td span.active:hover:active,.cfdatepicker table tr td span.active:hover:focus,.cfdatepicker table tr td span.active:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.cfdatepicker table tr td span.active.active,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:hover.active,.cfdatepicker table tr td span.active.disabled:hover:active,.cfdatepicker table tr td span.active:active,.cfdatepicker table tr td span.active:hover.active,.cfdatepicker table tr td span.active:hover:active,.open .dropdown-toggle.cfdatepicker table tr td span.active,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active:hover{background-image:none}.cfdatepicker table tr td span.active.disabled,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled.disabled,.cfdatepicker table tr td span.active.disabled.disabled.active,.cfdatepicker table tr td span.active.disabled.disabled:active,.cfdatepicker table tr td span.active.disabled.disabled:focus,.cfdatepicker table tr td span.active.disabled.disabled:hover,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover.disabled,.cfdatepicker table tr td span.active.disabled:hover.disabled.active,.cfdatepicker table tr td span.active.disabled:hover.disabled:active,.cfdatepicker table tr td span.active.disabled:hover.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover[disabled],.cfdatepicker table tr td span.active.disabled:hover[disabled].active,.cfdatepicker table tr td span.active.disabled:hover[disabled]:active,.cfdatepicker table tr td span.active.disabled:hover[disabled]:focus,.cfdatepicker table tr td span.active.disabled:hover[disabled]:hover,.cfdatepicker table tr td span.active.disabled[disabled],.cfdatepicker table tr td span.active.disabled[disabled].active,.cfdatepicker table tr td span.active.disabled[disabled]:active,.cfdatepicker table tr td span.active.disabled[disabled]:focus,.cfdatepicker table tr td span.active.disabled[disabled]:hover,.cfdatepicker table tr td span.active:hover.disabled,.cfdatepicker table tr td span.active:hover.disabled.active,.cfdatepicker table tr td span.active:hover.disabled:active,.cfdatepicker table tr td span.active:hover.disabled:focus,.cfdatepicker table tr td span.active:hover.disabled:hover,.cfdatepicker table tr td span.active:hover[disabled],.cfdatepicker table tr td span.active:hover[disabled].active,.cfdatepicker table tr td span.active:hover[disabled]:active,.cfdatepicker table tr td span.active:hover[disabled]:focus,.cfdatepicker table tr td span.active:hover[disabled]:hover,.cfdatepicker table tr td span.active[disabled],.cfdatepicker table tr td span.active[disabled].active,.cfdatepicker table tr td span.active[disabled]:active,.cfdatepicker table tr td span.active[disabled]:focus,.cfdatepicker table tr td span.active[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td span.active,fieldset[disabled] .cfdatepicker table tr td span.active.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled,fieldset[disabled] .cfdatepicker table tr td span.active.disabled.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:focus,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td span.active:active,fieldset[disabled] .cfdatepicker table tr td span.active:focus,fieldset[disabled] .cfdatepicker table tr td span.active:hover,fieldset[disabled] .cfdatepicker table tr td span.active:hover.active,fieldset[disabled] .cfdatepicker table tr td span.active:hover:active,fieldset[disabled] .cfdatepicker table tr td span.active:hover:focus,fieldset[disabled] .cfdatepicker table tr td span.active:hover:hover{background-color:#428bca;border-color:#357ebd}.cfdatepicker table tr td span.new,.cfdatepicker table tr td span.old{color:#999}.cfdatepicker th.cfdatepicker-switch{width:145px}.cfdatepicker tfoot tr th,.cfdatepicker thead tr:first-child th{cursor:pointer}.cfdatepicker tfoot tr th:hover,.cfdatepicker thead tr:first-child th:hover{background:#eee}.cfdatepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.cfdatepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.input-group.date .input-group-addon i{cursor:pointer;width:16px;height:16px}.input-daterange input{text-align:center}.input-daterange input:first-child{border-radius:3px 0 0 3px}.input-daterange input:last-child{border-radius:0 3px 3px 0}.input-daterange .input-group-addon{width:auto;min-width:16px;padding:4px 5px;font-weight:400;line-height:1.42857143;text-align:center;text-shadow:0 1px 0 #fff;vertical-align:middle;background-color:#eee;border:solid #ccc;border-width:1px 0;margin-left:-5px;margin-right:-5px}.cfdatepicker.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;color:#333;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:1.42857143}.cfdatepicker.dropdown-menu td,.cfdatepicker.dropdown-menu th{padding:4px 5px}.image-thumb{margin-left:63px;padding:6px 0 6px 6px}.image-picker-content.image-thumb-lrg{margin-bottom:6px}.image-picker-side-bar{float:left;margin-left:-68px;width:62px}.image-thumb-lrg .image-picker-side-bar{background:#F6F6F6;border:1px solid #DFDFDF;float:none;margin:0 0 6px;padding:6px 6px 2px;text-align:center;width:auto}.image-picker-side-bar>img{border:1px solid #DFDFDF;width:62px}.image-thumb-lrg .image-picker-side-bar>img{-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;text-align:center;width:auto}.image-thumb .image-picker-main-content{margin-right:6px}.button.image-picker-button{margin:7px 0 0;width:110px;display:inline-block}.button.button-primary.image-picker-button{float:right;margin-left:6px;width:80px}.image-picker-main-content select{width:100%}.image-picker-sizer:disabled{opacity:.7;box-shadow:none;color:#A1A1A1}.button-primary.image-picker-button.image-picker-button-solo,.button.image-picker-button.image-picker-button-solo{width:170px;margin-top:0}.button-primary.image-picker-button.image-picker-button-solo{margin-top:7px;margin-left:0;float:none}.image-thumb-lrg .button.image-picker-button.cu-image-picker.image-picker-button-solo{width:120px}.image-thumb-lrg .button.button-primary.image-picker-button.cu-image-remover.image-picker-button-solo{float:right;margin:0 0 0 6px;width:auto}.image-thumb-lrg .button.button-primary.image-picker-button.cu-image-remover{width:45%}.image-picker-side-bar{max-width:100%}input.cu-image-picker-file-select[type=file]{display:none}.rangeslider,.rangeslider__fill{background:#e6e6e6;display:block;height:8px;width:100%;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px;border-radius:10px}.rangeslider{position:relative}.rangeslider--disabled{filter:alpha(Opacity=40);opacity:.4}.rangeslider__fill{background:#0f0;position:absolute;top:0}.rangeslider__handle{background:#fff;border:1px solid #ccc;cursor:pointer;display:inline-block;width:18px;height:18px;position:absolute;top:-5px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%}input[type=range]:focus+.rangeslider .rangeslider__handle{-webkit-box-shadow:0 0 3px rgba(100,100,100,.9);-moz-box-shadow:0 0 3px rgba(100,100,100,.9);box-shadow:0 0 3px rgba(100,100,100,.9)}.recaptchatable #recaptcha_response_field{height:21px!important}.toggle_option_row{margin:4px 0}.toggle_option_row input{display:inline-block}.toggle_option_row .dashicons-sort{cursor:move}.toggle_option_row .toggle_label_field,.toggle_option_row .toggle_value_field{width:136px;line-height:20px}.toggle_option_preview .button{border-radius:0;margin-right:-5px}.toggle_option_preview .button:first-child{border-radius:3px 0 0 3px}.toggle_option_preview .button:last-child{border-radius:0 3px 3px 0}.toggle_option_preview.toggle_vertical .button{width:100%}.toggle_option_preview.toggle_vertical .button:first-child{border-radius:3px 3px 0 0}.toggle_option_preview.toggle_vertical .button:last-child{border-radius:0 0 3px 3px}.cf-toggle-switch html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.cf-toggle-switch body{margin:0}.cf-toggle-switch article,.cf-toggle-switch aside,.cf-toggle-switch details,.cf-toggle-switch figcaption,.cf-toggle-switch figure,.cf-toggle-switch footer,.cf-toggle-switch header,.cf-toggle-switch hgroup,.cf-toggle-switch main,.cf-toggle-switch nav,.cf-toggle-switch section,.cf-toggle-switch summary{display:block}.cf-toggle-switch audio,.cf-toggle-switch canvas,.cf-toggle-switch progress,.cf-toggle-switch video{display:inline-block;vertical-align:baseline}.cf-toggle-switch audio:not([controls]){display:none;height:0}.cf-toggle-switch [hidden],.cf-toggle-switch template{display:none}.cf-toggle-switch a{background:0 0}.cf-toggle-switch a:active,.cf-toggle-switch a:hover{outline:0}.cf-toggle-switch abbr[title]{border-bottom:1px dotted}.cf-toggle-switch b,.cf-toggle-switch strong{font-weight:700}.cf-toggle-switch dfn{font-style:italic}.cf-toggle-switch h1{font-size:2em;margin:.67em 0}.cf-toggle-switch mark{background:#ff0;color:#000}.cf-toggle-switch small{font-size:80%}.cf-toggle-switch sub,.cf-toggle-switch sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.cf-toggle-switch sup{top:-.5em}.cf-toggle-switch sub{bottom:-.25em}.cf-toggle-switch img{border:0}.cf-toggle-switch svg:not(:root){overflow:hidden}.cf-toggle-switch figure{margin:1em 40px}.cf-toggle-switch hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.cf-toggle-switch pre{overflow:auto}.cf-toggle-switch code,.cf-toggle-switch kbd,.cf-toggle-switch pre,.cf-toggle-switch samp{font-family:monospace,monospace;font-size:1em}.cf-toggle-switch button,.cf-toggle-switch input,.cf-toggle-switch optgroup,.cf-toggle-switch select,.cf-toggle-switch textarea{color:inherit;font:inherit;margin:0}.cf-toggle-switch button{overflow:visible}.cf-toggle-switch button,.cf-toggle-switch select{text-transform:none}.cf-toggle-switch button,.cf-toggle-switch html input[type=button],.cf-toggle-switch input[type=reset],.cf-toggle-switch input[type=submit]{-webkit-appearance:button;cursor:pointer}.cf-toggle-switch button[disabled],.cf-toggle-switch html input[disabled]{cursor:default}.cf-toggle-switch button::-moz-focus-inner,.cf-toggle-switch input::-moz-focus-inner{border:0;padding:0}.cf-toggle-switch input{line-height:normal}.cf-toggle-switch input[type=checkbox],.cf-toggle-switch input[type=radio]{box-sizing:border-box;padding:0}.cf-toggle-switch input[type=number]::-webkit-inner-spin-button,.cf-toggle-switch input[type=number]::-webkit-outer-spin-button{height:auto}.cf-toggle-switch input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.cf-toggle-switch input[type=search]::-webkit-search-cancel-button,.cf-toggle-switch input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.cf-toggle-switch fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.cf-toggle-switch legend{border:0;padding:0}.cf-toggle-switch textarea{overflow:auto}.cf-toggle-switch optgroup{font-weight:700}.cf-toggle-switch table{border-collapse:collapse;border-spacing:0}.cf-toggle-switch td,.cf-toggle-switch th{padding:0}.cf-toggle-switch .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cf-toggle-switch .btn.active:focus,.cf-toggle-switch .btn:active:focus,.cf-toggle-switch .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.cf-toggle-switch .btn:focus,.cf-toggle-switch .btn:hover{color:#333;text-decoration:none}.cf-toggle-switch .btn.active,.cf-toggle-switch .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.cf-toggle-switch .btn.disabled,.cf-toggle-switch .btn[disabled],.cf-toggle-switch fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-default{color:#333;background-color:#fff;border-color:#ccc}.cf-toggle-switch .btn-default.active,.cf-toggle-switch .btn-default:active,.cf-toggle-switch .btn-default:focus,.cf-toggle-switch .btn-default:hover,.cf-toggle-switch .open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.cf-toggle-switch .btn-default.active,.cf-toggle-switch .btn-default:active,.cf-toggle-switch .open .dropdown-toggle.btn-default{background-image:none}.cf-toggle-switch .btn-default.disabled,.cf-toggle-switch .btn-default.disabled.active,.cf-toggle-switch .btn-default.disabled:active,.cf-toggle-switch .btn-default.disabled:focus,.cf-toggle-switch .btn-default.disabled:hover,.cf-toggle-switch .btn-default[disabled],.cf-toggle-switch .btn-default[disabled].active,.cf-toggle-switch .btn-default[disabled]:active,.cf-toggle-switch .btn-default[disabled]:focus,.cf-toggle-switch .btn-default[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-default,.cf-toggle-switch fieldset[disabled] .btn-default.active,.cf-toggle-switch fieldset[disabled] .btn-default:active,.cf-toggle-switch fieldset[disabled] .btn-default:focus,.cf-toggle-switch fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.cf-toggle-switch .btn-default .badge{color:#fff;background-color:#333}.cf-toggle-switch .btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.cf-toggle-switch .btn-primary.active,.cf-toggle-switch .btn-primary:active,.cf-toggle-switch .btn-primary:focus,.cf-toggle-switch .btn-primary:hover,.cf-toggle-switch .open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.cf-toggle-switch .btn-primary.active,.cf-toggle-switch .btn-primary:active,.cf-toggle-switch .open .dropdown-toggle.btn-primary{background-image:none}.cf-toggle-switch .btn-primary.disabled,.cf-toggle-switch .btn-primary.disabled.active,.cf-toggle-switch .btn-primary.disabled:active,.cf-toggle-switch .btn-primary.disabled:focus,.cf-toggle-switch .btn-primary.disabled:hover,.cf-toggle-switch .btn-primary[disabled],.cf-toggle-switch .btn-primary[disabled].active,.cf-toggle-switch .btn-primary[disabled]:active,.cf-toggle-switch .btn-primary[disabled]:focus,.cf-toggle-switch .btn-primary[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-primary,.cf-toggle-switch fieldset[disabled] .btn-primary.active,.cf-toggle-switch fieldset[disabled] .btn-primary:active,.cf-toggle-switch fieldset[disabled] .btn-primary:focus,.cf-toggle-switch fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.cf-toggle-switch .btn-primary .badge{color:#428bca;background-color:#fff}.cf-toggle-switch .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.cf-toggle-switch .btn-success.active,.cf-toggle-switch .btn-success:active,.cf-toggle-switch .btn-success:focus,.cf-toggle-switch .btn-success:hover,.cf-toggle-switch .open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.cf-toggle-switch .btn-success.active,.cf-toggle-switch .btn-success:active,.cf-toggle-switch .open .dropdown-toggle.btn-success{background-image:none}.cf-toggle-switch .btn-success.disabled,.cf-toggle-switch .btn-success.disabled.active,.cf-toggle-switch .btn-success.disabled:active,.cf-toggle-switch .btn-success.disabled:focus,.cf-toggle-switch .btn-success.disabled:hover,.cf-toggle-switch .btn-success[disabled],.cf-toggle-switch .btn-success[disabled].active,.cf-toggle-switch .btn-success[disabled]:active,.cf-toggle-switch .btn-success[disabled]:focus,.cf-toggle-switch .btn-success[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-success,.cf-toggle-switch fieldset[disabled] .btn-success.active,.cf-toggle-switch fieldset[disabled] .btn-success:active,.cf-toggle-switch fieldset[disabled] .btn-success:focus,.cf-toggle-switch fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.cf-toggle-switch .btn-success .badge{color:#5cb85c;background-color:#fff}.cf-toggle-switch .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.cf-toggle-switch .btn-info.active,.cf-toggle-switch .btn-info:active,.cf-toggle-switch .btn-info:focus,.cf-toggle-switch .btn-info:hover,.cf-toggle-switch .open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.cf-toggle-switch .btn-info.active,.cf-toggle-switch .btn-info:active,.cf-toggle-switch .open .dropdown-toggle.btn-info{background-image:none}.cf-toggle-switch .btn-info.disabled,.cf-toggle-switch .btn-info.disabled.active,.cf-toggle-switch .btn-info.disabled:active,.cf-toggle-switch .btn-info.disabled:focus,.cf-toggle-switch .btn-info.disabled:hover,.cf-toggle-switch .btn-info[disabled],.cf-toggle-switch .btn-info[disabled].active,.cf-toggle-switch .btn-info[disabled]:active,.cf-toggle-switch .btn-info[disabled]:focus,.cf-toggle-switch .btn-info[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-info,.cf-toggle-switch fieldset[disabled] .btn-info.active,.cf-toggle-switch fieldset[disabled] .btn-info:active,.cf-toggle-switch fieldset[disabled] .btn-info:focus,.cf-toggle-switch fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.cf-toggle-switch .btn-info .badge{color:#5bc0de;background-color:#fff}.cf-toggle-switch .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.cf-toggle-switch .btn-warning.active,.cf-toggle-switch .btn-warning:active,.cf-toggle-switch .btn-warning:focus,.cf-toggle-switch .btn-warning:hover,.cf-toggle-switch .open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.cf-toggle-switch .btn-warning.active,.cf-toggle-switch .btn-warning:active,.cf-toggle-switch .open .dropdown-toggle.btn-warning{background-image:none}.cf-toggle-switch .btn-warning.disabled,.cf-toggle-switch .btn-warning.disabled.active,.cf-toggle-switch .btn-warning.disabled:active,.cf-toggle-switch .btn-warning.disabled:focus,.cf-toggle-switch .btn-warning.disabled:hover,.cf-toggle-switch .btn-warning[disabled],.cf-toggle-switch .btn-warning[disabled].active,.cf-toggle-switch .btn-warning[disabled]:active,.cf-toggle-switch .btn-warning[disabled]:focus,.cf-toggle-switch .btn-warning[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-warning,.cf-toggle-switch fieldset[disabled] .btn-warning.active,.cf-toggle-switch fieldset[disabled] .btn-warning:active,.cf-toggle-switch fieldset[disabled] .btn-warning:focus,.cf-toggle-switch fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.cf-toggle-switch .btn-warning .badge{color:#f0ad4e;background-color:#fff}.cf-toggle-switch .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.cf-toggle-switch .btn-danger.active,.cf-toggle-switch .btn-danger:active,.cf-toggle-switch .btn-danger:focus,.cf-toggle-switch .btn-danger:hover,.cf-toggle-switch .open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.cf-toggle-switch .btn-danger.active,.cf-toggle-switch .btn-danger:active,.cf-toggle-switch .open .dropdown-toggle.btn-danger{background-image:none}.cf-toggle-switch .btn-danger.disabled,.cf-toggle-switch .btn-danger.disabled.active,.cf-toggle-switch .btn-danger.disabled:active,.cf-toggle-switch .btn-danger.disabled:focus,.cf-toggle-switch .btn-danger.disabled:hover,.cf-toggle-switch .btn-danger[disabled],.cf-toggle-switch .btn-danger[disabled].active,.cf-toggle-switch .btn-danger[disabled]:active,.cf-toggle-switch .btn-danger[disabled]:focus,.cf-toggle-switch .btn-danger[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-danger,.cf-toggle-switch fieldset[disabled] .btn-danger.active,.cf-toggle-switch fieldset[disabled] .btn-danger:active,.cf-toggle-switch fieldset[disabled] .btn-danger:focus,.cf-toggle-switch fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.cf-toggle-switch .btn-danger .badge{color:#d9534f;background-color:#fff}.cf-toggle-switch .btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.cf-toggle-switch .btn-link,.cf-toggle-switch .btn-link:active,.cf-toggle-switch .btn-link[disabled],.cf-toggle-switch fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-link,.cf-toggle-switch .btn-link:active,.cf-toggle-switch .btn-link:focus,.cf-toggle-switch .btn-link:hover{border-color:transparent}.cf-toggle-switch .btn-link:focus,.cf-toggle-switch .btn-link:hover{color:#2a6496;text-decoration:underline;background-color:transparent}.cf-toggle-switch .btn-link[disabled]:focus,.cf-toggle-switch .btn-link[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-link:focus,.cf-toggle-switch fieldset[disabled] .btn-link:hover{color:#999;text-decoration:none}.cf-toggle-switch .btn-group-lg>.btn,.cf-toggle-switch .btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-toggle-switch .btn-group-sm>.btn,.cf-toggle-switch .btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-toggle-switch .btn-group-xs>.btn,.cf-toggle-switch .btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.cf-toggle-switch .btn-block{display:block;width:100%;padding-left:0;padding-right:0}.cf-toggle-switch .btn-block+.btn-block{margin-top:5px}.cf-toggle-switch input[type=button].btn-block,.cf-toggle-switch input[type=reset].btn-block,.cf-toggle-switch input[type=submit].btn-block{width:100%}.cf-toggle-switch .btn-group,.cf-toggle-switch .btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.cf-toggle-switch .btn-group-vertical>.btn,.cf-toggle-switch .btn-group>.btn{position:relative;float:left}.cf-toggle-switch .btn-group-vertical>.btn.active,.cf-toggle-switch .btn-group-vertical>.btn:active,.cf-toggle-switch .btn-group-vertical>.btn:focus,.cf-toggle-switch .btn-group-vertical>.btn:hover,.cf-toggle-switch .btn-group>.btn.active,.cf-toggle-switch .btn-group>.btn:active,.cf-toggle-switch .btn-group>.btn:focus,.cf-toggle-switch .btn-group>.btn:hover{z-index:2}.cf-toggle-switch .btn-group-vertical>.btn:focus,.cf-toggle-switch .btn-group>.btn:focus{outline:0}.cf-toggle-switch .btn-group .btn+.btn,.cf-toggle-switch .btn-group .btn+.btn-group,.cf-toggle-switch .btn-group .btn-group+.btn,.cf-toggle-switch .btn-group .btn-group+.btn-group{margin-left:-1px}.cf-toggle-switch .btn-toolbar{margin-left:-5px}.cf-toggle-switch .btn-toolbar .btn-group,.cf-toggle-switch .btn-toolbar .input-group{float:left}.cf-toggle-switch .btn-toolbar>.btn,.cf-toggle-switch .btn-toolbar>.btn-group,.cf-toggle-switch .btn-toolbar>.input-group{margin-left:5px}.cf-toggle-switch .btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.cf-toggle-switch .btn-group>.btn:first-child{margin-left:0}.cf-toggle-switch .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-toggle-switch .btn-group>.btn:last-child:not(:first-child),.cf-toggle-switch .btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group>.btn-group{float:left}.cf-toggle-switch .btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.cf-toggle-switch .btn-group>.btn-group:first-child>.btn:last-child,.cf-toggle-switch .btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.cf-toggle-switch .btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group .dropdown-toggle:active,.cf-toggle-switch .btn-group.open .dropdown-toggle{outline:0}.cf-toggle-switch .btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.cf-toggle-switch .btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.cf-toggle-switch .btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.cf-toggle-switch .btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn .caret{margin-left:0}.cf-toggle-switch .btn-lg .caret{border-width:5px 5px 0}.cf-toggle-switch .dropup .btn-lg .caret{border-width:0 5px 5px}.cf-toggle-switch .btn-group-vertical>.btn,.cf-toggle-switch .btn-group-vertical>.btn-group,.cf-toggle-switch .btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.cf-toggle-switch .btn-group-vertical>.btn-group>.btn{float:none}.cf-toggle-switch .btn-group-vertical>.btn+.btn,.cf-toggle-switch .btn-group-vertical>.btn+.btn-group,.cf-toggle-switch .btn-group-vertical>.btn-group+.btn,.cf-toggle-switch .btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.cf-toggle-switch .btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.cf-toggle-switch .btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.cf-toggle-switch .btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.cf-toggle-switch .btn-group-justified>.btn,.cf-toggle-switch .btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.cf-toggle-switch .btn-group-justified>.btn-group .btn{width:100%}.cf-toggle-switch [data-toggle=buttons]>.btn>input[type=checkbox],.cf-toggle-switch [data-toggle=buttons]>.btn>input[type=radio]{display:none}.cf-toggle-switch .btn-group-vertical>.btn-group:after,.cf-toggle-switch .btn-group-vertical>.btn-group:before,.cf-toggle-switch .btn-toolbar:after,.cf-toggle-switch .btn-toolbar:before,.cf-toggle-switch .clearfix:after,.cf-toggle-switch .clearfix:before{content:" ";display:table}.cf-toggle-switch .btn-group-vertical>.btn-group:after,.cf-toggle-switch .btn-toolbar:after,.cf-toggle-switch .clearfix:after{clear:both}.cf-toggle-switch .center-block{display:block;margin-left:auto;margin-right:auto}.cf-toggle-switch .pull-right{float:right!important}.cf-toggle-switch .pull-left{float:left!important}.cf-toggle-switch .hide{display:none!important}.cf-toggle-switch .show{display:block!important}.cf-toggle-switch .invisible{visibility:hidden}.cf-toggle-switch .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.cf-toggle-switch .hidden{display:none!important;visibility:hidden!important}.cf-toggle-switch .affix{position:fixed}@-ms-viewport{width:device-width}.cf-toggle-switch .visible-lg,.cf-toggle-switch .visible-md,.cf-toggle-switch .visible-print,.cf-toggle-switch .visible-sm,.cf-toggle-switch .visible-xs{display:none!important}@media (max-width:767px){.cf-toggle-switch .visible-xs{display:block!important}.cf-toggle-switch table.visible-xs{display:table}.cf-toggle-switch tr.visible-xs{display:table-row!important}.cf-toggle-switch td.visible-xs,.cf-toggle-switch th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-toggle-switch .visible-sm{display:block!important}.cf-toggle-switch table.visible-sm{display:table}.cf-toggle-switch tr.visible-sm{display:table-row!important}.cf-toggle-switch td.visible-sm,.cf-toggle-switch th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-toggle-switch .visible-md{display:block!important}.cf-toggle-switch table.visible-md{display:table}.cf-toggle-switch tr.visible-md{display:table-row!important}.cf-toggle-switch td.visible-md,.cf-toggle-switch th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-toggle-switch .visible-lg{display:block!important}.cf-toggle-switch table.visible-lg{display:table}.cf-toggle-switch tr.visible-lg{display:table-row!important}.cf-toggle-switch td.visible-lg,.cf-toggle-switch th.visible-lg{display:table-cell!important}}@media (max-width:767px){.cf-toggle-switch .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-toggle-switch .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-toggle-switch .hidden-md{display:none!important}}@media (min-width:1200px){.cf-toggle-switch .hidden-lg{display:none!important}}@media print{.cf-toggle-switch .visible-print{display:block!important}.cf-toggle-switch table.visible-print{display:table}.cf-toggle-switch tr.visible-print{display:table-row!important}.cf-toggle-switch td.visible-print,.cf-toggle-switch th.visible-print{display:table-cell!important}}@media print{.cf-toggle-switch .hidden-print{display:none!important}}.cf-toggle-group-buttons{width:100%;clear:both}
3
- input.form-control.parsley-success,select.form-control.parsley-success,textarea.form-control.parsley-success{color:#468847;background-color:#DFF0D8;border-color:#D6E9C6}input.form-control.parsley-error,select.form-control.parsley-error,textarea.form-control.parsley-error{color:#B94A48;background-color:#F2DEDE;border-color: #EED3D7}.form-control.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;color:#468847;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.form-control.parsley-errors-list.filled{opacity:1}
4
- .breadcrumb a.has-error{color:#ff0000;}
5
- .form-group .parsley-errors-list.filled,.form-group .parsley-errors-list.filled .parsley-type {
6
- list-style: outside none none;
7
- list-style-type: none;
8
- }
9
-
10
- .caldera-grid .cf-multi-uploader-list > ul {
11
- list-style: outside none none;
12
- margin: 0 0 12px;
13
- padding: 0;
14
- }
15
- .caldera-grid .cf-multi-uploader-list > ul > li {
16
- margin: 0;
17
- padding: 0 0 22px;
18
- position: relative;
19
- clear: both;
20
- }
21
- .caldera-grid .cf-multi-uploader-list > ul > li .file-name {
22
- display: inline-block;
23
- font-weight: bold;
24
- left: 16px;
25
- right: 0;
26
- overflow: hidden;
27
- position: absolute;
28
- text-overflow: ellipsis;
29
- white-space: nowrap;
30
- }
31
- .caldera-grid .cf-multi-uploader-list > ul > li .file-name.file-uploaded {
32
- left: 0;
33
- }
34
- .caldera-grid .cf-multi-uploader-list > ul > li .file-size {
35
- float: right;
36
- }
37
- .caldera-grid .cf-multi-uploader-list > ul > li .file-type {
38
- float: left;
39
- }
40
- .caldera-grid .cf-multi-uploader-list > ul > li .file-error{
41
- clear: both;
42
- display: block;
43
- }
44
- .caldera-grid .cf-multi-uploader-list > ul > li .cf-file-remove {
45
- color: #cf0000;
46
- text-decoration: none;
47
- border: 0;
48
- }
49
- .caldera-grid .cf-multi-uploader-list > ul > li.has-error .bar {
50
- background-color: #cf0000 !important;
51
- }
52
- .caldera-grid .cf-multi-uploader-list > ul > li.has-error{
53
- color: #cf0000;
54
- }
55
-
56
- .has-error.cf-toggle-switch .cf-toggle-group-buttons > a {
57
- background-color: #f2dede;
58
- border-color: #dd4b39;
59
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/fonts/cfont.eot CHANGED
File without changes
assets/css/fonts/cfont.svg CHANGED
File without changes
assets/css/fonts/cfont.ttf CHANGED
File without changes
assets/css/fonts/cfont.woff CHANGED
File without changes
assets/css/ie7/ie7.css ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .cfont-credit-card {
2
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
3
+ }
4
+ .cfont-slack {
5
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
6
+ }
7
+ .cfont-envelope-square {
8
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
9
+ }
10
+ .cfont-wordpress {
11
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
12
+ }
13
+ .cfont-ra {
14
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
15
+ }
16
+ .cfont-rebel {
17
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
18
+ }
19
+ .cfont-resistance {
20
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
21
+ }
22
+ .cfont-paypal {
23
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
24
+ }
25
+ .cfont-cc-visa {
26
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
27
+ }
28
+ .cfont-cc-mastercard {
29
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
30
+ }
31
+ .cfont-cc-discover {
32
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
33
+ }
34
+ .cfont-cc-amex {
35
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
36
+ }
37
+ .cfont-cc-paypal {
38
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
39
+ }
40
+ .cfont-cc-stripe {
41
+ *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
42
+ }
43
+
assets/css/ie7/ie7.js ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* To avoid CSS expressions while still supporting IE 7 and IE 6, use this script */
2
+ /* The script tag referencing this file must be placed before the ending body tag. */
3
+
4
+ /* Use conditional comments in order to target IE 7 and older:
5
+ <!--[if lt IE 8]><!-->
6
+ <script src="ie7/ie7.js"></script>
7
+ <!--<![endif]-->
8
+ */
9
+
10
+ (function() {
11
+ function addIcon(el, entity) {
12
+ var html = el.innerHTML;
13
+ el.innerHTML = '<span style="font-family: \'cfont\'">' + entity + '</span>' + html;
14
+ }
15
+ var icons = {
16
+ 'cfont-credit-card': '&#xf09d;',
17
+ 'cfont-slack': '&#xf198;',
18
+ 'cfont-envelope-square': '&#xf199;',
19
+ 'cfont-wordpress': '&#xf19a;',
20
+ 'cfont-ra': '&#xf1d0;',
21
+ 'cfont-rebel': '&#xf1d0;',
22
+ 'cfont-resistance': '&#xf1d0;',
23
+ 'cfont-paypal': '&#xf1ed;',
24
+ 'cfont-cc-visa': '&#xf1f0;',
25
+ 'cfont-cc-mastercard': '&#xf1f1;',
26
+ 'cfont-cc-discover': '&#xf1f2;',
27
+ 'cfont-cc-amex': '&#xf1f3;',
28
+ 'cfont-cc-paypal': '&#xf1f4;',
29
+ 'cfont-cc-stripe': '&#xf1f5;',
30
+ '0': 0
31
+ },
32
+ els = document.getElementsByTagName('*'),
33
+ i, c, el;
34
+ for (i = 0; ; i += 1) {
35
+ el = els[i];
36
+ if(!el) {
37
+ break;
38
+ }
39
+ c = el.className;
40
+ c = c.match(/cfont-[^\s'"]+/);
41
+ if (c && icons[c[0]]) {
42
+ addIcon(el, icons[c[0]]);
43
+ }
44
+ }
45
+ }());
assets/css/remodal-default-theme.css CHANGED
File without changes
assets/css/remodal-default-theme.min.css DELETED
@@ -1 +0,0 @@
1
- .remodal-bg.remodal-is-opened,.remodal-bg.remodal-is-opening{-webkit-filter:blur(3px);filter:blur(3px)}.remodal-overlay{background:rgba(43,53,56,.58)}.remodal-overlay.remodal-is-closing,.remodal-overlay.remodal-is-opening{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.remodal-overlay.remodal-is-opening{-webkit-animation-name:remodal-overlay-opening-keyframes;animation-name:remodal-overlay-opening-keyframes}.remodal-overlay.remodal-is-closing{-webkit-animation-name:remodal-overlay-closing-keyframes;animation-name:remodal-overlay-closing-keyframes}.remodal-wrapper{padding:10px 10px 0}.remodal{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;margin-bottom:10px;padding:28px 28px 0;border-radius:6px;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);color:#2b2e38;background:#fff}.remodal-close,.remodal-close:before{position:absolute;top:0;right:0;display:block;width:35px}.remodal-cancel,.remodal-close,.remodal-confirm{overflow:visible;margin:0;cursor:pointer;text-decoration:none;outline:0;border:0}.remodal.remodal-is-closing,.remodal.remodal-is-opening{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.remodal.remodal-is-opening{-webkit-animation-name:remodal-opening-keyframes;animation-name:remodal-opening-keyframes}.remodal.remodal-is-closing{-webkit-animation-name:remodal-closing-keyframes;animation-name:remodal-closing-keyframes}.remodal,.remodal-wrapper:after{vertical-align:middle}.remodal-close{height:35px;padding:0;-webkit-transition:color .2s;transition:color .2s;color:#95979c;background:0 0}.remodal-close:focus,.remodal-close:hover{color:#2b2e38}.remodal-close:before{font-family:Arial,"Helvetica CY","Nimbus Sans L",sans-serif!important;font-size:25px;line-height:35px;content:"\00d7";text-align:center}.remodal-cancel,.remodal-confirm{font:inherit;display:inline-block;min-width:110px;padding:12px 0;-webkit-transition:background .2s;transition:background .2s;text-align:center;vertical-align:middle}.remodal-confirm{color:#fff;background:#81c784}.remodal-confirm:focus,.remodal-confirm:hover{background:#66bb6a}.remodal-cancel{color:#fff;background:#e57373}.remodal-cancel:focus,.remodal-cancel:hover{background:#ef5350}.remodal-cancel::-moz-focus-inner,.remodal-close::-moz-focus-inner,.remodal-confirm::-moz-focus-inner{padding:0;border:0}@-webkit-keyframes remodal-opening-keyframes{from{-webkit-transform:scale(1.05);transform:scale(1.05);opacity:0}to{-webkit-transform:none;transform:none;opacity:1}}@keyframes remodal-opening-keyframes{from{-webkit-transform:scale(1.05);transform:scale(1.05);opacity:0}to{-webkit-transform:none;transform:none;opacity:1}}@-webkit-keyframes remodal-closing-keyframes{from{-webkit-transform:scale(1);transform:scale(1);opacity:1}to{-webkit-transform:scale(.95);transform:scale(.95);opacity:0}}@keyframes remodal-closing-keyframes{from{-webkit-transform:scale(1);transform:scale(1);opacity:1}to{-webkit-transform:scale(.95);transform:scale(.95);opacity:0}}@-webkit-keyframes remodal-overlay-opening-keyframes{from{opacity:0}to{opacity:1}}@keyframes remodal-overlay-opening-keyframes{from{opacity:0}to{opacity:1}}@-webkit-keyframes remodal-overlay-closing-keyframes{from{opacity:1}to{opacity:0}}@keyframes remodal-overlay-closing-keyframes{from{opacity:1}to{opacity:0}}@media only screen and (min-width:641px){.remodal{max-width:700px}}.lt-ie9 .remodal-overlay{background:#2b2e38}.lt-ie9 .remodal{width:700px}
 
assets/css/remodal.css CHANGED
File without changes
assets/css/remodal.min.css DELETED
@@ -1 +0,0 @@
1
- html.remodal-is-locked{overflow:hidden;-ms-touch-action:none;touch-action:none}.remodal,[data-remodal-id]{display:none;text-align:left}.remodal-overlay{position:fixed;z-index:9999;top:-5000px;right:-5000px;bottom:-5000px;left:-5000px;display:none}.remodal-wrapper{position:fixed;z-index:10000;top:0;right:0;bottom:0;left:0;display:none;overflow:auto;text-align:center;-webkit-overflow-scrolling:touch}.remodal-wrapper:after{display:inline-block;height:100%;margin-left:-.05em;content:""}.remodal-overlay,.remodal-wrapper{-webkit-backface-visibility:hidden;backface-visibility:hidden}.remodal{position:relative;outline:0;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}.remodal-is-initialized{display:inline-block}.remodal .caldera-grid.cf_processing.cf_modal{background-position:center top;display:block;padding:0 0 60px}
 
assets/css/theme-default.min.css CHANGED
File without changes
assets/images/align-justify.svg CHANGED
File without changes
assets/images/calculator.svg CHANGED
File without changes
assets/images/cart-plus.svg CHANGED
File without changes
assets/images/cc-amex.svg CHANGED
File without changes
assets/images/cc-discover.svg CHANGED
File without changes
assets/images/cc-mastercard.svg CHANGED
File without changes
assets/images/cc-paypal.svg CHANGED
File without changes
assets/images/cc-stripe.svg CHANGED
File without changes
assets/images/cc-visa.svg CHANGED
File without changes
assets/images/chain.svg CHANGED
File without changes
assets/images/cloud-upload.svg CHANGED
File without changes
assets/images/cog.svg CHANGED
File without changes
assets/images/credit-card.svg CHANGED
File without changes
assets/images/envelope-o.svg CHANGED
File without changes
assets/images/envelope-square.svg CHANGED
File without changes
assets/images/eye.svg CHANGED
File without changes
assets/images/folder-open-o.svg CHANGED
File without changes
assets/images/list.svg CHANGED
File without changes
assets/images/lock.svg CHANGED
File without changes
assets/images/mobile.svg CHANGED
File without changes
assets/images/paint-brush.svg CHANGED
File without changes
assets/images/paypal.svg CHANGED
File without changes
assets/images/plus.svg CHANGED
File without changes
assets/images/ra.svg CHANGED
File without changes
assets/images/slack.svg CHANGED
File without changes
assets/images/star.svg CHANGED
File without changes
assets/images/user.svg CHANGED
File without changes
assets/images/volume-control-phone.svg CHANGED
File without changes
assets/images/wordpress.svg CHANGED
File without changes
assets/js/ajax-core.js CHANGED
File without changes
assets/js/ajax-core.min.js DELETED
@@ -1 +0,0 @@
1
- var resBaldrickTriggers;jQuery(function(a){var r=[],e=function(e,t,s){var i=a("#progress-file-"+t),d=a("."+t+" .file-size");r.push(1),cf_uploader_filelist[t].state=2,a.ajax({xhr:function(){var a=new window.XMLHttpRequest;return a.upload.addEventListener("progress",function(a){if(a.lengthComputable){var r=a.loaded/a.total*100;i.width(r+"%"),d.html(size_format(a.loaded)+" / "+size_format(a.total))}},!1),a.addEventListener("progress",function(a){if(a.lengthComputable){a.loaded/a.total}},!1),a},url:e.data("request")+"/upload/",type:"POST",data:s,processData:!1,contentType:!1,success:function(s,i,d){if(s.success&&s.success===!0){r.pop();var l=a('[data-file="'+t+'"]');l.next().addClass("file-uploaded"),l.remove(),cf_uploader_filelist[t].state=3,e.submit()}else if(s.data&&!s.success)return a("."+t).addClass("has-error"),e.find(":submit").prop("disabled",!1),e.find(".cf-uploader-trigger").slideDown(),void a("."+t+" .file-error").html(s.data)},error:function(a,r,t){e.data("postDisable")||buttons.prop("disabled",!1)}})};(resBaldrickTriggers=function(){a(".cfajax-trigger").baldrick({request:"./",method:"POST",init:function(t,s){s.preventDefault();var i=a(t),d=i.find(":submit");if(i.data("_cf_manual"))return i.find('[name="cfajax"]').remove(),!1;if(i.data("postDisable")||d.prop("disabled",!0),"object"==typeof cf_uploader_filelist){i.find(".cf-uploader-trigger").slideUp();var l=!1,o=r.length;for(var n in cf_uploader_filelist)if(!(cf_uploader_filelist[n].state>1||0===cf_uploader_filelist[n].state)){l=!0;var p=new FormData,c=n,f=a("#"+c.split("_file_")[0]);if(p.append(f.data("field"),cf_uploader_filelist[n].file),p.append("field",f.data("field")),p.append("control",f.data("controlid")),e(i,c,p),o++,1===o)break}if(!0===l||r.length)return!1}},error:function(a){404===a.jqxhr.status&&this.trigger.data("_cf_manual",!0).trigger("submit")},callback:function(r){r.params.trigger.find(":submit").prop("disabled",!1);r.params.trigger.data("instance");if(r.params.trigger.data("customCallback")&&"function"==typeof window[r.params.trigger.data("customCallback")]&&window[r.params.trigger.data("customCallback")](r.data),r.params.trigger.data("inhibitnotice")||(a(".caldera_ajax_error_wrap").removeClass("caldera_ajax_error_wrap").removeClass("has-error"),a(".caldera_ajax_error_block").remove(),"complete"===r.data.status||"success"===r.data.type?(r.data.html&&r.params.target.html(r.data.html),r.params.trigger.data("hiderows")&&r.params.trigger.find("div.row").remove()):"preprocess"===r.data.status?r.params.target.html(r.data.html):"error"===r.data.status&&r.params.target.html(r.data.html)),"complete"!==r.data.status&&"success"!==r.data.type||r.data.entry||r.params.trigger[0].reset(),r.data.url&&(r.params.trigger.hide(),window.location=r.data.url),r.params.trigger.find(".cf-uploader-trigger").slideDown(),r.data.fields)for(var e in r.data.fields){var t=r.params.trigger.find('[data-field="'+e+'"]'),s=t.parent();s.is("label")&&(s=s.parent(),(s.hasClass("checkbox")||s.hasClass("radio"))&&(s=s.parent()));var i=s.find(".help-block").not(".caldera_ajax_error_block");s.addClass("has-error").addClass("caldera_ajax_error_wrap"),i.length&&i.hide(),s.append('<span class="help-block caldera_ajax_error_block">'+r.data.fields[e]+"</span>")}a(document).trigger("cf.submission",r),a(document).trigger("cf."+r.data.type)}})})()});
 
assets/js/api/client.js CHANGED
File without changes
assets/js/api/stores.js CHANGED
File without changes
assets/js/caldera-forms-front.js CHANGED
File without changes
assets/js/caldera-modals.js CHANGED
File without changes
assets/js/caldera-modals.min.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t=null,a={},i=[],o=[],d=e("html"),n=e("body"),c=e(window),l=function(){if(i.length||o.length){var e=i.length?i[i.length-1]:o[o.length-1],s=c.width(),r=c.height(),g=a[e].config.height,m=g,f=a[e].config.width,h=0,p=!1,u=!1;if(t&&d.addClass("has-caldera-modal"),h=(r-a[e].config.height)/2.2,0>h&&(h=0),g+2*a[e].config.padding>r&&t&&(g=r-2*a[e].config.padding,m="100%",t&&t.css({paddingTop:a[e].config.padding,paddingBottom:a[e].config.padding}),u=!0),f+2*a[e].config.padding>=s&&(f="100%",t&&t.css({paddingLeft:a[e].config.padding,paddingRight:a[e].config.padding}),u=!0),!0===u&&(700>=s&&s>600?(t&&(g=r-2*a[e].config.padding),f=s,m=g-2*a[e].config.padding,f="100%",h=0,t&&t.css({padding:a[e].config.padding})):600>=s&&(t&&(g=r),f=s,m="100%",h=0,t&&t.css({padding:0}))),t&&t.is(":hidden")&&(p=!0,t.show()),a[e].header&&(t&&t.show(),g-=a[e].header.outerHeight(),a[e].closer.css({padding:a[e].header.outerHeight()/2-.5}),a[e].title.css({paddingRight:a[e].closer.outerWidth()})),a[e].footer&&(t&&t.show(),g-=a[e].footer.outerHeight()),t&&p===!0&&(t.hide(),p=!1),g!=m&&a[e].body.css({height:g}),a[e].modal.css({width:f}),a[e].config.sticky&&a[e].config.minimized){var y={},w=a[e].title.outerHeight()-a[e].modal.outerHeight();a[e].config.sticky.indexOf("bottom")>-1?y["margin-bottom"]=w:a[e].config.sticky.indexOf("top")>-1&&(y["margin-top"]=w),a[e].modal.css(y),a[e].config.sticky.length>=3&&(n.css("margin-"+a[e].config.sticky[0],a[e].title.outerHeight()),u?a[e].modal.css(a[e].config.sticky[1],0):a[e].modal.css(a[e].config.sticky[1],parseFloat(a[e].config.sticky[2])))}return t&&(a[e].modal.css({marginTop:h,height:m}),setTimeout(function(){a[e].modal.addClass("caldera-animate")},10),t.fadeIn(a[e].config.speed)),a[e].resize=l,a}},s=function(o){var n=e(o).data("modal"),c=0,l={};if(o&&a[n].config.sticky)return a[n].config.minimized?(a[n].config.minimized=!1,c=0):(a[n].config.minimized=!0,c=a[n].title.outerHeight()-a[n].modal.outerHeight()),a[n].config.sticky.indexOf("bottom")>-1?l["margin-bottom"]=c:a[n].config.sticky.indexOf("top")>-1&&(l["margin-top"]=c),void a[n].modal.stop().animate(l,a[n].config.speed);var s;i.length&&(s=i.pop(),a[s].modal.hasClass("caldera-animate")&&!i.length?(a[s].modal.removeClass("caldera-animate"),setTimeout(function(){a[s].modal.remove(),delete a[s]},500)):t&&a[s].modal.hide(0,function(){e(this).remove(),delete a[s]})),i.length?a[i[i.length-1]].modal.show():(t&&t.fadeOut(250,function(){e(this).remove(),t=null}),d.removeClass("has-caldera-modal"))};e.calderaModal=function(d){var c=e.extend(!0,{element:"div",height:550,width:620,padding:12,speed:250},d);t||c.sticky||(t=e("<div>",{"class":"caldera-backdrop"}),c.focus||t.on("click",function(e){e.target==this&&s()}),n.append(t),t.hide());var r=c.element,g=c.modal;if(i.length&&i[i.length-1]!==g&&a[i[i.length-1]].modal.hide(),"undefined"==typeof a[g]?(c.sticky&&(c.sticky=c.sticky.split(" "),c.sticky.length<2&&(c.sticky=null),o.push(g)),a[g]={config:c,modal:e("<"+r+">",{id:g+"_calderaModal",tabIndex:-1,"ariaLabelled-by":g+"_calderaModalLable","class":"caldera-modal-wrap"+(c.sticky?" caldera-sticky-modal "+c.sticky[0]+"-"+c.sticky[1]:"")})},c.sticky||i.push(g)):(a[g].config=c,a[g].modal.empty()),c.animate&&t){var m=c.animate.split(" "),f=c.speed+"ms",h=c.animateEase?c.animateEase:"ease";1===m.length&&(m[1]=0),a[g].modal.css({transform:"translate("+m[0]+", "+m[1]+")","-web-kit-transition":"transform "+f+" "+h,"-moz-transition":"transform "+f+" "+h,transition:"transform "+f+" "+h})}if(a[g].body=e("<div>",{"class":"caldera-modal-body",id:g+"_calderaModalBody"}),a[g].content=e("<div>",{"class":"caldera-modal-content",id:g+"_calderaModalContent"}),a[g].content.css({margin:c.padding}),a[g].body.append(a[g].content).appendTo(a[g].modal),t?t.append(a[g].modal):a[g].modal.appendTo(e("body")),c.footer)if(a[g].footer=e("<div>",{"class":"caldera-modal-footer",id:g+"_calderaModalFooter"}),a[g].footer.css({padding:c.padding}),a[g].footer.appendTo(a[g].modal),"function"==typeof window[c.footer])a[g].footer.append(window[c.footer](d,this));else if("string"==typeof c.footer)try{var p=e(c.footer);a[g].footer.html(p.html())}catch(u){a[g].footer.html(c.footer)}if(c.title){var y="prependTo";a[g].header=e("<div>",{"class":"caldera-modal-title",id:g+"_calderaModalTitle"}),a[g].closer=e("<a>",{href:"#close","class":"caldera-modal-closer","data-dismiss":"modal","aria-hidden":"true",id:g+"_calderaModalCloser"}).html("&times;"),a[g].title=e("<h3>",{"class":"modal-label",id:g+"_calderaModalLable"}),a[g].title.html(c.title).appendTo(a[g].header),a[g].title.css({padding:c.padding}),a[g].title.append(a[g].closer),a[g].config.sticky?(a[g].config.minimized&&!0!==a[g].config.minimized&&(setTimeout(function(){a[g].title.trigger("click")},parseInt(a[g].config.minimized)),a[g].config.minimized=!1),a[g].closer.hide(),a[g].title.addClass("caldera-modal-closer").data("modal",g).appendTo(a[g].header),a[g].config.sticky.indexOf("top")>-1&&(y="appendTo")):a[g].closer.data("modal",g).appendTo(a[g].header),a[g].header[y](a[g].modal)}if(a[g].modal.outerHeight(c.height),a[g].modal.outerWidth(c.width),c.content)if("function"==typeof c.content)a[g].content.append(c.content(d,a[g],this));else if("function"==typeof window[c.content])a[g].content.append(window[c.content](d,a[g],this));else if("string"==typeof c.content)try{var w=e(c.content);w.length?(a[g].content.append(w.detach()),w.show()):a[g].content.html(c.content)}catch(u){a[g].content.html(c.content)}return l(),a[g]},e.fn.calderaModal=function(t){return t||(t={}),t=e.extend({},this.data(),t),e.calderaModal(t)},window.addEventListener?(window.addEventListener("resize",l,!1),window.addEventListener("keypress",function(e){27===e.keyCode&&null!==t&&t.trigger("click")},!1)):window.attachEvent?window.attachEvent("onresize",l):window.onresize=l,e(document).on("click","[data-modal]:not(.caldera-modal-closer)",function(t){t.preventDefault(),e(this).calderaModal()}),e(window).load(function(){e("[data-modal][data-autoload]").each(function(){e(this).calderaModal()})}),e(document).on("click",".caldera-modal-closer",function(e){e.preventDefault(),s(this)})}(jQuery);
 
assets/js/conditionals.min.js DELETED
@@ -1 +0,0 @@
1
- var calders_forms_check_conditions,calders_forms_init_conditions;!function(e){Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var r=this.length>>>0,a=Number(arguments[1])||0;for(a=0>a?Math.ceil(a):Math.floor(a),0>a&&(a+=r);r>a;a++)if(a in this&&this[a]===e)return a;return-1}),cf_debounce=function(e,r,a){var t;return function(){var i=this,o=arguments,n=function(){t=null,a||e.apply(i,o)},d=a&&!t;clearTimeout(t),t=setTimeout(n,r),d&&e.apply(i,o)}},calders_forms_check_conditions=function(r){if("undefined"!=typeof caldera_conditionals&&"undefined"!=typeof caldera_conditionals[r]){var a=e("#"+r);for(var t in caldera_conditionals[r]){var i=jQuery("#conditional_"+t);if(i.length){var o=caldera_conditionals[r][t].type,n=caldera_conditionals[r][t].group,d=[];for(var s in n){var l={},c=n[s];for(var f in c){var u=a.find('[data-field="'+c[f].field+'"]'),h=[],g="function"==typeof c[f].value?c[f].value():c[f].value;if("undefined"!=typeof c[f].selectors)for(var p in c[f].selectors){var m=new RegExp(p,"g");g=g.replace(m,e(c[f].selectors[p]).val())}if(l[f]=!1,u.is(":radio,:checkbox")?u=u.filter(":checked"):u.is("div")&&(u=jQuery("<input>").val(u.html())),u.length)for(var _=0;_<u.length;_++)h.push(u[_].value);else h.push(c[f].field);switch(c[f].compare){case"is":h.length&&h.indexOf(g.toString())>=0&&(l[f]=!0);break;case"isnot":h.length&&h.indexOf(g)<0&&(l[f]=!0);break;case">":case"greater":l[f]=parseFloat(h.reduce(function(e,r){return e+r}))>parseFloat(g);break;case"<":case"smaller":l[f]=parseFloat(h.reduce(function(e,r){return e+r}))<parseFloat(g);break;case"startswith":for(var _=0;_<h.length;_++)h[_].toLowerCase().substr(0,g.toLowerCase().length)===g.toLowerCase()&&(l[f]=!0);break;case"endswith":for(var _=0;_<h.length;_++)h[_].toLowerCase().substr(h[_].toLowerCase().length-g.toLowerCase().length)===g.toLowerCase()&&(l[f]=!0);break;case"contains":for(var _=0;_<h.length;_++)h[_].toLowerCase().indexOf(g)>=0&&(l[f]=!0)}}istrue=!0;for(var v in l)if(l[v]===!1){istrue=!1;break}d.push(istrue)}var y,b=jQuery("#conditional-"+t+"-tmpl").html(),w=jQuery("#conditional_"+t),j=jQuery('[data-field="'+t+'"]');d.length&&d.indexOf(!0)>=0?"show"===o?y="show":"hide"===o?y="hide":"disable"===o&&(y="disable"):y="show"===o?"hide":"disable"===o?"enable":"show","show"===y?w.html().length||(w.html(b).trigger("cf.add"),jQuery(document).trigger("cf.add")):"hide"===y?w.html().length&&(j.val("").empty().prop("checked",!1),w.empty().trigger("cf.remove"),jQuery(document).trigger("cf.remove")):"enable"===y?w.html().length?(j.prop("disabled",!1),jQuery("#"+t).prop("disabled",!1)):(w.html(b).trigger("cf.add"),jQuery(document).trigger("cf.add").trigger("cf.enable")):"disable"===y&&(w.html().length?(j.prop("disabled","disabled"),jQuery("#"+t).prop("disabled","disabled")):(w.html(b).trigger("cf.remove"),jQuery(document).trigger("cf.remove").trigger("cf.disable"),jQuery('[data-field="'+t+'"]').prop("disabled","disabled")))}}}},calders_forms_init_conditions=function(){jQuery(".caldera_forms_form").on("change keyup","[data-field]",cf_debounce(function(r){var a=e(this).closest(".caldera_forms_form").prop("id");calders_forms_check_conditions(a)},10))},"undefined"!=typeof caldera_conditionals&&(calders_forms_init_conditions(),jQuery(".caldera_forms_form").find("[data-field]").first().trigger("change"))}(jQuery);
 
assets/js/entry-viewer-2.js CHANGED
File without changes
assets/js/field-config.js CHANGED
File without changes
assets/js/fields.js CHANGED
File without changes
assets/js/fields.min.js DELETED
@@ -1,4 +0,0 @@
1
- function color_picker_init(){jQuery(".minicolor-picker").miniColors()}function toggle_button_init(a,b){var c=jQuery(b),d=c.find(".cf-toggle-group-radio:checked");d.length&&jQuery("#"+d.data("ref")).trigger("click")}jQuery&&function(a){a.extend(a.fn,{miniColors:function(b,c){var d=function(b,c,d){var e=s(b.val());e||(e="ffffff");var f=x(e),h=a('<span class="input-group-addon" style="background-color: #'+e+'" href="#"></span>');h.insertAfter(b),b.addClass("miniColors").data("original-maxlength",b.attr("maxlength")||null).data("original-autocomplete",b.attr("autocomplete")||null).data("letterCase",c.letterCase?c.letterCase:"uppercase").data("trigger",h).data("hsb",f).data("change",c.change?c.change:null).data("close",c.close?c.close:null).data("open",c.open?c.open:null).attr("maxlength",7).attr("autocomplete","off").val("#"+o(e,c.letterCase)).trigger("change"),c.readonly&&b.prop("readonly",!0),c.disabled&&g(b),h.on("click.miniColors",function(a){a.preventDefault(),""===b.val()&&b.val("#").trigger("change"),i(b)}),b.on("focus.miniColors",function(a){""===b.val()&&b.val("#").trigger("change"),i(b)}),b.on("blur.miniColors",function(a){var c=s(y(b.data("hsb")));b.val(c?"#"+o(c,b.data("letterCase")):"").trigger("change")}),b.on("keydown.miniColors",function(a){9===a.keyCode&&j(b)}),b.on("keyup.miniColors",function(a){n(b)}),b.on("paste.miniColors",function(a){setTimeout(function(){n(b)},5)})},e=function(b){j(),b=a(b),b.data("trigger").remove(),b.attr("autocomplete",b.data("original-autocomplete")).attr("maxlength",b.data("original-maxlength")).removeData().removeClass("miniColors").off(".miniColors"),a(document).off(".miniColors")},f=function(a){a.prop("disabled",!1).data("trigger").css("opacity",1)},g=function(a){j(a),a.prop("disabled",!0).data("trigger").css("opacity",.5)},i=function(b){if(b.prop("disabled"))return!1;j();var c=a('<div class="miniColors-selector"></div>');c.append('<div class="miniColors-colors" style="background-color: #FFF;"><div class="miniColors-colorPicker"><div class="miniColors-colorPicker-inner"></div></div>').append('<div class="miniColors-hues"><div class="miniColors-huePicker"></div></div>').css("display","none").addClass(b.attr("class")).removeClass("form-control");var d=b.data("hsb");c.find(".miniColors-colors").css("backgroundColor","#"+y({h:d.h,s:100,b:100}));var e=b.data("colorPosition");e||(e=p(d)),c.find(".miniColors-colorPicker").css("top",e.y+"px").css("left",e.x+"px");var f=b.data("huePosition");f||(f=q(d)),c.find(".miniColors-huePicker").css("top",f.y+"px"),b.data("selector",c).data("huePicker",c.find(".miniColors-huePicker")).data("colorPicker",c.find(".miniColors-colorPicker")).data("mousebutton",0),a("BODY").append(c);var g=b.data("trigger"),h=!b.is(":visible"),i=h?g.offset().top+g.outerHeight():b.offset().top+b.outerHeight(),m=h?g.offset().left:b.offset().left,n=c.outerWidth(),o=c.outerHeight(),r=g.outerWidth(),s=g.outerHeight(),u=a(window).height(),v=a(window).width(),w=a(window).scrollTop(),x=a(window).scrollLeft();i+o>u+w&&(i=i-o-s),m+n>v+x&&(m=m-n+r),c.css({top:i,left:m}).fadeIn(100),c.on("selectstart",function(){return!1}),(!a.browser.msie||a.browser.msie&&a.browser.version>=9)&&a(window).on("resize.miniColors",function(a){j(b)}),a(document).on("mousedown.miniColors touchstart.miniColors",function(c){b.data("mousebutton",1);var d=a(c.target).parents().andSelf();return d.hasClass("miniColors-colors")&&(c.preventDefault(),b.data("moving","colors"),k(b,c)),d.hasClass("miniColors-hues")&&(c.preventDefault(),b.data("moving","hues"),l(b,c)),d.hasClass("miniColors-selector")?void c.preventDefault():void(d.hasClass("miniColors")||j(b))}),a(document).on("mouseup.miniColors touchend.miniColors",function(a){a.preventDefault(),b.data("mousebutton",0).removeData("moving")}).on("mousemove.miniColors touchmove.miniColors",function(a){a.preventDefault(),1===b.data("mousebutton")&&("colors"===b.data("moving")&&k(b,a),"hues"===b.data("moving")&&l(b,a))}),b.data("open")&&b.data("open").call(b.get(0),"#"+y(d),t(d))},j=function(b){b||(b=a(".miniColors")),b.each(function(){var c=a(this).data("selector");a(this).removeData("selector"),a(c).fadeOut(100,function(){if(b.data("close")){var c=b.data("hsb"),d=y(c);b.data("close").call(b.get(0),"#"+d,t(c))}a(this).remove()})}),a(document).off(".miniColors")},k=function(a,b){var c=a.data("colorPicker");c.hide();var d={x:b.pageX,y:b.pageY};b.originalEvent.changedTouches&&(d.x=b.originalEvent.changedTouches[0].pageX,d.y=b.originalEvent.changedTouches[0].pageY),d.x=d.x-a.data("selector").find(".miniColors-colors").offset().left-5,d.y=d.y-a.data("selector").find(".miniColors-colors").offset().top-5,d.x<=-5&&(d.x=-5),d.x>=144&&(d.x=144),d.y<=-5&&(d.y=-5),d.y>=144&&(d.y=144),a.data("colorPosition",d),c.css("left",d.x).css("top",d.y).show();var e=Math.round(.67*(d.x+5));e<0&&(e=0),e>100&&(e=100);var f=100-Math.round(.67*(d.y+5));f<0&&(f=0),f>100&&(f=100);var g=a.data("hsb");g.s=e,g.b=f,m(a,g,!0)},l=function(a,b){var c=a.data("huePicker");c.hide();var d={y:b.pageY};b.originalEvent.changedTouches&&(d.y=b.originalEvent.changedTouches[0].pageY),d.y=d.y-a.data("selector").find(".miniColors-colors").offset().top-1,d.y<=-1&&(d.y=-1),d.y>=149&&(d.y=149),a.data("huePosition",d),c.css("top",d.y).show();var e=Math.round(2.4*(150-d.y-1));e<0&&(e=0),e>360&&(e=360);var f=a.data("hsb");f.h=e,m(a,f,!0)},m=function(a,b,c){a.data("hsb",b);var d=y(b);if(c&&a.val("#"+o(d,a.data("letterCase"))).trigger("change"),a.data("trigger").css("backgroundColor","#"+d),a.data("selector")&&a.data("selector").find(".miniColors-colors").css("backgroundColor","#"+y({h:b.h,s:100,b:100})),a.data("change")){if(d===a.data("lastChange"))return;a.data("change").call(a.get(0),"#"+d,t(b)),a.data("lastChange",d)}},n=function(b){b.val("#"+r(b.val())).trigger("change");var c=s(b.val());if(!c)return!1;var d=x(c),e=b.data("hsb");if(d.h===e.h&&d.s===e.s&&d.b===e.b)return!0;var f=p(d),g=a(b.data("colorPicker"));g.css("top",f.y+"px").css("left",f.x+"px"),b.data("colorPosition",f);var h=q(d),i=a(b.data("huePicker"));return i.css("top",h.y+"px"),b.data("huePosition",h),m(b,d),!0},o=function(a,b){return"lowercase"===b?a.toLowerCase():"uppercase"===b?a.toUpperCase():a},p=function(a){var b=Math.ceil(a.s/.67);b<0&&(b=0),b>150&&(b=150);var c=150-Math.ceil(a.b/.67);return c<0&&(c=0),c>150&&(c=150),{x:b-5,y:c-5}},q=function(a){var b=150-a.h/2.4;return b<0&&(h=0),b>150&&(h=150),{y:b-1}},r=function(a){return a.replace(/[^A-F0-9]/gi,"")},s=function(a){return(a=r(a))?(3===a.length&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),6===a.length?a:null):null},t=function(a){var b={},c=Math.round(a.h),d=Math.round(255*a.s/100),e=Math.round(255*a.b/100);if(0===d)b.r=b.g=b.b=e;else{var f=e,g=(255-d)*e/255,h=(f-g)*(c%60)/60;360===c&&(c=0),c<60?(b.r=f,b.b=g,b.g=g+h):c<120?(b.g=f,b.b=g,b.r=f-h):c<180?(b.g=f,b.r=g,b.b=g+h):c<240?(b.b=f,b.r=g,b.g=f-h):c<300?(b.b=f,b.g=g,b.r=g+h):c<360?(b.r=f,b.g=g,b.b=f-h):(b.r=0,b.g=0,b.b=0)}return{r:Math.round(b.r),g:Math.round(b.g),b:Math.round(b.b)}},u=function(b){var c=[b.r.toString(16),b.g.toString(16),b.b.toString(16)];return a.each(c,function(a,b){1===b.length&&(c[a]="0"+b)}),c.join("")},v=function(a){return a=parseInt(a.indexOf("#")>-1?a.substring(1):a,16),{r:a>>16,g:(65280&a)>>8,b:255&a}},w=function(a){var b={h:0,s:0,b:0},c=Math.min(a.r,a.g,a.b),d=Math.max(a.r,a.g,a.b),e=d-c;return b.b=d,b.s=0!==d?255*e/d:0,0!==b.s?a.r===d?b.h=(a.g-a.b)/e:a.g===d?b.h=2+(a.b-a.r)/e:b.h=4+(a.r-a.g)/e:b.h=-1,b.h*=60,b.h<0&&(b.h+=360),b.s*=100/255,b.b*=100/255,b},x=function(a){var b=w(v(a));return 0===b.s&&(b.h=360),b},y=function(a){return u(t(a))};switch(b){case"readonly":return a(this).each(function(){a(this).hasClass("miniColors")&&a(this).prop("readonly",c)}),a(this);case"disabled":return a(this).each(function(){a(this).hasClass("miniColors")&&(c?g(a(this)):f(a(this)))}),a(this);case"value":if(void 0===c){if(!a(this).hasClass("miniColors"))return;var z=a(this),A=s(z.val());return A?"#"+o(A,z.data("letterCase")):null}return a(this).each(function(){a(this).hasClass("miniColors")&&(a(this).val(c).trigger("change"),n(a(this)))}),a(this);case"destroy":return a(this).each(function(){a(this).hasClass("miniColors")&&e(a(this))}),a(this);default:return b||(b={}),a(this).each(function(){"input"===a(this)[0].tagName.toLowerCase()&&(a(this).data("trigger")||d(a(this),b,c))}),a(this)}}})}(jQuery),document.addEventListener("load",color_picker_init,!1),jQuery(document).ajaxComplete(function(){color_picker_init()}),function(a,b){function d(){return new Date(Date.UTC.apply(Date,arguments))}function e(){var a=new Date;return d(a.getFullYear(),a.getMonth(),a.getDate())}function f(a){return function(){return this[a].apply(this,arguments)}}function j(b,c){function h(a,b){return b.toLowerCase()}var f,d=a(b).data(),e={},g=new RegExp("^"+c.toLowerCase()+"([A-Z])");c=new RegExp("^"+c.toLowerCase());for(var i in d)c.test(i)&&(f=i.replace(g,h),e[f]=d[i]);return e}function k(b){var c={};if(o[b]||(b=b.split("-")[0],o[b])){var d=o[b];return a.each(n,function(a,b){b in d&&(c[b]=d[b])}),c}}var c=a(window),g=function(){var b={get:function(a){return this.slice(a)[0]},contains:function(a){for(var b=a&&a.valueOf(),c=0,d=this.length;c<d;c++)if(this[c].valueOf()===b)return c;return-1},remove:function(a){this.splice(a,1)},replace:function(b){b&&(a.isArray(b)||(b=[b]),this.clear(),this.push.apply(this,b))},clear:function(){this.splice(0)},copy:function(){var a=new g;return a.replace(this),a}};return function(){var c=[];return c.push.apply(c,arguments),a.extend(c,b),c}}(),h=function(b,c){this.dates=new g,this.viewDate=e(),this.focusDate=null,this._process_options(c),this.element=a(b),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.is(".date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=a(p.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("cfdatepicker-inline").appendTo(this.element):this.picker.addClass("cfdatepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("cfdatepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(a,b){return parseInt(b)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};h.prototype={constructor:h,_process_options:function(b){this._o=a.extend({},this._o,b);var c=this.o=a.extend({},this._o),d=c.language;switch(o[d]||(d=d.split("-")[0],o[d]||(d=m.language)),c.language=d,c.startView){case 2:case"decade":c.startView=2;break;case 1:case"year":c.startView=1;break;default:c.startView=0}switch(c.minViewMode){case 1:case"months":c.minViewMode=1;break;case 2:case"years":c.minViewMode=2;break;default:c.minViewMode=0}c.startView=Math.max(c.startView,c.minViewMode),c.multidate!==!0&&(c.multidate=Number(c.multidate)||!1,c.multidate!==!1?c.multidate=Math.max(0,c.multidate):c.multidate=1),c.multidateSeparator=String(c.multidateSeparator),c.weekStart%=7,c.weekEnd=(c.weekStart+6)%7;var e=p.parseFormat(c.format);c.startDate!==-(1/0)&&(c.startDate?c.startDate instanceof Date?c.startDate=this._local_to_utc(this._zero_time(c.startDate)):c.startDate=p.parseDate(c.startDate,e,c.language):c.startDate=-(1/0)),c.endDate!==1/0&&(c.endDate?c.endDate instanceof Date?c.endDate=this._local_to_utc(this._zero_time(c.endDate)):c.endDate=p.parseDate(c.endDate,e,c.language):c.endDate=1/0),c.daysOfWeekDisabled=c.daysOfWeekDisabled||[],a.isArray(c.daysOfWeekDisabled)||(c.daysOfWeekDisabled=c.daysOfWeekDisabled.split(/[,\s]*/)),c.daysOfWeekDisabled=a.map(c.daysOfWeekDisabled,function(a){return parseInt(a,10)});var f=String(c.orientation).toLowerCase().split(/\s+/g),g=c.orientation.toLowerCase();if(f=a.grep(f,function(a){return/^auto|left|right|top|bottom$/.test(a)}),c.orientation={x:"auto",y:"auto"},g&&"auto"!==g)if(1===f.length)switch(f[0]){case"top":case"bottom":c.orientation.y=f[0];break;case"left":case"right":c.orientation.x=f[0]}else g=a.grep(f,function(a){return/^left|right$/.test(a)}),c.orientation.x=g[0]||"auto",g=a.grep(f,function(a){return/^top|bottom$/.test(a)}),c.orientation.y=g[0]||"auto";else;},_events:[],_secondaryEvents:[],_applyEvents:function(a){for(var d,e,f,c=0;c<a.length;c++)d=a[c][0],2===a[c].length?(e=b,f=a[c][1]):3===a[c].length&&(e=a[c][1],f=a[c][2]),d.on(f,e)},_unapplyEvents:function(a){for(var d,e,f,c=0;c<a.length;c++)d=a[c][0],2===a[c].length?(f=b,e=a[c][1]):3===a[c].length&&(f=a[c][1],e=a[c][2]),d.off(e,f)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:a.proxy(this.show,this),keyup:a.proxy(function(b){a.inArray(b.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:a.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:a.proxy(this.show,this),keyup:a.proxy(function(b){a.inArray(b.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:a.proxy(this.keydown,this)}],[this.component,{click:a.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:a.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:a.proxy(function(a){this._focused_from=a.target},this)}],[this.element,{blur:a.proxy(function(a){this._focused_from=a.target},this)}]),this._secondaryEvents=[[this.picker,{click:a.proxy(this.click,this)}],[a(window),{resize:a.proxy(this.place,this)}],[a(document),{"mousedown touchstart":a.proxy(function(a){this.element.is(a.target)||this.element.find(a.target).length||this.picker.is(a.target)||this.picker.find(a.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(b,c){var d=c||this.dates.get(-1),e=this._utc_to_local(d);this.element.trigger({type:b,date:e,dates:a.map(this.dates,this._utc_to_local),format:a.proxy(function(a,b){0===arguments.length?(a=this.dates.length-1,b=this.o.format):"string"==typeof a&&(b=a,a=this.dates.length-1),b=b||this.o.format;var c=this.dates.get(a);return p.formatDate(c,b,this.o.language)},this)})},show:function(){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.place(),this._attachSecondaryEvents(),this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().cfdatepicker,this.isInput||delete this.element.data().date},_utc_to_local:function(a){return a&&new Date(a.getTime()+6e4*a.getTimezoneOffset())},_local_to_utc:function(a){return a&&new Date(a.getTime()-6e4*a.getTimezoneOffset())},_zero_time:function(a){return a&&new Date(a.getFullYear(),a.getMonth(),a.getDate())},_zero_utc_time:function(a){return a&&new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()))},getDates:function(){return a.map(this.dates,this._utc_to_local)},getUTCDates:function(){return a.map(this.dates,function(a){return new Date(a)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return new Date(this.dates.get(-1))},setDates:function(){var b=a.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,b),this._trigger("changeDate"),this.setValue()},setUTCDates:function(){var b=a.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,a.map(b,this._utc_to_local)),this._trigger("changeDate"),this.setValue()},setDate:f("setDates"),setUTCDate:f("setUTCDates"),setValue:function(){var a=this.getFormattedDate();this.isInput?this.element.val(a).change():this.component&&this.element.find("input").val(a).change()},getFormattedDate:function(c){c===b&&(c=this.o.format);var d=this.o.language;return a.map(this.dates,function(a){return p.formatDate(a,c,d)}).join(this.o.multidateSeparator)},setStartDate:function(a){this._process_options({startDate:a}),this.update(),this.updateNavArrows()},setEndDate:function(a){this._process_options({endDate:a}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(a){this._process_options({daysOfWeekDisabled:a}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var k,b=this.picker.outerWidth(),d=this.picker.outerHeight(),e=10,f=c.width(),g=c.height(),h=c.scrollTop(),i=jQuery(this.element).data("form-id"),j=document.getElementById("modal-"+i+"-content");k=null!==j?1e4:parseInt(this.element.parents().filter(function(){return"auto"!==a(this).css("z-index")}).first().css("z-index"))+10;var l=this.component?this.component.parent().offset():this.element.offset(),m=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),n=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),o=l.left,p=l.top;this.picker.removeClass("cfdatepicker-orient-top cfdatepicker-orient-bottom cfdatepicker-orient-right cfdatepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("cfdatepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(o-=b-n)):(this.picker.addClass("cfdatepicker-orient-left"),l.left<0?o-=l.left-e:l.left+b>f&&(o=f-b-e));var r,s,q=this.o.orientation.y;"auto"===q&&(r=-h+l.top-d,s=h+g-(l.top+m+d),q=Math.max(r,s)===s?"top":"bottom"),this.picker.addClass("cfdatepicker-orient-"+q),"top"===q?p+=m:p-=d+parseInt(this.picker.css("padding-top")),this.picker.css({top:p,left:o,zIndex:k})}},_allow_update:!0,update:function(){if(this._allow_update){var b=this.dates.copy(),c=[],d=!1;arguments.length?(a.each(arguments,a.proxy(function(a,b){b instanceof Date&&(b=this._local_to_utc(b)),c.push(b)},this)),d=!0):(c=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),c=c&&this.o.multidate?c.split(this.o.multidateSeparator):[c],delete this.element.data().date),c=a.map(c,a.proxy(function(a){return p.parseDate(a,this.o.format,this.o.language)},this)),c=a.grep(c,a.proxy(function(a){return a<this.o.startDate||a>this.o.endDate||!a},this),!0),this.dates.replace(c),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),d?this.setValue():c.length&&String(b)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&b.length&&this._trigger("clearDate"),this.fill()}},fillDow:function(){var a=this.o.weekStart,b="<tr>";if(this.o.calendarWeeks){var c='<th class="cw">&nbsp;</th>';b+=c,this.picker.find(".cfdatepicker-days thead tr:first-child").prepend(c)}for(;a<this.o.weekStart+7;)b+='<th class="dow">'+o[this.o.language].daysMin[a++%7]+"</th>";b+="</tr>",this.picker.find(".cfdatepicker-days thead").append(b)},fillMonths:function(){for(var a="",b=0;b<12;)a+='<span class="month">'+o[this.o.language].monthsShort[b++]+"</span>";this.picker.find(".cfdatepicker-months td").html(a)},setRange:function(b){b&&b.length?this.range=a.map(b,function(a){return a.valueOf()}):delete this.range,this.fill()},getClassNames:function(b){var c=[],d=this.viewDate.getUTCFullYear(),e=this.viewDate.getUTCMonth(),f=new Date;return b.getUTCFullYear()<d||b.getUTCFullYear()===d&&b.getUTCMonth()<e?c.push("old"):(b.getUTCFullYear()>d||b.getUTCFullYear()===d&&b.getUTCMonth()>e)&&c.push("new"),this.focusDate&&b.valueOf()===this.focusDate.valueOf()&&c.push("focused"),this.o.todayHighlight&&b.getUTCFullYear()===f.getFullYear()&&b.getUTCMonth()===f.getMonth()&&b.getUTCDate()===f.getDate()&&c.push("today"),this.dates.contains(b)!==-1&&c.push("active"),(b.valueOf()<this.o.startDate||b.valueOf()>this.o.endDate||a.inArray(b.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&c.push("disabled"),this.range&&(b>this.range[0]&&b<this.range[this.range.length-1]&&c.push("range"),a.inArray(b.valueOf(),this.range)!==-1&&c.push("selected")),c},fill:function(){var m,c=new Date(this.viewDate),e=c.getUTCFullYear(),f=c.getUTCMonth(),g=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),h=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),i=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,j=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,k=o[this.o.language].today||o.en.today||"",l=o[this.o.language].clear||o.en.clear||"";this.picker.find(".cfdatepicker-days thead th.cfdatepicker-switch").text(o[this.o.language].months[f]+" "+e),this.picker.find("tfoot th.today").text(k).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(l).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths();var n=d(e,f-1,28),q=p.getDaysInMonth(n.getUTCFullYear(),n.getUTCMonth());n.setUTCDate(q),n.setUTCDate(q-(n.getUTCDay()-this.o.weekStart+7)%7);var r=new Date(n);r.setUTCDate(r.getUTCDate()+42),r=r.valueOf();for(var t,s=[];n.valueOf()<r;){if(n.getUTCDay()===this.o.weekStart&&(s.push("<tr>"),this.o.calendarWeeks)){var u=new Date(+n+(this.o.weekStart-n.getUTCDay()-7)%7*864e5),v=new Date(Number(u)+(11-u.getUTCDay())%7*864e5),w=new Date(Number(w=d(v.getUTCFullYear(),0,1))+(11-w.getUTCDay())%7*864e5),x=(v-w)/864e5/7+1;s.push('<td class="cw">'+x+"</td>")}if(t=this.getClassNames(n),t.push("day"),this.o.beforeShowDay!==a.noop){var y=this.o.beforeShowDay(this._utc_to_local(n));y===b?y={}:"boolean"==typeof y?y={enabled:y}:"string"==typeof y&&(y={classes:y}),y.enabled===!1&&t.push("disabled"),y.classes&&(t=t.concat(y.classes.split(/\s+/))),y.tooltip&&(m=y.tooltip)}t=a.unique(t),s.push('<td class="'+t.join(" ")+'"'+(m?' title="'+m+'"':"")+">"+n.getUTCDate()+"</td>"),n.getUTCDay()===this.o.weekEnd&&s.push("</tr>"),n.setUTCDate(n.getUTCDate()+1)}this.picker.find(".cfdatepicker-days tbody").empty().append(s.join(""));var z=this.picker.find(".cfdatepicker-months").find("th:eq(1)").text(e).end().find("span").removeClass("active");a.each(this.dates,function(a,b){b.getUTCFullYear()===e&&z.eq(b.getUTCMonth()).addClass("active")}),(e<g||e>i)&&z.addClass("disabled"),e===g&&z.slice(0,h).addClass("disabled"),e===i&&z.slice(j+1).addClass("disabled"),s="",e=10*parseInt(e/10,10);var A=this.picker.find(".cfdatepicker-years").find("th:eq(1)").text(e+"-"+(e+9)).end().find("td");e-=1;for(var C,B=a.map(this.dates,function(a){return a.getUTCFullYear()}),D=-1;D<11;D++)C=["year"],D===-1?C.push("old"):10===D&&C.push("new"),a.inArray(e,B)!==-1&&C.push("active"),(e<g||e>i)&&C.push("disabled"),s+='<span class="'+C.join(" ")+'">'+e+"</span>",e+=1;A.html(s)},updateNavArrows:function(){if(this._allow_update){var a=new Date(this.viewDate),b=a.getUTCFullYear(),c=a.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&b<=this.o.startDate.getUTCFullYear()&&c<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&b>=this.o.endDate.getUTCFullYear()&&c>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-(1/0)&&b<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&b>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(b){b.preventDefault();var e,f,g,c=a(b.target).closest("span, td, th");if(1===c.length)switch(c[0].nodeName.toLowerCase()){case"th":switch(c[0].className){case"cfdatepicker-switch":this.showMode(1);break;case"prev":case"next":var h=p.modes[this.viewMode].navStep*("prev"===c[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var i=new Date;i=d(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0),this.showMode(-2);var j="linked"===this.o.todayBtn?null:"view";this._setDate(i,j);break;case"clear":var k;this.isInput?k=this.element:this.component&&(k=this.element.find("input")),k&&k.val("").change(),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()}break;case"span":c.is(".disabled")||(this.viewDate.setUTCDate(1),c.is(".month")?(g=1,f=c.parent().find("span").index(c),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(d(e,f,g))):(g=1,f=0,e=parseInt(c.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(d(e,f,g))),this.showMode(-1),this.fill());break;case"td":c.is(".day")&&!c.is(".disabled")&&(g=parseInt(c.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),c.is(".old")?0===f?(f=11,e-=1):f-=1:c.is(".new")&&(11===f?(f=0,e+=1):f+=1),this._setDate(d(e,f,g)))}this.picker.is(":visible")&&this._focused_from&&a(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(a){var b=this.dates.contains(a);if(a?b!==-1?this.dates.remove(b):this.dates.push(a):this.dates.clear(),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(a,b){b&&"date"!==b||this._toggle_multidate(a&&new Date(a)),b&&"view"!==b||(this.viewDate=a&&new Date(a)),this.fill(),this.setValue(),this._trigger("changeDate");var c;this.isInput?c=this.element:this.component&&(c=this.element.find("input")),c&&c.change(),!this.o.autoclose||b&&"date"!==b||this.hide()},moveMonth:function(a,c){if(!a)return b;if(!c)return a;var h,i,d=new Date(a.valueOf()),e=d.getUTCDate(),f=d.getUTCMonth(),g=Math.abs(c);if(c=c>0?1:-1,1===g)i=c===-1?function(){return d.getUTCMonth()===f}:function(){return d.getUTCMonth()!==h},h=f+c,d.setUTCMonth(h),(h<0||h>11)&&(h=(h+12)%12);else{for(var j=0;j<g;j++)d=this.moveMonth(d,c);h=d.getUTCMonth(),d.setUTCDate(e),i=function(){return h!==d.getUTCMonth()}}for(;i();)d.setUTCDate(--e),d.setUTCMonth(h);return d},moveYear:function(a,b){return this.moveMonth(a,12*b)},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(this.picker.is(":not(:visible)"))return void(27===a.keyCode&&this.show());var c,d,f,b=!1,g=this.focusDate||this.viewDate;switch(a.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),a.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;c=37===a.keyCode?-1:1,a.ctrlKey?(d=this.moveYear(this.dates.get(-1)||e(),c),f=this.moveYear(g,c),this._trigger("changeYear",this.viewDate)):a.shiftKey?(d=this.moveMonth(this.dates.get(-1)||e(),c),f=this.moveMonth(g,c),this._trigger("changeMonth",this.viewDate)):(d=new Date(this.dates.get(-1)||e()),d.setUTCDate(d.getUTCDate()+c),f=new Date(g),f.setUTCDate(g.getUTCDate()+c)),this.dateWithinRange(d)&&(this.focusDate=this.viewDate=f,this.setValue(),this.fill(),a.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;c=38===a.keyCode?-1:1,a.ctrlKey?(d=this.moveYear(this.dates.get(-1)||e(),c),f=this.moveYear(g,c),this._trigger("changeYear",this.viewDate)):a.shiftKey?(d=this.moveMonth(this.dates.get(-1)||e(),c),f=this.moveMonth(g,c),this._trigger("changeMonth",this.viewDate)):(d=new Date(this.dates.get(-1)||e()),d.setUTCDate(d.getUTCDate()+7*c),f=new Date(g),f.setUTCDate(g.getUTCDate()+7*c)),this.dateWithinRange(d)&&(this.focusDate=this.viewDate=f,this.setValue(),this.fill(),a.preventDefault());break;case 32:break;case 13:g=this.focusDate||this.dates.get(-1)||this.viewDate,this._toggle_multidate(g),b=!0,this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(a.preventDefault(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(b){this.dates.length?this._trigger("changeDate"):this._trigger("clearDate");var h;this.isInput?h=this.element:this.component&&(h=this.element.find("input")),h&&h.change()}},showMode:function(a){a&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+a))),this.picker.find(">div").hide().filter(".cfdatepicker-"+p.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var i=function(b,c){this.element=a(b),this.inputs=a.map(c.inputs,function(a){return a.jquery?a[0]:a}),delete c.inputs,a(this.inputs).cfdatepicker(c).bind("changeDate",a.proxy(this.dateUpdated,this)),this.pickers=a.map(this.inputs,function(b){return a(b).data("cfdatepicker")}),this.updateDates()};i.prototype={updateDates:function(){this.dates=a.map(this.pickers,function(a){return a.getUTCDate()}),this.updateRanges()},updateRanges:function(){var b=a.map(this.dates,function(a){return a.valueOf()});a.each(this.pickers,function(a,c){c.setRange(b)})},dateUpdated:function(b){if(!this.updating){this.updating=!0;var c=a(b.target).data("cfdatepicker"),d=c.getUTCDate(),e=a.inArray(b.target,this.inputs),f=this.inputs.length;if(e!==-1){if(a.each(this.pickers,function(a,b){b.getUTCDate()||b.setUTCDate(d)}),d<this.dates[e])for(;e>=0&&d<this.dates[e];)this.pickers[e--].setUTCDate(d);else if(d>this.dates[e])for(;e<f&&d>this.dates[e];)this.pickers[e++].setUTCDate(d);this.updateDates(),delete this.updating}}},remove:function(){a.map(this.pickers,function(a){a.remove()}),delete this.element.data().cfdatepicker}};var l=a.fn.cfdatepicker;a.fn.cfdatepicker=function(c){var d=Array.apply(null,arguments);d.shift();var e;return this.each(function(){var f=a(this),g=f.data("cfdatepicker"),l="object"==typeof c&&c;if(!g){var n=j(this,"date"),o=a.extend({},m,n,l),p=k(o.language),q=a.extend({},m,p,n,l);if(f.is(".input-daterange")||q.inputs){var r={inputs:q.inputs||f.find("input").toArray()};f.data("cfdatepicker",g=new i(this,a.extend(q,r)))}else f.data("cfdatepicker",g=new h(this,q))}if("string"==typeof c&&"function"==typeof g[c]&&(e=g[c].apply(g,d),e!==b))return!1}),e!==b?e:this};var m=a.fn.cfdatepicker.defaults={autoclose:!1,beforeShowDay:a.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},n=a.fn.cfdatepicker.locale_opts=["format","rtl","weekStart"];a.fn.cfdatepicker.Constructor=h;var o=a.fn.cfdatepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},p={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(a){return a%4===0&&a%100!==0||a%400===0},getDaysInMonth:function(a,b){return[31,p.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,
2
- parseFormat:function(a){var b=a.replace(this.validParts,"\0").split("\0"),c=a.match(this.validParts);if(!b||!b.length||!c||0===c.length)throw new Error("Invalid date format.");return{separators:b,parts:c}},parseDate:function(c,e,f){function u(){var a=this.slice(0,i[l].length),b=i[l].slice(0,a.length);return a===b}if(!c)return b;if(c instanceof Date)return c;"string"==typeof e&&(e=p.parseFormat(e));var j,k,l,g=/([\-+]\d+)([dmwy])/,i=c.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(c)){for(c=new Date,l=0;l<i.length;l++)switch(j=g.exec(i[l]),k=parseInt(j[1]),j[2]){case"d":c.setUTCDate(c.getUTCDate()+k);break;case"m":c=h.prototype.moveMonth.call(h.prototype,c,k);break;case"w":c.setUTCDate(c.getUTCDate()+7*k);break;case"y":c=h.prototype.moveYear.call(h.prototype,c,k)}return d(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),0,0,0)}i=c&&c.match(this.nonpunctuation)||[],c=new Date;var r,s,m={},n=["yyyy","yy","M","MM","m","mm","d","dd"],q={yyyy:function(a,b){return a.setUTCFullYear(b)},yy:function(a,b){return a.setUTCFullYear(2e3+b)},m:function(a,b){if(isNaN(a))return a;for(b-=1;b<0;)b+=12;for(b%=12,a.setUTCMonth(b);a.getUTCMonth()!==b;)a.setUTCDate(a.getUTCDate()-1);return a},d:function(a,b){return a.setUTCDate(b)}};q.M=q.MM=q.mm=q.m,q.dd=q.d,c=d(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0);var t=e.parts.slice();if(i.length!==t.length&&(t=a(t).filter(function(b,c){return a.inArray(c,n)!==-1}).toArray()),i.length===t.length){var v;for(l=0,v=t.length;l<v;l++){if(r=parseInt(i[l],10),j=t[l],isNaN(r))switch(j){case"MM":s=a(o[f].months).filter(u),r=a.inArray(s[0],o[f].months)+1;break;case"M":s=a(o[f].monthsShort).filter(u),r=a.inArray(s[0],o[f].monthsShort)+1}m[j]=r}var w,x;for(l=0;l<n.length;l++)x=n[l],x in m&&!isNaN(m[x])&&(w=new Date(c),q[x](w,m[x]),isNaN(w)||(c=w))}return c},formatDate:function(b,c,d){if(!b)return"";"string"==typeof c&&(c=p.parseFormat(c));var e={d:b.getUTCDate(),D:o[d].daysShort[b.getUTCDay()],DD:o[d].days[b.getUTCDay()],m:b.getUTCMonth()+1,M:o[d].monthsShort[b.getUTCMonth()],MM:o[d].months[b.getUTCMonth()],yy:b.getUTCFullYear().toString().substring(2),yyyy:b.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m,b=[];for(var f=a.extend([],c.separators),g=0,h=c.parts.length;g<=h;g++)f.length&&b.push(f.shift()),b.push(e[c.parts[g]]);return b.join("")},headTemplate:'<thead><tr><th class="prev">&laquo;</th><th colspan="5" class="cfdatepicker-switch"></th><th class="next">&raquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};p.template='<div class="cfdatepicker"><div class="cfdatepicker-days"><table class=" table-condensed">'+p.headTemplate+"<tbody></tbody>"+p.footTemplate+'</table></div><div class="cfdatepicker-months"><table class="table-condensed">'+p.headTemplate+p.contTemplate+p.footTemplate+'</table></div><div class="cfdatepicker-years"><table class="table-condensed">'+p.headTemplate+p.contTemplate+p.footTemplate+"</table></div></div>",a.fn.cfdatepicker.DPGlobal=p,a.fn.cfdatepicker.noConflict=function(){return a.fn.cfdatepicker=l,this},a(document).on("focus.cfdatepicker.data-api click.cfdatepicker.data-api",'[data-provide="cfdatepicker"]',function(b){var c=a(this);c.data("cfdatepicker")||(b.preventDefault(),c.cfdatepicker("show").on("show",function(){a(this).trigger("blur")}).on("hide",function(){a(this).attr("disabled",!1)}))})}(window.jQuery),!function(a){function b(a){var b=document.createElement("input"),c="on"+a,d=c in b;return d||(b.setAttribute(c,"return;"),d="function"==typeof b[c]),b=null,d}function c(a){var b="text"==a||"tel"==a;if(!b){var c=document.createElement("input");c.setAttribute("type",a),b="text"===c.type,c=null}return b}function d(b,c,e){var f=e.aliases[b];return!!f&&(f.alias&&d(f.alias,void 0,e),a.extend(!0,e,f),a.extend(!0,e,c),!0)}function e(b,c){function d(a){function c(a,b,c,d){this.matches=[],this.isGroup=a||!1,this.isOptional=b||!1,this.isQuantifier=c||!1,this.isAlternator=d||!1,this.quantifier={min:1,max:1}}function d(a,c,d){var e=b.definitions[c],f=0==a.matches.length;if(d=void 0!=d?d:a.matches.length,e&&!l){for(var g=e.prevalidator,h=g?g.length:0,i=1;i<e.cardinality;i++){var j=h>=i?g[i-1]:[],k=j.validator,m=j.cardinality;a.matches.splice(d++,0,{fn:k?"string"==typeof k?new RegExp(k):new function(){this.test=k}:new RegExp("."),cardinality:m?m:1,optionality:a.isOptional,newBlockMarker:f,casing:e.casing,def:e.definitionSymbol||c,placeholder:e.placeholder,mask:c})}a.matches.splice(d++,0,{fn:e.validator?"string"==typeof e.validator?new RegExp(e.validator):new function(){this.test=e.validator}:new RegExp("."),cardinality:e.cardinality,optionality:a.isOptional,newBlockMarker:f,casing:e.casing,def:e.definitionSymbol||c,placeholder:e.placeholder,mask:c})}else a.matches.splice(d++,0,{fn:null,cardinality:0,optionality:a.isOptional,newBlockMarker:f,casing:null,def:c,placeholder:void 0,mask:c}),l=!1}for(var e,f,g,h,i,j,k=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})\??|[^.?*+^${[]()|\\]+|./g,l=!1,m=new c,n=[],o=[];e=k.exec(a);)switch(f=e[0],f.charAt(0)){case b.optionalmarker.end:case b.groupmarker.end:if(g=n.pop(),n.length>0){if(h=n[n.length-1],h.matches.push(g),h.isAlternator){i=n.pop();for(var p=0;p<i.matches.length;p++)i.matches[p].isGroup=!1;n.length>0?(h=n[n.length-1],h.matches.push(i)):m.matches.push(i)}}else m.matches.push(g);break;case b.optionalmarker.start:n.push(new c(!1,!0));break;case b.groupmarker.start:n.push(new c(!0));break;case b.quantifiermarker.start:var q=new c(!1,!1,!0);f=f.replace(/[{}]/g,"");var r=f.split(","),s=isNaN(r[0])?r[0]:parseInt(r[0]),t=1==r.length?s:isNaN(r[1])?r[1]:parseInt(r[1]);if(("*"==t||"+"==t)&&(s="*"==t?0:1),q.quantifier={min:s,max:t},n.length>0){var u=n[n.length-1].matches;if(e=u.pop(),!e.isGroup){var v=new c(!0);v.matches.push(e),e=v}u.push(e),u.push(q)}else{if(e=m.matches.pop(),!e.isGroup){var v=new c(!0);v.matches.push(e),e=v}m.matches.push(e),m.matches.push(q)}break;case b.escapeChar:l=!0;break;case b.alternatormarker:n.length>0?(h=n[n.length-1],j=h.matches.pop()):j=m.matches.pop(),j.isAlternator?n.push(j):(i=new c(!1,!1,!1,!0),i.matches.push(j),n.push(i));break;default:if(n.length>0){if(h=n[n.length-1],h.matches.length>0&&(j=h.matches[h.matches.length-1],j.isGroup&&(j.isGroup=!1,d(j,b.groupmarker.start,0),d(j,b.groupmarker.end))),d(h,f),h.isAlternator){i=n.pop();for(var p=0;p<i.matches.length;p++)i.matches[p].isGroup=!1;n.length>0?(h=n[n.length-1],h.matches.push(i)):m.matches.push(i)}}else m.matches.length>0&&(j=m.matches[m.matches.length-1],j.isGroup&&(j.isGroup=!1,d(j,b.groupmarker.start,0),d(j,b.groupmarker.end))),d(m,f)}return m.matches.length>0&&(j=m.matches[m.matches.length-1],j.isGroup&&(j.isGroup=!1,d(j,b.groupmarker.start,0),d(j,b.groupmarker.end)),o.push(m)),o}function e(c,e){if(b.numericInput&&b.multi!==!0){c=c.split("").reverse();for(var f=0;f<c.length;f++)c[f]==b.optionalmarker.start?c[f]=b.optionalmarker.end:c[f]==b.optionalmarker.end?c[f]=b.optionalmarker.start:c[f]==b.groupmarker.start?c[f]=b.groupmarker.end:c[f]==b.groupmarker.end&&(c[f]=b.groupmarker.start);c=c.join("")}if(void 0!=c&&""!=c){if(1==c.length&&0==b.greedy&&0!=b.repeat&&(b.placeholder=""),b.repeat>0||"*"==b.repeat||"+"==b.repeat){var g="*"==b.repeat?0:"+"==b.repeat?1:b.repeat;c=b.groupmarker.start+c+b.groupmarker.end+b.quantifiermarker.start+g+","+b.repeat+b.quantifiermarker.end}return void 0==a.inputmask.masksCache[c]&&(a.inputmask.masksCache[c]={mask:c,maskToken:d(c),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},metadata:e}),a.extend(!0,{},a.inputmask.masksCache[c])}}var f=void 0;if(a.isFunction(b.mask)&&(b.mask=b.mask.call(this,b)),a.isArray(b.mask))if(c)f=[],a.each(b.mask,function(b,c){f.push(void 0==c.mask||a.isFunction(c.mask)?e(c.toString(),c):e(c.mask.toString(),c))});else{b.keepStatic=void 0==b.keepStatic||b.keepStatic;var g="(";a.each(b.mask,function(b,c){g.length>1&&(g+=")|("),g+=void 0==c.mask||a.isFunction(c.mask)?c.toString():c.mask.toString()}),g+=")",f=e(g,b.mask)}else b.mask&&(f=void 0==b.mask.mask||a.isFunction(b.mask.mask)?e(b.mask.toString(),b.mask):e(b.mask.mask.toString(),b.mask));return f}function f(d,e,f){function h(a,b,c){b=b||0;var d,e,f,g=[],h=0;do{if(a===!0&&o().validPositions[h]){var i=o().validPositions[h];e=i.match,d=i.locator.slice(),g.push(c===!0?i.input:I(h,e))}else{if(b>h){var j=w(h,d,h-1);f=j[0]}else f=t(h,d,h-1);e=f.match,d=f.locator.slice(),g.push(I(h,e))}h++}while((void 0==fa||fa>h-1)&&null!=e.fn||null==e.fn&&""!=e.def||b>=h);return g.pop(),g}function o(){return e}function p(a){var b=o();b.buffer=void 0,b.tests={},a!==!0&&(b._buffer=void 0,b.validPositions={},b.p=0)}function q(a){var b=o(),c=-1,d=b.validPositions;void 0==a&&(a=-1);var e=c,f=c;for(var g in d){var h=parseInt(g);(-1==a||null!=d[h].match.fn)&&(a>h&&(e=h),h>=a&&(f=h))}return c=a-e>1||a>f?e:f}function r(b,c,d){if(f.insertMode&&void 0!=o().validPositions[b]&&void 0==d){var e,g=a.extend(!0,{},o().validPositions),h=q();for(e=b;h>=e;e++)delete o().validPositions[e];o().validPositions[b]=c;var i,j=!0;for(e=b;h>=e;e++){var k=g[e];if(void 0!=k){var l=o().validPositions;i=!f.keepStatic&&(void 0!=l[e+1]&&w(e+1,l[e].locator.slice(),e).length>1||l[e]&&void 0!=l[e].alternation)?e+1:E(e),j=v(i,k.match.def)?j&&B(i,k.input,!0,!0)!==!1:null==k.match.fn}if(!j)break}if(!j)return o().validPositions=a.extend(!0,{},g),!1}else o().validPositions[b]=c;return!0}function s(a,b){var c,d=a;for(void 0!=o().validPositions[a]&&o().validPositions[a].input==f.radixPoint&&(b++,d++),c=d;b>c;c++)void 0==o().validPositions[c]||o().validPositions[c].input==f.radixPoint&&c!=q()||delete o().validPositions[c];for(c=b;c<=q();){var e=o().validPositions[c],g=o().validPositions[d];void 0!=e&&void 0==g?(v(d,e.match.def)&&B(d,e.input,!0)!==!1&&(delete o().validPositions[c],c++),d++):c++}var h=q();h>=a&&void 0!=o().validPositions[h]&&o().validPositions[h].input==f.radixPoint&&delete o().validPositions[h],p(!0)}function t(b,c,d){function e(b,c,d){for(var e=!1,f=b.locator[c].toString().split(","),g=0;g<f.length;g++)if(-1!=a.inArray(f[g],d)){e=!0;break}return e}for(var g,h=w(b,c,d),i=q(),j=o().validPositions[i]||w(0)[0],k=void 0!=j.alternation?j.locator[j.alternation].split(","):[],l=0;l<h.length&&(g=h[l],!(f.greedy||g.match&&(g.match.optionality===!1||g.match.newBlockMarker===!1)&&g.match.optionalQuantifier!==!0&&(void 0==j.alternation||void 0!=g.locator[j.alternation]&&e(g,j.alternation,k))));l++);return g}function u(a){return o().validPositions[a]?o().validPositions[a].match:w(a)[0].match}function v(a,b){for(var c=!1,d=w(a),e=0;e<d.length;e++)if(d[e].match&&d[e].match.def==b){c=!0;break}return c}function w(b,c,d){function e(c,d,g,i){function l(g,i,n){if(h>1e4)return alert("jquery.inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+o().mask),!0;if(h==b&&void 0==g.matches)return j.push({match:g,locator:i.reverse()}),!0;if(void 0!=g.matches){if(g.isGroup&&n!==!0){if(g=l(c.matches[m+1],i))return!0}else if(g.isOptional){var p=g;if(g=e(g,d,i,n)){var q=j[j.length-1].match,r=0==a.inArray(q,p.matches);r&&(k=!0),h=b}}else if(g.isAlternator){var s,t=g,u=[],v=j.slice(),w=i.length,x=d.length>0?d.shift():-1;if(-1==x||"string"==typeof x){var y,z=h,A=d.slice();"string"==typeof x&&(y=x.split(","));for(var B=0;B<t.matches.length;B++){j=[],g=l(t.matches[B],[B].concat(i),n)||g,s=j.slice(),h=z,j=[];for(var C=0;C<A.length;C++)d[C]=A[C];for(var D=0;D<s.length;D++)for(var E=s[D],F=0;F<u.length;F++){var G=u[F];if(E.match.mask==G.match.mask&&("string"!=typeof x||-1!=a.inArray(E.locator[w].toString(),y))){s.splice(D,1),G.locator[w]=G.locator[w]+","+E.locator[w],G.alternation=w;break}}u=u.concat(s)}"string"==typeof x&&(u=a.map(u,function(b,c){if(isFinite(c)){var d,e=b.locator[w].toString().split(",");b.locator[w]=void 0,b.alternation=void 0;for(var f=0;f<e.length;f++)d=-1!=a.inArray(e[f],y),d&&(void 0!=b.locator[w]?(b.locator[w]+=",",b.alternation=w,b.locator[w]+=e[f]):b.locator[w]=parseInt(e[f]));if(void 0!=b.locator[w])return b}})),j=v.concat(u),k=!0}else g=l(t.matches[x],[x].concat(i),n);if(g)return!0}else if(g.isQuantifier&&n!==!0){var H=g;f.greedy=f.greedy&&isFinite(H.quantifier.max);for(var I=d.length>0&&n!==!0?d.shift():0;I<(isNaN(H.quantifier.max)?I+1:H.quantifier.max)&&b>=h;I++){var J=c.matches[a.inArray(H,c.matches)-1];if(g=l(J,[I].concat(i),!0)){var q=j[j.length-1].match;q.optionalQuantifier=I>H.quantifier.min-1;var r=0==a.inArray(q,J.matches);if(r){if(I>H.quantifier.min-1){k=!0,h=b;break}return!0}return!0}}}else if(g=e(g,d,i,n))return!0}else h++}for(var m=d.length>0?d.shift():0;m<c.matches.length;m++)if(c.matches[m].isQuantifier!==!0){var n=l(c.matches[m],[m].concat(g),i);if(n&&h==b)return n;if(h>b)break}}var g=o().maskToken,h=c?d:0,i=c||[0],j=[],k=!1;if(void 0==c){for(var l,m=b-1;void 0==(l=o().validPositions[m])&&m>-1;)m--;if(void 0!=l&&m>-1)h=m,i=l.locator.slice();else{for(m=b-1;void 0==(l=o().tests[m])&&m>-1;)m--;void 0!=l&&m>-1&&(h=m,i=l[0].locator.slice())}}for(var n=i.shift();n<g.length;n++){var p=e(g[n],i,[n]);if(p&&h==b||h>b)break}return(0==j.length||k)&&j.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:""},locator:[]}),o().tests[b]=a.extend(!0,[],j),o().tests[b]}function x(){return void 0==o()._buffer&&(o()._buffer=h(!1,1)),o()._buffer}function y(){return void 0==o().buffer&&(o().buffer=h(!0,q(),!0)),o().buffer}function z(a,b){var c=y().slice();if(a===!0)p(),a=0,b=c.length;else for(var d=a;b>d;d++)delete o().validPositions[d],delete o().tests[d];for(var d=a;b>d;d++)c[d]!=f.skipOptionalPartCharacter&&B(d,c[d],!0,!0)}function A(a,b){switch(b.casing){case"upper":a=a.toUpperCase();break;case"lower":a=a.toLowerCase()}return a}function B(b,c,d,e){function g(b,c,d,e){var g=!1;return a.each(w(b),function(h,i){for(var j=i.match,k=c?1:0,l="",m=(y(),j.cardinality);m>k;m--)l+=G(b-(m-1));if(c&&(l+=c),g=null!=j.fn?j.fn.test(l,o(),b,d,f):(c==j.def||c==f.skipOptionalPartCharacter)&&""!=j.def&&{c:j.def,pos:b},g!==!1){var n=void 0!=g.c?g.c:c;n=n==f.skipOptionalPartCharacter&&null===j.fn?j.def:n;var t=b;if(void 0!=g.remove&&s(g.remove,g.remove+1),g.refreshFromBuffer){var u=g.refreshFromBuffer;if(d=!0,z(u===!0?u:u.start,u.end),void 0==g.pos&&void 0==g.c)return g.pos=q(),!1;if(t=void 0!=g.pos?g.pos:b,t!=b)return g=a.extend(g,B(t,n,!0)),!1}else if(g!==!0&&void 0!=g.pos&&g.pos!=b&&(t=g.pos,z(b,t),t!=b))return g=a.extend(g,B(t,n,!0)),!1;return(1==g||void 0!=g.pos||void 0!=g.c)&&(h>0&&p(!0),r(t,a.extend({},i,{input:A(n,j)}),e)||(g=!1),!1)}}),g}function h(b,c,d,e){var g,h,i=a.extend(!0,{},o().validPositions);for(g=q();g>=0;g--)if(o().validPositions[g]&&void 0!=o().validPositions[g].alternation){h=o().validPositions[g].alternation;break}if(void 0!=h)for(var j in o().validPositions)if(parseInt(j)>parseInt(g)&&void 0===o().validPositions[j].alternation){for(var k=o().validPositions[j],l=k.locator[h],m=o().validPositions[g].locator[h].split(","),n=0;n<m.length;n++)if(l<m[n]){for(var r,s,t=j-1;t>=0;t--)if(r=o().validPositions[t],void 0!=r){s=r.locator[h],r.locator[h]=m[n];break}if(l!=r.locator[h]){for(var u=y().slice(),v=j;v<q()+1;v++)delete o().validPositions[v],delete o().tests[v];p(!0),f.keepStatic=!f.keepStatic;for(var v=j;v<u.length;v++)u[v]!=f.skipOptionalPartCharacter&&B(q()+1,u[v],!1,!0);r.locator[h]=s;var w=B(b,c,d,e);if(f.keepStatic=!f.keepStatic,w)return w;p(),o().validPositions=a.extend(!0,{},i)}}break}return!1}d=d===!0;for(var i=y(),j=b-1;j>-1&&(!o().validPositions[j]||null!=o().validPositions[j].match.fn);j--)void 0==o().validPositions[j]&&(!C(j)||i[j]!=I(j))&&w(j).length>1&&g(j,i[j],!0);var k=b,l=!1;if(e&&k>=D()&&p(!0),k<D()&&(l=g(k,c,d,e),!d&&l===!1)){var m=o().validPositions[k];if(!m||null!=m.match.fn||m.match.def!=c&&c!=f.skipOptionalPartCharacter){if((f.insertMode||void 0==o().validPositions[E(k)])&&!C(k))for(var n=k+1,t=E(k);t>=n;n++)if(l=g(n,c,d,e),l!==!1){k=n;break}}else l={caret:E(k)}}return l===!1&&f.keepStatic&&R(i)&&(l=h(b,c,d,e)),l===!0&&(l={pos:k}),l}function C(a){var b=u(a);return null!=b.fn&&b.fn}function D(){var a;if(fa=ea.prop("maxLength"),-1==fa&&(fa=void 0),0==f.greedy){var b,c=q(),d=o().validPositions[c],e=void 0!=d?d.locator.slice():void 0;for(b=c+1;void 0==d||null!=d.match.fn||null==d.match.fn&&""!=d.match.def;b++)d=t(b,e,b-1),e=d.locator.slice();a=b}else a=y().length;return void 0==fa||fa>a?a:fa}function E(a){var b=D();if(a>=b)return b;for(var c=a;++c<b&&!C(c)&&(f.nojumps!==!0||f.nojumpsThreshold>c););return c}function F(a){var b=a;if(0>=b)return 0;for(;--b>0&&!C(b););return b}function G(a){return void 0==o().validPositions[a]?I(a):o().validPositions[a].input}function H(a,b,c){a._valueSet(b.join("")),void 0!=c&&O(a,c)}function I(b,c){c=c||u(b);var d=a.isFunction(c.placeholder)?c.placeholder.call(this,f):c.placeholder;return void 0!=d?d:null==c.fn?c.def:f.placeholder.charAt(b%f.placeholder.length)}function J(b,c,d,e,g){var h=void 0!=e?e.slice():L(b._valueGet()).split("");if(p(),c&&b._valueSet(""),a.each(h,function(c,e){if(g===!0){var f=q(),h=-1==f?c:E(f);-1==a.inArray(e,x().slice(f+1,h))&&Y.call(b,void 0,!0,e.charCodeAt(0),!1,d,d?c:o().p)}else Y.call(b,void 0,!0,e.charCodeAt(0),!1,d,d?c:o().p),d=d||c>0&&c>o().p}),c){var i=f.onKeyPress.call(this,void 0,y(),0,f);W(b,i),H(b,y(),a(b).is(":focus")?E(q(0)):void 0)}}function K(b){return a.inputmask.escapeRegex.call(this,b)}function L(a){return a.replace(new RegExp("("+K(x().join(""))+")*$"),"")}function M(b){if(b.data("_inputmask")&&!b.hasClass("hasDatepicker")){var c=[],d=o().validPositions;for(var e in d)d[e].match&&null!=d[e].match.fn&&c.push(d[e].input);var g=(ga?c.reverse():c).join(""),h=(ga?y().slice().reverse():y()).join("");return a.isFunction(f.onUnMask)&&(g=f.onUnMask.call(b,h,g,f)||g),g}return b[0]._valueGet()}function N(a){if(ga&&"number"==typeof a&&(!f.greedy||""!=f.placeholder)){var b=y().length;a=b-a}return a}function O(b,c,d){var e,g=b.jquery&&b.length>0?b[0]:b;if("number"!=typeof c){var h=a(g).data("_inputmask");return!a(g).is(":visible")&&h&&void 0!=h.caret?(c=h.caret.begin,d=h.caret.end):g.setSelectionRange?(c=g.selectionStart,d=g.selectionEnd):document.selection&&document.selection.createRange&&(e=document.selection.createRange(),c=0-e.duplicate().moveStart("character",-1e5),d=c+e.text.length),c=N(c),d=N(d),{begin:c,end:d}}c=N(c),d=N(d),d="number"==typeof d?d:c;var h=a(g).data("_inputmask")||{};h.caret={begin:c,end:d},a(g).data("_inputmask",h),a(g).is(":visible")&&(g.scrollLeft=g.scrollWidth,0==f.insertMode&&c==d&&d++,g.setSelectionRange?(g.selectionStart=c,g.selectionEnd=d):g.createTextRange&&(e=g.createTextRange(),e.collapse(!0),e.moveEnd("character",d),e.moveStart("character",c),e.select()))}function P(b){var c,d,e=y(),f=e.length,g=q(),h={},i=o().validPositions[g],j=void 0!=i?i.locator.slice():void 0;for(c=g+1;c<e.length;c++)d=t(c,j,c-1),j=d.locator.slice(),h[c]=a.extend(!0,{},d);var k=i&&void 0!=i.alternation?i.locator[i.alternation].split(","):[];for(c=f-1;c>g&&(d=h[c].match,(d.optionality||d.optionalQuantifier||i&&void 0!=i.alternation&&void 0!=h[c].locator[i.alternation]&&-1!=a.inArray(h[c].locator[i.alternation].toString(),k))&&e[c]==I(c,d));c--)f--;return b?{l:f,def:h[f]?h[f].match:void 0}:f}function Q(a){for(var b=y(),c=b.slice(),d=P(),e=c.length-1;e>d&&!C(e);e--);c.splice(d,e+1-d),H(a,c)}function R(b){if(a.isFunction(f.isComplete))return f.isComplete.call(ea,b,f);if("*"!=f.repeat){var c=!1,d=P(!0),e=F(d.l),g=q();if(g==e&&(void 0==d.def||d.def.newBlockMarker||d.def.optionalQuantifier)){c=!0;for(var h=0;e>=h;h++){var i=C(h);if(i&&(void 0==b[h]||b[h]==I(h))||!i&&b[h]!=I(h)){c=!1;break}}}return c}}function S(a,b){return ga?a-b>1||a-b==1&&f.insertMode:b-a>1||b-a==1&&f.insertMode}function T(b){var c=a._data(b).events;a.each(c,function(b,c){a.each(c,function(a,b){if("inputmask"==b.namespace&&"setvalue"!=b.type){var c=b.handler;b.handler=function(a){return this.readOnly||this.disabled?void a.preventDefault:c.apply(this,arguments)}}})})}function U(b){function c(b){if(void 0==a.valHooks[b]||1!=a.valHooks[b].inputmaskpatch){var c=a.valHooks[b]&&a.valHooks[b].get?a.valHooks[b].get:function(a){return a.value},d=a.valHooks[b]&&a.valHooks[b].set?a.valHooks[b].set:function(a,b){return a.value=b,a};a.valHooks[b]={get:function(b){var d=a(b);if(d.data("_inputmask")){if(d.data("_inputmask").opts.autoUnmask)return d.inputmask("unmaskedvalue");var e=c(b),f=d.data("_inputmask"),g=f.maskset,h=g._buffer;return h=h?h.join(""):"",e!=h?e:""}return c(b)},set:function(b,c){var e,f=a(b),g=f.data("_inputmask");return g?(e=d(b,a.isFunction(g.opts.onBeforeMask)?g.opts.onBeforeMask.call(oa,c,g.opts)||c:c),f.triggerHandler("setvalue.inputmask")):e=d(b,c),e},inputmaskpatch:!0}}}function d(){var b=a(this),c=a(this).data("_inputmask");return c?c.opts.autoUnmask?b.inputmask("unmaskedvalue"):g.call(this)!=x().join("")?g.call(this):"":g.call(this)}function e(b){var c=a(this).data("_inputmask");c?(h.call(this,a.isFunction(c.opts.onBeforeMask)?c.opts.onBeforeMask.call(oa,b,c.opts)||b:b),a(this).triggerHandler("setvalue.inputmask")):h.call(this,b)}function f(b){a(b).bind("mouseenter.inputmask",function(){var b=a(this),c=this,d=c._valueGet();""!=d&&d!=y().join("")&&b.trigger("setvalue")});var c=a._data(b).events,d=c.mouseover;if(d){for(var e=d[d.length-1],f=d.length-1;f>0;f--)d[f]=d[f-1];d[0]=e}}var g,h;b._valueGet||(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(b,"value"),document.__lookupGetter__&&b.__lookupGetter__("value")?(g=b.__lookupGetter__("value"),h=b.__lookupSetter__("value"),b.__defineGetter__("value",d),b.__defineSetter__("value",e)):(g=function(){return b.value},h=function(a){b.value=a},c(b.type),f(b)),b._valueGet=function(){return ga?g.call(this).split("").reverse().join(""):g.call(this)},b._valueSet=function(a){h.call(this,ga?a.split("").reverse().join(""):a)})}function V(b,c,d){function e(){if(f.keepStatic){p(!0);var a,c=[];for(a=q();a>=0;a--)if(o().validPositions[a]){if(void 0!=o().validPositions[a].alternation)break;c.push(o().validPositions[a].input),delete o().validPositions[a]}if(a>0)for(;c.length>0;)o().p=E(q()),Y.call(b,void 0,!0,c.pop().charCodeAt(0),!1,!1,o().p)}}if((f.numericInput||ga)&&(c==a.inputmask.keyCode.BACKSPACE?c=a.inputmask.keyCode.DELETE:c==a.inputmask.keyCode.DELETE&&(c=a.inputmask.keyCode.BACKSPACE),ga)){var g=d.end;d.end=d.begin,d.begin=g}c==a.inputmask.keyCode.BACKSPACE&&d.end-d.begin<=1?d.begin=F(d.begin):c==a.inputmask.keyCode.DELETE&&d.begin==d.end&&d.end++,s(d.begin,d.end),e();var h=q(d.begin);h<d.begin?(-1==h&&p(),o().p=E(h)):o().p=d.begin}function W(a,b,c){if(b&&b.refreshFromBuffer){var d=b.refreshFromBuffer;z(d===!0?d:d.start,d.end),p(!0),void 0!=c&&(H(a,y()),O(a,b.caret||c.begin,b.caret||c.end))}}function X(c){ha=!1;var d=this,e=a(d),g=c.keyCode,h=O(d);g==a.inputmask.keyCode.BACKSPACE||g==a.inputmask.keyCode.DELETE||i&&127==g||c.ctrlKey&&88==g&&!b("cut")?(c.preventDefault(),88==g&&(da=y().join("")),V(d,g,h),H(d,y(),o().p),d._valueGet()==x().join("")&&e.trigger("cleared"),f.showTooltip&&e.prop("title",o().mask)):g==a.inputmask.keyCode.END||g==a.inputmask.keyCode.PAGE_DOWN?setTimeout(function(){var a=E(q());f.insertMode||a!=D()||c.shiftKey||a--,O(d,c.shiftKey?h.begin:a,a)},0):g==a.inputmask.keyCode.HOME&&!c.shiftKey||g==a.inputmask.keyCode.PAGE_UP?O(d,0,c.shiftKey?h.begin:0):g==a.inputmask.keyCode.ESCAPE||90==g&&c.ctrlKey?(J(d,!0,!1,da.split("")),e.click()):g!=a.inputmask.keyCode.INSERT||c.shiftKey||c.ctrlKey?0!=f.insertMode||c.shiftKey||(g==a.inputmask.keyCode.RIGHT?setTimeout(function(){var a=O(d);O(d,a.begin)},0):g==a.inputmask.keyCode.LEFT&&setTimeout(function(){var a=O(d);O(d,ga?a.begin+1:a.begin-1)},0)):(f.insertMode=!f.insertMode,O(d,f.insertMode||h.begin!=D()?h.begin:h.begin-1));var j=O(d),k=f.onKeyDown.call(this,c,y(),j.begin,f);W(d,k,j),ja=-1!=a.inArray(g,f.ignorables)}function Y(b,c,d,e,g,h){if(void 0==d&&ha)return!1;ha=!0;var i=this,j=a(i);b=b||window.event;var d=c?d:b.which||b.charCode||b.keyCode;if(!(c===!0||b.ctrlKey&&b.altKey)&&(b.ctrlKey||b.metaKey||ja))return!0;if(d){c!==!0&&46==d&&0==b.shiftKey&&","==f.radixPoint&&(d=44);var k,l=c?{begin:h,end:h}:O(i),m=String.fromCharCode(d),n=S(l.begin,l.end);n&&(o().undoPositions=a.extend(!0,{},o().validPositions),V(i,a.inputmask.keyCode.DELETE,l),f.insertMode||(f.insertMode=!f.insertMode,r(l.begin,g),f.insertMode=!f.insertMode),n=!f.multi),o().writeOutBuffer=!0;var q=ga&&!n?l.end:l.begin,s=B(q,m,g);if(s!==!1){if(s!==!0&&(q=void 0!=s.pos?s.pos:q,m=void 0!=s.c?s.c:m),p(!0),void 0!=s.caret)k=s.caret;else{var t=o().validPositions;k=!f.keepStatic&&(void 0!=t[q+1]&&w(q+1,t[q].locator.slice(),q).length>1||void 0!=t[q].alternation)?q+1:E(q)}o().p=k}if(e!==!1){var u=this;if(setTimeout(function(){f.onKeyValidation.call(u,s,f)},0),o().writeOutBuffer&&s!==!1){var v=y();H(i,v,c?void 0:f.numericInput?F(k):k),c!==!0&&setTimeout(function(){R(v)===!0&&j.trigger("complete"),ia=!0,j.trigger("input")},0)}else n&&(o().buffer=void 0,o().validPositions=o().undoPositions)}else n&&(o().buffer=void 0,o().validPositions=o().undoPositions);if(f.showTooltip&&j.prop("title",o().mask),b&&1!=c){b.preventDefault();var x=O(i),z=f.onKeyPress.call(this,b,y(),x.begin,f);W(i,z,x)}}}function Z(b){var c=a(this),d=this,e=b.keyCode,g=y(),h=O(d),i=f.onKeyUp.call(this,b,g,h.begin,f);W(d,i,h),e==a.inputmask.keyCode.TAB&&f.showMaskOnFocus&&(c.hasClass("focus-inputmask")&&0==d._valueGet().length?(p(),g=y(),H(d,g),O(d,0),da=y().join("")):(H(d,g),O(d,N(0),N(D()))))}function $(b){if(ia===!0&&"input"==b.type)return ia=!1,!0;var c=this,d=a(c),e=c._valueGet(),g=O(c);if("propertychange"==b.type&&c._valueGet().length<=D())return!0;"paste"==b.type&&(window.clipboardData&&window.clipboardData.getData?e=e.substr(0,g.begin)+window.clipboardData.getData("Text")+e.substr(g.end,e.length):b.originalEvent&&b.originalEvent.clipboardData&&b.originalEvent.clipboardData.getData&&(e=e.substr(0,g.begin)+b.originalEvent.clipboardData.getData("text/plain")+e.substr(g.end,e.length)));var h=a.isFunction(f.onBeforePaste)?f.onBeforePaste.call(c,e,f)||e:e;return J(c,!0,!1,ga?h.split("").reverse():h.split(""),!0),d.click(),R(y())===!0&&d.trigger("complete"),!1}function _(b){if(ia===!0&&"input"==b.type)return ia=!1,!0;var c=this,d=O(c),e=c._valueGet();e=e.replace(new RegExp("("+K(x().join(""))+")*"),""),d.begin>e.length&&(O(c,e.length),d=O(c)),y().length-e.length!=1||e.charAt(d.begin)==y()[d.begin]||e.charAt(d.begin+1)==y()[d.begin]||C(d.begin)||(b.keyCode=a.inputmask.keyCode.BACKSPACE,X.call(c,b)),b.preventDefault()}function aa(b){if(ia===!0&&"input"==b.type)return ia=!1,!0;var c=this,d=O(c),e=c._valueGet();O(c,d.begin-1);var g=a.Event("keypress");g.which=e.charCodeAt(d.begin-1),ha=!1,ja=!1,Y.call(c,g,void 0,void 0,!1);var h=o().p;H(c,y(),f.numericInput?F(h):h),b.preventDefault()}function ba(b){ia=!0;var c=this;return setTimeout(function(){O(c,O(c).begin-1);var d=a.Event("keypress");d.which=b.originalEvent.data.charCodeAt(0),ha=!1,ja=!1,Y.call(c,d,void 0,void 0,!1);var e=o().p;H(c,y(),f.numericInput?F(e):e)},0),!1}function ca(b){if(ea=a(b),ea.is(":input")&&c(ea.attr("type"))){if(ea.data("_inputmask",{maskset:e,opts:f,isRTL:!1}),f.showTooltip&&ea.prop("title",o().mask),("rtl"==b.dir||f.rightAlign)&&ea.css("text-align","right"),"rtl"==b.dir||f.numericInput){b.dir="ltr",ea.removeAttr("dir");var d=ea.data("_inputmask");d.isRTL=!0,ea.data("_inputmask",d),ga=!0}ea.unbind(".inputmask"),ea.removeClass("focus-inputmask"),ea.closest("form").bind("submit",function(){da!=y().join("")&&ea.change(),ea[0]._valueGet&&ea[0]._valueGet()==x().join("")&&ea[0]._valueSet(""),f.autoUnmask&&f.removeMaskOnSubmit&&ea.inputmask("remove")}).bind("reset",function(){setTimeout(function(){ea.trigger("setvalue")},0)}),ea.bind("mouseenter.inputmask",function(){var b=a(this),c=this;!b.hasClass("focus-inputmask")&&f.showMaskOnHover&&c._valueGet()!=y().join("")&&H(c,y())}).bind("blur.inputmask",function(){var b=a(this),c=this;if(b.data("_inputmask")){var d=c._valueGet(),e=y();b.removeClass("focus-inputmask"),da!=y().join("")&&b.change(),f.clearMaskOnLostFocus&&""!=d&&(d==x().join("")?c._valueSet(""):Q(c)),R(e)===!1&&(b.trigger("incomplete"),f.clearIncomplete&&(p(),f.clearMaskOnLostFocus?c._valueSet(""):(e=x().slice(),H(c,e))))}}).bind("focus.inputmask",function(){var b=a(this),c=this,d=c._valueGet();f.showMaskOnFocus&&!b.hasClass("focus-inputmask")&&(!f.showMaskOnHover||f.showMaskOnHover&&""==d)&&c._valueGet()!=y().join("")&&H(c,y(),E(q())),b.addClass("focus-inputmask"),da=y().join("")}).bind("mouseleave.inputmask",function(){var b=a(this),c=this;f.clearMaskOnLostFocus&&(b.hasClass("focus-inputmask")||c._valueGet()==b.attr("placeholder")||(c._valueGet()==x().join("")||""==c._valueGet()?c._valueSet(""):Q(c)))}).bind("click.inputmask",function(){var b=this;a(b).is(":focus")&&setTimeout(function(){var c=O(b);if(c.begin==c.end)if(f.radixFocus&&""!=f.radixPoint&&-1!=a.inArray(f.radixPoint,y())&&y().join("")==x().join(""))O(b,a.inArray(f.radixPoint,y()));else{var d=ga?N(c.begin):c.begin,e=E(q(d));e>d?O(b,C(d)?d:E(d)):O(b,e)}},0)}).bind("dblclick.inputmask",function(){var a=this;setTimeout(function(){O(a,0,E(q()))},0)}).bind(n+".inputmask dragdrop.inputmask drop.inputmask",$).bind("setvalue.inputmask",function(){var a=this;J(a,!0,!1,void 0,!0),da=y().join(""),(f.clearMaskOnLostFocus||f.clearIncomplete)&&a._valueGet()==x().join("")&&a._valueSet("")}).bind("cut.inputmask",function(b){ia=!0;var c=this,d=a(c),e=O(c);V(c,a.inputmask.keyCode.DELETE,e);var g=f.onKeyPress.call(this,b,y(),o().p,f);W(c,g,{begin:o().p,end:o().p}),c._valueGet()==x().join("")&&d.trigger("cleared"),f.showTooltip&&d.prop("title",o().mask)}).bind("complete.inputmask",f.oncomplete).bind("incomplete.inputmask",f.onincomplete).bind("cleared.inputmask",f.oncleared),ea.bind("keydown.inputmask",X).bind("keypress.inputmask",Y).bind("keyup.inputmask",Z).bind("compositionupdate.inputmask",ba),"paste"!==n||g||ea.bind("input.inputmask",aa),g&&ea.bind("input.inputmask",$),(j||l||k||m)&&("input"==n&&ea.unbind(n+".inputmask"),ea.bind("input.inputmask",_)),U(b);var h=a.isFunction(f.onBeforeMask)?f.onBeforeMask.call(b,b._valueGet(),f)||b._valueGet():b._valueGet();J(b,!0,!1,h.split(""),!0),da=y().join("");var i;try{i=document.activeElement}catch(a){}R(y())===!1&&f.clearIncomplete&&p(),f.clearMaskOnLostFocus?y().join("")==x().join("")?b._valueSet(""):Q(b):H(b,y()),i===b&&(ea.addClass("focus-inputmask"),O(b,E(q()))),T(b)}}var da,ea,fa,ga=!1,ha=!1,ia=!1,ja=!1;if(void 0!=d)switch(d.action){case"isComplete":return ea=a(d.el),e=ea.data("_inputmask").maskset,f=ea.data("_inputmask").opts,R(d.buffer);case"unmaskedvalue":return ea=d.$input,e=ea.data("_inputmask").maskset,f=ea.data("_inputmask").opts,ga=d.$input.data("_inputmask").isRTL,M(d.$input);case"mask":da=y().join(""),ca(d.el);break;case"format":ea=a({}),ea.data("_inputmask",{maskset:e,opts:f,isRTL:f.numericInput}),f.numericInput&&(ga=!0);var ka=(a.isFunction(f.onBeforeMask)?f.onBeforeMask.call(ea,d.value,f)||d.value:d.value).split("");return J(ea,!1,!1,ga?ka.reverse():ka,!0),f.onKeyPress.call(this,void 0,y(),0,f),d.metadata?{value:ga?y().slice().reverse().join(""):y().join(""),metadata:ea.inputmask("getmetadata")}:ga?y().slice().reverse().join(""):y().join("");case"isValid":ea=a({}),ea.data("_inputmask",{maskset:e,opts:f,isRTL:f.numericInput}),f.numericInput&&(ga=!0);var ka=d.value.split("");J(ea,!1,!0,ga?ka.reverse():ka);for(var la=y(),ma=P(),na=la.length-1;na>ma&&!C(na);na--);return la.splice(ma,na+1-ma),R(la)&&d.value==la.join("");case"getemptymask":return ea=a(d.el),e=ea.data("_inputmask").maskset,f=ea.data("_inputmask").opts,x();case"remove":var oa=d.el;ea=a(oa),e=ea.data("_inputmask").maskset,f=ea.data("_inputmask").opts,oa._valueSet(M(ea)),ea.unbind(".inputmask"),ea.removeClass("focus-inputmask"),ea.removeData("_inputmask");var pa;Object.getOwnPropertyDescriptor&&(pa=Object.getOwnPropertyDescriptor(oa,"value")),pa&&pa.get?oa._valueGet&&Object.defineProperty(oa,"value",{get:oa._valueGet,set:oa._valueSet}):document.__lookupGetter__&&oa.__lookupGetter__("value")&&oa._valueGet&&(oa.__defineGetter__("value",oa._valueGet),
3
- oa.__defineSetter__("value",oa._valueSet));try{delete oa._valueGet,delete oa._valueSet}catch(a){oa._valueGet=void 0,oa._valueSet=void 0}break;case"getmetadata":if(ea=a(d.el),e=ea.data("_inputmask").maskset,f=ea.data("_inputmask").opts,a.isArray(e.metadata)){for(var qa,ra=q(),sa=ra;sa>=0;sa--)if(o().validPositions[sa]&&void 0!=o().validPositions[sa].alternation){qa=o().validPositions[sa].alternation;break}return void 0!=qa?e.metadata[o().validPositions[ra].locator[qa]]:e.metadata[0]}return e.metadata}}if(void 0===a.fn.inputmask){var g="function"==typeof ScriptEngineMajorVersion?ScriptEngineMajorVersion():new Function("/*@cc_on return @_jscript_version; @*/")()>=10,h=navigator.userAgent,i=null!==h.match(new RegExp("iphone","i")),j=null!==h.match(new RegExp("android.*safari.*","i")),k=null!==h.match(new RegExp("android.*chrome.*","i")),l=null!==h.match(new RegExp("android.*firefox.*","i")),m=/Kindle/i.test(h)||/Silk/i.test(h)||/KFTT/i.test(h)||/KFOT/i.test(h)||/KFJWA/i.test(h)||/KFJWI/i.test(h)||/KFSOWI/i.test(h)||/KFTHWA/i.test(h)||/KFTHWI/i.test(h)||/KFAPWA/i.test(h)||/KFAPWI/i.test(h),n=b("paste")?"paste":b("input")?"input":"propertychange";a.inputmask={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,oncomplete:a.noop,onincomplete:a.noop,oncleared:a.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!0,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},alias:null,onKeyUp:a.noop,onKeyPress:a.noop,onKeyDown:a.noop,onBeforeMask:void 0,onBeforePaste:void 0,onUnMask:void 0,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:a.noop,skipOptionalPartCharacter:" ",showTooltip:!1,numericInput:!1,rightAlign:!1,radixPoint:"",radixFocus:!1,nojumps:!1,nojumpsThreshold:0,keepStatic:void 0,definitions:{9:{validator:"[0-9]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1}},ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],isComplete:void 0},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},masksCache:{},escapeRegex:function(a){var b=["/",".","*","+","?","|","(",")","[","]","{","}","\\"];return a.replace(new RegExp("(\\"+b.join("|\\")+")","gim"),"\\$1")},format:function(b,c,g){var h=a.extend(!0,{},a.inputmask.defaults,c);return d(h.alias,c,h),f({action:"format",value:b,metadata:g},e(h),h)},isValid:function(b,c){var g=a.extend(!0,{},a.inputmask.defaults,c);return d(g.alias,c,g),f({action:"isValid",value:b},e(g),g)}},a.fn.inputmask=function(b,c,g,h,i){function j(b,c,e){var f=a(b);f.data("inputmask-alias")&&d(f.data("inputmask-alias"),{},c);for(var g in c){var h=f.data("inputmask-"+g.toLowerCase());void 0!=h&&("mask"==g&&0==h.indexOf("[")?(c[g]=h.replace(/[\s[\]]/g,"").split("','"),c[g][0]=c[g][0].replace("'",""),c[g][c[g].length-1]=c[g][c[g].length-1].replace("'","")):c[g]="boolean"==typeof h?h:h.toString(),e&&(e[g]=c[g]))}return c}g=g||f,h=h||"_inputmask";var k,l=a.extend(!0,{},a.inputmask.defaults,c);if("string"==typeof b)switch(b){case"mask":return d(l.alias,c,l),k=e(l,g!==f),void 0==k?this:this.each(function(){g({action:"mask",el:this},a.extend(!0,{},k),j(this,l))});case"unmaskedvalue":var m=a(this);return m.data(h)?g({action:"unmaskedvalue",$input:m}):m.val();case"remove":return this.each(function(){var b=a(this);b.data(h)&&g({action:"remove",el:this})});case"getemptymask":return this.data(h)?g({action:"getemptymask",el:this}):"";case"hasMaskedValue":return!!this.data(h)&&!this.data(h).opts.autoUnmask;case"isComplete":return!this.data(h)||g({action:"isComplete",buffer:this[0]._valueGet().split(""),el:this});case"getmetadata":return this.data(h)?g({action:"getmetadata",el:this}):void 0;case"_detectScope":return d(l.alias,c,l),void 0==i||d(i,c,l)||-1!=a.inArray(i,["mask","unmaskedvalue","remove","getemptymask","hasMaskedValue","isComplete","getmetadata","_detectScope"])||(l.mask=i),a.isFunction(l.mask)&&(l.mask=l.mask.call(this,l)),a.isArray(l.mask);default:return d(l.alias,c,l),d(b,c,l)||(l.mask=b),k=e(l,g!==f),void 0==k?this:this.each(function(){g({action:"mask",el:this},a.extend(!0,{},k),j(this,l))})}else{if("object"==typeof b)return l=a.extend(!0,{},a.inputmask.defaults,b),d(l.alias,b,l),k=e(l,g!==f),void 0==k?this:this.each(function(){g({action:"mask",el:this},a.extend(!0,{},k),j(this,l))});if(void 0==b)return this.each(function(){var b=a(this).attr("data-inputmask");if(b&&""!=b)try{b=b.replace(new RegExp("'","g"),'"');var e=a.parseJSON("{"+b+"}");a.extend(!0,e,c),l=a.extend(!0,{},a.inputmask.defaults,e),l=j(this,l),d(l.alias,e,l),l.alias=void 0,a(this).inputmask("mask",l,g)}catch(a){}if(a(this).attr("data-inputmask-mask")||a(this).attr("data-inputmask-alias")){l=a.extend(!0,{},a.inputmask.defaults,{});var f={};l=j(this,l,f),d(l.alias,f,l),l.alias=void 0,a(this).inputmask("mask",l,g)}})}}}return a.fn.inputmask}(jQuery),function(a){return a.extend(a.inputmask.defaults.definitions,{h:{validator:"[01][0-9]|2[0-3]",cardinality:2,prevalidator:[{validator:"[0-2]",cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:"[0-5]",cardinality:1}]},d:{validator:"0[1-9]|[12][0-9]|3[01]",cardinality:2,prevalidator:[{validator:"[0-3]",cardinality:1}]},m:{validator:"0[1-9]|1[012]",cardinality:2,prevalidator:[{validator:"[01]",cardinality:1}]},y:{validator:"(19|20)\\d{2}",cardinality:4,prevalidator:[{validator:"[12]",cardinality:1},{validator:"(19|20)",cardinality:2},{validator:"(19|20)\\d",cardinality:3}]}}),a.extend(a.inputmask.defaults.aliases,{"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:new RegExp("[0-3]"),val1:new RegExp("0[1-9]|[12][0-9]|3[01]"),val2pre:function(b){var c=a.inputmask.escapeRegex.call(this,b);return new RegExp("((0[1-9]|[12][0-9]|3[01])"+c+"[01])")},val2:function(b){var c=a.inputmask.escapeRegex.call(this,b);return new RegExp("((0[1-9]|[12][0-9])"+c+"(0[1-9]|1[012]))|(30"+c+"(0[13-9]|1[012]))|(31"+c+"(0[13578]|1[02]))")}},leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(a,b,c){if(isNaN(a))return!1;var d=parseInt(a.concat(b.toString().slice(a.length))),e=parseInt(a.concat(c.toString().slice(a.length)));return!isNaN(d)&&(d>=b&&c>=d)||!isNaN(e)&&(e>=b&&c>=e)},determinebaseyear:function(a,b,c){var d=(new Date).getFullYear();if(a>d)return a;if(d>b){for(var e=b.toString().slice(0,2),f=b.toString().slice(2,4);e+c>b;)e--;var g=e+f;return a>g?a:g}return d},onKeyUp:function(b){var c=a(this);if(b.ctrlKey&&b.keyCode==a.inputmask.keyCode.RIGHT){var d=new Date;c.val(d.getDate().toString()+(d.getMonth()+1).toString()+d.getFullYear().toString())}},definitions:{1:{validator:function(a,b,c,d,e){var f=e.regex.val1.test(a);return d||f||a.charAt(1)!=e.separator&&-1=="-./".indexOf(a.charAt(1))||!(f=e.regex.val1.test("0"+a.charAt(0)))?f:(b.buffer[c-1]="0",{refreshFromBuffer:{start:c-1,end:c},pos:c,c:a.charAt(0)})},cardinality:2,prevalidator:[{validator:function(a,b,c,d,e){isNaN(b.buffer[c+1])||(a+=b.buffer[c+1]);var f=1==a.length?e.regex.val1pre.test(a):e.regex.val1.test(a);return d||f||!(f=e.regex.val1.test("0"+a))?f:(b.buffer[c]="0",c++,{pos:c})},cardinality:1}]},2:{validator:function(a,b,c,d,e){var f=e.mask.indexOf("2")==e.mask.length-1?b.buffer.join("").substr(5,3):b.buffer.join("").substr(0,3);-1!=f.indexOf(e.placeholder[0])&&(f="01"+e.separator);var g=e.regex.val2(e.separator).test(f+a);if(!d&&!g&&(a.charAt(1)==e.separator||-1!="-./".indexOf(a.charAt(1)))&&(g=e.regex.val2(e.separator).test(f+"0"+a.charAt(0))))return b.buffer[c-1]="0",{refreshFromBuffer:{start:c-1,end:c},pos:c,c:a.charAt(0)};if(e.mask.indexOf("2")==e.mask.length-1&&g){var h=b.buffer.join("").substr(4,4)+a;if(h!=e.leapday)return!0;var i=parseInt(b.buffer.join("").substr(0,4),10);return i%4===0&&(i%100!==0||i%400===0)}return g},cardinality:2,prevalidator:[{validator:function(a,b,c,d,e){isNaN(b.buffer[c+1])||(a+=b.buffer[c+1]);var f=e.mask.indexOf("2")==e.mask.length-1?b.buffer.join("").substr(5,3):b.buffer.join("").substr(0,3);-1!=f.indexOf(e.placeholder[0])&&(f="01"+e.separator);var g=1==a.length?e.regex.val2pre(e.separator).test(f+a):e.regex.val2(e.separator).test(f+a);return d||g||!(g=e.regex.val2(e.separator).test(f+"0"+a))?g:(b.buffer[c]="0",c++,{pos:c})},cardinality:1}]},y:{validator:function(a,b,c,d,e){if(e.isInYearRange(a,e.yearrange.minyear,e.yearrange.maxyear)){var f=b.buffer.join("").substr(0,6);if(f!=e.leapday)return!0;var g=parseInt(a,10);return g%4===0&&(g%100!==0||g%400===0)}return!1},cardinality:4,prevalidator:[{validator:function(a,b,c,d,e){var f=e.isInYearRange(a,e.yearrange.minyear,e.yearrange.maxyear);if(!d&&!f){var g=e.determinebaseyear(e.yearrange.minyear,e.yearrange.maxyear,a+"0").toString().slice(0,1);if(f=e.isInYearRange(g+a,e.yearrange.minyear,e.yearrange.maxyear))return b.buffer[c++]=g.charAt(0),{pos:c};if(g=e.determinebaseyear(e.yearrange.minyear,e.yearrange.maxyear,a+"0").toString().slice(0,2),f=e.isInYearRange(g+a,e.yearrange.minyear,e.yearrange.maxyear))return b.buffer[c++]=g.charAt(0),b.buffer[c++]=g.charAt(1),{pos:c}}return f},cardinality:1},{validator:function(a,b,c,d,e){var f=e.isInYearRange(a,e.yearrange.minyear,e.yearrange.maxyear);if(!d&&!f){var g=e.determinebaseyear(e.yearrange.minyear,e.yearrange.maxyear,a).toString().slice(0,2);if(f=e.isInYearRange(a[0]+g[1]+a[1],e.yearrange.minyear,e.yearrange.maxyear))return b.buffer[c++]=g.charAt(1),{pos:c};if(g=e.determinebaseyear(e.yearrange.minyear,e.yearrange.maxyear,a).toString().slice(0,2),e.isInYearRange(g+a,e.yearrange.minyear,e.yearrange.maxyear)){var h=b.buffer.join("").substr(0,6);if(h!=e.leapday)f=!0;else{var i=parseInt(a,10);f=i%4===0&&(i%100!==0||i%400===0)}}else f=!1;if(f)return b.buffer[c-1]=g.charAt(0),b.buffer[c++]=g.charAt(1),b.buffer[c++]=a.charAt(0),{refreshFromBuffer:{start:c-3,end:c},pos:c}}return f},cardinality:2},{validator:function(a,b,c,d,e){return e.isInYearRange(a,e.yearrange.minyear,e.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(b){var c=a.inputmask.escapeRegex.call(this,b);return new RegExp("((0[13-9]|1[012])"+c+"[0-3])|(02"+c+"[0-2])")},val2:function(b){var c=a.inputmask.escapeRegex.call(this,b);return new RegExp("((0[1-9]|1[012])"+c+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+c+"30)|((0[13578]|1[02])"+c+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyUp:function(b){var c=a(this);if(b.ctrlKey&&b.keyCode==a.inputmask.keyCode.RIGHT){var d=new Date;c.val((d.getMonth()+1).toString()+d.getDate().toString()+d.getFullYear().toString())}}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",onKeyUp:function(b){var c=a(this);if(b.ctrlKey&&b.keyCode==a.inputmask.keyCode.RIGHT){var d=new Date;c.val(d.getFullYear().toString()+(d.getMonth()+1).toString()+d.getDate().toString())}}},"dd.mm.yyyy":{mask:"1.2.y",placeholder:"dd.mm.yyyy",leapday:"29.02.",separator:".",alias:"dd/mm/yyyy"},"dd-mm-yyyy":{mask:"1-2-y",placeholder:"dd-mm-yyyy",leapday:"29-02-",separator:"-",alias:"dd/mm/yyyy"},"mm.dd.yyyy":{mask:"1.2.y",placeholder:"mm.dd.yyyy",leapday:"02.29.",separator:".",alias:"mm/dd/yyyy"},"mm-dd-yyyy":{mask:"1-2-y",placeholder:"mm-dd-yyyy",leapday:"02-29-",separator:"-",alias:"mm/dd/yyyy"},"yyyy.mm.dd":{mask:"y.1.2",placeholder:"yyyy.mm.dd",leapday:".02.29",separator:".",alias:"yyyy/mm/dd"},"yyyy-mm-dd":{mask:"y-1-2",placeholder:"yyyy-mm-dd",leapday:"-02-29",separator:"-",alias:"yyyy/mm/dd"},datetime:{mask:"1/2/y h:s",placeholder:"dd/mm/yyyy hh:mm",alias:"dd/mm/yyyy",regex:{hrspre:new RegExp("[012]"),hrs24:new RegExp("2[0-4]|1[3-9]"),hrs:new RegExp("[01][0-9]|2[0-4]"),ampm:new RegExp("^[a|p|A|P][m|M]"),mspre:new RegExp("[0-5]"),ms:new RegExp("[0-5][0-9]")},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(a,b,c,d,e){if("24"==e.hourFormat&&24==parseInt(a,10))return b.buffer[c-1]="0",b.buffer[c]="0",{refreshFromBuffer:{start:c-1,end:c},c:"0"};var f=e.regex.hrs.test(a);if(!d&&!f&&(a.charAt(1)==e.timeseparator||-1!="-.:".indexOf(a.charAt(1)))&&(f=e.regex.hrs.test("0"+a.charAt(0))))return b.buffer[c-1]="0",b.buffer[c]=a.charAt(0),c++,{refreshFromBuffer:{start:c-2,end:c},pos:c,c:e.timeseparator};if(f&&"24"!==e.hourFormat&&e.regex.hrs24.test(a)){var g=parseInt(a,10);return 24==g?(b.buffer[c+5]="a",b.buffer[c+6]="m"):(b.buffer[c+5]="p",b.buffer[c+6]="m"),g-=12,10>g?(b.buffer[c]=g.toString(),b.buffer[c-1]="0"):(b.buffer[c]=g.toString().charAt(1),b.buffer[c-1]=g.toString().charAt(0)),{refreshFromBuffer:{start:c-1,end:c+6},c:b.buffer[c]}}return f},cardinality:2,prevalidator:[{validator:function(a,b,c,d,e){var f=e.regex.hrspre.test(a);return d||f||!(f=e.regex.hrs.test("0"+a))?f:(b.buffer[c]="0",c++,{pos:c})},cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:function(a,b,c,d,e){var f=e.regex.mspre.test(a);return d||f||!(f=e.regex.ms.test("0"+a))?f:(b.buffer[c]="0",c++,{pos:c})},cardinality:1}]},t:{validator:function(a,b,c,d,e){return e.regex.ampm.test(a+"m")},casing:"lower",cardinality:1}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t\\m",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm:ss":{mask:"h:s:s",placeholder:"hh:mm:ss",alias:"datetime",autoUnmask:!1},"hh:mm":{mask:"h:s",placeholder:"hh:mm",alias:"datetime",autoUnmask:!1},date:{alias:"dd/mm/yyyy"},"mm/yyyy":{mask:"1/y",placeholder:"mm/yyyy",leapday:"donotuse",separator:"/",alias:"mm/dd/yyyy"}}),a.fn.inputmask}(jQuery),function(a){return a.extend(a.inputmask.defaults.definitions,{A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"#":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"}}),a.extend(a.inputmask.defaults.aliases,{url:{mask:"ir",placeholder:"",separator:"",defaultPrefix:"http://",regex:{urlpre1:new RegExp("[fh]"),urlpre2:new RegExp("(ft|ht)"),urlpre3:new RegExp("(ftp|htt)"),urlpre4:new RegExp("(ftp:|http|ftps)"),urlpre5:new RegExp("(ftp:/|ftps:|http:|https)"),urlpre6:new RegExp("(ftp://|ftps:/|http:/|https:)"),urlpre7:new RegExp("(ftp://|ftps://|http://|https:/)"),urlpre8:new RegExp("(ftp://|ftps://|http://|https://)")},definitions:{i:{validator:function(){return!0},cardinality:8,prevalidator:function(){for(var a=[],b=8,c=0;b>c;c++)a[c]=function(){var a=c;return{validator:function(b,c,d,e,f){if(f.regex["urlpre"+(a+1)]){var g,h=b;a+1-b.length>0&&(h=c.buffer.join("").substring(0,a+1-b.length)+""+h);var i=f.regex["urlpre"+(a+1)].test(h);if(!e&&!i){for(d-=a,g=0;g<f.defaultPrefix.length;g++)c.buffer[d]=f.defaultPrefix[g],d++;for(g=0;g<h.length-1;g++)c.buffer[d]=h[g],d++;return{pos:d}}return i}return!1},cardinality:a}}();return a}()},r:{validator:".",cardinality:50}},insertMode:!1,autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(a,b,c){return c-1>-1&&"."!=b.buffer[c-1]?(a=b.buffer[c-1]+a,a=c-2>-1&&"."!=b.buffer[c-2]?b.buffer[c-2]+a:"0"+a):a="00"+a,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(a)},cardinality:1}}},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,64}]@*{1,64}[.*{2,64}][.*{2,6}][.*{1,2}]",greedy:!1,onBeforePaste:function(a){return a=a.toLowerCase(),a.replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",cardinality:1,casing:"lower"}}}}),a.fn.inputmask}(jQuery),function(a){return a.extend(a.inputmask.defaults.aliases,{numeric:{mask:function(a){if(0!==a.repeat&&isNaN(a.integerDigits)&&(a.integerDigits=a.repeat),a.repeat=0,a.groupSeparator==a.radixPoint&&(a.groupSeparator="."==a.radixPoint?",":","==a.radixPoint?".":"")," "===a.groupSeparator&&(a.skipOptionalPartCharacter=void 0),a.autoGroup=a.autoGroup&&""!=a.groupSeparator,a.autoGroup&&isFinite(a.integerDigits)){var b=Math.floor(a.integerDigits/a.groupSize),c=a.integerDigits%a.groupSize;a.integerDigits+=0==c?b-1:b}a.definitions[";"]=a.definitions["~"];var d=a.prefix;return d+="[+]",d+="~{1,"+a.integerDigits+"}",void 0!=a.digits&&(isNaN(a.digits)||parseInt(a.digits)>0)&&(d+=a.digitsOptional?"["+(a.decimalProtect?":":a.radixPoint)+";{"+a.digits+"}]":(a.decimalProtect?":":a.radixPoint)+";{"+a.digits+"}"),d+=a.suffix},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,groupSeparator:"",radixPoint:".",radixFocus:!0,groupSize:3,autoGroup:!1,allowPlus:!0,allowMinus:!0,integerDigits:"+",prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,postFormat:function(b,c,d,e){var f=!1,g=b[c];if(""==e.groupSeparator||-1!=a.inArray(e.radixPoint,b)&&c>=a.inArray(e.radixPoint,b)||new RegExp("[-+]").test(g))return{pos:c};var h=b.slice();g==e.groupSeparator&&(h.splice(c--,1),g=h[c]),d?h[c]="?":h.splice(c,0,"?");var i=h.join("");if(e.autoGroup||d&&-1!=i.indexOf(e.groupSeparator)){var j=a.inputmask.escapeRegex.call(this,e.groupSeparator);f=0==i.indexOf(e.groupSeparator),i=i.replace(new RegExp(j,"g"),"");var k=i.split(e.radixPoint);if(i=k[0],i!=e.prefix+"?0"&&i.length>=e.groupSize+e.prefix.length){f=!0;for(var l=new RegExp("([-+]?[\\d?]+)([\\d?]{"+e.groupSize+"})");l.test(i);)i=i.replace(l,"$1"+e.groupSeparator+"$2"),i=i.replace(e.groupSeparator+e.groupSeparator,e.groupSeparator)}k.length>1&&(i+=e.radixPoint+k[1])}b.length=i.length;for(var m=0,n=i.length;n>m;m++)b[m]=i.charAt(m);var o=a.inArray("?",b);return d?b[o]=g:b.splice(o,1),{pos:o,refreshFromBuffer:f}},onKeyDown:function(b,c,d,e){if(b.keyCode==a.inputmask.keyCode.TAB&&"0"!=e.placeholder.charAt(0)){var f=a.inArray(e.radixPoint,c);if(-1!=f&&isFinite(e.digits)){for(var g=1;g<=e.digits;g++)(void 0==c[f+g]||c[f+g]==e.placeholder.charAt(0))&&(c[f+g]="0");return{refreshFromBuffer:{start:++f,end:f+e.digits}}}}else if(e.autoGroup&&(b.keyCode==a.inputmask.keyCode.DELETE||b.keyCode==a.inputmask.keyCode.BACKSPACE)){var h=e.postFormat(c,d-1,!0,e);return h.caret=h.pos+1,h}},onKeyPress:function(a,b,c,d){if(d.autoGroup){var e=d.postFormat(b,c-1,!0,d);return e.caret=e.pos+1,e}},regex:{integerPart:function(){return new RegExp("[-+]?\\d+")},integerNPart:function(){return new RegExp("\\d+")}},signHandler:function(a,b,c,d,e){if(!d&&(e.allowMinus&&"-"===a||e.allowPlus&&"+"===a)){var f=b.join("").match(e.regex.integerPart(e));if(f&&f.length>0&&"0"!==f[f.index])return b[f.index]==("-"===a?"+":"-")?{pos:f.index,c:a,remove:f.index,caret:c}:b[f.index]==("-"===a?"-":"+")?{remove:f.index,caret:c-1}:{pos:f.index,c:a,caret:c+1}}return!1},radixHandler:function(b,c,d,e,f){if(!e&&b===f.radixPoint){var g=a.inArray(f.radixPoint,c.buffer),h=c.buffer.join("").match(f.regex.integerPart(f));if(-1!=g)return c.validPositions[g-1]?{caret:g+1}:{pos:h.index,c:h[0],caret:g+1}}return!1},leadingZeroHandler:function(b,c,d,e,f){var g=c.buffer.join("").match(f.regex.integerNPart(f)),h=a.inArray(f.radixPoint,c.buffer);if(g&&!e&&(-1==h||g.index<h))if(0==g[0].indexOf("0")&&d>=f.prefix.length){if(-1==h||h>=d&&void 0==c.validPositions[h])return c.buffer.splice(g.index,1),d=d>g.index?d-1:g.index,{pos:d,remove:g.index};if(d>g.index&&h>=d)return c.buffer.splice(g.index,1),d=d>g.index?d-1:g.index,{pos:d,remove:g.index}}else if("0"==b&&d<=g.index)return!1;return!0},definitions:{"~":{validator:function(b,c,d,e,f){var g=f.signHandler(b,c.buffer,d,e,f);if(!g&&(g=f.radixHandler(b,c,d,e,f),!g&&(g=e?new RegExp("[0-9"+a.inputmask.escapeRegex.call(this,f.groupSeparator)+"]").test(b):new RegExp("[0-9]").test(b),g===!0&&(g=f.leadingZeroHandler(b,c,d,e,f),g===!0)))){var h=a.inArray(f.radixPoint,c.buffer);f.digitsOptional===!1&&d>h&&!e&&(g={pos:d,remove:d}),g={pos:d}}return g},cardinality:1,prevalidator:null},"+":{validator:function(a,b,c,d,e){var f=e.signHandler(a,b.buffer,c,d,e);return f||(f=e.allowMinus&&"-"==a||e.allowPlus&&"+"==a),f},cardinality:1,prevalidator:null,placeholder:""},":":{validator:function(b,c,d,e,f){var g=f.signHandler(b,c.buffer,d,e,f);if(!g){var h="["+a.inputmask.escapeRegex.call(this,f.radixPoint)+"]";g=new RegExp(h).test(b),g&&c.validPositions[d]&&c.validPositions[d].match.placeholder==f.radixPoint&&(g={pos:d,remove:d})}return g},cardinality:1,prevalidator:null,placeholder:function(a){return a.radixPoint}}},insertMode:!0,autoUnmask:!1,onUnMask:function(b,c,d){var e=b.replace(d.prefix,"");return e=e.replace(d.suffix,""),e=e.replace(new RegExp(a.inputmask.escapeRegex.call(this,d.groupSeparator),"g"),"")},isComplete:function(b,c){var d=b.join(""),e=b.slice();if(c.postFormat(e,0,!0,c),e.join("")!=d)return!1;var f=d.replace(c.prefix,"");return f=f.replace(c.suffix,""),f=f.replace(new RegExp(a.inputmask.escapeRegex.call(this,c.groupSeparator),"g"),""),f=f.replace(a.inputmask.escapeRegex.call(this,c.radixPoint),"."),isFinite(f)},onBeforeMask:function(b,c){if(isFinite(b))return b.toString().replace(".",c.radixPoint);var d=b.match(/,/g),e=b.match(/\./g);return e&&d?e.length>d.length?(b=b.replace(/\./g,""),b=b.replace(",",c.radixPoint)):d.length>e.length&&(b=b.replace(/,/g,""),b=b.replace(".",c.radixPoint)):b=b.replace(new RegExp(a.inputmask.escapeRegex.call(this,c.groupSeparator),"g"),""),b}},currency:{prefix:"$ ",groupSeparator:",",radixPoint:".",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1,decimalProtect:!0},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:"0"}}),a.fn.inputmask}(jQuery),function(a){return a.extend(a.inputmask.defaults.aliases,{phone:{url:"phone-codes/phone-codes.js",maskInit:"+pp(pp)pppppppp",mask:function(b){b.definitions={p:{validator:function(){return!1},cardinality:1},"#":{validator:"[0-9]",cardinality:1}};var c=[];return a.ajax({url:b.url,async:!1,dataType:"json",success:function(a){c=a}}),c=c.sort(function(a,b){return(a.mask||a)<(b.mask||b)?-1:1}),c.splice(0,0,b.maskInit),c},nojumps:!0,nojumpsThreshold:1},phonebe:{alias:"phone",url:"phone-codes/phone-be.js",maskInit:"+32(pp)pppppppp",nojumpsThreshold:4}}),a.fn.inputmask}(jQuery),function(a){return a.extend(a.inputmask.defaults.aliases,{Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(a,b){return new RegExp(b.regex).test(a.join(""))},definitions:{r:{validator:function(b,c,d,e,f){function g(a,b){this.matches=[],this.isGroup=a||!1,this.isQuantifier=b||!1,this.quantifier={min:1,max:1},this.repeaterPart=void 0}function h(){var a,b,c=new g,d=[];for(f.regexTokens=[];a=f.tokenizer.exec(f.regex);)switch(b=a[0],b.charAt(0)){case"(":d.push(new g(!0));break;case")":var e=d.pop();d.length>0?d[d.length-1].matches.push(e):c.matches.push(e);break;case"{":case"+":case"*":var h=new g(!1,!0);b=b.replace(/[{}]/g,"");var i=b.split(","),j=isNaN(i[0])?i[0]:parseInt(i[0]),k=1==i.length?j:isNaN(i[1])?i[1]:parseInt(i[1]);if(h.quantifier={min:j,max:k},d.length>0){var l=d[d.length-1].matches;if(a=l.pop(),!a.isGroup){var e=new g(!0);e.matches.push(a),a=e}l.push(a),l.push(h)}else{if(a=c.matches.pop(),!a.isGroup){var e=new g(!0);e.matches.push(a),a=e}c.matches.push(a),c.matches.push(h)}break;default:d.length>0?d[d.length-1].matches.push(b):c.matches.push(b)}c.matches.length>0&&f.regexTokens.push(c)}function i(b,c){var d=!1;c&&(k+="(",m++);for(var e=0;e<b.matches.length;e++){var f=b.matches[e];if(1==f.isGroup)d=i(f,!0);else if(1==f.isQuantifier){var g=a.inArray(f,b.matches),h=b.matches[g-1],j=k;if(isNaN(f.quantifier.max)){for(;f.repeaterPart&&f.repeaterPart!=k&&f.repeaterPart.length>k.length&&!(d=i(h,!0)););d=d||i(h,!0),d&&(f.repeaterPart=k),k=j+f.quantifier.max}else{for(var l=0,o=f.quantifier.max-1;o>l&&!(d=i(h,!0));l++);k=j+"{"+f.quantifier.min+","+f.quantifier.max+"}"}}else if(void 0!=f.matches)for(var p=0;p<f.length&&!(d=i(f[p],c));p++);else{var q;if("["==f.charAt(0)){q=k,q+=f;for(var r=0;m>r;r++)q+=")";var s=new RegExp("^("+q+")$");d=s.test(n)}else for(var t=0,u=f.length;u>t;t++)if("\\"!=f.charAt(t)){q=k,q+=f.substr(0,t+1),q=q.replace(/\|$/,"");for(var r=0;m>r;r++)q+=")";var s=new RegExp("^("+q+")$");if(d=s.test(n))break}k+=f}if(d)break}return c&&(k+=")",m--),d}null==f.regexTokens&&h();var j=c.buffer.slice(),k="",l=!1,m=0;j.splice(d,0,b);for(var n=j.join(""),o=0;o<f.regexTokens.length;o++){var g=f.regexTokens[o];if(l=i(g,g.isGroup))break}return l},cardinality:1}}}}),a.fn.inputmask}(jQuery),jQuery(document).ready(function(a){jQuery(document).on("cf.add",function(){a("[data-inputmask]").inputmask()}),jQuery(document).trigger("cf.add")}),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(){var a=document.createElement("input");return a.setAttribute("type","range"),"text"!==a.type}function g(a,b){var c=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)}function h(a,b){return b=b||100,function(){if(!a.debouncing){var c=Array.prototype.slice.apply(arguments);a.lastReturnVal=a.apply(window,c),a.debouncing=!0}return clearTimeout(a.debounceTimeout),a.debounceTimeout=setTimeout(function(){a.debouncing=!1},b),a.lastReturnVal}}function i(b,d){if(this.$window=a(window),this.$document=a(document),this.$element=a(b),this.options=a.extend({},f,d),this._defaults=f,this._name=c,this.startEvent=this.options.startEvent.join("."+c+" ")+"."+c,this.moveEvent=this.options.moveEvent.join("."+c+" ")+"."+c,this.endEvent=this.options.endEvent.join("."+c+" ")+"."+c,this.polyfill=this.options.polyfill,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.polyfill&&e)return!1;this.identifier="js-"+c+"-"+ +new Date,this.min=parseFloat(this.$element[0].getAttribute("min")||0),this.max=parseFloat(this.$element[0].getAttribute("max")||100),this.value=parseFloat(this.$element[0].value||this.min+(this.max-this.min)/2),this.step=parseFloat(this.$element[0].getAttribute("step")||1),this.$fill=a('<div class="'+this.options.fillClass+'" />'),this.$handle=a('<div class="'+this.options.handleClass+'" />'),this.$range=a('<div class="'+this.options.rangeClass+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=a.proxy(this.handleDown,this),this.handleMove=a.proxy(this.handleMove,this),this.handleEnd=a.proxy(this.handleEnd,this),this.init();var i=this;this.$window.on("resize."+c,h(function(){g(function(){i.update()},300)},20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+c,function(a,b){if(!b||b.origin!==c){var d=a.target.value,e=i.getPositionFromValue(d);i.setPosition(e)}})}var c="rangeslider",d=[],e=b(),f={polyfill:!0,rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]};i.prototype.init=function(){this.onInit&&"function"==typeof this.onInit&&this.onInit(),this.update()},i.prototype.update=function(){this.handleWidth=this.$handle[0].offsetWidth,this.rangeWidth=this.$range[0].offsetWidth,this.maxHandleX=this.rangeWidth-this.handleWidth,this.grabX=this.handleWidth/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position)},i.prototype.handleDown=function(a){if(a.preventDefault(),this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),!((" "+a.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1)){var b=this.getRelativePosition(this.$range[0],a),c=this.getPositionFromNode(this.$handle[0])-this.getPositionFromNode(this.$range[0]);this.setPosition(b-this.grabX),b>=c&&b<c+this.handleWidth&&(this.grabX=b-c)}},i.prototype.handleMove=function(a){a.preventDefault();var b=this.getRelativePosition(this.$range[0],a);this.setPosition(b-this.grabX)},i.prototype.handleEnd=function(a){a.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd);var b=this.getRelativePosition(this.$range[0],a);this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(b-this.grabX,this.value)},i.prototype.cap=function(a,b,c){return a<b?b:a>c?c:a},i.prototype.setPosition=function(a){var b,c;b=this.getValueFromPosition(this.cap(a,0,this.maxHandleX))/this.step*this.step,c=this.getPositionFromValue(b),this.$fill[0].style.width=c+this.grabX+"px",this.$handle[0].style.left=c+"px",this.setValue(b),this.position=c,this.value=b,this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(c,b)},i.prototype.getPositionFromNode=function(a){for(var b=0;null!==a;)b+=a.offsetLeft,a=a.offsetParent;return b},i.prototype.getRelativePosition=function(a,b){return(b.pageX||b.originalEvent.clientX||b.originalEvent.touches[0].clientX||b.currentPoint.x)-this.getPositionFromNode(a)},i.prototype.getPositionFromValue=function(a){var b,c;return b=(a-this.min)/(this.max-this.min),c=b*this.maxHandleX},i.prototype.getValueFromPosition=function(a){var b,c;return b=a/(this.maxHandleX||1),c=this.step*Math.ceil((b*(this.max-this.min)+this.min)/this.step),Number(c.toFixed(2))},i.prototype.setValue=function(a){a!==this.value&&this.$element.val(a).trigger("change",{origin:c})},i.prototype.destroy=function(){this.$document.off(this.startEvent,"#"+this.identifier,this.handleDown),this.$element.off("."+c).removeAttr("style").removeData("plugin_"+c),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0]),d.splice(d.indexOf(this.$element[0]),1),d.length||this.$window.off("."+c)},a.fn[c]=function(b){return this.each(function(){var e=a(this),f=e.data("plugin_"+c);f||(e.data("plugin_"+c,f=new i(this,b)),d.push(this)),"string"==typeof b&&f[b]()})}}),function(a){"use strict";var b={init:function(c){return this.each(function(){this.self=a(this),b.destroy.call(this.self),this.opt=a.extend(!0,{},a.fn.raty.defaults,c),b._adjustCallback.call(this),b._adjustNumber.call(this),"img"!==this.opt.starType&&b._adjustStarType.call(this),b._adjustPath.call(this),b._createStars.call(this),this.opt.cancel&&b._createCancel.call(this),this.opt.precision&&b._adjustPrecision.call(this),b._createScore.call(this),b._apply.call(this,this.opt.score),b._target.call(this,this.opt.score),this.opt.readOnly?b._lock.call(this):(this.style.cursor="pointer",b._binds.call(this)),this.self.data("options",this.opt)})},_adjustCallback:function(){for(var a=["number","readOnly","score","scoreName"],b=0;b<a.length;b++)"function"==typeof this.opt[a[b]]&&(this.opt[a[b]]=this.opt[a[b]].call(this))},_adjustNumber:function(){this.opt.number=b._between(this.opt.number,1,this.opt.numberMax)},_adjustPath:function(){this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.charAt(this.opt.path.length-1)&&(this.opt.path+="/")},_adjustPrecision:function(){this.opt.half=!0,this.opt.targetType="score"},_adjustStarType:function(){this.opt.path="";for(var a=["cancelOff","cancelOn","starHalf","starOff","starOn"],b=0;b<a.length;b++)this.opt[a[b]]=this.opt[a[b]].replace(".","-")},_apply:function(a){b._fill.call(this,a),a&&(a>0&&this.score.val(b._between(a,0,this.opt.number)),b._roundStars.call(this,a))},_between:function(a,b,c){
4
- return Math.min(Math.max(parseFloat(a),b),c)},_binds:function(){this.cancel&&(b._bindOverCancel.call(this),b._bindClickCancel.call(this),b._bindOutCancel.call(this)),b._bindOver.call(this),b._bindClick.call(this),b._bindOut.call(this)},_bindClick:function(){var b=this;b.stars.on("click.raty",function(c){var d=a(this);b.score.val(b.opt.half||b.opt.precision?b.self.data("score"):this.alt||d.data("alt")),b.opt.click&&b.opt.click.call(b,+b.score.val(),c)})},_bindClickCancel:function(){var a=this;a.cancel.on("click.raty",function(b){a.score.removeAttr("value"),a.opt.click&&a.opt.click.call(a,null,b)})},_bindOut:function(){var a=this;a.self.on("mouseleave.raty",function(c){var d=+a.score.val()||void 0;b._apply.call(a,d),b._target.call(a,d,c),a.opt.mouseout&&a.opt.mouseout.call(a,d,c)})},_bindOutCancel:function(){var b=this;b.cancel.on("mouseleave.raty",function(c){var d=a(this),e=b.opt.path+b.opt.cancelOff;if("img"===b.opt.starType)d.attr("src",e);else{var f=b.opt.path+b.opt.cancelOn;d.removeClass(f).addClass(e)}if(b.opt.mouseout){var g=+b.score.val()||void 0;b.opt.mouseout.call(b,g,c)}})},_bindOver:function(){var a=this,c=a.opt.half?"mousemove.raty":"mouseover.raty";a.stars.on(c,function(c){var d=b._getScoreByPosition.call(a,c,this);b._fill.call(a,d),a.opt.half&&(b._roundStars.call(a,d),a.self.data("score",d)),b._target.call(a,d,c),a.opt.mouseover&&a.opt.mouseover.call(a,d,c)})},_bindOverCancel:function(){var c=this;c.cancel.on("mouseover.raty",function(d){var e=c.opt.path+c.opt.cancelOn,f=a(this),g=c.opt.path+c.opt.starOff;if("img"===c.opt.starType)f.attr("src",e),c.stars.attr("src",g);else{c.stars.attr("class",g);var h=c.opt.path+c.opt.cancelOff;f.removeClass(h).addClass(e).css("color",c.opt.starColor)}b._target.call(c,null,d),c.opt.mouseover&&c.opt.mouseover.call(c,null)})},_buildScoreField:function(){return a("<input />",{name:this.opt.scoreName,type:"hidden"}).appendTo(this)},_createCancel:function(){var b=this.opt.path+this.opt.cancelOff,c=a("<"+this.opt.starType+" />",{title:this.opt.cancelHint,class:"raty-cancel"}).css("marginRight",this.opt.space?this.opt.spaceWidth+"px":"0");"img"===this.opt.starType?c.attr({src:b,alt:"x"}):c.attr("data-alt","x").addClass(b),"left"===this.opt.cancelPlace?this.self.prepend("&#160;").prepend(c):this.self.append("&#160;").append(c),this.cancel=c},_createScore:function(){var c=a(this.opt.targetScore);this.score=c.length?c:b._buildScoreField.call(this)},_createStars:function(){for(var c=1;c<=this.opt.number;c++){var d,e=this.opt.score&&this.opt.score>=c?"starOn":"starOff",f=b._getHint.call(this,c);e=this.opt.path+this.opt[e],d="img"!==this.opt.starType?{"data-alt":c,class:e}:{src:e,alt:c},d.title=f,a("<"+this.opt.starType+" />",d).css("marginRight",c<this.opt.number&&this.opt.space?this.opt.spaceWidth+"px":"0").appendTo(this),this.opt.space}this.stars=this.self.children(this.opt.starType)},_error:function(b){a(this).text(b),a.error(b)},_fill:function(a){for(var c=0,d=1;d<=this.stars.length;d++){var e,f=this.stars.eq(d-1),g=b._turnOn.call(this,d,a);if(this.opt.iconRange&&this.opt.iconRange.length>c){var h=this.opt.iconRange[c];e=b._getIconRange.call(this,h,g),d<=h.range&&("img"===this.opt.starType?f.attr("src",e):f.attr("class",e)),d===h.range&&c++}else e=this.opt.path+this.opt[g?"starOn":"starOff"],"img"===this.opt.starType?f.attr("src",e):f.attr("class",e),g?f.css("color",this.opt.starColor):f.css("color","")}},_getIconRange:function(a,b){return this.opt.path+(b?a.on||this.opt.starOn:a.off||this.opt.starOff)},_getScoreByPosition:function(c,d){var e=a(d),f=parseInt(d.alt||e.data("alt"),10);if(this.opt.half){var g=b._getSize.call(this),h=parseFloat((c.pageX-e.offset().left)/g);f=this.opt.precision?f-1+h:f-1+(h>.5?1:.5)}return f},_getSize:function(){var a;return a="img"===this.opt.starType?this.stars[0].width:parseFloat(this.stars.eq(0).css("font-size")),a||b._error.call(this,"Could not be possible get the icon size!"),a},_turnOn:function(a,b){return this.opt.single?a===b:a<=b},_getHint:function(a){var b=this.opt.hints[a-1];return""===b?"":b||a},_lock:function(){var a=parseInt(this.score.val(),10),c=a?b._getHint.call(this,a):this.opt.noRatedMsg;this.style.cursor="",this.title=c,this.score.prop("readonly",!0),this.stars.prop("title",c),this.cancel&&this.cancel.hide(),this.self.data("readonly",!0)},_roundStars:function(a){var b=(a%1).toFixed(2);if(b>this.opt.round.down){var c="starOn";this.opt.halfShow&&b<this.opt.round.up?c="starHalf":b<this.opt.round.full&&(c="starOff");var d=this.stars[Math.ceil(a)-1];"img"===this.opt.starType?d.src=this.opt.path+this.opt[c]:d.style.className=this.opt[c]}},_target:function(c,d){if(this.opt.target){var e=a(this.opt.target);e.length||b._error.call(this,"Target selector invalid or missing!");var f=d&&"mouseover"===d.type;if(void 0===c)c=this.opt.targetText;else if(null===c)c=f?this.opt.cancelHint:this.opt.targetText;else{"hint"===this.opt.targetType?c=b._getHint.call(this,Math.ceil(c)):this.opt.precision&&(c=parseFloat(c).toFixed(1));var g=d&&"mousemove"===d.type;f||g||this.opt.targetKeep||(c=this.opt.targetText)}c&&(c=this.opt.targetFormat.toString().replace("{score}",c)),e.is(":input")?e.val(c):e.html(c)}},_unlock:function(){this.style.cursor="pointer",this.removeAttribute("title"),this.score.removeAttr("readonly"),this.self.data("readonly",!1);for(var a=0;a<this.opt.number;a++)this.stars[a].title=b._getHint.call(this,a+1);this.cancel&&this.cancel.css("display","")},cancel:function(c){return this.each(function(){var d=a(this);d.data("readonly")!==!0&&(b[c?"click":"score"].call(d,null),this.score.removeAttr("value"))})},click:function(c){return this.each(function(){a(this).data("readonly")!==!0&&(b._apply.call(this,c),this.opt.click&&this.opt.click.call(this,c,a.Event("click")),b._target.call(this,c))})},destroy:function(){return this.each(function(){var b=a(this),c=b.data("raw");c?b.off(".raty").empty().css({cursor:c.style.cursor}).removeData("readonly"):b.data("raw",b.clone()[0])})},getScore:function(){var b,a=[];return this.each(function(){b=this.score.val(),a.push(b?+b:void 0)}),a.length>1?a:a[0]},move:function(c){return this.each(function(){var d=parseInt(c,10),e=a(this).data("options"),f=(+c).toFixed(1).split(".")[1];d>=e.number&&(d=e.number-1,f=10);var g=b._getSize.call(this),h=g/10,i=a(this.stars[d]),j=i.offset().left+h*parseInt(f,10),k=a.Event("mousemove",{pageX:j});i.trigger(k)})},readOnly:function(c){return this.each(function(){var d=a(this);d.data("readonly")!==c&&(c?(d.off(".raty").children("img").off(".raty"),b._lock.call(this)):(b._binds.call(this),b._unlock.call(this)),d.data("readonly",c))})},reload:function(){return b.set.call(this,{})},score:function(){var c=a(this);return arguments.length?b.setScore.apply(c,arguments):b.getScore.call(c)},set:function(b){return this.each(function(){var c=a(this),d=c.data("options"),e=a.extend({},d,b);c.raty(e)})},setScore:function(c){return this.each(function(){a(this).data("readonly")!==!0&&(b._apply.call(this,c),b._target.call(this,c))})}};a.fn.raty=function(c){return b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist!"):b.init.apply(this,arguments)},a.fn.raty.defaults={cancel:!1,cancelHint:"Cancel this rating!",cancelOff:"raty-cancel-off",cancelOn:"raty-cancel-on",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["1"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:void 0,precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,space:!0,spaceWidth:3,starColor:"#ff00aa",starHalf:"star-half.png",starOff:"raty-dot-off",starOn:"raty-dot-on",starType:"img",target:void 0,targetFormat:"{score}",targetKeep:!1,targetScore:void 0,targetText:"",targetType:"hint"}}(jQuery),jQuery(function(a){a("body").on("click",".cf-toggle-group-buttons a",function(){var b=a(this),c=b.closest(".caldera-config-field"),d=c.find('[data-ref="'+b.attr("id")+'"]');c.find(".btn").removeClass(b.data("active")).addClass(b.data("default")),b.addClass(b.data("active")).removeClass(b.data("default")),d.prop("checked",!0).trigger("change")})});
 
 
 
 
assets/js/formobject.js CHANGED
File without changes
assets/js/formobject.min.js DELETED
@@ -1 +0,0 @@
1
- !function(t){function a(a){if(a.data("form")){var e="/cf-api/"+a.data("form")+"/";a.data("entry")&&(e+=a.data("entry")+"/"),e+="?cf_instance="+(t(".caldera_forms_form."+a.data("form")).length+1),a.data("width")?a.css({width:a.data("width")}):a.css({width:!1}),t.get(e,function(e){t("#modal-"+a.data("form")+"-content").html(e),resBaldrickTriggers(),"undefined"!=typeof caldera_conditionals&&calders_forms_init_conditions()})}}if(t.fn.formJSON=function(){for(var a=t(this),e=a.find("[name]"),r={},d={},o=0;o<e.length;o++){var i=t(e[o]),s=i.prop("name").replace(/\]/gi,"").split("["),n=i.val(),f={};if(!i.is(":radio")&&!i.is(":checkbox")||i.is(":checked")){for(var l=s.length-1;l>=0;l--){var c=s[l];if("undefined"==typeof c&&(c=""),0===c.length&&(f=[],"undefined"==typeof d[s[l-1]]?d[s[l-1]]=0:d[s[l-1]]+=1,c=d[s[l-1]]),l===s.length-1){if(n)if("true"===n)n=!0;else if("false"===n)n=!1;else if(isNaN(parseFloat(n))||parseFloat(n).toString()!==n)if("string"!=typeof n||"{"!==n.substr(0,1)&&"["!==n.substr(0,1)){if("object"==typeof n&&n.length&&i.is("select")){for(var m={},l=0;l<n.length;l++)m["n"+l]=n[l];n=m}}else try{n=JSON.parse(n)}catch(p){}else n=parseFloat(n);f[c]=n}else{var h=f;f={},f[c]=h}}t.extend(!0,r,f)}}return r},t(".caldera_forms_form").on("click",".cf-form-trigger",function(a){var e=t(this);form=e.closest("form.caldera_forms_form"),form_id=form.prop("id"),calderaforms=window[form_id],data=form.formJSON(),fields={},target=e.data("target");for(var r in calderaforms)fields[calderaforms[r].slug]=data[r];if("function"==typeof window[target])window[target](fields,a);else{try{var d=t(target)}catch(o){}if(d&&d.length){fields=JSON.stringify(fields);var i=["textarea","text","hidden"];d.each(function(a,e){this.type&&i.indexOf(this.type)>=0?t(this).val(fields).trigger("change"):this.innerHTML=fields})}else t.post(target,fields)}}),cfModals){var e=t("head"),r=t("body");for(var d in cfModals.style)t("#cf-"+d+"-styles-css").length||e.append('<link id="cf-'+d+'-styles-css" rel="stylesheet" type="text/css" href="'+cfModals.style[d]+'">');for(var o in cfModals.script)t('script[src^="'+cfModals.script[o]+'"]').length||null===cfModals.script[o]||r.append('<script src="'+cfModals.script[o]+'" type="text/javascript">');t(".caldera-forms-modal").each(function(){var e=t(this),r=e.data("form"),d="";e.data("entry")&&(d+='data-entry="'+e.data("entry")+'"'),e.data("width")&&(d+='data-width="'+e.data("width")+'"'),t("body").append('<div class="remodal" data-form="'+r+'" '+d+' data-remodal-id="modal-'+r+'" id="modal-'+r+'"><button data-remodal-action="close" class="remodal-close"></button><div class="modal-content" id="modal-'+r+'-content"><span class="caldera-grid cf_processing cf_modal"></span></div></div>'),a(t("#modal-"+r))}),t(document).on("opened",".remodal",function(){t(document).trigger("cf.modal",t(this))}),t(document).on("cf.submission",function(e,r){setTimeout(function(){var e=t('[data-remodal-id="modal-'+r.data.form_id+'"]').remodal();a(e.$modal),"opened"===e.getState()&&e.close()},1500)})}}(jQuery);
 
assets/js/frontend-script-init.min.js DELETED
@@ -1 +0,0 @@
1
- var cf_jsfields_init,cf_validate_form;!function(a){cf_validate_form=function(a){return a.parsley({errorsWrapper:'<span class="help-block caldera_ajax_error_block"></span>',errorTemplate:"<span></span>",errorsContainer:function(a){return a.$element.closest(".form-group")}}).on("field:error",function(){this.$element.closest(".form-group").addClass("has-error")}).on("field:success",function(){this.$element.closest(".form-group").removeClass("has-error")})},a("[data-sync]").each(function(){for(var e=a(this),r=e.data("binds"),t=e.closest("form"),i=0;i<r.length;i++)a(document).on("keyup change blur mouseover","[data-field='"+r[i]+"']",function(){var r=e.data("sync");if(id=a(this).data("field"),reg=new RegExp("{{([^}]*?)}}","g"),template=r.match(reg),!e.data("unsync")){for(var i=0;i<template.length;i++){for(var d=template[i].replace(/\}/g,"").replace(/\{/g,""),n=new RegExp(template[i],"g"),o=t.find("[data-field='"+d+"']"),s="",l=0;l<o.length;l++){var f=a(o[l]);(!f.is(":radio")&&!f.is(":checkbox")||f.is(":checked"))&&(s+=f.val())}r=r.replace(n,s)}e.val(r)}}),a("[data-field='"+r[i]+"']").trigger("change")}),a(document).on("change keypress","[data-sync]",function(){a(this).data("unsync",!0)}),cf_jsfields_init=function(){a(".init_field_type[data-type]").each(function(e,r){var t=a(r);"function"==typeof window[t.data("type")+"_init"]&&window[t.data("type")+"_init"](t.prop("id"),t[0])}),"undefined"!=typeof cfValidatorLocal&&window.Parsley.setLocale(cfValidatorLocal),"undefined"!=typeof cfModals&&"undefined"!=typeof cfModals.config&&"undefined"!=typeof cfModals.config.validator_lang&&window.Parsley.setLocale(cfModals.config.validator_lang),window.Parsley.on("field:validated",function(){setTimeout(function(){a(document).trigger("cf.error")},15)}),"undefined"==typeof resBaldrickTriggers&&a(".caldera_forms_form").length},a("document").ready(function(){cf_jsfields_init()}),a(".caldera-form-page").length&&a(".caldera-form-page").on("keypress","[data-field]:not(textarea)",function(a){13===a.keyCode&&a.preventDefault()}),a(document).on("click",".cf_modal_button",function(e){e.preventDefault();var r=a(this);a(r.attr("href")).show()}),a(document).on("click",".caldera-front-modal-closer",function(e){e.preventDefault();var r=a(this);r.closest(".caldera-front-modal-container").hide()}),a(document).on("cf.add cf.enable cf.disable cf.pagenav",cf_jsfields_init),a(document).on("click","[data-page]",function(e){var r,t,i,d=a(this),n=d.closest(".caldera-form-page"),o=d.closest("form.caldera_forms_form"),s=o.data("instance"),l=o.find(".caldera-form-page:visible").data("formpage"),f=n.data("formpage")?n.data("formpage"):d.data("page"),c=a('.breadcrumb[data-form="caldera_form_'+s+'"]'),p=!0,g={};if(o.length){if(cf_validate_form(o).destroy(),i=o.find("[data-field]"),o.find(".has-error").removeClass("has-error"),"prev"!==d.data("page")&&f>=l)for(var m=0;m<i.length;m++){var u=a(i[m]);if(u.is(":radio,:checkbox")){if(!u.hasClass("option-required")||!1===u.is(":visible"))continue;g[u.data("field")]||(g[u.data("field")]=[]),g[u.data("field")].push(u.prop("checked"))}else{if(u.prop("required")&&!1===u.is(":visible"))continue;if(u.prop("required")&&!0!==u.parsley().isValid()){if(u.is(":visible"))u.parsley().validate(),e.preventDefault();else{var v=parseFloat(u.closest(".caldera-form-page[data-formpage]").data("formpage"));v<parseFloat(f)&&o.find('[data-page="'+v+'"]').addClass("has-error")}p=!1}}}for(var h in g)g[h].indexOf(!0)<0?(a('[for="'+h+"_"+s+'"]').parent().addClass("has-error"),p=!1):a('[for="'+h+"_"+s+'"]').parent().removeClass("has-error");if(!1===p)return cf_validate_form(o).validate(),!1;"next"===d.data("page")?(c&&c.find("li.active").removeClass("active").children().attr("aria-expanded","false"),r=o.find('.caldera-form-page[data-formpage="'+(f+1)+'"]'),r.length&&(n.hide().attr("aria-hidden","true").css("visibility","hidden"),r.show().attr("aria-hidden","false").css("visibility","visible"),c&&c.find('a[data-page="'+(f+1)+'"]').attr("aria-expanded","true").parent().addClass("active"))):"prev"===d.data("page")?(c&&c.find("li.active").removeClass("active").children().attr("aria-expanded","false"),t=o.find('.caldera-form-page[data-formpage="'+(f-1)+'"]'),t.length&&(n.hide().attr("aria-hidden","true").css("visibility","hidden"),t.show().attr("aria-hidden","false").css("visibility","visible"),c&&c.find('a[data-page="'+(f-1)+'"]').attr("aria-expanded","true").parent().addClass("active"))):d.data("pagenav")&&(e.preventDefault(),d.closest(".breadcrumb").find("li.active").removeClass("active").children().attr("aria-expanded","false"),a("#"+d.data("pagenav")+" .caldera-form-page").hide().attr("aria-hidden","true").css("visibility","hidden"),a("#"+d.data("pagenav")+' .caldera-form-page[data-formpage="'+d.data("page")+'"]').show().attr("aria-hidden","false").css("visibility","visible"),d.parent().addClass("active").children().attr("aria-expanded","true")),a("html, body").animate({scrollTop:o.offset().top-100},200),a(document).trigger("cf.pagenav")}});var e;a(".caldera-grid .breadcrumb").each(function(r,t){a(t).find("a[data-pagenav]").each(function(r,t){var i=a(t),d=i.data("pagenav"),n=a("#"+d+' .caldera-form-page[data-formpage="'+i.data("page")+'"]');n.find(".has-error").length&&(i.parent().addClass("error"),"undefined"==typeof e&&(i.trigger("click"),e=!0))})}),a(document).on("click",'form.caldera_forms_form [type="submit"]',function(e){var r=a(this),t=r.closest(".caldera_forms_form"),i=cf_validate_form(t);i.validate()?i.destroy():e.preventDefault()})}(jQuery);
 
assets/js/html5.js CHANGED
File without changes
assets/js/i18n/ar.js CHANGED
File without changes
assets/js/i18n/bg.js CHANGED
File without changes
assets/js/i18n/ca.js CHANGED
File without changes
assets/js/i18n/cs.extra.js CHANGED
File without changes
assets/js/i18n/cs.js CHANGED
File without changes
assets/js/i18n/da.js CHANGED
File without changes
assets/js/i18n/de.extra.js CHANGED
File without changes
assets/js/i18n/de.js CHANGED
File without changes
assets/js/i18n/el.extra.js CHANGED
File without changes
assets/js/i18n/el.js CHANGED
File without changes
assets/js/i18n/en.extra.js CHANGED
File without changes
assets/js/i18n/en.js CHANGED
File without changes
assets/js/i18n/es.js CHANGED
File without changes
assets/js/i18n/fa.js CHANGED
File without changes
assets/js/i18n/fi.extra.js CHANGED
File without changes
assets/js/i18n/fi.js CHANGED
File without changes
assets/js/i18n/fr.extra.js CHANGED
File without changes
assets/js/i18n/fr.js CHANGED
File without changes
assets/js/i18n/he.extra.js CHANGED
File without changes
assets/js/i18n/he.js CHANGED
File without changes
assets/js/i18n/id.extra.js CHANGED
File without changes
assets/js/i18n/id.js CHANGED
File without changes
assets/js/i18n/it.extra.js CHANGED
File without changes
assets/js/i18n/it.js CHANGED
File without changes
assets/js/i18n/ja.js CHANGED
File without changes
assets/js/i18n/ko.js CHANGED
File without changes
assets/js/i18n/ms_MY.extra.js CHANGED
File without changes
assets/js/i18n/ms_MY.js CHANGED
File without changes
assets/js/i18n/nl.extra.js CHANGED
File without changes
assets/js/i18n/nl.js CHANGED
File without changes
assets/js/i18n/no.js CHANGED
File without changes
assets/js/i18n/pl.js CHANGED
File without changes
assets/js/i18n/pt-br.js CHANGED
File without changes
assets/js/i18n/pt-pt.js CHANGED
File without changes
assets/js/i18n/ro.extra.js CHANGED
File without changes
assets/js/i18n/ro.js CHANGED
File without changes
assets/js/i18n/ru.extra.js CHANGED
File without changes
assets/js/i18n/ru.js CHANGED
File without changes
assets/js/i18n/sq.js CHANGED
File without changes
assets/js/i18n/sv.extra.js CHANGED
File without changes
assets/js/i18n/sv.js CHANGED
File without changes
assets/js/i18n/th.js CHANGED
File without changes
assets/js/i18n/tr.js CHANGED
File without changes
assets/js/i18n/uk.extra.js CHANGED
File without changes
assets/js/i18n/uk.js CHANGED
File without changes
assets/js/i18n/zh_cn.extra.js CHANGED
File without changes
assets/js/i18n/zh_cn.js CHANGED
File without changes
assets/js/i18n/zh_tw.js CHANGED
File without changes
assets/js/jquery-baldrick.js CHANGED
File without changes
assets/js/jquery.baldrick.js DELETED
@@ -1,586 +0,0 @@
1
- /* -- BaldrickJS V2.3 | (C) David Cramer - 2013 | MIT License */
2
- (function($){
3
- // try not load again
4
- if( baldrickCache ){
5
- return;
6
- }
7
-
8
- var baldrickCache = {},
9
- baldrickRequests = {},
10
- baldrickhelpers = {
11
- _plugins : {},
12
- load : {},
13
- bind : {},
14
- event : function(el,e){
15
- return el;
16
- },
17
- pre_filter : function(opts){
18
- return opts.data;
19
- },
20
- filter : function(opts){
21
- return opts;
22
- },
23
- target : function(opts){
24
- if(typeof opts.params.success === 'string'){
25
- if(typeof window[opts.params.success] === 'function'){
26
- window[opts.params.success](opts);
27
- }
28
- }else if(typeof opts.params.success === 'function'){
29
- opts.params.success(opts);
30
- }
31
-
32
- if(opts.params.target){
33
-
34
- if(opts.params.target.is('textarea,input') && typeof opts.data === 'object'){
35
- opts.params.target.val( JSON.stringify(opts.data) ).trigger('change');
36
- }else{
37
- opts.params.target[opts.params.targetInsert](opts.data);
38
- }
39
- if(typeof opts.params.callback === 'string'){
40
- if(typeof window[opts.params.callback] === 'function'){
41
- return window[opts.params.callback](opts);
42
- }
43
- }else if(typeof opts.params.callback === 'function'){
44
- return opts.params.callback(opts);
45
- }
46
- }
47
- },
48
- request_data : function(obj){
49
- return obj.data;
50
- },
51
- request : function(opts){
52
-
53
- if( ( opts.params.trigger.data('cacheLocal') || opts.params.trigger.data('cacheSession') ) && !opts.params.trigger.data('cachePurge') ){
54
-
55
- var key;
56
-
57
- if( opts.params.trigger.data('cacheLocal') ){
58
- key = opts.params.trigger.data('cacheLocal');
59
- }else if(opts.params.trigger.data('cacheSession')){
60
- key = opts.params.trigger.data('cacheSession');
61
- }
62
-
63
- // check for a recent object
64
- if(typeof baldrickCache[key] !== 'undefined'){
65
- return {data: baldrickCache[key]};
66
- }
67
-
68
- // check if there is a stored obejct to be loaded
69
- if(typeof(Storage)!=="undefined"){
70
-
71
- var cache;
72
-
73
- // load storage
74
- if( opts.params.trigger.data('cacheLocal') ){
75
- cache = localStorage.getItem( key );
76
- }else if(opts.params.trigger.data('cacheSession')){
77
- cache = sessionStorage.getItem( key );
78
- }
79
- if(cache){
80
- try {
81
- //baldrickCache[key] = JSON.parse(cache);
82
- cache = JSON.parse(cache);
83
- } catch (e) {
84
- //baldrickCache[key] = cache;
85
- cache = cache;
86
- }
87
- return {data: cache};
88
- }
89
-
90
- }
91
-
92
- }
93
- if( baldrickRequests[opts.params.trigger.prop('id')] ){
94
- baldrickRequests[opts.params.trigger.prop('id')].abort();
95
- }
96
- baldrickRequests[opts.params.trigger.prop('id')] = $.ajax(opts.request);
97
- return baldrickRequests[opts.params.trigger.prop('id')];
98
- },
99
- request_complete: function(opts){
100
- opts.params.complete(opts);
101
- opts.params.loadElement.removeClass(opts.params.loadClass);
102
- if( baldrickRequests[opts.params.trigger.prop('id')] ){
103
- delete baldrickRequests[opts.params.trigger.prop('id')];
104
- }
105
- },
106
- request_error : function(opts){
107
- opts.params.error(opts);
108
- opts.params.complete(opts.jqxhr,opts.textStatus);
109
- },
110
- refresh : function(opts, defaults){
111
- $(defaults.triggerClass).baldrick(defaults);
112
- }
113
- };
114
-
115
- $.fn.baldrick = function(opts){
116
-
117
- var do_helper = function(h, input, ev){
118
- var out;
119
- // pull in plugins before
120
- for(var before in defaults.helpers._plugins){
121
- if(typeof defaults.helpers._plugins[before][h] === 'function'){
122
- out = defaults.helpers._plugins[before][h](input, defaults, ev);
123
- if(typeof out !== 'undefined'){ input = out;}
124
- if(input === false){return false;}
125
- }
126
- }
127
- if(typeof defaults.helpers[h] === 'function'){
128
- out = defaults.helpers[h](input, defaults, ev);
129
- if(typeof out !== 'undefined'){ input = out;}
130
- if(!input){return false;}
131
- }
132
- // pull in plugins after
133
- for(var after in defaults.helpers._plugins){
134
- if(typeof defaults.helpers._plugins[after]['after_' + h] === 'function'){
135
- out = defaults.helpers._plugins[after]['after_' + h](input, defaults, ev);
136
- if(typeof out !== 'undefined'){ input = out;}
137
- if(input === false){return false;}
138
- }
139
- }
140
- return input;
141
- },
142
- serialize_form = function(form){
143
-
144
- var config = {},
145
- data_fields = form.find('input,radio,checkbox,select,textarea,file'),
146
- objects = [],
147
- arraynames = {};
148
-
149
- // no fields - exit
150
- if(!data_fields.length){
151
- return;
152
- }
153
-
154
- for( var v = 0; v < data_fields.length; v++){
155
- if( data_fields[v].getAttribute('name') === null){
156
- continue;
157
- }
158
- var field = $(data_fields[v]),
159
- basename = field.prop('name').replace(/\[/gi,':').replace(/\]/gi,''),//.split('[' + id + ']')[1].substr(1),
160
- name = basename.split(':'),
161
- value = ( field.is(':checkbox,:radio') ? field.filter(':checked').val() : field.val() ),
162
- lineconf = {};
163
-
164
- for(var i = name.length-1; i >= 0; i--){
165
- var nestname = name[i];
166
- if(nestname.length === 0){
167
- if( typeof arraynames[name[i-1]] === 'undefined'){
168
- arraynames[name[i-1]] = 0;
169
- }else{
170
- arraynames[name[i-1]] += 1;
171
- }
172
- nestname = arraynames[name[i-1]];
173
- }
174
- if(i === name.length-1){
175
- lineconf[nestname] = value;
176
- }else{
177
- var newobj = lineconf;
178
- lineconf = {};
179
- lineconf[nestname] = newobj;
180
- }
181
- }
182
-
183
- $.extend(true, config, lineconf);
184
- };
185
- // give json object to trigger
186
- //params.data = JSON.stringify(config);
187
- //params.data = config;
188
- return config;
189
- },
190
- triggerClass = this.selector,
191
- inst = this.not('._tisBound');
192
-
193
- inst.addClass('_tisBound');
194
- if(typeof opts !== 'undefined'){
195
- if(typeof opts.helper === 'object'){
196
- baldrickhelpers._plugins._params_helpers_ = opts.helper;
197
- }
198
- }
199
- var defaults = $.extend(true, opts, { helpers : baldrickhelpers}, {triggerClass:triggerClass}),
200
- ncb = function(){return true;},
201
- callbacks = {
202
- "init" : ncb,
203
- "before" : ncb,
204
- "callback" : false,
205
- "success" : false,
206
- "complete" : ncb,
207
- "error" : ncb
208
- },
209
- output;
210
-
211
- for(var c in callbacks){
212
- if(typeof defaults[c] === 'string'){
213
- callbacks[c] = (typeof window[defaults[c]] === 'function' ? window[defaults[c]] : ncb);
214
- }else if(typeof defaults[c] === 'function'){
215
- callbacks[c] = defaults[c];
216
- }
217
- }
218
-
219
- inst = do_helper('bind', inst);
220
- if(inst === false){return this;}
221
- return do_helper('ready', inst.each(function(key){
222
- if(!this.id){
223
- this.id = "baldrick_trigger_" + (new Date().getTime() + key);
224
- }
225
- var el = $(this), ev = (el.data('event') ? el.data('event') : (defaults.event ? defaults.event : ( el.is('form') ? 'submit' : 'click' )));
226
- el.on(ev, function(e){
227
-
228
- var tr = $(do_helper('event', this, e));
229
-
230
- if(tr.data('for')){
231
- var fort = $(tr.data('for')),
232
- datamerge = $.extend({}, fort.data(), tr.data());
233
- delete datamerge['for'];
234
- fort.data(datamerge);
235
- if( fort.is('form') ){
236
- fort.submit();
237
- return this;
238
- }else{
239
- return fort.trigger((fort.data('event') ? fort.data('event') : ev));
240
- }
241
- }
242
- if(tr.is('form') && !tr.data('request') && tr.attr('action')){
243
- tr.data('request', tr.attr('action'));
244
- }
245
- if(tr.is('a') && !tr.data('request') && tr.attr('href')){
246
- if(tr.attr('href').indexOf('#') < 0){
247
- tr.data('request', tr.attr('href'));
248
- }else{
249
- tr.data('href', tr.attr('href'));
250
- }
251
- }
252
-
253
- if((tr.data('before') ? (typeof window[tr.data('before')] === 'function' ? window[tr.data('before')](this, e) : callbacks.before(this, e)) : callbacks.before(this, e)) === false){
254
- $(defaults.triggerClass).baldrick(defaults);
255
- return;
256
- }
257
-
258
- if((tr.data('init') ? (typeof window[tr.data('init')] === 'function' ? window[tr.data('init')](this, e) : callbacks.init(this, e)) : callbacks.init(this, e)) === false){
259
- $(defaults.triggerClass).baldrick(defaults);
260
- return;
261
- }
262
-
263
- var params = {
264
- trigger: tr,
265
- callback : (tr.data('callback') ? ((typeof window[tr.data('callback')] === 'function') ? window[tr.data('callback')] : tr.data('callback')) : callbacks.callback),
266
- success : (tr.data('success') ? ((typeof window[tr.data('success')] === 'function') ? window[tr.data('success')] : tr.data('success')) : callbacks.success),
267
- method : (tr.data('method') ? tr.data('method') : (tr.attr('method') ? tr.attr('method') :(defaults.method ? defaults.method : 'GET'))),
268
- dataType : (tr.data('type') ? tr.data('type') : (defaults.dataType ? defaults.dataType : false)),
269
- timeout : (tr.data('timeout') ? tr.data('timeout') : 120000),
270
- target : (tr.data('target') ? ( tr.data('target') === '_parent' ? tr.parent() : ( tr.data('target') === '_self' ? $(tr) : $(tr.data('target')) ) ) : (defaults.target ? $(defaults.target) : $('<html>'))),
271
- targetInsert : (tr.data('targetInsert') ? (tr.data('targetInsert') === 'replace' ? 'replaceWith' : tr.data('targetInsert')) : (defaults.targetInsert ? (defaults.targetInsert === 'replace' ? 'replaceWith': defaults.targetInsert) : 'html')),
272
- loadClass : (tr.data('loadClass') ? tr.data('loadClass') : (defaults.loadClass ? defaults.loadClass : 'loading')),
273
- activeClass : (tr.data('activeClass') ? tr.data('activeClass') : (defaults.activeClass ? defaults.activeClass : 'active')),
274
- activeElement : (tr.data('activeElement') ? (tr.data('activeElement') === '_parent' ? tr.parent() :$(tr.data('activeElement'))) : (defaults.activeElement ? (defaults.activeElement === '_parent' ? tr.parent() : $(defaults.activeElement)) : tr)),
275
- cache : (tr.data('cache') ? tr.data('cache') : (defaults.cache ? defaults.cache : false)),
276
- complete : (tr.data('complete') ? (typeof window[tr.data('complete')] === 'function' ? window[tr.data('complete')] : callbacks.complete ) : callbacks.complete),
277
- error : (tr.data('error') ? (typeof window[tr.data('error')] === 'function' ? window[tr.data('error')] : callbacks.error ) : callbacks.error),
278
- resultSelector : false,
279
- event : ev
280
- };
281
- params.url = (tr.data('request') ? ( tr.data('request') ) : (defaults.request ? defaults.request : params.callback));
282
- params.loadElement = (tr.data('loadElement') ? (tr.data('loadElement') === '_parent' ? tr.parent() :$(tr.data('loadElement'))) : (defaults.loadElement ? ($(defaults.loadElement) ? $(defaults.loadElement) : params.target) : params.target));
283
-
284
- params = do_helper('params', params);
285
- if(params === false){return false;}
286
-
287
- // check if request is a function
288
- e.preventDefault();
289
- if(typeof window[params.url] === 'function'){
290
-
291
- var dt = window[params.url](params, ev);
292
- dt = do_helper('pre_filter', {data:dt, params: params});
293
- dt = do_helper('filter', {data:dt, rawData: dt, params: params});
294
- do_helper('target', dt);
295
- do_helper('refresh', {params:params});
296
- do_helper('request_complete', {jqxhr:null, textStatus:'complete', request:request, params:params});
297
-
298
- return this;
299
- }else{
300
-
301
- try{
302
- if( $(params.url).length ){
303
- var dt = $(params.url).is('input,select,radio,checkbox,file,textarea') ? $(params.url).val() : ( $(params.url).is('form') ? serialize_form( $(params.url) ) : $(params.url).html() );
304
- }
305
- }catch (e){}
306
-
307
- if(typeof dt !== 'undefined'){
308
-
309
- if(params.dataType === 'json'){
310
- try{
311
- dt = JSON.parse(dt);
312
- }catch (e){}
313
- }
314
-
315
- dt = do_helper('pre_filter', {data:dt, params: params});
316
- dt = do_helper('filter', {data:dt, rawData: dt, params: params});
317
- do_helper('target', dt);
318
- do_helper('refresh', {params:params});
319
- do_helper('request_complete', {jqxhr:null, textStatus:'complete', request:request, params:params});
320
-
321
- var dt_enabled = true;
322
- return this;
323
- }
324
- }
325
- switch (typeof params.url){
326
- case 'function' : return params.url(this, e);
327
- case 'boolean' :
328
- case 'object': return;
329
- case 'string' :
330
- if(params.url.indexOf(' ') > -1){
331
- var rp = params.url.split(' ');
332
- params.url = rp[0];
333
- params.resultSelector = rp[1];
334
- }
335
- }
336
-
337
- var active = (tr.data('group') ? $('._tisBound[data-group="'+tr.data('group')+'"]').each(function(){
338
- var or = $(this),
339
- tel = (or.data('activeElement') ? (or.data('activeElement') === '_parent' ? or.parent() :$(or.data('activeElement'))) : (defaults.activeElement ? (defaults.activeElement === '_parent' ? tr.parent() : $(defaults.activeElement)) : or) );
340
- tel.removeClass((or.data('activeClass') ? or.data('activeClass') : (defaults.activeClass ? defaults.activeClass : params.activeClass)));}
341
- ) : $('._tisBound:not([data-group])').each(function(){
342
- var or = $(this),
343
- tel = (or.data('activeElement') ? (or.data('activeElement') === '_parent' ? or.parent() :$(or.data('activeElement'))) : (defaults.activeElement ? (defaults.activeElement === '_parent' ? tr.parent() : $(defaults.activeElement)) : or) );
344
- tel.removeClass((or.data('activeClass') ? or.data('activeClass') : (defaults.activeClass ? defaults.activeClass : params.activeClass)));}
345
- ));
346
-
347
- params.activeElement.addClass(params.activeClass);
348
- params.loadElement.addClass(params.loadClass);
349
- var data;
350
- if( typeof FormData !== 'undefined' && ( tr.is('input:file') || params.method === 'POST') ){
351
-
352
- params.method = 'POST';
353
- params.contentType = false;
354
- params.processData = false;
355
- params.cache = false;
356
- params.xhrFields = {
357
- onprogress: function (e) {
358
- if (e.lengthComputable) {
359
- //console.log('Loaded '+ (e.loaded / e.total * 100) + '%');
360
- } else {
361
- //console.log('Length not computable.');
362
- }
363
- }
364
- };
365
-
366
- if(tr.is('form')){
367
- data = new FormData(tr[0]);
368
- }else{
369
-
370
- data = new FormData();
371
- }
372
-
373
- if(tr.is('input,select,textarea')){
374
- // add value as _value for each access
375
- tr.data('_value', tr.val());
376
- }
377
- // make field vars
378
- for(var att in params.trigger.data()){
379
- data.append(att, params.trigger.data(att));
380
- }
381
- // convert param.data to json
382
- if(params.data){
383
- data.append('data', JSON.stringify(params.data));
384
- }
385
- // use input
386
- if(tr.is('input,select,textarea')){
387
-
388
- if(tr.is('input:file')){
389
- if(tr[0].files.length > 1){
390
- for( var file = 0; file < tr[0].files.length; file++){
391
- data.append(tr.prop('name'), tr[0].files[file]);
392
- }
393
- }else{
394
- data.append(tr.prop('name'), tr[0].files[0]);
395
- }
396
-
397
- }else if(tr.is('input:checkbox') || tr.is('input:radio')){
398
- if(tr.prop('checked')){
399
- data.append(tr.prop('name'), tr.val());
400
- }
401
- }else{
402
- data.append(tr.prop('name'), tr.val());
403
- }
404
- }
405
- }else{
406
-
407
- var sd = tr.serializeArray(), atts = params.trigger.data(), param = [];
408
- //console.log(atts);
409
- // insert user set params
410
- if(defaults.data){
411
- atts = $.extend(defaults.data, atts);
412
- }
413
-
414
- if(sd.length){
415
- $.each( sd, function(k,v) {
416
- param.push(v);
417
- });
418
- params.requestData = serialize_form(tr);
419
- }
420
- // convert param.data to json
421
- if(params.data){
422
- atts = $.extend(atts, params.data);
423
- }
424
- data = atts;
425
- params.requestData = $.extend(tr.data(), params.requestData);
426
- }
427
-
428
- var request = {
429
- url : params.url,
430
- data : do_helper('request_data', {data:data, params: params }),
431
- cache : params.cache,
432
- timeout : params.timeout,
433
- type : params.method,
434
- success : function(dt, ts, xhr){
435
- if(params.resultSelector){
436
- if(typeof dt === 'object'){
437
- var traverse = params.resultSelector.replace(/\[/g,'.').replace(/\]/g,'').split('.'),
438
- data_object = dt;
439
- for(var i=0; i<traverse.length; i++){
440
- data_object = data_object[traverse[i]];
441
- }
442
- dt = data_object;
443
- }else if (typeof dt === 'string'){
444
- var tmp = $(params.resultSelector, $('<html>').html(dt));
445
- if(tmp.length === 1){
446
- dt = $('<html>').html(tmp).html();
447
- }else{
448
- dt = $('<html>');
449
- tmp.each(function(){
450
- dt.append(this);
451
- });
452
- dt = dt.html();
453
- }
454
- }
455
- }
456
- var rawdata = dt;
457
- if(params.trigger.data('cacheLocal') || params.trigger.data('cacheSession')){
458
-
459
-
460
- var key;
461
-
462
- if( params.trigger.data('cacheLocal') ){
463
- key = params.trigger.data('cacheLocal');
464
- }else if(params.trigger.data('cacheSession')){
465
- key = params.trigger.data('cacheSession');
466
- }
467
-
468
- // add to local storage for later
469
- if(typeof(Storage)!=="undefined"){
470
- if( params.trigger.data('cacheLocal') ){
471
- try{
472
- localStorage.setItem( key, xhr.responseText );
473
- } catch (e) {
474
- console.log(e);
475
- }
476
- }else if( params.trigger.data('cacheSession') ){
477
- try{
478
- sessionStorage.setItem( key, xhr.responseText );
479
- } catch (e) {
480
- console.log(e);
481
- }
482
-
483
- }
484
- }
485
-
486
- // add to current cache object
487
- //baldrickCache[key] = dt;
488
- $(window).trigger('baldrick.cache', key);
489
- }
490
-
491
- dt = do_helper('pre_filter', {data:dt, request: request, params: params, xhr: xhr});
492
- dt = do_helper('filter', {data:dt, rawData: rawdata, request: request, params: params, xhr: xhr});
493
- do_helper('target', dt);
494
- },
495
- complete: function(xhr,ts){
496
-
497
- do_helper('request_complete', {jqxhr:xhr, textStatus:ts, request:request, params:params});
498
-
499
- do_helper('refresh', {jqxhr:xhr, textStatus:ts, request:request, params:params});
500
-
501
- if(tr.data('once')){
502
- tr.off(ev).removeClass('_tisBound');
503
- }
504
- },
505
- error: function(xhr,ts,ex){
506
- do_helper('request_error', {jqxhr:xhr, textStatus:ts, error:ex, request:request, params:params});
507
- }
508
- };
509
- if(params.dataType){
510
- request.dataType = params.dataType;
511
- }
512
- if(typeof params.contentType !== 'undefined'){
513
- request.contentType = params.contentType;
514
- }
515
- if(typeof params.processData !== 'undefined'){
516
- request.processData = params.processData;
517
- }
518
- if(typeof params.xhrFields !== 'undefined'){
519
- request.xhrFields = params.xhrFields;
520
- }
521
-
522
- request = do_helper('request_params', request, params);
523
- if(request === false){return inst;}
524
-
525
- var request_result = do_helper('request', {request: request, params: params});
526
-
527
- // A Request helper returns a completed object, if it contains data, push to the rest.
528
- if(request_result.data){
529
-
530
- var dt = request_result.data,
531
- rawdata = dt;
532
-
533
- do_helper('target' ,
534
- do_helper('filter' ,
535
- do_helper('pre_filter' , {data:dt, request: request, params: params})
536
- )
537
- );
538
- do_helper('request_complete', {jqxhr:false, textStatus:true, request:request, params:params});
539
- do_helper('refresh' , {jqxhr:false, textStatus:true, request:request, params:params});
540
-
541
-
542
- }
543
- });
544
- if(el.data('autoload') || el.data('poll')){
545
- if(el.data('delay')){
546
- setTimeout(function(el, ev){
547
- return el.trigger(ev);
548
- }, el.data('delay'), el, ev);
549
- }else{
550
- el.trigger(ev);
551
- }
552
- }
553
-
554
- if(el.data('poll')){
555
- if(el.data('delay')){
556
- setTimeout(function(el, ev){
557
- return setInterval(function(el, ev){
558
- return el.trigger(ev);
559
- }, el.data('poll'), el, ev);
560
- }, el.data('delay'));
561
- }else{
562
- setInterval(function(el, ev){
563
- return el.trigger(ev);
564
- }, el.data('poll'), el, ev);
565
- }
566
- }
567
- return this;
568
- }));
569
- };
570
- $.fn.baldrick.cacheObject = function(id, object){
571
- baldrickCache[id] = object;
572
- };
573
- $.fn.baldrick.registerhelper = function(slug, helper, callback){
574
- var newhelper = {};
575
- if(typeof helper === 'object'){
576
- newhelper[slug] = helper;
577
- baldrickhelpers._plugins = $.extend(true, newhelper, baldrickhelpers._plugins);
578
- }else if(typeof helper === 'string' && typeof slug === 'string' && typeof callback === 'function'){
579
- newhelper[helper] = {};
580
- newhelper[helper][slug] = callback;
581
- baldrickhelpers._plugins = $.extend(true, newhelper, baldrickhelpers._plugins);
582
- }
583
-
584
- };
585
-
586
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/jquery.baldrick.min.js DELETED
@@ -1 +0,0 @@
1
- !function(e){if(!t){var t={},a={},r={_plugins:{},load:{},bind:{},event:function(e,t){return e},pre_filter:function(e){return e.data},filter:function(e){return e},target:function(e){if("string"==typeof e.params.success?"function"==typeof window[e.params.success]&&window[e.params.success](e):"function"==typeof e.params.success&&e.params.success(e),e.params.target)if(e.params.target.is("textarea,input")&&"object"==typeof e.data?e.params.target.val(JSON.stringify(e.data)).trigger("change"):e.params.target[e.params.targetInsert](e.data),"string"==typeof e.params.callback){if("function"==typeof window[e.params.callback])return window[e.params.callback](e)}else if("function"==typeof e.params.callback)return e.params.callback(e)},request_data:function(e){return e.data},request:function(r){if((r.params.trigger.data("cacheLocal")||r.params.trigger.data("cacheSession"))&&!r.params.trigger.data("cachePurge")){var s;if(r.params.trigger.data("cacheLocal")?s=r.params.trigger.data("cacheLocal"):r.params.trigger.data("cacheSession")&&(s=r.params.trigger.data("cacheSession")),"undefined"!=typeof t[s])return{data:t[s]};if("undefined"!=typeof Storage){var i;if(r.params.trigger.data("cacheLocal")?i=localStorage.getItem(s):r.params.trigger.data("cacheSession")&&(i=sessionStorage.getItem(s)),i){try{i=JSON.parse(i)}catch(n){i=i}return{data:i}}}}return a[r.params.trigger.prop("id")]&&a[r.params.trigger.prop("id")].abort(),a[r.params.trigger.prop("id")]=e.ajax(r.request),a[r.params.trigger.prop("id")]},request_complete:function(e){e.params.complete(e),e.params.loadElement.removeClass(e.params.loadClass),a[e.params.trigger.prop("id")]&&delete a[e.params.trigger.prop("id")]},request_error:function(e){e.params.error(e),e.params.complete(e.jqxhr,e.textStatus)},refresh:function(t,a){e(a.triggerClass).baldrick(a)}};e.fn.baldrick=function(t){var a=function(e,t,a){var r;for(var s in o.helpers._plugins)if("function"==typeof o.helpers._plugins[s][e]&&(r=o.helpers._plugins[s][e](t,o,a),"undefined"!=typeof r&&(t=r),t===!1))return!1;if("function"==typeof o.helpers[e]&&(r=o.helpers[e](t,o,a),"undefined"!=typeof r&&(t=r),!t))return!1;for(var i in o.helpers._plugins)if("function"==typeof o.helpers._plugins[i]["after_"+e]&&(r=o.helpers._plugins[i]["after_"+e](t,o,a),"undefined"!=typeof r&&(t=r),t===!1))return!1;return t},s=function(t){var a={},r=t.find("input,radio,checkbox,select,textarea,file"),s={};if(r.length){for(var i=0;i<r.length;i++)if(null!==r[i].getAttribute("name")){for(var n=e(r[i]),o=n.prop("name").replace(/\[/gi,":").replace(/\]/gi,""),l=o.split(":"),c=n.is(":checkbox,:radio")?n.filter(":checked").val():n.val(),d={},p=l.length-1;p>=0;p--){var u=l[p];if(0===u.length&&("undefined"==typeof s[l[p-1]]?s[l[p-1]]=0:s[l[p-1]]+=1,u=s[l[p-1]]),p===l.length-1)d[u]=c;else{var f=d;d={},d[u]=f}}e.extend(!0,a,d)}return a}},i=this.selector,n=this.not("._tisBound");n.addClass("_tisBound"),"undefined"!=typeof t&&"object"==typeof t.helper&&(r._plugins._params_helpers_=t.helper);var o=e.extend(!0,t,{helpers:r},{triggerClass:i}),l=function(){return!0},c={init:l,before:l,callback:!1,success:!1,complete:l,error:l};for(var d in c)"string"==typeof o[d]?c[d]="function"==typeof window[o[d]]?window[o[d]]:l:"function"==typeof o[d]&&(c[d]=o[d]);return n=a("bind",n),n===!1?this:a("ready",n.each(function(t){this.id||(this.id="baldrick_trigger_"+((new Date).getTime()+t));var r=e(this),i=r.data("event")?r.data("event"):o.event?o.event:r.is("form")?"submit":"click";return r.on(i,function(t){var r=e(a("event",this,t));if(r.data("for")){var l=e(r.data("for")),d=e.extend({},l.data(),r.data());return delete d["for"],l.data(d),l.is("form")?(l.submit(),this):l.trigger(l.data("event")?l.data("event"):i)}if(r.is("form")&&!r.data("request")&&r.attr("action")&&r.data("request",r.attr("action")),r.is("a")&&!r.data("request")&&r.attr("href")&&(r.attr("href").indexOf("#")<0?r.data("request",r.attr("href")):r.data("href",r.attr("href"))),(r.data("before")&&"function"==typeof window[r.data("before")]?window[r.data("before")](this,t):c.before(this,t))===!1)return void e(o.triggerClass).baldrick(o);if((r.data("init")&&"function"==typeof window[r.data("init")]?window[r.data("init")](this,t):c.init(this,t))===!1)return void e(o.triggerClass).baldrick(o);var p={trigger:r,callback:r.data("callback")?"function"==typeof window[r.data("callback")]?window[r.data("callback")]:r.data("callback"):c.callback,success:r.data("success")?"function"==typeof window[r.data("success")]?window[r.data("success")]:r.data("success"):c.success,method:r.data("method")?r.data("method"):r.attr("method")?r.attr("method"):o.method?o.method:"GET",dataType:r.data("type")?r.data("type"):o.dataType?o.dataType:!1,timeout:r.data("timeout")?r.data("timeout"):12e4,target:r.data("target")?"_parent"===r.data("target")?r.parent():e("_self"===r.data("target")?r:r.data("target")):e(o.target?o.target:"<html>"),targetInsert:r.data("targetInsert")?"replace"===r.data("targetInsert")?"replaceWith":r.data("targetInsert"):o.targetInsert?"replace"===o.targetInsert?"replaceWith":o.targetInsert:"html",loadClass:r.data("loadClass")?r.data("loadClass"):o.loadClass?o.loadClass:"loading",activeClass:r.data("activeClass")?r.data("activeClass"):o.activeClass?o.activeClass:"active",activeElement:r.data("activeElement")?"_parent"===r.data("activeElement")?r.parent():e(r.data("activeElement")):o.activeElement?"_parent"===o.activeElement?r.parent():e(o.activeElement):r,cache:r.data("cache")?r.data("cache"):o.cache?o.cache:!1,complete:r.data("complete")&&"function"==typeof window[r.data("complete")]?window[r.data("complete")]:c.complete,error:r.data("error")&&"function"==typeof window[r.data("error")]?window[r.data("error")]:c.error,resultSelector:!1,event:i};if(p.url=r.data("request")?r.data("request"):o.request?o.request:p.callback,p.loadElement=r.data("loadElement")?"_parent"===r.data("loadElement")?r.parent():e(r.data("loadElement")):o.loadElement&&e(o.loadElement)?e(o.loadElement):p.target,p=a("params",p),p===!1)return!1;if(t.preventDefault(),"function"==typeof window[p.url]){var u=window[p.url](p,i);return u=a("pre_filter",{data:u,params:p}),u=a("filter",{data:u,rawData:u,params:p}),a("target",u),a("refresh",{params:p}),a("request_complete",{jqxhr:null,textStatus:"complete",request:_,params:p}),this}try{if(e(p.url).length)var u=e(p.url).is("input,select,radio,checkbox,file,textarea")?e(p.url).val():e(p.url).is("form")?s(e(p.url)):e(p.url).html()}catch(t){}if("undefined"!=typeof u){if("json"===p.dataType)try{u=JSON.parse(u)}catch(t){}u=a("pre_filter",{data:u,params:p}),u=a("filter",{data:u,rawData:u,params:p}),a("target",u),a("refresh",{params:p}),a("request_complete",{jqxhr:null,textStatus:"complete",request:_,params:p});return this}switch(typeof p.url){case"function":return p.url(this,t);case"boolean":case"object":return;case"string":if(p.url.indexOf(" ")>-1){var f=p.url.split(" ");p.url=f[0],p.resultSelector=f[1]}}r.data("group")?e('._tisBound[data-group="'+r.data("group")+'"]').each(function(){var t=e(this),a=t.data("activeElement")?"_parent"===t.data("activeElement")?t.parent():e(t.data("activeElement")):o.activeElement?"_parent"===o.activeElement?r.parent():e(o.activeElement):t;a.removeClass(t.data("activeClass")?t.data("activeClass"):o.activeClass?o.activeClass:p.activeClass)}):e("._tisBound:not([data-group])").each(function(){var t=e(this),a=t.data("activeElement")?"_parent"===t.data("activeElement")?t.parent():e(t.data("activeElement")):o.activeElement?"_parent"===o.activeElement?r.parent():e(o.activeElement):t;a.removeClass(t.data("activeClass")?t.data("activeClass"):o.activeClass?o.activeClass:p.activeClass)});p.activeElement.addClass(p.activeClass),p.loadElement.addClass(p.loadClass);var g;if("undefined"==typeof FormData||!r.is("input:file")&&"POST"!==p.method){var m=r.serializeArray(),h=p.trigger.data(),v=[];o.data&&(h=e.extend(o.data,h)),m.length&&(e.each(m,function(e,t){v.push(t)}),p.requestData=s(r)),p.data&&(h=e.extend(h,p.data)),g=h,p.requestData=e.extend(r.data(),p.requestData)}else{p.method="POST",p.contentType=!1,p.processData=!1,p.cache=!1,p.xhrFields={onprogress:function(e){e.lengthComputable}},g=r.is("form")?new FormData(r[0]):new FormData,r.is("input,select,textarea")&&r.data("_value",r.val());for(var y in p.trigger.data())g.append(y,p.trigger.data(y));if(p.data&&g.append("data",JSON.stringify(p.data)),r.is("input,select,textarea"))if(r.is("input:file"))if(r[0].files.length>1)for(var w=0;w<r[0].files.length;w++)g.append(r.prop("name"),r[0].files[w]);else g.append(r.prop("name"),r[0].files[0]);else r.is("input:checkbox")||r.is("input:radio")?r.prop("checked")&&g.append(r.prop("name"),r.val()):g.append(r.prop("name"),r.val())}var _={url:p.url,data:a("request_data",{data:g,params:p}),cache:p.cache,timeout:p.timeout,type:p.method,success:function(t,r,s){if(p.resultSelector)if("object"==typeof t){for(var i=p.resultSelector.replace(/\[/g,".").replace(/\]/g,"").split("."),n=t,o=0;o<i.length;o++)n=n[i[o]];t=n}else if("string"==typeof t){var l=e(p.resultSelector,e("<html>").html(t));1===l.length?t=e("<html>").html(l).html():(t=e("<html>"),l.each(function(){t.append(this)}),t=t.html())}var c=t;if(p.trigger.data("cacheLocal")||p.trigger.data("cacheSession")){var d;if(p.trigger.data("cacheLocal")?d=p.trigger.data("cacheLocal"):p.trigger.data("cacheSession")&&(d=p.trigger.data("cacheSession")),"undefined"!=typeof Storage)if(p.trigger.data("cacheLocal"))try{localStorage.setItem(d,s.responseText)}catch(u){console.log(u)}else if(p.trigger.data("cacheSession"))try{sessionStorage.setItem(d,s.responseText)}catch(u){console.log(u)}e(window).trigger("baldrick.cache",d)}t=a("pre_filter",{data:t,request:_,params:p,xhr:s}),t=a("filter",{data:t,rawData:c,request:_,params:p,xhr:s}),a("target",t)},complete:function(e,t){a("request_complete",{jqxhr:e,textStatus:t,request:_,params:p}),a("refresh",{jqxhr:e,textStatus:t,request:_,params:p}),r.data("once")&&r.off(i).removeClass("_tisBound")},error:function(e,t,r){a("request_error",{jqxhr:e,textStatus:t,error:r,request:_,params:p})}};if(p.dataType&&(_.dataType=p.dataType),"undefined"!=typeof p.contentType&&(_.contentType=p.contentType),"undefined"!=typeof p.processData&&(_.processData=p.processData),"undefined"!=typeof p.xhrFields&&(_.xhrFields=p.xhrFields),_=a("request_params",_,p),_===!1)return n;var b=a("request",{request:_,params:p});if(b.data){var u=b.data;a("target",a("filter",a("pre_filter",{data:u,request:_,params:p}))),a("request_complete",{jqxhr:!1,textStatus:!0,request:_,params:p}),a("refresh",{jqxhr:!1,textStatus:!0,request:_,params:p})}}),(r.data("autoload")||r.data("poll"))&&(r.data("delay")?setTimeout(function(e,t){return e.trigger(t)},r.data("delay"),r,i):r.trigger(i)),r.data("poll")&&(r.data("delay")?setTimeout(function(e,t){return setInterval(function(e,t){return e.trigger(t)},e.data("poll"),e,t)},r.data("delay")):setInterval(function(e,t){return e.trigger(t)},r.data("poll"),r,i)),this}))},e.fn.baldrick.cacheObject=function(e,a){t[e]=a},e.fn.baldrick.registerhelper=function(t,a,s){var i={};"object"==typeof a?(i[t]=a,r._plugins=e.extend(!0,i,r._plugins)):"string"==typeof a&&"string"==typeof t&&"function"==typeof s&&(i[a]={},i[a][t]=s,r._plugins=e.extend(!0,i,r._plugins))}}}(jQuery);
 
assets/js/jquery.form-validator.min.js DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * JQUERY-FORM-VALIDATOR
3
- *
4
- * @website by
5
- * @license MIT
6
- * @version 2.2.8
7
- */
8
- !function(a){"use strict";var b=a(window),c=function(b){if(b.valAttr("error-msg-container"))return a(b.valAttr("error-msg-container"));var c=b.parent();if(!c.hasClass("form-group")&&!c.closest("form").hasClass("form-horizontal")){var d=c.closest(".form-group");if(d.length)return d.eq(0)}return c},d=function(a,b){a.addClass(b.errorElementClass).removeClass("valid"),c(a).addClass(b.inputParentClassOnError).removeClass(b.inputParentClassOnSuccess),""!==b.borderColorOnError&&a.css("border-color",b.borderColorOnError)},e=function(b,d){b.each(function(){var b=a(this);f(b,"",d,d.errorMessagePosition),b.removeClass("valid").removeClass(d.errorElementClass).css("border-color",""),c(b).removeClass(d.inputParentClassOnError).removeClass(d.inputParentClassOnSuccess).find("."+d.errorMessageClass).remove()})},f=function(d,e,f,g){var h=document.getElementById(d.attr("name")+"_err_msg"),i=function(a){b.trigger("validationErrorDisplay",[d,a]),a.html(e)};if(h)i(a(h));else if("object"==typeof g){var j=!1;if(g.find("."+f.errorMessageClass).each(function(){return this.inputReferer==d[0]?(j=a(this),!1):void 0}),j)e?i(j):j.remove();else{var k=a('<div class="'+f.errorMessageClass+'"></div>');i(k),k[0].inputReferer=d[0],g.prepend(k)}}else{var l=c(d),k=l.find("."+f.errorMessageClass+".help-block");0==k.length&&(k=a("<span></span>").addClass("help-block").addClass(f.errorMessageClass),k.appendTo(l)),i(k)}},g=function(b,c,d,e){var f,g=e.errorMessageTemplate.messages.replace(/\{errorTitle\}/g,c),h=[];a.each(d,function(a,b){h.push(e.errorMessageTemplate.field.replace(/\{msg\}/g,b))}),g=g.replace(/\{fields\}/g,h.join("")),f=e.errorMessageTemplate.container.replace(/\{errorMessageClass\}/g,e.errorMessageClass),f=f.replace(/\{messages\}/g,g),b.children().eq(0).before(f)};a.fn.validateOnBlur=function(b,c){return this.find("*[data-validation]").bind("blur.validation",function(){a(this).validateInputOnBlur(b,c,!0,"blur")}),c.validateCheckboxRadioOnClick&&this.find("input[type=checkbox][data-validation],input[type=radio][data-validation]").bind("click.validation",function(){a(this).validateInputOnBlur(b,c,!0,"click")}),this},a.fn.validateOnEvent=function(b,c){return this.find("*[data-validation-event]").each(function(){var d=a(this),e=d.valAttr("event");e&&d.unbind(e+".validation").bind(e+".validation",function(){a(this).validateInputOnBlur(b,c,!0,e)})}),this},a.fn.showHelpOnFocus=function(b){return b||(b="data-validation-help"),this.find(".has-help-txt").valAttr("has-keyup-event",!1).removeClass("has-help-txt"),this.find("textarea,input").each(function(){var c=a(this),d="jquery_form_help_"+(c.attr("name")||"").replace(/(:|\.|\[|\])/g,""),e=c.attr(b);e&&c.addClass("has-help-txt").unbind("focus.help").bind("focus.help",function(){var b=c.parent().find("."+d);0==b.length&&(b=a("<span />").addClass(d).addClass("help").addClass("help-block").text(e).hide(),c.after(b)),b.fadeIn()}).unbind("blur.help").bind("blur.help",function(){a(this).parent().find("."+d).fadeOut("slow")})}),this},a.fn.validate=function(b,c,d){var e=a.extend({},a.formUtils.LANG,d||{});this.each(function(){var d=a(this),f=d.closest("form").get(0).validationConfig||{};d.one("validation",function(a,c){"function"==typeof b&&b(c,this,a)}),d.validateInputOnBlur(e,a.extend({},f,c||{}),!0)})},a.fn.willPostponeValidation=function(){return(this.valAttr("suggestion-nr")||this.valAttr("postpone")||this.hasClass("hasDatepicker"))&&!window.postponedValidation},a.fn.validateInputOnBlur=function(b,g,h,i){if(a.formUtils.eventType=i,this.willPostponeValidation()){var j=this,k=this.valAttr("postpone")||200;return window.postponedValidation=function(){j.validateInputOnBlur(b,g,h,i),window.postponedValidation=!1},setTimeout(function(){window.postponedValidation&&window.postponedValidation()},k),this}b=a.extend({},a.formUtils.LANG,b||{}),e(this,g);var l=this,m=l.closest("form"),n=(l.attr(g.validationRuleAttribute),a.formUtils.validateInput(l,b,g,m,i));return n.isValid?n.shouldChangeDisplay&&(l.addClass("valid"),c(l).addClass(g.inputParentClassOnSuccess)):n.isValid||(d(l,g),f(l,n.errorMsg,g,g.errorMessagePosition),h&&l.unbind("keyup.validation").bind("keyup.validation",function(){a(this).validateInputOnBlur(b,g,!1,"keyup")})),this},a.fn.valAttr=function(a,b){return void 0===b?this.attr("data-validation-"+a):b===!1||null===b?this.removeAttr("data-validation-"+a):(a.length>0&&(a="-"+a),this.attr("data-validation"+a,b))},a.fn.isValid=function(h,i,j){if(a.formUtils.isLoadingModules){var k=this;return setTimeout(function(){k.isValid(h,i,j)},200),null}i=a.extend({},a.formUtils.defaultConfig(),i||{}),h=a.extend({},a.formUtils.LANG,h||{}),j=j!==!1,a.formUtils.errorDisplayPreventedWhenHalted&&(delete a.formUtils.errorDisplayPreventedWhenHalted,j=!1),a.formUtils.isValidatingEntireForm=!0,a.formUtils.haltValidation=!1;var l=function(b,c){a.inArray(b,n)<0&&n.push(b),o.push(c),c.attr("current-error",b),j&&d(c,i)},m=[],n=[],o=[],p=this,q=function(b,c){return"submit"===c||"button"===c||"reset"==c?!0:a.inArray(b,i.ignore||[])>-1};if(j&&(p.find("."+i.errorMessageClass+".alert").remove(),e(p.find("."+i.errorElementClass+",.valid"),i)),p.find("input,textarea,select").filter(':not([type="submit"],[type="button"])').each(function(){var b=a(this),d=b.attr("type"),e="radio"==d||"checkbox"==d,f=b.attr("name");if(!q(f,d)&&(!e||a.inArray(f,m)<0)){e&&m.push(f);var g=a.formUtils.validateInput(b,h,i,p,"submit");g.shouldChangeDisplay&&(g.isValid?g.isValid&&(b.valAttr("current-error",!1).addClass("valid"),c(b).addClass(i.inputParentClassOnSuccess)):l(g.errorMsg,b))}}),"function"==typeof i.onValidate){var r=i.onValidate(p);a.isArray(r)?a.each(r,function(a,b){l(b.message,b.element)}):r&&r.element&&r.message&&l(r.message,r.element)}return a.formUtils.isValidatingEntireForm=!1,!a.formUtils.haltValidation&&o.length>0?(j&&("top"===i.errorMessagePosition?g(p,h.errorTitle,n,i):"custom"===i.errorMessagePosition?"function"==typeof i.errorMessageCustom&&i.errorMessageCustom(p,h.errorTitle,n,i):a.each(o,function(a,b){f(b,b.attr("current-error"),i,i.errorMessagePosition)}),i.scrollToTopOnError&&b.scrollTop(p.offset().top-20)),!1):(!j&&a.formUtils.haltValidation&&(a.formUtils.errorDisplayPreventedWhenHalted=!0),!a.formUtils.haltValidation)},a.fn.validateForm=function(a,b){return window.console&&"function"==typeof window.console.warn&&window.console.warn("Use of deprecated function $.validateForm, use $.isValid instead"),this.isValid(a,b,!0)},a.fn.restrictLength=function(b){return new a.formUtils.lengthRestriction(this,b),this},a.fn.addSuggestions=function(b){var c=!1;return this.find("input").each(function(){var d=a(this);c=a.split(d.attr("data-suggestions")),c.length>0&&!d.hasClass("has-suggestions")&&(a.formUtils.suggest(d,c,b),d.addClass("has-suggestions"))}),this},a.split=function(b,c){if("function"!=typeof c){if(!b)return[];var d=[];return a.each(b.split(c?c:/[,|\-\s]\s*/g),function(b,c){c=a.trim(c),c.length&&d.push(c)}),d}b&&a.each(b.split(/[,|\-\s]\s*/g),function(b,d){return d=a.trim(d),d.length?c(d,b):void 0})},a.validate=function(c){var d=a.extend(a.formUtils.defaultConfig(),{form:"form",validateOnEvent:!1,validateOnBlur:!0,validateCheckboxRadioOnClick:!0,showHelpOnFocus:!0,addSuggestions:!0,modules:"",onModulesLoaded:null,language:!1,onSuccess:!1,onError:!1,onElementValidate:!1});if(c=a.extend(d,c||{}),c.lang&&"en"!=c.lang){var f="lang/"+c.lang+".js";c.modules+=c.modules.length?","+f:f}a(c.form).each(function(d,f){f.validationConfig=c;var g=a(f);b.trigger("formValidationSetup",[g,c]),g.find(".has-help-txt").unbind("focus.validation").unbind("blur.validation"),g.removeClass("has-validation-callback").unbind("submit.validation").unbind("reset.validation").find("input[data-validation],textarea[data-validation]").unbind("blur.validation"),g.bind("submit.validation",function(){var b=a(this);if(a.formUtils.haltValidation)return!1;if(a.formUtils.isLoadingModules)return setTimeout(function(){b.trigger("submit.validation")},200),!1;var d=b.isValid(c.language,c);if(a.formUtils.haltValidation)return!1;if(!d||"function"!=typeof c.onSuccess)return d||"function"!=typeof c.onError?d:(c.onError(b),!1);var e=c.onSuccess(b);return e===!1?!1:void 0}).bind("reset.validation",function(){a(this).find("."+c.errorMessageClass+".alert").remove(),e(a(this).find("."+c.errorElementClass+",.valid"),c)}).addClass("has-validation-callback"),c.showHelpOnFocus&&g.showHelpOnFocus(),c.addSuggestions&&g.addSuggestions(),c.validateOnBlur&&(g.validateOnBlur(c.language,c),g.bind("html5ValidationAttrsFound",function(){g.validateOnBlur(c.language,c)})),c.validateOnEvent&&g.validateOnEvent(c.language,c)}),""!=c.modules&&a.formUtils.loadModules(c.modules,!1,function(){"function"==typeof c.onModulesLoaded&&c.onModulesLoaded(),b.trigger("validatorsLoaded",["string"==typeof c.form?a(c.form):c.form,c])})},a.formUtils={defaultConfig:function(){return{ignore:[],errorElementClass:"error",borderColorOnError:"#b94a48",errorMessageClass:"form-error",validationRuleAttribute:"data-validation",validationErrorMsgAttribute:"data-validation-error-msg",errorMessagePosition:"element",errorMessageTemplate:{container:'<div class="{errorMessageClass} alert alert-danger">{messages}</div>',messages:"<strong>{errorTitle}</strong><ul>{fields}</ul>",field:"<li>{msg}</li>"},errorMessageCustom:g,scrollToTopOnError:!0,dateFormat:"yyyy-mm-dd",addValidClassOnAll:!1,decimalSeparator:".",inputParentClassOnError:"has-error",inputParentClassOnSuccess:"has-success",validateHiddenInputs:!1}},validators:{},_events:{load:[],valid:[],invalid:[]},haltValidation:!1,isValidatingEntireForm:!1,addValidator:function(a){var b=0===a.name.indexOf("validate_")?a.name:"validate_"+a.name;void 0===a.validateOnKeyUp&&(a.validateOnKeyUp=!0),this.validators[b]=a},isLoadingModules:!1,loadedModules:{},loadModules:function(c,d,e){if(void 0===e&&(e=!0),a.formUtils.isLoadingModules)return void setTimeout(function(){a.formUtils.loadModules(c,d,e)});var f=!1,g=function(c,d){var g=a.split(c),h=g.length,i=function(){h--,0==h&&(a.formUtils.isLoadingModules=!1,e&&f&&("function"==typeof e?e():b.trigger("validatorsLoaded")))};h>0&&(a.formUtils.isLoadingModules=!0);var j="?_="+(new Date).getTime(),k=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];a.each(g,function(b,c){if(c=a.trim(c),0==c.length)i();else{var e=d+c+(".js"==c.slice(-3)?"":".js"),g=document.createElement("SCRIPT");e in a.formUtils.loadedModules?i():(a.formUtils.loadedModules[e]=1,f=!0,g.type="text/javascript",g.onload=i,g.src=e+(".dev.js"==e.slice(-7)?j:""),g.onerror=function(){"console"in window&&window.console.log&&window.console.log("Unable to load form validation module "+e)},g.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(i(),this.onload=null,this.onreadystatechange=null)},k.appendChild(g))}})};if(d)g(c,d);else{var h=function(){var b=!1;return a('script[src*="form-validator"]').each(function(){return b=this.src.substr(0,this.src.lastIndexOf("/"))+"/","/"==b&&(b=""),!1}),b!==!1?(g(c,b),!0):!1};h()||a(h)}},validateInput:function(b,c,d,e,f){b.trigger("beforeValidation"),d=d||a.formUtils.defaultConfig(),c=c||a.formUtils.LANG;var g=b.val()||"",h={isValid:!0,shouldChangeDisplay:!0,errorMsg:""},i=b.valAttr("optional"),j=!1,k=!1,l=!1,m=b.valAttr("if-checked");if(b.attr("disabled")||!b.is(":visible")&&!d.validateHiddenInputs)return h.shouldChangeDisplay=!1,h;null!=m&&(j=!0,l=e.find('input[name="'+m+'"]'),l.prop("checked")&&(k=!0));var n=!g&&"number"==b[0].type;if(!g&&"true"===i&&!n||j&&!k)return h.shouldChangeDisplay=d.addValidClassOnAll,h;var o=b.attr(d.validationRuleAttribute),p=!0;return o?(a.split(o,function(h){0!==h.indexOf("validate_")&&(h="validate_"+h);var i=a.formUtils.validators[h];if(!i||"function"!=typeof i.validatorFunction)throw new Error('Using undefined validator "'+h+'"');"validate_checkbox_group"==h&&(b=e.find("[name='"+b.attr("name")+"']:eq(0)"));var j=null;return("keyup"!=f||i.validateOnKeyUp)&&(j=i.validatorFunction(g,b,d,c,e)),j?void 0:(p=null,null!==j&&(p=b.attr(d.validationErrorMsgAttribute+"-"+h.replace("validate_","")),p||(p=b.attr(d.validationErrorMsgAttribute),p||(p=c[i.errorMessageKey],p||(p=i.errorMessage)))),!1)}," "),"string"==typeof p?(b.trigger("validation",!1),h.errorMsg=p,h.isValid=!1,h.shouldChangeDisplay=!0):null===p?h.shouldChangeDisplay=d.addValidClassOnAll:(b.trigger("validation",!0),h.shouldChangeDisplay=!0),"function"==typeof d.onElementValidate&&null!==p&&d.onElementValidate(h.isValid,b,e,p),h):(h.shouldChangeDisplay=d.addValidClassOnAll,h)},parseDate:function(b,c){var d,e,f,g,h=c.replace(/[a-zA-Z]/gi,"").substring(0,1),i="^",j=c.split(h||null);if(a.each(j,function(a,b){i+=(a>0?"\\"+h:"")+"(\\d{"+b.length+"})"}),i+="$",d=b.match(new RegExp(i)),null===d)return!1;var k=function(b,c,d){for(var e=0;e<c.length;e++)if(c[e].substring(0,1)===b)return a.formUtils.parseDateInt(d[e+1]);return-1};return f=k("m",j,d),e=k("d",j,d),g=k("y",j,d),2===f&&e>28&&(g%4!==0||g%100===0&&g%400!==0)||2===f&&e>29&&(g%4===0||g%100!==0&&g%400===0)||f>12||0===f?!1:this.isShortMonth(f)&&e>30||!this.isShortMonth(f)&&e>31||0===e?!1:[g,f,e]},parseDateInt:function(a){return 0===a.indexOf("0")&&(a=a.replace("0","")),parseInt(a,10)},isShortMonth:function(a){return a%2===0&&7>a||a%2!==0&&a>7},lengthRestriction:function(b,c){var d=parseInt(c.text(),10),e=0,f=function(){var a=b.val().length;if(a>d){var f=b.scrollTop();b.val(b.val().substring(0,d)),b.scrollTop(f)}e=d-a,0>e&&(e=0),c.text(e)};a(b).bind("keydown keyup keypress focus blur",f).bind("cut paste",function(){setTimeout(f,100)}),a(document).bind("ready",f)},numericRangeCheck:function(b,c){var d=a.split(c),e=parseInt(c.substr(3),10);return 1==d.length&&-1==c.indexOf("min")&&-1==c.indexOf("max")&&(d=[c,c]),2==d.length&&(b<parseInt(d[0],10)||b>parseInt(d[1],10))?["out",d[0],d[1]]:0===c.indexOf("min")&&e>b?["min",e]:0===c.indexOf("max")&&b>e?["max",e]:["ok"]},_numSuggestionElements:0,_selectedSuggestion:null,_previousTypedVal:null,suggest:function(c,d,e){var f={css:{maxHeight:"150px",background:"#FFF",lineHeight:"150%",textDecoration:"underline",overflowX:"hidden",overflowY:"auto",border:"#CCC solid 1px",borderTop:"none",cursor:"pointer"},activeSuggestionCSS:{background:"#E9E9E9"}},g=function(a,b){var c=b.offset();a.css({width:b.outerWidth(),left:c.left+"px",top:c.top+b.outerHeight()+"px"})};e&&a.extend(f,e),f.css.position="absolute",f.css["z-index"]=9999,c.attr("autocomplete","off"),0===this._numSuggestionElements&&b.bind("resize",function(){a(".jquery-form-suggestions").each(function(){var b=a(this),c=b.attr("data-suggest-container");g(b,a(".suggestions-"+c).eq(0))})}),this._numSuggestionElements++;var h=function(b){var c=b.valAttr("suggestion-nr");a.formUtils._selectedSuggestion=null,a.formUtils._previousTypedVal=null,a(".jquery-form-suggestion-"+c).fadeOut("fast")};return c.data("suggestions",d).valAttr("suggestion-nr",this._numSuggestionElements).unbind("focus.suggest").bind("focus.suggest",function(){a(this).trigger("keyup"),a.formUtils._selectedSuggestion=null}).unbind("keyup.suggest").bind("keyup.suggest",function(){var b=a(this),d=[],e=a.trim(b.val()).toLocaleLowerCase();if(e!=a.formUtils._previousTypedVal){a.formUtils._previousTypedVal=e;var i=!1,j=b.valAttr("suggestion-nr"),k=a(".jquery-form-suggestion-"+j);if(k.scrollTop(0),""!=e){var l=e.length>2;a.each(b.data("suggestions"),function(a,b){var c=b.toLocaleLowerCase();return c==e?(d.push("<strong>"+b+"</strong>"),i=!0,!1):void((0===c.indexOf(e)||l&&c.indexOf(e)>-1)&&d.push(b.replace(new RegExp(e,"gi"),"<strong>$&</strong>")))})}i||0==d.length&&k.length>0?k.hide():d.length>0&&0==k.length?(k=a("<div></div>").css(f.css).appendTo("body"),c.addClass("suggestions-"+j),k.attr("data-suggest-container",j).addClass("jquery-form-suggestions").addClass("jquery-form-suggestion-"+j)):d.length>0&&!k.is(":visible")&&k.show(),d.length>0&&e.length!=d[0].length&&(g(k,b),k.html(""),a.each(d,function(c,d){a("<div></div>").append(d).css({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"5px"}).addClass("form-suggest-element").appendTo(k).click(function(){b.focus(),b.val(a(this).text()),h(b)})}))}}).unbind("keydown.validation").bind("keydown.validation",function(b){var c,d,e=b.keyCode?b.keyCode:b.which,g=a(this);if(13==e&&null!==a.formUtils._selectedSuggestion){if(c=g.valAttr("suggestion-nr"),d=a(".jquery-form-suggestion-"+c),d.length>0){var i=d.find("div").eq(a.formUtils._selectedSuggestion).text();g.val(i),h(g),b.preventDefault()}}else{c=g.valAttr("suggestion-nr"),d=a(".jquery-form-suggestion-"+c);var j=d.children();if(j.length>0&&a.inArray(e,[38,40])>-1){38==e?(null===a.formUtils._selectedSuggestion?a.formUtils._selectedSuggestion=j.length-1:a.formUtils._selectedSuggestion--,a.formUtils._selectedSuggestion<0&&(a.formUtils._selectedSuggestion=j.length-1)):40==e&&(null===a.formUtils._selectedSuggestion?a.formUtils._selectedSuggestion=0:a.formUtils._selectedSuggestion++,a.formUtils._selectedSuggestion>j.length-1&&(a.formUtils._selectedSuggestion=0));var k=d.innerHeight(),l=d.scrollTop(),m=d.children().eq(0).outerHeight(),n=m*a.formUtils._selectedSuggestion;return(l>n||n>l+k)&&d.scrollTop(n),j.removeClass("active-suggestion").css("background","none").eq(a.formUtils._selectedSuggestion).addClass("active-suggestion").css(f.activeSuggestionCSS),b.preventDefault(),!1}}}).unbind("blur.suggest").bind("blur.suggest",function(){h(a(this))}),c},LANG:{errorTitle:"Form submission failed!",requiredFields:"You have not answered all required fields",badTime:"You have not given a correct time",badEmail:"You have not given a correct e-mail address",badTelephone:"You have not given a correct phone number",badSecurityAnswer:"You have not given a correct answer to the security question",badDate:"You have not given a correct date",lengthBadStart:"The input value must be between ",lengthBadEnd:" characters",lengthTooLongStart:"The input value is longer than ",lengthTooShortStart:"The input value is shorter than ",notConfirmed:"Input values could not be confirmed",badDomain:"Incorrect domain value",badUrl:"The input value is not a correct URL",badCustomVal:"The input value is incorrect",andSpaces:" and spaces ",badInt:"The input value was not a correct number",badSecurityNumber:"Your social security number was incorrect",badUKVatAnswer:"Incorrect UK VAT Number",badStrength:"The password isn't strong enough",badNumberOfSelectedOptionsStart:"You have to choose at least ",badNumberOfSelectedOptionsEnd:" answers",badAlphaNumeric:"The input value can only contain alphanumeric characters ",badAlphaNumericExtra:" and ",wrongFileSize:"The file you are trying to upload is too large (max %s)",wrongFileType:"Only files of type %s is allowed",groupCheckedRangeStart:"Please choose between ",groupCheckedTooFewStart:"Please choose at least ",groupCheckedTooManyStart:"Please choose a maximum of ",groupCheckedEnd:" item(s)",badCreditCard:"The credit card number is not correct",badCVV:"The CVV number was not correct",wrongFileDim:"Incorrect image dimensions,",imageTooTall:"the image can not be taller than",imageTooWide:"the image can not be wider than",imageTooSmall:"the image was too small",min:"min",max:"max",imageRatioNotAccepted:"Image ratio is not be accepted",badBrazilTelephoneAnswer:"The phone number entered is invalid",badBrazilCEPAnswer:"The CEP entered is invalid",badBrazilCPFAnswer:"The CPF entered is invalid"}},a.formUtils.addValidator({name:"email",validatorFunction:function(b){var c=b.toLowerCase().split("@"),d=c[0],e=c[1];if(d&&e){if(0==d.indexOf('"')){var f=d.length;if(d=d.replace(/\"/g,""),d.length!=f-2)return!1}return a.formUtils.validators.validate_domain.validatorFunction(c[1])&&0!=d.indexOf(".")&&"."!=d.substring(d.length-1,d.length)&&-1==d.indexOf("..")&&!/[^\w\+\.\-\#\-\_\~\!\$\&\'\(\)\*\+\,\;\=\:]/.test(d)}return!1},errorMessage:"",errorMessageKey:"badEmail"}),a.formUtils.addValidator({name:"domain",validatorFunction:function(a){return a.length>0&&a.length<=253&&!/[^a-zA-Z0-9]/.test(a.slice(-2))&&!/[^a-zA-Z0-9]/.test(a.substr(0,1))&&!/[^a-zA-Z0-9\.\-]/.test(a)&&1==a.split("..").length&&a.split(".").length>1},errorMessage:"",errorMessageKey:"badDomain"}),a.formUtils.addValidator({name:"required",validatorFunction:function(b,c,d,e,f){switch(c.attr("type")){case"checkbox":return c.is(":checked");case"radio":return f.find('input[name="'+c.attr("name")+'"]').filter(":checked").length>0;default:return""!==a.trim(b)}},errorMessage:"",errorMessageKey:"requiredFields"}),a.formUtils.addValidator({name:"length",validatorFunction:function(b,c,d,e){var f=c.valAttr("length"),g=c.attr("type");if(void 0==f)return alert('Please add attribute "data-validation-length" to '+c[0].nodeName+" named "+c.attr("name")),!0;var h,i="file"==g&&void 0!==c.get(0).files?c.get(0).files.length:b.length,j=a.formUtils.numericRangeCheck(i,f);switch(j[0]){case"out":this.errorMessage=e.lengthBadStart+f+e.lengthBadEnd,h=!1;break;case"min":this.errorMessage=e.lengthTooShortStart+j[1]+e.lengthBadEnd,h=!1;break;case"max":this.errorMessage=e.lengthTooLongStart+j[1]+e.lengthBadEnd,h=!1;break;default:h=!0}return h},errorMessage:"",errorMessageKey:""}),a.formUtils.addValidator({name:"url",validatorFunction:function(b){var c=/^(https?|ftp):\/\/((((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|\[|\]|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;if(c.test(b)){var d=b.split("://")[1],e=d.indexOf("/");return e>-1&&(d=d.substr(0,e)),a.formUtils.validators.validate_domain.validatorFunction(d)}return!1},errorMessage:"",errorMessageKey:"badUrl"}),a.formUtils.addValidator({name:"number",validatorFunction:function(a,b,c){if(""!==a){var d,e,f=b.valAttr("allowing")||"",g=b.valAttr("decimal-separator")||c.decimalSeparator,h=!1,i=b.valAttr("step")||"",j=!1;if(-1==f.indexOf("number")&&(f+=",number"),-1==f.indexOf("negative")&&0===a.indexOf("-"))return!1;if(f.indexOf("range")>-1&&(d=parseFloat(f.substring(f.indexOf("[")+1,f.indexOf(";"))),e=parseFloat(f.substring(f.indexOf(";")+1,f.indexOf("]"))),h=!0),""!=i&&(j=!0),","==g){if(a.indexOf(".")>-1)return!1;a=a.replace(",",".")}if(f.indexOf("number")>-1&&""===a.replace(/[0-9-]/g,"")&&(!h||a>=d&&e>=a)&&(!j||a%i==0))return!0;if(f.indexOf("float")>-1&&null!==a.match(new RegExp("^([0-9-]+)\\.([0-9]+)$"))&&(!h||a>=d&&e>=a)&&(!j||a%i==0))return!0}return!1},errorMessage:"",errorMessageKey:"badInt"}),a.formUtils.addValidator({name:"alphanumeric",validatorFunction:function(b,c,d,e){var f="^([a-zA-Z0-9",g="]+)$",h=c.valAttr("allowing"),i="";if(h){i=f+h+g;var j=h.replace(/\\/g,"");j.indexOf(" ")>-1&&(j=j.replace(" ",""),j+=e.andSpaces||a.formUtils.LANG.andSpaces),this.errorMessage=e.badAlphaNumeric+e.badAlphaNumericExtra+j}else i=f+g,this.errorMessage=e.badAlphaNumeric;return new RegExp(i).test(b)},errorMessage:"",errorMessageKey:""}),a.formUtils.addValidator({name:"custom",validatorFunction:function(a,b){var c=new RegExp(b.valAttr("regexp"));return c.test(a)},errorMessage:"",errorMessageKey:"badCustomVal"}),a.formUtils.addValidator({name:"date",validatorFunction:function(b,c,d){var e=c.valAttr("format")||d.dateFormat||"yyyy-mm-dd";return a.formUtils.parseDate(b,e)!==!1},errorMessage:"",errorMessageKey:"badDate"}),a.formUtils.addValidator({name:"checkbox_group",validatorFunction:function(b,c,d,e,f){var g=!0,h=c.attr("name"),i=a("input[type=checkbox][name^='"+h+"']",f),j=i.filter(":checked").length,k=c.valAttr("qty");if(void 0==k){var l=c.get(0).nodeName;alert('Attribute "data-validation-qty" is missing from '+l+" named "+c.attr("name"))}var m=a.formUtils.numericRangeCheck(j,k);switch(m[0]){case"out":this.errorMessage=e.groupCheckedRangeStart+k+e.groupCheckedEnd,g=!1;break;case"min":this.errorMessage=e.groupCheckedTooFewStart+m[1]+e.groupCheckedEnd,g=!1;break;case"max":this.errorMessage=e.groupCheckedTooManyStart+m[1]+e.groupCheckedEnd,g=!1;break;default:g=!0}if(!g){var n=function(){i.unbind("click",n),i.filter("*[data-validation]").validateInputOnBlur(e,d,!1,"blur")};i.bind("click",n)}return g}})}(jQuery);
 
 
 
 
 
 
 
 
assets/js/parsley.js CHANGED
File without changes
assets/js/parsley.min.js DELETED
@@ -1,2 +0,0 @@
1
- !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function t(e,t){return e.parsleyAdaptedCallback||(e.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this),e.apply(t||$,i)}),e.parsleyAdaptedCallback}function i(e){return 0===e.lastIndexOf(x,0)?e.substr(x.length):e}"undefined"==typeof e&&"undefined"!=typeof window.jQuery&&(e=window.jQuery);var n=1,r={},s={attr:function(e,t,i){var n,r,s,a=new RegExp("^"+t,"i");if("undefined"==typeof i)i={};else for(n in i)i.hasOwnProperty(n)&&delete i[n];if("undefined"==typeof e||"undefined"==typeof e[0])return i;for(s=e[0].attributes,n=s.length;n--;)r=s[n],r&&r.specified&&a.test(r.name)&&(i[this.camelize(r.name.slice(t.length))]=this.deserializeValue(r.value));return i},checkAttr:function(e,t,i){return e.is("["+t+i+"]")},setAttr:function(e,t,i,n){e[0].setAttribute(this.dasherize(t+i),String(n))},generateID:function(){return""+n++},deserializeValue:function(t){var i;try{return t?"true"==t||("false"==t?!1:"null"==t?null:isNaN(i=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:i):t}catch(n){return t}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},dasherize:function(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){window.console&&"function"==typeof window.console.warn&&window.console.warn.apply(window.console,arguments)},warnOnce:function(e){r[e]||(r[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){r={}},trimString:function(e){return e.replace(/^\s+|\s+$/g,"")},objectCreate:Object.create||function(){var e=function(){};return function(t){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof t)throw TypeError("Argument must be an object");e.prototype=t;var i=new e;return e.prototype=null,i}}()},a={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},o=function(){};o.prototype={asyncSupport:!0,actualizeOptions:function(){return s.attr(this.$element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){this.domOptions=s.objectCreate(this.parent.options),this.options=s.objectCreate(this.domOptions);for(var t in e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},_listeners:null,on:function(e,t){this._listeners=this._listeners||{};var i=this._listeners[e]=this._listeners[e]||[];return i.push(t),this},subscribe:function(t,i){e.listenTo(this,t.toLowerCase(),i)},off:function(e,t){var i=this._listeners&&this._listeners[e];if(i)if(t)for(var n=i.length;n--;)i[n]===t&&i.splice(n,1);else delete this._listeners[e];return this},unsubscribe:function(t,i){e.unsubscribeTo(this,t.toLowerCase())},trigger:function(e,t,i){t=t||this;var n,r=this._listeners&&this._listeners[e];if(r)for(var s=r.length;s--;)if(n=r[s].call(t,t,i),n===!1)return n;return this.parent?this.parent.trigger(e,t,i):!0},reset:function(){if("ParsleyForm"!==this.__class__)return this._trigger("reset");for(var e=0;e<this.fields.length;e++)this.fields[e]._trigger("reset");this._trigger("reset")},destroy:function(){if("ParsleyForm"!==this.__class__)return this.$element.removeData("Parsley"),this.$element.removeData("ParsleyFieldMultiple"),void this._trigger("destroy");for(var e=0;e<this.fields.length;e++)this.fields[e].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},asyncIsValid:function(){return s.warnOnce("asyncIsValid is deprecated; please use whenIsValid instead"),this.whenValid.apply(this,arguments)},_findRelatedMultiple:function(){return this.parent.$element.find("["+this.options.namespace+'multiple="'+this.options.multiple+'"]')}};var l={string:function(e){return e},integer:function(e){if(isNaN(e))throw'Requirement is not an integer: "'+e+'"';return parseInt(e,10)},number:function(e){if(isNaN(e))throw'Requirement is not a number: "'+e+'"';return parseFloat(e)},reference:function(t){var i=e(t);if(0===i.length)throw'No such reference: "'+t+'"';return i},"boolean":function(e){return"false"!==e},object:function(e){return s.deserializeValue(e)},regexp:function(e){var t="";return/^\/.*\/(?:[gimy]*)$/.test(e)?(t=e.replace(/.*\/([gimy]*)$/,"$1"),e=e.replace(new RegExp("^/(.*?)/"+t+"$"),"$1")):e="^"+e+"$",new RegExp(e,t)}},u=function(e,t){var i=e.match(/^\s*\[(.*)\]\s*$/);if(!i)throw'Requirement is not an array: "'+e+'"';var n=i[1].split(",").map(s.trimString);if(n.length!==t)throw"Requirement has "+n.length+" values when "+t+" are needed";return n},d=function(e,t){var i=l[e||"string"];if(!i)throw'Unknown requirement specification: "'+e+'"';return i(t)},h=function(e,t,i){var n=null,r={};for(var s in e)if(s){var a=i(s);"string"==typeof a&&(a=d(e[s],a)),r[s]=a}else n=d(e[s],t);return[n,r]},p=function(t){e.extend(!0,this,t)};p.prototype={validate:function(t,i){if(this.fn)return arguments.length>3&&(i=[].slice.call(arguments,1,-1)),this.fn.call(this,t,i);if(e.isArray(t)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}if(this.validateNumber)return isNaN(t)?!1:(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(t,i){if("string"!=typeof t)return e.isArray(t)?t:[t];var n=this.requirementType;if(e.isArray(n)){for(var r=u(t,n.length),s=0;s<r.length;s++)r[s]=d(n[s],r[s]);return r}return e.isPlainObject(n)?h(n,t,i):[d(n,t)]},requirementType:"string",priority:2};var f=function(e,t){this.__class__="ParsleyValidatorRegistry",this.locale="en",this.init(e||{},t||{})},c={email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,number:/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$","i")};c.range=c.number,f.prototype={init:function(t,i){this.catalog=i,this.validators=e.extend({},this.validators);for(var n in t)this.addValidator(n,t[n].fn,t[n].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if("undefined"==typeof this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,t,i){return"object"==typeof t&&(this.catalog[e]=t),!0===i?this.setLocale(e):this},addMessage:function(e,t,i){return"undefined"==typeof this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t]=i,this},addValidator:function(e,t,i){if(this.validators[e])s.warn('Validator "'+e+'" is already defined.');else if(a.hasOwnProperty(e))return void s.warn('"'+e+'" is a restricted keyword and is not a valid validator name.');return this._setValidator.apply(this,arguments)},updateValidator:function(e,t,i){return this.validators[e]?this._setValidator(this,arguments):(s.warn('Validator "'+e+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||s.warn('Validator "'+e+'" is not defined.'),delete this.validators[e],this},_setValidator:function(e,t,i){"object"!=typeof t&&(t={fn:t,priority:i}),t.validate||(t=new p(t)),this.validators[e]=t;for(var n in t.messages||{})this.addMessage(n,e,t.messages[n]);return this},getErrorMessage:function(e){var t;if("type"===e.name){var i=this.catalog[this.locale][e.name]||{};t=i[e.requirements]}else t=this.formatMessage(this.catalog[this.locale][e.name],e.requirements);return t||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(e,t){if("object"==typeof t){for(var i in t)e=this.formatMessage(e,t[i]);return e}return"string"==typeof e?e.replace(new RegExp("%s","i"),t):""},validators:{notblank:{validateString:function(e){return/\S/.test(e)},priority:2},required:{validateMultiple:function(e){return e.length>0},validateString:function(e){return/\S/.test(e)},priority:512},type:{validateString:function(e,t){var i=c[t];if(!i)throw new Error("validator type `"+t+"` is not supported");return i.test(e)},priority:256},pattern:{validateString:function(e,t){return t.test(e)},requirementType:"regexp",priority:64},minlength:{validateString:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(e,t){return e.length<=t},requirementType:"integer",priority:30},length:{validateString:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(e,t){return e.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},min:{validateNumber:function(e,t){return e>=t},requirementType:"number",priority:30},max:{validateNumber:function(e,t){return t>=e},requirementType:"number",priority:30},range:{validateNumber:function(e,t,i){return e>=t&&i>=e},requirementType:["number","number"],priority:30},equalto:{validateString:function(t,i){var n=e(i);return n.length?t===n.val():t===i},priority:256}}};var m=function(e){this.__class__="ParsleyUI"};m.prototype={listen:function(){var e=this;return window.Parsley.on("form:init",function(){e.setupForm(this)}).on("field:init",function(){e.setupField(this)}).on("field:validated",function(){e.reflow(this)}).on("form:validated",function(){e.focus(this)}).on("field:reset",function(){e.reset(this)}).on("form:destroy",function(){e.destroy(this)}).on("field:destroy",function(){e.destroy(this)}),this},reflow:function(e){if("undefined"!=typeof e._ui&&!1!==e._ui.active){var t=this._diff(e.validationResult,e._ui.lastValidationResult);e._ui.lastValidationResult=e.validationResult,e._ui.validatedOnce=!0,this.manageStatusClass(e),this.manageErrorsMessages(e,t),this.actualizeTriggers(e),(t.kept.length||t.added.length)&&!0!==e._ui.failedOnce&&this.manageFailingFieldTrigger(e)}},getErrorsMessages:function(e){if(!0===e.validationResult)return[];for(var t=[],i=0;i<e.validationResult.length;i++)t.push(e.validationResult[i].errorMessage||this._getErrorMessage(e,e.validationResult[i].assert));return t},manageStatusClass:function(e){e.hasConstraints()&&e.needsValidation()&&!0===e.validationResult?this._successClass(e):e.validationResult.length>0?this._errorClass(e):this._resetClass(e)},manageErrorsMessages:function(t,i){if("undefined"==typeof t.options.errorsMessagesDisabled){if("undefined"!=typeof t.options.errorMessage)return i.added.length||i.kept.length?(this._insertErrorWrapper(t),0===t._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&t._ui.$errorsWrapper.append(e(t.options.errorTemplate).addClass("parsley-custom-error-message")),t._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(t.options.errorMessage)):t._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove();for(var n=0;n<i.removed.length;n++)this.removeError(t,i.removed[n].assert.name,!0);for(n=0;n<i.added.length;n++)this.addError(t,i.added[n].assert.name,i.added[n].errorMessage,i.added[n].assert,!0);for(n=0;n<i.kept.length;n++)this.updateError(t,i.kept[n].assert.name,i.kept[n].errorMessage,i.kept[n].assert,!0)}},addError:function(t,i,n,r,s){this._insertErrorWrapper(t),t._ui.$errorsWrapper.addClass("filled").append(e(t.options.errorTemplate).addClass("parsley-"+i).html(n||this._getErrorMessage(t,r))),!0!==s&&this._errorClass(t)},updateError:function(e,t,i,n,r){e._ui.$errorsWrapper.addClass("filled").find(".parsley-"+t).html(i||this._getErrorMessage(e,n)),!0!==r&&this._errorClass(e)},removeError:function(e,t,i){e._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+t).remove(),!0!==i&&this.manageStatusClass(e)},focus:function(e){if(e._focusedField=null,!0===e.validationResult||"none"===e.options.focus)return null;for(var t=0;t<e.fields.length;t++){var i=e.fields[t];if(!0!==i.validationResult&&i.validationResult.length>0&&"undefined"==typeof i.options.noFocus&&(e._focusedField=i.$element,"first"===e.options.focus))break}return null===e._focusedField?null:e._focusedField.focus()},_getErrorMessage:function(e,t){var i=t.name+"Message";return"undefined"!=typeof e.options[i]?window.Parsley.formatMessage(e.options[i],t.requirements):window.Parsley.getErrorMessage(t)},_diff:function(e,t,i){for(var n=[],r=[],s=0;s<e.length;s++){for(var a=!1,o=0;o<t.length;o++)if(e[s].assert.name===t[o].assert.name){a=!0;break}a?r.push(e[s]):n.push(e[s])}return{kept:r,added:n,removed:i?[]:this._diff(t,e,!0).added}},setupForm:function(t){t.$element.on("submit.Parsley",!1,e.proxy(t.onSubmitValidate,t)),t.$element.on("click.Parsley",'input[type="submit"], button[type="submit"]',e.proxy(t.onSubmitButton,t)),!1!==t.options.uiEnabled&&t.$element.attr("novalidate","")},setupField:function(t){var i={active:!1};!1!==t.options.uiEnabled&&(i.active=!0,t.$element.attr(t.options.namespace+"id",t.__id__),i.$errorClassHandler=this._manageClassHandler(t),i.errorsWrapperId="parsley-id-"+(t.options.multiple?"multiple-"+t.options.multiple:t.__id__),i.$errorsWrapper=e(t.options.errorsWrapper).attr("id",i.errorsWrapperId),i.lastValidationResult=[],i.validatedOnce=!1,i.validationInformationVisible=!1,t._ui=i,this.actualizeTriggers(t))},_manageClassHandler:function(t){if("string"==typeof t.options.classHandler&&e(t.options.classHandler).length)return e(t.options.classHandler);var i=t.options.classHandler(t);return"undefined"!=typeof i&&i.length?i:!t.options.multiple||t.$element.is("select")?t.$element:t.$element.parent()},_insertErrorWrapper:function(t){var i;if(0!==t._ui.$errorsWrapper.parent().length)return t._ui.$errorsWrapper.parent();if("string"==typeof t.options.errorsContainer){if(e(t.options.errorsContainer).length)return e(t.options.errorsContainer).append(t._ui.$errorsWrapper);s.warn("The errors container `"+t.options.errorsContainer+"` does not exist in DOM")}else"function"==typeof t.options.errorsContainer&&(i=t.options.errorsContainer(t));if("undefined"!=typeof i&&i.length)return i.append(t._ui.$errorsWrapper);var n=t.$element;return t.options.multiple&&(n=n.parent()),n.after(t._ui.$errorsWrapper)},actualizeTriggers:function(t){var i=t.$element;if(t.options.multiple&&(i=e("["+t.options.namespace+'multiple="'+t.options.multiple+'"]')),i.off(".Parsley"),!1!==t.options.trigger){var n=t.options.trigger.replace(/^\s+/g,"").replace(/\s+$/g,"");""!==n&&i.on(n.split(" ").join(".Parsley ")+".Parsley",e.proxy("function"==typeof t.eventValidate?t.eventValidate:this.eventValidate,t))}},eventValidate:function(e){new RegExp("key").test(e.type)&&!this._ui.validationInformationVisible&&this.getValue().length<=this.options.validationThreshold||(this._ui.validatedOnce=!0,this.validate())},manageFailingFieldTrigger:function(t){return t._ui.failedOnce=!0,t.options.multiple&&e("["+t.options.namespace+'multiple="'+t.options.multiple+'"]').each(function(){return new RegExp("change","i").test(e(this).parsley().options.trigger||"")?void 0:e(this).on("change.ParsleyFailedOnce",!1,e.proxy(t.validate,t))}),t.$element.is("select")&&!new RegExp("change","i").test(t.options.trigger||"")?t.$element.on("change.ParsleyFailedOnce",!1,e.proxy(t.validate,t)):new RegExp("keyup","i").test(t.options.trigger||"")?void 0:t.$element.on("keyup.ParsleyFailedOnce",!1,e.proxy(t.validate,t))},reset:function(e){this.actualizeTriggers(e),e.$element.off(".ParsleyFailedOnce"),"undefined"!=typeof e._ui&&"ParsleyForm"!==e.__class__&&(e._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(e),e._ui.validatedOnce=!1,e._ui.lastValidationResult=[],e._ui.validationInformationVisible=!1,e._ui.failedOnce=!1)},destroy:function(e){this.reset(e),"ParsleyForm"!==e.__class__&&("undefined"!=typeof e._ui&&e._ui.$errorsWrapper.remove(),delete e._ui)},_successClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.errorClass).addClass(e.options.successClass)},_errorClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.successClass).addClass(e.options.errorClass)},_resetClass:function(e){e._ui.$errorClassHandler.removeClass(e.options.successClass).removeClass(e.options.errorClass)}};var y=function(t,i,n){this.__class__="ParsleyForm",this.__id__=s.generateID(),this.$element=e(t),this.domOptions=i,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},g={pending:null,resolved:!0,rejected:!1};y.prototype={onSubmitValidate:function(e){var t=this;if(!0!==e.parsley)return this._$submitSource=this._$submitSource||this.$element.find('input[type="submit"], button[type="submit"]').first(),this._$submitSource.is("[formnovalidate]")?void(this._$submitSource=null):(e.stopImmediatePropagation(),e.preventDefault(),this.whenValidate(void 0,void 0,e).done(function(){t._submit()}).always(function(){t._$submitSource=null}),this)},onSubmitButton:function(t){this._$submitSource=e(t.target)},_submit:function(){!1!==this._trigger("submit")&&(this.$element.find(".parsley_synthetic_submit_button").remove(),this._$submitSource&&e('<input class="parsley_synthetic_submit_button" type="hidden">').attr("name",this._$submitSource.attr("name")).attr("value",this._$submitSource.attr("value")).appendTo(this.$element),this.$element.trigger(e.extend(e.Event("submit"),{parsley:!0})))},validate:function(e,t,i){return g[this.whenValidate(e,t,i).state()]},whenValidate:function(t,i,n){var r=this;this.submitEvent=n,this.validationResult=!0,this._trigger("validate"),this._refreshFields();var s=this._withoutReactualizingFormOptions(function(){return e.map(this.fields,function(e){return!t||r._isFieldInGroup(e,t)?e.whenValidate(i):void 0})}),a=function(){var t=e.Deferred();return!1===r.validationResult&&t.reject(),t.resolve().promise()};return e.when.apply(e,s).done(function(){r._trigger("success")}).fail(function(){r.validationResult=!1,r._trigger("error")}).always(function(){r._trigger("validated")}).pipe(a,a)},isValid:function(e,t){return g[this.whenValid(e,t).state()]},whenValid:function(t,i){var n=this;this._refreshFields();var r=this._withoutReactualizingFormOptions(function(){return e.map(this.fields,function(e){return!t||n._isFieldInGroup(e,t)?e.whenValid(i):void 0})});return e.when.apply(e,r)},_isFieldInGroup:function(t,i){return e.isArray(t.options.group)?-1!==e.inArray(i,t.options.group):t.options.group===i},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var t=this,i=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){this.$element.find(this.options.inputs).not(this.options.excluded).each(function(){var e=new window.Parsley.Factory(this,{},t);"ParsleyField"!==e.__class__&&"ParsleyFieldMultiple"!==e.__class__||!0===e.options.excluded||"undefined"==typeof t.fieldsMappedById[e.__class__+"-"+e.__id__]&&(t.fieldsMappedById[e.__class__+"-"+e.__id__]=e,t.fields.push(e))}),e(i).not(t.fields).each(function(){this._trigger("reset")})}),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var i=e.call(this);return this.actualizeOptions=t,i},_trigger:function(e){return this.trigger("form:"+e)}};var v=function(t,i,n,r,s){if(!new RegExp("ParsleyField").test(t.__class__))throw new Error("ParsleyField or ParsleyFieldMultiple instance expected");var a=window.Parsley._validatorRegistry.validators[i],o=new p(a);e.extend(this,{validator:o,name:i,requirements:n,priority:r||t.options[i+"Priority"]||o.priority,isDomConstraint:!0===s}),this._parseRequirements(t.options)},_=function(e){var t=e[0].toUpperCase();return t+e.slice(1)};v.prototype={validate:function(e,t){var i=this.requirementList.slice(0);return i.unshift(e),i.push(t),this.validator.validate.apply(this.validator,i)},_parseRequirements:function(e){var t=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(i){return e[t.name+_(i)]})}};var w=function(t,i,n,r){this.__class__="ParsleyField",this.__id__=s.generateID(),this.$element=e(t),"undefined"!=typeof r&&(this.parent=r),this.options=n,this.domOptions=i,this.constraints=[],this.constraintsByName={},this.validationResult=[],this._bindConstraints()},g={pending:null,resolved:!0,rejected:!1};w.prototype={validate:function(e){var t=this.whenValidate(e);switch(t.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(e){var t=this;return this.value=this.getValue(),this._trigger("validate"),this.whenValid(e,this.value).done(function(){t._trigger("success")}).fail(function(){t._trigger("error")}).always(function(){t._trigger("validated")})},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return"undefined"==typeof e&&(e=this.getValue()),e.length||this._isRequired()||"undefined"!=typeof this.options.validateIfEmpty?!0:!1},isValid:function(e,t){return g[this.whenValid(e,t).state()]},whenValid:function(t,i){if(this.refreshConstraints(),this.validationResult=!0,!this.hasConstraints())return e.when();if("boolean"!=typeof t&&"undefined"==typeof i&&(i=t,t=!1),("undefined"==typeof i||null===i)&&(i=this.getValue()),!this.needsValidation(i)&&!0!==t)return e.when();var n=this._getGroupedConstraints(),r=[],s=this;return e.each(n,function(t,n){var a=e.when.apply(e,e.map(n,e.proxy(s,"_validateConstraint",i)));return r.push(a),"rejected"===a.state()?!1:void 0}),e.when.apply(e,r)},_validateConstraint:function(t,i){var n=this,r=i.validate(t,this);return!1===r&&(r=e.Deferred().reject()),e.when(r).fail(function(e){!0===n.validationResult&&(n.validationResult=[]),n.validationResult.push({assert:i,errorMessage:"string"==typeof e&&e})})},getValue:function(){var e;return e="function"==typeof this.options.value?this.options.value(this):"undefined"!=typeof this.options.value?this.options.value:this.$element.val(),"undefined"==typeof e||null===e?"":this._handleWhitespace(e)},refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},addConstraint:function(e,t,i,n){if(window.Parsley._validatorRegistry.validators[e]){var r=new v(this,e,t,i,n);"undefined"!==this.constraintsByName[r.name]&&this.removeConstraint(r.name),this.constraints.push(r),this.constraintsByName[r.name]=r}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[e],this},updateConstraint:function(e,t,i){return this.removeConstraint(e).addConstraint(e,t,i)},_bindConstraints:function(){for(var e=[],t={},i=0;i<this.constraints.length;i++)!1===this.constraints[i].isDomConstraint&&(e.push(this.constraints[i]),t[this.constraints[i].name]=this.constraints[i]);this.constraints=e,this.constraintsByName=t;for(var n in this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){(this.$element.hasClass("required")||this.$element.attr("required"))&&this.addConstraint("required",!0,void 0,!0),"string"==typeof this.$element.attr("pattern")&&this.addConstraint("pattern",this.$element.attr("pattern"),void 0,!0),"undefined"!=typeof this.$element.attr("min")&&"undefined"!=typeof this.$element.attr("max")?this.addConstraint("range",[this.$element.attr("min"),this.$element.attr("max")],void 0,!0):"undefined"!=typeof this.$element.attr("min")?this.addConstraint("min",this.$element.attr("min"),void 0,!0):"undefined"!=typeof this.$element.attr("max")&&this.addConstraint("max",this.$element.attr("max"),void 0,!0),"undefined"!=typeof this.$element.attr("minlength")&&"undefined"!=typeof this.$element.attr("maxlength")?this.addConstraint("length",[this.$element.attr("minlength"),this.$element.attr("maxlength")],void 0,!0):"undefined"!=typeof this.$element.attr("minlength")?this.addConstraint("minlength",this.$element.attr("minlength"),void 0,!0):"undefined"!=typeof this.$element.attr("maxlength")&&this.addConstraint("maxlength",this.$element.attr("maxlength"),void 0,!0);var e=this.$element.attr("type");return"undefined"==typeof e?this:"number"===e?"undefined"==typeof this.$element.attr("step")||0===parseFloat(this.$element.attr("step"))%1?this.addConstraint("type","integer",void 0,!0):this.addConstraint("type","number",void 0,!0):/^(email|url|range)$/i.test(e)?this.addConstraint("type",e,void 0,!0):this},_isRequired:function(){return"undefined"==typeof this.constraintsByName.required?!1:!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&s.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),"squish"===this.options.whitespace&&(e=e.replace(/\s{2,}/g," ")),("trim"===this.options.whitespace||"squish"===this.options.whitespace||!0===this.options.trimValue)&&(e=s.trimString(e)),e},_getGroupedConstraints:function(){if(!1===this.options.priorityEnabled)return[this.constraints];for(var e=[],t={},i=0;i<this.constraints.length;i++){var n=this.constraints[i].priority;t[n]||e.push(t[n]=[]),t[n].push(this.constraints[i])}return e.sort(function(e,t){return t[0].priority-e[0].priority}),e}};var F=function(){this.__class__="ParsleyFieldMultiple"};F.prototype={addElement:function(e){return this.$elements.push(e),this},refreshConstraints:function(){var t;if(this.constraints=[],this.$element.is("select"))return this.actualizeOptions()._bindConstraints(),this;for(var i=0;i<this.$elements.length;i++)if(e("html").has(this.$elements[i]).length){t=this.$elements[i].data("ParsleyFieldMultiple").refreshConstraints().constraints;for(var n=0;n<t.length;n++)this.addConstraint(t[n].name,t[n].requirements,t[n].priority,t[n].isDomConstraint)}else this.$elements.splice(i,1);return this},getValue:function(){if("undefined"!=typeof this.options.value)return this.options.value;if(this.$element.is("input[type=radio]"))return this._findRelatedMultiple().filter(":checked").val()||"";if(this.$element.is("input[type=checkbox]")){var t=[];return this._findRelatedMultiple().filter(":checked").each(function(){t.push(e(this).val())}),t}return this.$element.is("select")&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var b=function(t,i,n){this.$element=e(t);var r=this.$element.data("Parsley");if(r)return"undefined"!=typeof n&&r.parent===window.Parsley&&(r.parent=n,r._resetOptions(r.options)),r;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if("undefined"!=typeof n&&"ParsleyForm"!==n.__class__)throw new Error("Parent instance must be a ParsleyForm instance");return this.parent=n||window.Parsley,this.init(i)};b.prototype={init:function(e){return this.__class__="Parsley",this.__version__="2.2.0-rc2",this.__id__=s.generateID(),this._resetOptions(e),this.$element.is("form")||s.checkAttr(this.$element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){return this.$element.is("input[type=radio], input[type=checkbox]")||this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple")},handleMultiple:function(){var t,i,n=this;if(this.options.multiple||("undefined"!=typeof this.$element.attr("name")&&this.$element.attr("name").length?this.options.multiple=t=this.$element.attr("name"):"undefined"!=typeof this.$element.attr("id")&&this.$element.attr("id").length&&(this.options.multiple=this.$element.attr("id"))),this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return s.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),"undefined"!=typeof t&&e('input[name="'+t+'"]').each(function(){e(this).is("input[type=radio], input[type=checkbox]")&&e(this).attr(n.options.namespace+"multiple",n.options.multiple)});for(var r=this._findRelatedMultiple(),a=0;a<r.length;a++)if(i=e(r.get(a)).data("Parsley"),"undefined"!=typeof i){this.$element.data("ParsleyFieldMultiple")||i.addElement(this.$element);break}return this.bind("parsleyField",!0),i||this.bind("parsleyFieldMultiple")},bind:function(t,i){var n;switch(t){case"parsleyForm":n=e.extend(new y(this.$element,this.domOptions,this.options),window.ParsleyExtend)._bindFields();break;case"parsleyField":n=e.extend(new w(this.$element,this.domOptions,this.options,this.parent),window.ParsleyExtend);break;case"parsleyFieldMultiple":n=e.extend(new w(this.$element,this.domOptions,this.options,this.parent),new F,window.ParsleyExtend)._init();break;default:throw new Error(t+"is not a supported Parsley type")}return this.options.multiple&&s.setAttr(this.$element,this.options.namespace,"multiple",this.options.multiple),"undefined"!=typeof i?(this.$element.data("ParsleyFieldMultiple",n),n):(this.$element.data("Parsley",n),n._trigger("init"),n)}};var $=e({}),C=function(){s.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")},x="parsley:";e.listen=function(e,n){var r;if(C(),"object"==typeof arguments[1]&&"function"==typeof arguments[2]&&(r=arguments[1],n=arguments[2]),"function"!=typeof n)throw new Error("Wrong parameters");window.Parsley.on(i(e),t(n,r))},e.listenTo=function(e,n,r){if(C(),!(e instanceof w||e instanceof y))throw new Error("Must give Parsley instance");if("string"!=typeof n||"function"!=typeof r)throw new Error("Wrong parameters");e.on(i(n),t(r))},e.unsubscribe=function(e,t){if(C(),"string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(i(e),t.parsleyAdaptedCallback)},e.unsubscribeTo=function(e,t){if(C(),!(e instanceof w||e instanceof y))throw new Error("Must give Parsley instance");e.off(i(t))},e.unsubscribeAll=function(t){C(),window.Parsley.off(i(t)),
2
- e("form,input,textarea,select").each(function(){var n=e(this).data("Parsley");n&&n.off(i(t))})},e.emit=function(e,t){C();var n=t instanceof w||t instanceof y,r=Array.prototype.slice.call(arguments,n?2:1);r.unshift(i(e)),n||(t=window.Parsley),t.trigger.apply(t,r)},window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.i18n=window.ParsleyConfig.i18n||{},window.ParsleyConfig.i18n.en=jQuery.extend(window.ParsleyConfig.i18n.en||{},{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."}),"undefined"!=typeof window.ParsleyValidator&&window.ParsleyValidator.addCatalog("en",window.ParsleyConfig.i18n.en,!0);var P=e.fn.jquery.split(".");if(parseInt(P[0])<=1&&parseInt(P[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";var E=e.extend(new o,{$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:b,version:"2.2.0-rc2"});e.extend(w.prototype,o.prototype),e.extend(y.prototype,o.prototype),e.extend(b.prototype,o.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var i=[];return this.each(function(){i.push(e(this).parsley(t))}),i}return e(this).length?new b(this,t):void s.warn("You must bind Parsley on an existing element.")},"undefined"==typeof window.ParsleyExtend&&(window.ParsleyExtend={}),E.options=e.extend(s.objectCreate(a),window.ParsleyConfig),window.ParsleyConfig=E.options,window.Parsley=window.psly=E,window.ParsleyUtils=s;var V=window.Parsley._validatorRegistry=new f(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);return window.ParsleyValidator={},e.each("setLocale addCatalog addMessage getErrorMessage formatMessage addValidator updateValidator removeValidator".split(" "),function(t,i){window.Parsley[i]=e.proxy(V,i),window.ParsleyValidator[i]=function(){return s.warnOnce("Accessing the method `"+i+"` through ParsleyValidator is deprecated. Simply call `window.Parsley."+i+"(...)`"),window.Parsley[i].apply(window.Parsley,arguments)}}),window.ParsleyUI="function"==typeof window.ParsleyConfig.ParsleyUI?(new window.ParsleyConfig.ParsleyUI).listen():(new m).listen(),!1!==window.ParsleyConfig.autoBind&&e(function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()}),window.Parsley});
 
 
assets/js/polyfiller.min.js DELETED
@@ -1,2 +0,0 @@
1
- !function(a){var b=function(){window.asyncWebshims||(window.asyncWebshims={cfg:[],ready:[]})},c=function(){window.jQuery&&(a(jQuery),a=function(){return window.webshims})};window.webshims={setOptions:function(){b(),window.asyncWebshims.cfg.push(arguments)},ready:function(){b(),window.asyncWebshims.ready.push(arguments)},activeLang:function(a){b(),window.asyncWebshims.lang=a},polyfill:function(a){b(),window.asyncWebshims.polyfill=a},_curScript:function(){var a,b,c,d,e,f=document.currentScript;if(!f){try{throw new Error("")}catch(g){for(c=(g.sourceURL||g.stack||"").split("\n"),e=/(?:fil|htt|wid|abo|app|res)(.)+/i,b=0;b<c.length;b++)if(d=c[b].match(e)){c=d[0].replace(/[\:\s\(]+[\d\:\)\(\s]+$/,"");break}}for(a=document.scripts||document.getElementsByTagName("script"),b=0;b<a.length&&(!a[b].getAttribute("src")||(f=a[b],"interactive"!=a[b].readyState&&c!=a[b].src));b++);}return f}()},window.webshim=window.webshims,window.webshims.timer=setInterval(c,0),c(),"function"==typeof define&&define.amd&&define("polyfiller",["jquery"],a)}(function(a){"use strict";function b(a){return document.createElement(a)}var c,d,e=window.navigator,f=window.webshims,g="dom-support",h=a.event.special,i=a([]),j=window.asyncWebshims,k={},l=window.Object,m=function(a){return a+"\n//# sourceURL="+this.url},n=function(a){return q.enhanceAuto||"auto"!=a?a:!1},o={matchmedia:"matchMedia",xhr2:"filereader",promise:"es6",URL:"url"},p="capture"in b("input");clearInterval(f.timer),k.advancedObjectProperties=k.objectAccessor=k.ES5=!!("create"in l&&"seal"in l),!k.ES5||"toJSON"in Date.prototype||(k.ES5=!1),d=a.support.hrefNormalized===!1?f._curScript.getAttribute("src",4):f._curScript.src,d=d.split("?")[0].slice(0,d.lastIndexOf("/")+1)+"shims/",a.extend(f,{version:"1.15.10",cfg:{enhanceAuto:window.Audio&&(!window.matchMedia||matchMedia("(min-device-width: 721px)").matches),waitReady:!0,loadStyles:!0,wsdoc:document,wspopover:{appendTo:"auto",hideOnBlur:!0},ajax:{crossDomain:!0},loadScript:function(b,c){a.ajax(a.extend({},q.ajax,{url:b,success:c,dataType:"script",cache:!0,global:!1,dataFilter:m}))},basePath:d},support:k,bugs:{},modules:{},features:{},featureList:[],setOptions:function(b,c){"string"==typeof b&&arguments.length>1?q[b]=a.isPlainObject(c)?a.extend(!0,q[b]||{},c):c:"object"==typeof b&&a.extend(!0,q,b)},_getAutoEnhance:n,addPolyfill:function(b,c){c=c||{};var d=c.f||b;r[d]||(r[d]=[],f.featureList.push(d),q[d]={}),r[d].push(b),c.options=a.extend(q[d],c.options),y(b,c),c.methodNames&&a.each(c.methodNames,function(a,b){f.addMethodName(b)})},polyfill:function(){return function(a){a||(a=f.featureList),"string"==typeof a&&(a=a.split(" "));return f._polyfill(a)}}(),_polyfill:function(b){var d,e,f=[];c.run||(d=-1!==a.inArray("forms-ext",b),c(),e=d&&!v["form-number-date-ui"].test()||!p&&-1!==a.inArray("mediacapture",b),d&&-1==a.inArray("forms",b)&&b.push("forms"),q.loadStyles&&w.loadCSS("styles/shim"+(e?"-ext":"")+".css")),q.waitReady&&(a.readyWait++,t(b,function(){a.ready(!0)})),a.each(b,function(a,b){return b=o[b]||b,r[b]?(b!==r[b][0]&&t(r[b],function(){s(b,!0)}),void(f=f.concat(r[b]))):void s(b,!0)}),x(f),a.each(b,function(a,b){var c=q[b];c&&("mediaelement"==b&&(c.replaceUI=n(c.replaceUI))&&c.plugins.unshift("mediacontrols"),c.plugins&&c.plugins.length&&x(q[b].plugins))})},reTest:function(){var b,c=function(c,d){var e=v[d],f=d+"Ready";!e||e.loaded||(e.test&&a.isFunction(e.test)?e.test([]):e.test)||(h[f]&&delete h[f],r[e.f],b.push(d))};return function(d){"string"==typeof d&&(d=d.split(" ")),b=[],a.each(d,c),x(b)}}(),isReady:function(b,c){if(b+="Ready",c){if(h[b]&&h[b].add)return!0;h[b]=a.extend(h[b]||{},{add:function(a){a.handler.call(this,b)}}),a(document).triggerHandler(b)}return!(!h[b]||!h[b].add)||!1},ready:function(b,c){var d=arguments[2];if("string"==typeof b&&(b=b.split(" ")),d||(b=a.map(a.grep(b,function(a){return!s(a)}),function(a){return a+"Ready"})),!b.length)return void c(a,f,window,document);var e=b.shift(),g=function(){t(b,c,!0)};a(document).one(e,g)},capturingEvents:function(b,c){document.addEventListener&&("string"==typeof b&&(b=[b]),a.each(b,function(b,d){var e=function(b){return b=a.event.fix(b),c&&f.capturingEventPrevented&&f.capturingEventPrevented(b),a.event.dispatch.call(this,b)};h[d]=h[d]||{},h[d].setup||h[d].teardown||a.extend(h[d],{setup:function(){this.addEventListener(d,e,!0)},teardown:function(){this.removeEventListener(d,e,!0)}})}))},register:function(b,c){var d=v[b];if(!d)return void f.error("can't find module: "+b);d.loaded=!0;var e=function(){c(a,f,window,document,void 0,d.options),s(b,!0)};d.d&&d.d.length?t(d.d,e):e()},c:{},loader:{addModule:function(b,c){v[b]=c,c.name=c.name||b,c.c||(c.c=[]),a.each(c.c,function(a,c){f.c[c]||(f.c[c]=[]),f.c[c].push(b)})},loadList:function(){var b=[],c=function(c,d){"string"==typeof d&&(d=[d]),a.merge(b,d),w.loadScript(c,!1,d)},d=function(c,d){if(s(c)||-1!=a.inArray(c,b))return!0;var e,f=v[c];return f?(e=f.test&&a.isFunction(f.test)?f.test(d):f.test,e?(s(c,!0),!0):!1):!0},e=function(b,c){if(b.d&&b.d.length){var e=function(b,e){d(e,c)||-1!=a.inArray(e,c)||c.push(e)};a.each(b.d,function(b,c){v[c]?v[c].loaded||e(b,c):r[c]&&(a.each(r[c],e),t(r[c],function(){s(c,!0)}))}),b.noAutoCallback||(b.noAutoCallback=!0)}};return function(g){var h,i,j,k,l=[],m=function(d,e){return k=e,a.each(f.c[e],function(c,d){return-1==a.inArray(d,l)||-1!=a.inArray(d,b)?(k=!1,!1):void 0}),k?(c("combos/"+k,f.c[k]),!1):void 0};for(i=0;i<g.length;i++)h=v[g[i]],h&&!d(h.name,g)&&(h.css&&q.loadStyles&&w.loadCSS(h.css),h.loadInit&&h.loadInit(),e(h,g),h.loaded||l.push(h.name),h.loaded=!0);for(i=0,j=l.length;j>i;i++)k=!1,h=l[i],-1==a.inArray(h,b)&&("noCombo"!=q.debug&&a.each(v[h].c,m),k||c(v[h].src||h,h))}}(),makePath:function(a){return-1!=a.indexOf("//")||0===a.indexOf("/")?a:(-1==a.indexOf(".")&&(a+=".js"),q.addCacheBuster&&(a+=q.addCacheBuster),q.basePath+a)},loadCSS:function(){var b,c={};return function(d){d=this.makePath(d),c[d]||(b=b||a("link, style")[0]||a("script")[0],c[d]=1,a('<link rel="stylesheet" />').insertBefore(b).attr({href:d}))}}(),loadScript:function(){var b={};return function(c,d,e,f){if(f||(c=w.makePath(c)),!b[c]){var g=function(){d&&d(),e&&("string"==typeof e&&(e=e.split(" ")),a.each(e,function(a,b){v[b]&&(v[b].afterLoad&&v[b].afterLoad(),s(v[b].noAutoCallback?b+"FileLoaded":b,!0))}))};b[c]=1,q.loadScript(c,g,a.noop)}}}()}});var q=f.cfg,r=f.features,s=f.isReady,t=f.ready,u=f.addPolyfill,v=f.modules,w=f.loader,x=w.loadList,y=w.addModule,z=f.bugs,A=[],B={warn:1,error:1},C=a.fn,D=b("video");f.addMethodName=function(a){a=a.split(":");var b=a[1];1==a.length?(b=a[0],a=a[0]):a=a[0],C[a]=function(){return this.callProp(b,arguments)}},C.callProp=function(b,c){var d;return c||(c=[]),this.each(function(){var e=a.prop(this,b);if(e&&e.apply){if(d=e.apply(this,c),void 0!==d)return!1}else f.warn(b+" is not a method of "+this)}),void 0!==d?d:this},f.activeLang=function(){"language"in e||(e.language=e.browserLanguage||"");var b=a.attr(document.documentElement,"lang")||e.language;return t("webshimLocalization",function(){f.activeLang(b)}),function(a){if(a)if("string"==typeof a)b=a;else if("object"==typeof a){var c=arguments,d=this;t("webshimLocalization",function(){f.activeLang.apply(d,c)})}return b}}(),f.errorLog=[],a.each(["log","error","warn","info"],function(a,b){f[b]=function(a){(B[b]&&q.debug!==!1||q.debug)&&(f.errorLog.push(a),window.console&&console.log&&console[console[b]?b:"log"](a))}}),function(){a.isDOMReady=a.isReady;var b=function(){a.isDOMReady=!0,s("DOM",!0),setTimeout(function(){s("WINDOWLOAD",!0)},9999)};c=function(){if(!c.run){if(!a.isDOMReady&&q.waitReady){var d=a.ready;a.ready=function(a){return a!==!0&&document.body&&b(),d.apply(this,arguments)},a.ready.promise=d.promise}q.readyEvt?a(document).one(q.readyEvt,b):a(b)}c.run=!0},a(window).on("load",function(){b(),setTimeout(function(){s("WINDOWLOAD",!0)},9)});var d=[],e=function(){1==this.nodeType&&f.triggerDomUpdate(this)};a.extend(f,{addReady:function(a){var b=function(b,c){f.ready("DOM",function(){a(b,c)})};d.push(b),q.wsdoc&&b(q.wsdoc,i)},triggerDomUpdate:function(b){if(!b||!b.nodeType)return void(b&&b.jquery&&b.each(function(){f.triggerDomUpdate(this)}));var c=b.nodeType;if(1==c||9==c){var e=b!==document?a(b):i;a.each(d,function(a,c){c(b,e)})}}}),C.clonePolyfill=C.clone,C.htmlPolyfill=function(b){if(!arguments.length)return a(this.clonePolyfill()).html();var c=C.html.call(this,b);return c===this&&a.isDOMReady&&this.each(e),c},C.jProp=function(){return this.pushStack(a(C.prop.apply(this,arguments)||[]))},a.each(["after","before","append","prepend","replaceWith"],function(b,c){C[c+"Polyfill"]=function(b){return b=a(b),C[c].call(this,b),a.isDOMReady&&b.each(e),this}}),a.each(["insertAfter","insertBefore","appendTo","prependTo","replaceAll"],function(b,c){C[c.replace(/[A-Z]/,function(a){return"Polyfill"+a})]=function(){return C[c].apply(this,arguments),a.isDOMReady&&f.triggerDomUpdate(this),this}}),C.updatePolyfill=function(){return a.isDOMReady&&f.triggerDomUpdate(this),this},a.each(["getNativeElement","getShadowElement","getShadowFocusElement"],function(a,b){C[b]=function(){return this.pushStack(this)}})}(),l.create&&(f.objectCreate=function(b,c,d){var e=l.create(b);return d&&(e.options=a.extend(!0,{},e.options||{},d),d=e.options),e._create&&a.isFunction(e._create)&&e._create(d),e}),y("swfmini",{test:function(){return window.swfobject&&!window.swfmini&&(window.swfmini=window.swfobject),"swfmini"in window},c:[16,7,2,8,1,12,23]}),v.swfmini.test(),y("sizzle",{test:a.expr.filters}),u("es5",{test:!(!k.ES5||!Function.prototype.bind),d:["sizzle"]}),u("dom-extend",{f:g,noAutoCallback:!0,d:["es5"],c:[16,7,2,15,30,3,8,4,9,10,25,31,34]}),b("picture"),u("picture",{test:"picturefill"in window||!!window.HTMLPictureElement||"respimage"in window,d:["matchMedia"],c:[18],loadInit:function(){s("picture",!0)}}),u("matchMedia",{test:!(!window.matchMedia||!matchMedia("all").addListener),c:[18]}),u("sticky",{test:-1!=(a(b("b")).attr("style","position: -webkit-sticky; position: sticky").css("position")||"").indexOf("sticky"),d:["es5","matchMedia"]}),u("es6",{test:!!(Math.imul&&Number.MIN_SAFE_INTEGER&&l.is&&window.Promise&&Promise.all),d:["es5"]}),u("geolocation",{test:"geolocation"in e,options:{destroyWrite:!0},c:[21]}),function(){u("canvas",{src:"excanvas",test:"getContext"in b("canvas"),options:{type:"flash"},noAutoCallback:!0,loadInit:function(){var a=this.options.type;!a||-1===a.indexOf("flash")||v.swfmini.test()&&!swfmini.hasFlashPlayerVersion("9.0.0")||(this.src="flash"==a?"FlashCanvas/flashcanvas":"FlashCanvasPro/flashcanvas")},methodNames:["getContext"],d:[g]})}();var E="getUserMedia"in e;u("usermedia-core",{f:"usermedia",test:E&&window.URL,d:["url",g]}),u("usermedia-shim",{f:"usermedia",test:!!(E||e.webkitGetUserMedia||e.mozGetUserMedia||e.msGetUserMedia),d:["url","mediaelement",g]}),u("mediacapture",{test:p,d:["swfmini","usermedia",g,"filereader","forms","canvas"]}),function(){var c,d,h="form-shim-extend",i="formvalidation",j="form-number-date-api",l=!1,m=!1,o=!1,p={},r=b("progress"),s=b("output"),t=function(){var d,f,g="1(",j=b("input");if(f=a('<fieldset><textarea required="" /></fieldset>')[0],k.inputtypes=p,a.each(["range","date","datetime-local","month","color","number"],function(a,b){j.setAttribute("type",b),p[b]=j.type==b&&(j.value=g)&&j.value!=g}),k.datalist=!!("options"in b("datalist")&&window.HTMLDataListElement),k[i]="checkValidity"in j,k.fieldsetelements="elements"in f,k.fieldsetdisabled="disabled"in f){try{f.querySelector(":invalid")&&(f.disabled=!0,d=!f.querySelector(":invalid")&&f.querySelector(":disabled"))}catch(n){}k.fieldsetdisabled=!!d}if(k[i]&&(m=!(k.fieldsetdisabled&&k.fieldsetelements&&"value"in r&&"value"in s),o=m&&/Android/i.test(e.userAgent),l=window.opera||z.bustedValidity||m||!k.datalist,!l&&p.number)){l=!0;try{j.type="number",j.value="",j.stepUp(),l="1"!=j.value}catch(q){}}return z.bustedValidity=l,c=k[i]&&!l?"form-native-extend":h,t=a.noop,!1},w=function(b){var c=!0;return b._types||(b._types=b.types.split(" ")),a.each(b._types,function(a,b){return b in p&&!p[b]?(c=!1,!1):void 0}),c};f.validationMessages=f.validityMessages={langSrc:"i18n/formcfg-",availableLangs:"ar bg ca cs el es fa fi fr he hi hu it ja lt nl no pl pt pt-BR pt-PT ru sv zh-CN zh-TW".split(" ")},f.formcfg=a.extend({},f.validationMessages),f.inputTypes={},u("form-core",{f:"forms",test:t,d:["es5"],options:{placeholderType:"value",messagePopover:{},list:{popover:{constrainWidth:!0}},iVal:{sel:".ws-validate",handleBubble:"hide",recheckDelay:400}},methodNames:["setCustomValidity","checkValidity","setSelectionRange"],c:[16,7,2,8,1,15,30,3,31]}),d=q.forms,u("form-native-extend",{f:"forms",test:function(b){return t(),!k[i]||l||-1==a.inArray(j,b||[])||v[j].test()},d:["form-core",g,"form-message"],c:[6,5,14,29]}),u(h,{f:"forms",test:function(){return t(),k[i]&&!l},d:["form-core",g,"sizzle"],c:[16,15,28]}),u(h+"2",{f:"forms",test:function(){return t(),k[i]&&!m},d:[h],c:[27]}),u("form-message",{f:"forms",test:function(a){return t(),!(d.customMessages||!k[i]||l||!v[c].test(a))},d:[g],c:[16,7,15,30,3,8,4,14,28]}),u(j,{f:"forms-ext",options:{types:"date time range number"},test:function(){t();var a=!l;return a&&(a=w(this.options)),a},methodNames:["stepUp","stepDown"],d:["forms",g],c:[6,5,17,14,28,29,33]}),y("range-ui",{options:{},noAutoCallback:!0,test:function(){return!!C.rangeUI},d:["es5"],c:[6,5,9,10,17,11]}),u("form-number-date-ui",{f:"forms-ext",test:function(){var a=this.options;return a.replaceUI=n(a.replaceUI),t(),!a.replaceUI&&o&&(a.replaceUI=!0),!a.replaceUI&&w(a)},d:["forms",g,j,"range-ui"],options:{widgets:{calculateWidth:!0,animate:!0}},c:[6,5,9,10,17,11]}),u("form-datalist",{f:"forms",test:function(){return t(),o&&(d.customDatalist=!0),k.datalist&&!d.fD},d:["form-core",g],c:[16,7,6,2,9,15,30,31,28,33]})}();var F="FileReader"in window&&"FormData"in window;return u("filereader-xhr",{f:"filereader",test:F,d:[g,"swfmini"],c:[25,27]}),u("canvas-blob",{f:"filereader",methodNames:["toBlob"],test:!(F&&!b("canvas").toBlob)}),u("details",{test:"open"in b("details"),d:[g],options:{text:"Details"},c:[21,22]}),u("url",{test:function(){var a=!1;try{a=new URL("b","http://a"),a=!(!a.searchParams||"http://a/b"!=a.href)}catch(b){}return a},d:["es5"]}),function(){f.mediaelement={};var c=b("track");if(k.mediaelement="canPlayType"in D,k.texttrackapi="addTextTrack"in D,k.track="kind"in c,b("audio"),!(z.track=!k.texttrackapi))try{z.track=!("oncuechange"in D.addTextTrack("metadata"))}catch(d){}u("mediaelement-core",{f:"mediaelement",noAutoCallback:!0,options:{jme:{},plugins:[],vars:{},params:{},attrs:{},changeSWF:a.noop},methodNames:["play","pause","canPlayType","mediaLoad:load"],d:["swfmini"],c:[16,7,2,8,1,12,13,23]}),u("mediaelement-jaris",{f:"mediaelement",d:["mediaelement-core",g],test:function(){var a=this.options;return!k.mediaelement||f.mediaelement.loadSwf?!1:(a.preferFlash&&!v.swfmini.test()&&(a.preferFlash=!1),!(a.preferFlash&&swfmini.hasFlashPlayerVersion("11.3")))},c:[21,25]}),u("track",{options:{positionDisplay:!0,override:z.track},test:function(){var a=this.options;return a.override=n(a.override),!a.override&&!z.track},d:["mediaelement",g],methodNames:["addTextTrack"],c:[21,12,13,22,34]}),y("jmebase",{src:"jme/base",c:[98,99,97]}),a.each([["mediacontrols",{c:[98,99],css:"jme/controls.css"}],["playlist",{c:[98,97]}],["alternate-media"]],function(b,c){y(c[0],a.extend({src:"jme/"+c[0],d:["jmebase"]},c[1]))}),y("track-ui",{d:["track",g]})}(),u("feature-dummy",{test:!0,loaded:!0,c:A}),f.$=a,a.webshims=f,a.webshim=webshim,f.callAsync=function(){f.callAsync=a.noop,j&&(j.cfg&&(j.cfg.length||(j.cfg=[[j.cfg]]),a.each(j.cfg,function(a,b){f.setOptions.apply(f,b)})),j.ready&&a.each(j.ready,function(a,b){f.ready.apply(f,b)}),j.lang&&f.activeLang(j.lang),"polyfill"in j&&f.polyfill(j.polyfill)),f.isReady("jquery",!0)},f.callAsync(),f});
2
- webshim.polyfill('forms');
 
 
assets/js/remodal.js CHANGED
File without changes
assets/js/remodal.min.js DELETED
@@ -1,10 +0,0 @@
1
- /*
2
- * Remodal - v1.0.7
3
- * Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
4
- * http://vodkabears.github.io/remodal/
5
- *
6
- * Made by Ilya Makarov
7
- * Under MIT License
8
- */
9
-
10
- !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof exports?b(a,require("jquery")):b(a,a.jQuery||a.Zepto)}(this,function(a,b){"use strict";function c(a){if(w&&"none"===a.css("animation-name")&&"none"===a.css("-webkit-animation-name")&&"none"===a.css("-moz-animation-name")&&"none"===a.css("-o-animation-name")&&"none"===a.css("-ms-animation-name"))return 0;var b,c,d,e,f=a.css("animation-duration")||a.css("-webkit-animation-duration")||a.css("-moz-animation-duration")||a.css("-o-animation-duration")||a.css("-ms-animation-duration")||"0s",g=a.css("animation-delay")||a.css("-webkit-animation-delay")||a.css("-moz-animation-delay")||a.css("-o-animation-delay")||a.css("-ms-animation-delay")||"0s",h=a.css("animation-iteration-count")||a.css("-webkit-animation-iteration-count")||a.css("-moz-animation-iteration-count")||a.css("-o-animation-iteration-count")||a.css("-ms-animation-iteration-count")||"1";for(f=f.split(", "),g=g.split(", "),h=h.split(", "),e=0,c=f.length,b=Number.NEGATIVE_INFINITY;c>e;e++)d=parseFloat(f[e])*parseInt(h[e],10)+parseFloat(g[e]),d>b&&(b=d);return b}function d(){if(b(document.body).height()<=b(window).height())return 0;var a,c,d=document.createElement("div"),e=document.createElement("div");return d.style.visibility="hidden",d.style.width="100px",document.body.appendChild(d),a=d.offsetWidth,d.style.overflow="scroll",e.style.width="100%",d.appendChild(e),c=e.offsetWidth,d.parentNode.removeChild(d),a-c}function e(){if(!x){var a,c,e=b("html"),f=k("is-locked");e.hasClass(f)||(c=b(document.body),a=parseInt(c.css("padding-right"),10)+d(),c.css("padding-right",a+"px"),e.addClass(f))}}function f(){if(!x){var a,c,e=b("html"),f=k("is-locked");e.hasClass(f)&&(c=b(document.body),a=parseInt(c.css("padding-right"),10)-d(),c.css("padding-right",a+"px"),e.removeClass(f))}}function g(a,b,c,d){var e=k("is",b),f=[k("is",u.CLOSING),k("is",u.OPENING),k("is",u.CLOSED),k("is",u.OPENED)].join(" ");a.$bg.removeClass(f).addClass(e),a.$overlay.removeClass(f).addClass(e),a.$wrapper.removeClass(f).addClass(e),a.$modal.removeClass(f).addClass(e),a.state=b,!c&&a.$modal.trigger({type:b,reason:d},[{reason:d}])}function h(a,d,e){var f=0,g=function(a){a.target===this&&f++},h=function(a){a.target===this&&0===--f&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].off(r+" "+s)}),d())};b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].on(r,g).on(s,h)}),a(),0===c(e.$bg)&&0===c(e.$overlay)&&0===c(e.$wrapper)&&0===c(e.$modal)&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].off(r+" "+s)}),d())}function i(a){a.state!==u.CLOSED&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(b,c){a[c].off(r+" "+s)}),a.$bg.removeClass(a.settings.modifier),a.$overlay.removeClass(a.settings.modifier).hide(),a.$wrapper.hide(),f(),g(a,u.CLOSED,!0))}function j(a){var b,c,d,e,f={};for(a=a.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,","),b=a.split(","),e=0,c=b.length;c>e;e++)b[e]=b[e].split(":"),d=b[e][1],("string"==typeof d||d instanceof String)&&(d="true"===d||("false"===d?!1:d)),("string"==typeof d||d instanceof String)&&(d=isNaN(d)?d:+d),f[b[e][0]]=d;return f}function k(){for(var a=q,b=0;b<arguments.length;++b)a+="-"+arguments[b];return a}function l(){var a,c,d=location.hash.replace("#","");if(d){try{c=b("[data-"+p+'-id="'+d+'"]')}catch(e){}c&&c.length&&(a=b[p].lookup[c.data(p)],a&&a.settings.hashTracking&&a.open())}else n&&n.state===u.OPENED&&n.settings.hashTracking&&n.close()}function m(a,c){var d=b(document.body),e=this;e.settings=b.extend({},t,c),e.index=b[p].lookup.push(e)-1,e.state=u.CLOSED,e.$overlay=b("."+k("overlay")),e.$overlay.length||(e.$overlay=b("<div>").addClass(k("overlay")+" "+k("is",u.CLOSED)).hide(),d.append(e.$overlay)),e.$bg=b("."+k("bg")).addClass(k("is",u.CLOSED)),e.$modal=a.addClass(q+" "+k("is-initialized")+" "+e.settings.modifier+" "+k("is",u.CLOSED)).attr("tabindex","-1"),e.$wrapper=b("<div>").addClass(k("wrapper")+" "+e.settings.modifier+" "+k("is",u.CLOSED)).hide().append(e.$modal),d.append(e.$wrapper),e.$wrapper.on("click."+q,"[data-"+p+'-action="close"]',function(a){a.preventDefault(),e.close()}),e.$wrapper.on("click."+q,"[data-"+p+'-action="cancel"]',function(a){a.preventDefault(),e.$modal.trigger(v.CANCELLATION),e.settings.closeOnCancel&&e.close(v.CANCELLATION)}),e.$wrapper.on("click."+q,"[data-"+p+'-action="confirm"]',function(a){a.preventDefault(),e.$modal.trigger(v.CONFIRMATION),e.settings.closeOnConfirm&&e.close(v.CONFIRMATION)}),e.$wrapper.on("click."+q,function(a){var c=b(a.target);c.hasClass(k("wrapper"))&&e.settings.closeOnOutsideClick&&e.close()})}var n,o,p="remodal",q=a.REMODAL_GLOBALS&&a.REMODAL_GLOBALS.NAMESPACE||p,r=b.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(a){return a+"."+q}).join(" "),s=b.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(a){return a+"."+q}).join(" "),t=b.extend({hashTracking:!0,closeOnConfirm:!0,closeOnCancel:!0,closeOnEscape:!0,closeOnOutsideClick:!0,modifier:""},a.REMODAL_GLOBALS&&a.REMODAL_GLOBALS.DEFAULTS),u={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"},v={CONFIRMATION:"confirmation",CANCELLATION:"cancellation"},w=function(){var a=document.createElement("div").style;return void 0!==a.animationName||void 0!==a.WebkitAnimationName||void 0!==a.MozAnimationName||void 0!==a.msAnimationName||void 0!==a.OAnimationName}(),x=/iPad|iPhone|iPod/.test(navigator.platform);m.prototype.open=function(){var a,c=this;c.state!==u.OPENING&&c.state!==u.CLOSING&&(a=c.$modal.attr("data-"+p+"-id"),a&&c.settings.hashTracking&&(o=b(window).scrollTop(),location.hash=a),n&&n!==c&&i(n),n=c,e(),c.$bg.addClass(c.settings.modifier),c.$overlay.addClass(c.settings.modifier).show(),c.$wrapper.show().scrollTop(0),c.$modal.focus(),h(function(){g(c,u.OPENING)},function(){g(c,u.OPENED)},c))},m.prototype.close=function(a){var c=this;c.state!==u.OPENING&&c.state!==u.CLOSING&&(c.settings.hashTracking&&c.$modal.attr("data-"+p+"-id")===location.hash.substr(1)&&(location.hash="",b(window).scrollTop(o)),h(function(){g(c,u.CLOSING,!1,a)},function(){c.$bg.removeClass(c.settings.modifier),c.$overlay.removeClass(c.settings.modifier).hide(),c.$wrapper.hide(),f(),g(c,u.CLOSED,!1,a)},c))},m.prototype.getState=function(){return this.state},m.prototype.destroy=function(){var a,c=b[p].lookup;i(this),this.$wrapper.remove(),delete c[this.index],a=b.grep(c,function(a){return!!a}).length,0===a&&(this.$overlay.remove(),this.$bg.removeClass(k("is",u.CLOSING)+" "+k("is",u.OPENING)+" "+k("is",u.CLOSED)+" "+k("is",u.OPENED)))},b[p]={lookup:[]},b.fn[p]=function(a){var c,d;return this.each(function(e,f){d=b(f),null==d.data(p)?(c=new m(d,a),d.data(p,c.index),c.settings.hashTracking&&d.attr("data-"+p+"-id")===location.hash.substr(1)&&c.open()):c=b[p].lookup[d.data(p)]}),c},b(document).ready(function(){b(document).on("click","[data-"+p+"-target]",function(a){a.preventDefault();var c=a.currentTarget,d=c.getAttribute("data-"+p+"-target"),e=b("[data-"+p+'-id="'+d+'"]');b[p].lookup[e.data(p)].open()}),b(document).find("."+q).each(function(a,c){var d=b(c),e=d.data(p+"-options");e?("string"==typeof e||e instanceof String)&&(e=j(e)):e={},d[p](e)}),b(document).on("keydown."+q,function(a){n&&n.settings.closeOnEscape&&n.state===u.OPENED&&27===a.keyCode&&n.close()}),b(window).on("hashchange."+q,l)})});
 
 
 
 
 
 
 
 
 
 
assets/js/shims/color-picker.js CHANGED
File without changes
assets/js/shims/combos/1.js CHANGED
File without changes
assets/js/shims/combos/10.js CHANGED
File without changes
assets/js/shims/combos/11.js CHANGED
File without changes
assets/js/shims/combos/12.js CHANGED
File without changes
assets/js/shims/combos/13.js CHANGED
File without changes
assets/js/shims/combos/14.js CHANGED
File without changes
assets/js/shims/combos/15.js CHANGED
File without changes
assets/js/shims/combos/16.js CHANGED
File without changes
assets/js/shims/combos/17.js CHANGED
File without changes
assets/js/shims/combos/18.js CHANGED
File without changes
assets/js/shims/combos/2.js CHANGED
File without changes
assets/js/shims/combos/21.js CHANGED
File without changes
assets/js/shims/combos/22.js CHANGED
File without changes
assets/js/shims/combos/23.js CHANGED
File without changes
assets/js/shims/combos/25.js CHANGED
File without changes
assets/js/shims/combos/27.js CHANGED
File without changes
assets/js/shims/combos/28.js CHANGED
File without changes
assets/js/shims/combos/29.js CHANGED
File without changes
assets/js/shims/combos/3.js CHANGED
File without changes
assets/js/shims/combos/30.js CHANGED
File without changes
assets/js/shims/combos/31.js CHANGED
File without changes
assets/js/shims/combos/33.js CHANGED
File without changes
assets/js/shims/combos/34.js CHANGED
File without changes
assets/js/shims/combos/4.js CHANGED
File without changes
assets/js/shims/combos/5.js CHANGED
File without changes
assets/js/shims/combos/6.js CHANGED
File without changes
assets/js/shims/combos/7.js CHANGED
File without changes
assets/js/shims/combos/8.js CHANGED
File without changes
assets/js/shims/combos/9.js CHANGED
File without changes
assets/js/shims/combos/97.js CHANGED
File without changes
assets/js/shims/combos/98.js CHANGED
File without changes
assets/js/shims/combos/99.js CHANGED
File without changes
assets/js/shims/details.js CHANGED
File without changes
assets/js/shims/dom-extend.js CHANGED
File without changes
assets/js/shims/es5.js CHANGED
File without changes
assets/js/shims/es6.js CHANGED
File without changes
assets/js/shims/excanvas.js CHANGED
File without changes
assets/js/shims/filereader-xhr.js CHANGED
File without changes
assets/js/shims/form-combat.js CHANGED
File without changes
assets/js/shims/form-core.js CHANGED
File without changes
assets/js/shims/form-datalist-lazy.js CHANGED
File without changes
assets/js/shims/form-datalist.js CHANGED
File without changes
assets/js/shims/form-fixrangechange.js CHANGED
File without changes
assets/js/shims/form-inputmode.js CHANGED
File without changes
assets/js/shims/form-message.js CHANGED
File without changes
assets/js/shims/form-native-extend.js CHANGED
File without changes
assets/js/shims/form-number-date-api.js CHANGED
File without changes
assets/js/shims/form-number-date-ui.js CHANGED
File without changes
assets/js/shims/form-shim-extend.js CHANGED
File without changes
assets/js/shims/form-shim-extend2.js CHANGED
File without changes
assets/js/shims/form-validation.js CHANGED
File without changes
assets/js/shims/form-validators.js CHANGED
File without changes
assets/js/shims/forms-picker.js CHANGED
File without changes
assets/js/shims/geolocation.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-ar.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-bg.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-ca.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-ch-CN.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-cs.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-de.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-el.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-en.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-es.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-fa.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-fi.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-fr.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-he.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-hi.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-hu.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-it.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-ja.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-lt.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-nl.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-no.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-pl.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-pt-BR.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-pt-PT.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-pt.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-ru.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-sv.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-zh-CN.js CHANGED
File without changes
assets/js/shims/i18n/formcfg-zh-TW.js CHANGED
File without changes
assets/js/shims/matchMedia.js CHANGED
File without changes
assets/js/shims/mediacapture-picker.js CHANGED
File without changes
assets/js/shims/mediacapture.js CHANGED
File without changes
assets/js/shims/moxie/flash/Moxie.cdn.swf CHANGED
File without changes
assets/js/shims/moxie/flash/Moxie.min.swf CHANGED
File without changes
assets/js/shims/moxie/js/moxie-html4.js CHANGED
File without changes
assets/js/shims/moxie/js/moxie-swf.js CHANGED
File without changes
assets/js/shims/picture.js CHANGED
File without changes
assets/js/shims/plugins/jquery.ui.position.js CHANGED
File without changes
assets/js/shims/range-ui.js CHANGED
File without changes
assets/js/shims/sizzle.js CHANGED
File without changes
assets/js/shims/sticky.js CHANGED
File without changes
assets/js/shims/styles/color-picker.png CHANGED
File without changes
assets/js/shims/styles/forms-ext.css CHANGED
File without changes
assets/js/shims/styles/forms-picker.css CHANGED
File without changes
assets/js/shims/styles/progress.gif CHANGED
File without changes
assets/js/shims/styles/progress.png CHANGED
File without changes
assets/js/shims/styles/shim-ext.css CHANGED
File without changes
assets/js/shims/styles/shim.css CHANGED
File without changes
assets/js/shims/styles/transparent.png CHANGED
File without changes
assets/js/shims/styles/widget.eot CHANGED
File without changes
assets/js/shims/styles/widget.svg CHANGED
File without changes
assets/js/shims/styles/widget.ttf CHANGED
File without changes
assets/js/shims/styles/widget.woff CHANGED
File without changes
assets/js/shims/track-ui.js CHANGED
File without changes
assets/js/shims/track.js CHANGED
File without changes
assets/js/shims/url.js CHANGED
File without changes
assets/js/shims/usermedia-core.js CHANGED
File without changes
assets/js/shims/usermedia-shim.js CHANGED
File without changes
assets/js/shortcode-insert.min.js DELETED
@@ -1 +0,0 @@
1
- jQuery(function(e){if(e(".color-field").wpColorPicker({mode:"rgba"}),e("body").on("click","#caldera-forms-form-insert,#wp_fs_caldera-forms",function(t){t.preventDefault();var a=e(".caldera-forms-insert-modal");data=e(this).data("settings"),data&&(data.id&&e('.selected-form-shortcode[value="'+data.id+'"]').prop("checked",!0),data.modal&&(e(".set_cf_modal").prop("checked",!0),e(".modal-forms-setup").show()),data.type&&e(".modal_trigger_type").val(data.type),data.content&&e(".modal_trigger").val(data.content),data.width&&e(".modal_width").val(data.width),e(this).data("settings",{})),a.fadeIn(100)}),e("body").on("click",".caldera-modal-closer",function(t){t.preventDefault();var a=e(".caldera-forms-insert-modal");e("#calderaf_forms_shortcode_modal")[0].reset(),e(".modal-forms-setup").hide(),a.fadeOut(100)}),e("body").on("change",".set_cf_modal",function(t){var a=e(this);a.is(":checked")?e(".modal-forms-setup").show():e(".modal-forms-setup").hide()}),e("body").on("click",".caldera-form-shortcode-insert",function(t){t.preventDefault();var a,o=e(".selected-form-shortcode:checked"),d=e(".set_cf_modal").prop("checked"),r=e(".modal_trigger").val(),c=e(".modal_trigger_type").val(),i=e(".modal_width").val();if(o.length){var s="caldera_form";d&&(s="caldera_form_modal"),a="["+s+' id="'+o.val()+'"',d===!0&&"button"===c&&(a+=' type="'+c+'"'),i.length&&(a+=' width="'+i+'"'),a+="]",d&&(a+=r.length?r:o.parent().text(),a+="[/caldera_form_modal]"),e("#calderaf_forms_shortcode_modal")[0].reset(),e(".modal-forms-setup").hide(),o.prop("checked",!1),window.send_to_editor(a),e(".caldera-modal-closer").trigger("click")}}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media){var t=wp.media;"function"==typeof wp.mce.views.register&&wp.mce.views.register("caldera_form",{template:t.template("editor-caldera-forms"),initialize:function(){this.fetch()},setLoader:function(){this.setContent('<div class="loading-placeholder"><div class="dashicons dashicons-update" style="color:#a3be5f;"></div><div class="wpview-loading"><ins style="background-color:#a3be5f;"></ins></div></div>')},fetch:function(){var t=this,a={post_id:e("#post_ID").val(),content:t.shortcode.content,atts:t.shortcode.attrs};wp.ajax.post("cf_get_form_preview",a).done(function(e){t.render(e.html)}).fail(function(e){t.render(e.html)})},edit:function(e){var t=this.shortcode.attrs.named;t.content=this.shortcode.content,jQuery("#caldera-forms-form-insert").data("settings",t).trigger("click")}})}});
 
assets/js/support-page.js CHANGED
File without changes
assets/js/viewer/init.js CHANGED
File without changes
assets/js/viewer/viewer.js CHANGED
File without changes
assets/js/vue.js CHANGED
File without changes
assets/js/vue/vue-filter.js CHANGED
File without changes
assets/js/vue/vue.js CHANGED
File without changes
caldera-core.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: https://CalderaForms.com
5
  Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
6
  Author: CalderaWP
7
- Version: 1.5.0.2
8
  Author URI: http://CalderaLabs.org
9
  Text Domain: caldera-forms
10
  GitHub Plugin URI: https://github.com/CalderaWP/Caldera-Forms/
@@ -19,7 +19,7 @@ if ( ! defined( 'WPINC' ) ) {
19
 
20
  define('CFCORE_PATH', plugin_dir_path(__FILE__));
21
  define('CFCORE_URL', plugin_dir_url(__FILE__));
22
- define('CFCORE_VER', '1.5.0.2');
23
  define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
24
  define('CFCORE_BASENAME', plugin_basename( __FILE__ ));
25
 
4
  Plugin URI: https://CalderaForms.com
5
  Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
6
  Author: CalderaWP
7
+ Version: 1.5.0.3
8
  Author URI: http://CalderaLabs.org
9
  Text Domain: caldera-forms
10
  GitHub Plugin URI: https://github.com/CalderaWP/Caldera-Forms/
19
 
20
  define('CFCORE_PATH', plugin_dir_path(__FILE__));
21
  define('CFCORE_URL', plugin_dir_url(__FILE__));
22
+ define('CFCORE_VER', '1.5.0.3');
23
  define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
24
  define('CFCORE_BASENAME', plugin_basename( __FILE__ ));
25
 
classes/admin/apeasypods.php CHANGED
File without changes
classes/admin/apeasyqueries.php CHANGED
File without changes
classes/admin/apsetup.php CHANGED
File without changes
classes/admin/apsetupinterface.php CHANGED
File without changes
classes/admin/assets.php CHANGED
File without changes
classes/admin/extend.php CHANGED
File without changes
classes/admin/feed.php CHANGED
File without changes
classes/admin/panel.php CHANGED
File without changes
classes/api/entries.php CHANGED
File without changes
classes/api/form.php CHANGED
File without changes
classes/api/forms.php CHANGED
File without changes
classes/api/jsconfig.php CHANGED
File without changes
classes/api/settings.php CHANGED
File without changes
classes/api/token.php CHANGED
File without changes
classes/api/tokens.php CHANGED
File without changes
classes/autoloader.php CHANGED
File without changes
classes/db/base.php CHANGED
File without changes
classes/db/track.php CHANGED
File without changes
classes/email/attachment.php CHANGED
File without changes
classes/email/callbacks.php CHANGED
File without changes
classes/email/client.php CHANGED
File without changes
classes/email/interface.php CHANGED
File without changes
classes/email/preview.php CHANGED
File without changes
classes/email/previews.php CHANGED
File without changes
classes/email/save.php CHANGED
File without changes
classes/email/sendgrid.php CHANGED
File without changes
classes/email/sendgrid/lib/SendGrid.php CHANGED
File without changes
classes/email/sendgrid/lib/helpers/mail/Mail.php CHANGED
File without changes
classes/email/sendgrid/lib/helpers/mail/README.md CHANGED
File without changes
classes/email/sendgrid/sendgrid-php.php CHANGED
File without changes
classes/email/sendgrid/vendor/autoload.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/ClassLoader.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/LICENSE CHANGED
File without changes
classes/email/sendgrid/vendor/composer/autoload_classmap.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/autoload_files.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/autoload_namespaces.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/autoload_psr4.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/autoload_real.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/autoload_static.php CHANGED
File without changes
classes/email/sendgrid/vendor/composer/installed.json CHANGED
File without changes
classes/email/sendgrid/vendor/sendgrid/php-http-client/CHANGELOG.md CHANGED
File without changes
classes/email/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md CHANGED
File without changes
classes/email/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt CHANGED
File without changes
classes/email/sendgrid/vendor/sendgrid/php-http-client/README.md CHANGED
File without changes
classes/email/sendgrid/vendor/sendgrid/php-http-client/examples/example.php CHANGED
File without changes
classes/email/sendgrid/vendor/sendgrid/php-http-client/lib/SendGrid/Client.php CHANGED
File without changes
classes/email/settings.php CHANGED
File without changes
classes/entry.php CHANGED
File without changes
classes/entry/bulk.php CHANGED
File without changes
classes/entry/entries.php CHANGED
File without changes
classes/entry/entry.php CHANGED
File without changes
classes/entry/field.php CHANGED
File without changes
classes/entry/meta.php CHANGED
File without changes
classes/entry/object.php CHANGED
File without changes
classes/entry/shortcode.php CHANGED
File without changes
classes/entry/ui.php CHANGED
File without changes
classes/entry/update.php CHANGED
File without changes
classes/entry/viewer.php CHANGED
File without changes
classes/entry/vue.php CHANGED
File without changes
classes/field/credit.php CHANGED
File without changes
classes/field/html.php CHANGED
File without changes
classes/field/input.php CHANGED
File without changes
classes/field/js.php CHANGED
File without changes
classes/field/localizer.php CHANGED
File without changes
classes/fields.php CHANGED
File without changes
classes/forms.php CHANGED
File without changes
classes/magic.php CHANGED
File without changes
classes/magic/doer.php CHANGED
File without changes
classes/magic/parser.php CHANGED
File without changes
classes/magic/summary.php CHANGED
File without changes
classes/magic/util.php CHANGED
File without changes
classes/object.php CHANGED
File without changes
classes/render/assets.php CHANGED
File without changes
classes/render/autopopulation.php CHANGED
File without changes
classes/render/footer.php CHANGED
File without changes
classes/render/nonce.php CHANGED
File without changes
classes/render/notices.php CHANGED
File without changes
classes/render/util.php CHANGED
File without changes
classes/save.php CHANGED
File without changes
classes/support.php CHANGED
File without changes
classes/sync/calc.php CHANGED
File without changes
classes/sync/factory.php CHANGED
File without changes
classes/sync/html.php CHANGED
File without changes
classes/sync/summary.php CHANGED
File without changes
classes/sync/sync.php CHANGED
File without changes
classes/tracking.php CHANGED
File without changes
classes/transient.php CHANGED
File without changes
composer.json CHANGED
File without changes
fields/advanced_file/config_template.php CHANGED
File without changes
fields/advanced_file/field.php CHANGED
File without changes
fields/advanced_file/preview.php CHANGED
File without changes
fields/advanced_file/uploader.js CHANGED
File without changes
fields/advanced_file/uploader.min.js CHANGED
File without changes
fields/color_picker/field.php DELETED
@@ -1,7 +0,0 @@
1
- <?php echo $wrapper_before; ?>
2
- <?php echo $field_label; ?>
3
- <?php echo $field_before; ?>
4
- <input <?php echo $field_placeholder; ?> id="<?php echo esc_attr( $field_id ); ?>" data-field="<?php echo esc_attr( $field_base_id ); ?>" type="text" class="<?php echo esc_attr( $field_class ); ?> minicolor-picker init_field_type" data-type="color_picker" name="<?php echo esc_attr( $field_name ); ?>" value="<?php echo esc_attr( $field_value ); ?>" <?php echo $field_required; ?> <?php echo $field_structure['aria']; ?>>
5
- <?php echo $field_after; ?>
6
- <?php echo $field_caption; ?>
7
- <?php echo $wrapper_after; ?>
 
 
 
 
 
 
 
fields/color_picker/minicolors.min.css CHANGED
File without changes
fields/credit_card_cvc/config.php CHANGED
File without changes
fields/credit_card_cvc/preview.php CHANGED
File without changes
fields/credit_card_exp/config.php CHANGED
File without changes
fields/credit_card_exp/preview.php CHANGED
File without changes
fields/credit_card_number/config.php CHANGED
File without changes
fields/credit_card_number/credit-card.js CHANGED
File without changes
fields/credit_card_number/preview.php CHANGED
File without changes
fields/date_picker/js/setup.js CHANGED
File without changes
fields/email/field.php DELETED
@@ -1,13 +0,0 @@
1
- <?php
2
- if(!empty($field['config']['placeholder'])){
3
- $placeholder = Caldera_Forms::do_magic_tags( $field['config']['placeholder'] );
4
- $field_placeholder = 'placeholder="'. esc_attr( $placeholder ).'"';
5
- }
6
-
7
- ?><?php echo $wrapper_before; ?>
8
- <?php echo $field_label; ?>
9
- <?php echo $field_before; ?>
10
- <input <?php echo $field_placeholder; ?> type="email" data-field="<?php echo esc_attr( $field_base_id ); ?>" class="<?php echo esc_attr( $field_class ); ?>" id="<?php echo esc_attr( $field_id ); ?>" name="<?php echo esc_attr( $field_name ); ?>" value="<?php echo htmlentities( $field_value ); ?>" <?php echo $field_required; ?> <?php echo $field_structure['aria']; ?>>
11
- <?php echo $field_caption; ?>
12
- <?php echo $field_after; ?>
13
- <?php echo $wrapper_after; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
fields/file/uploader.js CHANGED
File without changes
fields/file/uploader.min.js CHANGED
File without changes
fields/generic-input.php CHANGED
File without changes
fields/number/config.php CHANGED
File without changes
fields/number/preview.php CHANGED
File without changes
fields/phone/field.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- if(!empty($field['config']['placeholder'])){
3
- $field_placeholder = 'placeholder="'. esc_attr(Caldera_Forms::do_magic_tags($field['config']['placeholder'])) .'"';
4
- }
5
-
6
- $mask = '(999)999-9999';
7
- if( $field['config']['type'] == 'international' ){
8
- $mask = '+99 99 999 9999';
9
- }elseif ( $field['config']['type'] == 'custom' ) {
10
- $mask = $field['config']['custom'];
11
- }
12
-
13
- ?><?php echo $wrapper_before; ?>
14
- <?php echo $field_label; ?>
15
- <?php echo $field_before; ?>
16
- <input <?php echo $field_placeholder; ?> type="tel" data-inputmask="'mask': '<?php echo esc_attr( $mask ); ?>'" data-field="<?php echo esc_attr( $field_base_id ); ?>" class="<?php echo esc_attr( $field_class ); ?>" id="<?php echo esc_attr( $field_id ); ?>" name="<?php echo esc_attr( $field_name ); ?>" value="<?php echo esc_attr( $field_value ); ?>" <?php echo $field_required; ?> <?php echo $field_structure['aria']; ?>>
17
- <?php echo $field_caption; ?>
18
- <?php echo $field_after; ?>
19
- <?php echo $wrapper_after; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fields/phone_better/assets/css/demo.css CHANGED
File without changes
fields/phone_better/assets/css/intlTelInput.css CHANGED
File without changes
fields/phone_better/assets/img/flags.png CHANGED
File without changes
fields/phone_better/assets/img/flags@2x.png CHANGED
File without changes
fields/phone_better/assets/js/intlTelInput.js CHANGED
File without changes
fields/phone_better/assets/js/intlTelInput.min.js CHANGED
File without changes
fields/phone_better/assets/js/utils.js CHANGED
File without changes
fields/phone_better/config.php CHANGED
File without changes
fields/phone_better/preview.php CHANGED
File without changes
fields/section-break/config.php CHANGED
File without changes
fields/section-break/section-break.php CHANGED
File without changes
fields/select2/field/config.php CHANGED
File without changes
fields/select2/field/field.php CHANGED
File without changes
fields/select2/field/preview.php CHANGED
File without changes
fields/select2/js/select2.js CHANGED
File without changes
fields/select2/js/select2.min.js CHANGED
File without changes
fields/select2/select2.php CHANGED
File without changes
fields/summary/config.php CHANGED
File without changes
fields/summary/field.php CHANGED
File without changes
fields/summary/preview.php CHANGED
File without changes
fields/text/field.php DELETED
@@ -1,36 +0,0 @@
1
- <?php
2
- if(!empty($field['config']['placeholder'])){
3
- $field_placeholder = 'placeholder="' . esc_attr(Caldera_Forms::do_magic_tags($field['config']['placeholder'])) . '"';
4
- }
5
-
6
- $mask = null;
7
- if(!empty($field['config']['masked'])){
8
- $mask = "data-inputmask=\"'mask': '".$field['config']['mask']."'\" ";
9
- }
10
- $type_override = 'text';
11
- if( !empty( $field['config']['type_override'] ) ){
12
- $type_override = $field['config']['type_override'];
13
- }
14
- preg_match_all("/%(.+?)%/", $field['config']['default'], $hastags);
15
- if(!empty($hastags[1])){
16
- $binds = array();
17
- foreach($hastags[1] as $tag_key=>$tag){
18
- foreach($form['fields'] as $key_id=>$fcfg){
19
- if( $key_id == $field_base_id ){ continue; } // ye bad to sync to itself
20
- if($fcfg['slug'] === $tag){
21
- $binds[] = $key_id;
22
- $field['config']['default'] = str_replace($hastags[0][$tag_key], '{{'.$key_id.'}}', $field['config']['default']);
23
- }
24
- }
25
- }
26
- $field_value = $field['config']['default'];
27
- $sync = true;
28
- }
29
- ?>
30
- <?php echo $wrapper_before; ?>
31
- <?php echo $field_label; ?>
32
- <?php echo $field_before; ?>
33
- <input <?php echo $field_placeholder; ?> type="<?php echo esc_attr( $type_override ); ?>" <?php echo $mask; ?><?php if(!empty( $sync ) ){ ?>data-binds="<?php echo esc_attr(wp_json_encode($binds)); ?>" data-sync="<?php echo esc_attr( $field['config']['default'] ); ?>"<?php } ?>data-field="<?php echo esc_attr( $field_base_id ); ?>" class="<?php echo esc_attr( $field_class ); ?>" id="<?php echo esc_attr( $field_id ); ?>" name="<?php echo esc_attr( $field_name ); ?>" value="<?php echo esc_attr( $field_value ); ?>" <?php echo $field_required; ?> <?php echo $field_structure['aria']; ?>>
34
- <?php echo $field_caption; ?>
35
- <?php echo $field_after; ?>
36
- <?php echo $wrapper_after; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fields/url/config.php CHANGED
File without changes
fields/url/preview.php CHANGED
File without changes
fields/wysiwyg/config_template.php CHANGED
File without changes
fields/wysiwyg/field.php CHANGED
File without changes
fields/wysiwyg/langs/ar.min.js CHANGED
File without changes
fields/wysiwyg/langs/ca.min.js CHANGED
File without changes
fields/wysiwyg/langs/cs.min.js CHANGED
File without changes
fields/wysiwyg/langs/da.min.js CHANGED
File without changes
fields/wysiwyg/langs/de.min.js CHANGED
File without changes
fields/wysiwyg/langs/el.min.js CHANGED
File without changes
fields/wysiwyg/langs/es.min.js CHANGED
File without changes
fields/wysiwyg/langs/es_ar.min.js CHANGED
File without changes
fields/wysiwyg/langs/fa.min.js CHANGED
File without changes
fields/wysiwyg/langs/fi.min.js CHANGED
File without changes
fields/wysiwyg/langs/fr.min.js CHANGED
File without changes
fields/wysiwyg/langs/he.min.js CHANGED
File without changes
fields/wysiwyg/langs/hr.min.js CHANGED
File without changes
fields/wysiwyg/langs/hu.min.js CHANGED
File without changes
fields/wysiwyg/langs/id.min.js CHANGED
File without changes
fields/wysiwyg/langs/it.min.js CHANGED
File without changes
fields/wysiwyg/langs/ja.min.js CHANGED
File without changes
fields/wysiwyg/langs/ko.min.js CHANGED
File without changes
fields/wysiwyg/langs/my.min.js CHANGED
File without changes
fields/wysiwyg/langs/nl.min.js CHANGED
File without changes
fields/wysiwyg/langs/no_nb.min.js CHANGED
File without changes
fields/wysiwyg/langs/ph.min.js CHANGED
File without changes
fields/wysiwyg/langs/pl.min.js CHANGED
File without changes
fields/wysiwyg/langs/pt.min.js CHANGED
File without changes
fields/wysiwyg/langs/ro.min.js CHANGED
File without changes
fields/wysiwyg/langs/rs.min.js CHANGED
File without changes
fields/wysiwyg/langs/rs_latin.min.js CHANGED
File without changes
fields/wysiwyg/langs/ru.min.js CHANGED
File without changes
fields/wysiwyg/langs/sk.min.js CHANGED
File without changes
fields/wysiwyg/langs/sv.min.js CHANGED
File without changes
fields/wysiwyg/langs/tr.min.js CHANGED
File without changes
fields/wysiwyg/langs/ua.min.js CHANGED
File without changes
fields/wysiwyg/langs/vi.min.js CHANGED
File without changes
fields/wysiwyg/langs/zh_cn.min.js CHANGED
File without changes
fields/wysiwyg/langs/zh_tw.min.js CHANGED
File without changes
fields/wysiwyg/preview.php CHANGED
File without changes
fields/wysiwyg/ui/icons.svg CHANGED
File without changes
fields/wysiwyg/wysiwyg.css CHANGED
File without changes
fields/wysiwyg/wysiwyg.js CHANGED
File without changes
fields/wysiwyg/wysiwyg.min.css CHANGED
File without changes
fields/wysiwyg/wysiwyg.min.js CHANGED
File without changes
includes/ajax.php CHANGED
File without changes
includes/compat.php CHANGED
File without changes
includes/functions.php CHANGED
File without changes
includes/presets/countries_iso_alpha_2.txt CHANGED
File without changes
includes/presets/countries_names.txt CHANGED
File without changes
includes/templates/job-application-form-example.php CHANGED
File without changes
includes/templates/rate-our-service-example.php CHANGED
File without changes
includes/templates/registration-form-example.php CHANGED
File without changes
includes/templates/simple-booking-form-example.php CHANGED
File without changes
includes/templates/starter-contact-form.php CHANGED
File without changes
includes/templates/variable-price-example.php CHANGED
File without changes
includes/updater.php CHANGED
File without changes
languages/caldera-forms-pt_BR.mo CHANGED
File without changes
languages/caldera-forms-pt_BR.po CHANGED
File without changes
languages/caldera-forms-pt_PT.mo CHANGED
File without changes
languages/caldera-forms-pt_PT.po CHANGED
File without changes
languages/caldera-forms-tr_TR.mo CHANGED
File without changes
languages/caldera-forms-tr_TR.po CHANGED
File without changes
processors/classes/conditional_recipient.php CHANGED
File without changes
processors/classes/get_data.php CHANGED
File without changes
processors/classes/interfaces/newsletter.php CHANGED
File without changes
processors/classes/interfaces/payment.php CHANGED
File without changes
processors/classes/interfaces/process.php CHANGED
File without changes
processors/classes/load.php CHANGED
File without changes
processors/classes/newsletter.php CHANGED
File without changes
processors/classes/payment.php CHANGED
File without changes
processors/classes/processor.php CHANGED
File without changes
processors/classes/ui.php CHANGED
File without changes
processors/conditional_recipient/config.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ echo Caldera_Forms_Processor_UI::config_fields( caldera_forms_conditional_recipients_fields() );
3
+ ?>
processors/functions.php CHANGED
File without changes
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Shelob9, Desertsnowman, christiechirinos
3
  Tags: forms, formbuilder, form builder, contact form, form, contact, custom form, custom forms, forms creator, caldera forms, calderawp, wp form, responsive, forms, form, drag and drop, email, awesome, wordpress free form builder, echecks, form builder plugin wordpress, wordpress builder plugin, wordpress forms builder, form builder wordpress, contact form builder wordpress, bootstrap, bootstrap form builder, bootstrap forms, login forms, drag and drop forms, responsive forms, mailchimp, mailchimp form, credit card form, braintree, braintree form, authorize.net, authorize.net form, eCheck,dwolla, dwolla form, paypal, paypal form, hi roy, search forms, pods, advanced custom fields, easy forms, contact form builder, gravity forms, contact, email, auto-responder, aweber, converkit, builder, contact forms, search, ab testing, a/b testing, split testing, shortcode, wordpress, awesome plugin, plugin, easy, braintree form, dwolla form, authorize.net form, mailchimp form, mailchimp popup, aweber form, converkit form, stripe form, stripe popup, eCheck form
4
  Requires at least: 4.5
5
  Tested up to: 4.7.3
6
- Stable tag: 1.5.0.2
7
  License: GPLv2
8
 
9
  A different kind of WordPress form builder.
3
  Tags: forms, formbuilder, form builder, contact form, form, contact, custom form, custom forms, forms creator, caldera forms, calderawp, wp form, responsive, forms, form, drag and drop, email, awesome, wordpress free form builder, echecks, form builder plugin wordpress, wordpress builder plugin, wordpress forms builder, form builder wordpress, contact form builder wordpress, bootstrap, bootstrap form builder, bootstrap forms, login forms, drag and drop forms, responsive forms, mailchimp, mailchimp form, credit card form, braintree, braintree form, authorize.net, authorize.net form, eCheck,dwolla, dwolla form, paypal, paypal form, hi roy, search forms, pods, advanced custom fields, easy forms, contact form builder, gravity forms, contact, email, auto-responder, aweber, converkit, builder, contact forms, search, ab testing, a/b testing, split testing, shortcode, wordpress, awesome plugin, plugin, easy, braintree form, dwolla form, authorize.net form, mailchimp form, mailchimp popup, aweber form, converkit form, stripe form, stripe popup, eCheck form
4
  Requires at least: 4.5
5
  Tested up to: 4.7.3
6
+ Stable tag: 1.5.0.3
7
  License: GPLv2
8
 
9
  A different kind of WordPress form builder.
ui/community.php DELETED
@@ -1,50 +0,0 @@
1
- <div class="caldera-editor-header">
2
- <ul class="caldera-editor-header-nav">
3
- <li class="caldera-editor-logo">
4
- <span class="dashicons-cf-logo"></span>
5
- <?php echo __('Caldera Forms', 'caldera-forms'); ?>
6
- </li>
7
- <li class="caldera-element-type-label">
8
- <?php echo __('Community', 'caldera-forms'); ?>
9
- </li>
10
- </ul>
11
- </div>
12
-
13
- <div class="caldera-editor-header caldera-editor-subnav">
14
- <ul class="caldera-editor-header-nav ajax-trigger" data-load-class="spinner" data-request="<?php echo CFCORE_EXTEND_URL . 'channels/community/?version=' . CFCORE_VER; ?>" data-target="#main-cat-nav" data-target-insert="append" data-template="#nav-items-tmpl" data-event="loadchannels" data-autoload="true" id="main-cat-nav" >
15
- </ul>
16
- </div>
17
- <div class="form-extend-page-wrap" id="form-extend-viewer" style="visibility:visible;"></div>
18
-
19
- <?php
20
- do_action('caldera_forms_admin_templates');
21
- ?>
22
-
23
- <script type="text/javascript">
24
-
25
- function cf_clear_panel(el){
26
- jQuery(jQuery(el).data('target')).empty();
27
- }
28
- jQuery(function($){
29
- $('.caldera-editor-header').on('click', '.caldera-editor-header-nav a', function(e){
30
- e.preventDefault();
31
-
32
- var clicked = $(this);
33
-
34
- // remove active tab
35
- $('.caldera-editor-header-nav li').removeClass('active');
36
-
37
- // hide all tabs
38
- $('.form-extend-page-wrap').hide();
39
-
40
- // show new tab
41
- $( clicked.attr('href') ).show();
42
-
43
- // set active tab
44
- clicked.parent().addClass('active');
45
-
46
- });
47
-
48
- })
49
-
50
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ui/emails/email-preview.php CHANGED
File without changes
ui/emails/settings.php CHANGED
File without changes
ui/entries/pagination.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! defined( 'ABSPATH' ) ){
3
+ exit;
4
+ }
5
+ $entry_perpage = Caldera_Forms_Entry_Viewer::entries_per_page();
6
+ ?>
7
+ <div class="tablenav caldera-table-nav" style="display:none;">
8
+
9
+ <div class="tablenav-pages">
10
+ <label class="screen-reader-text" id="cf-entries-list-items">
11
+ <?php esc_html__( 'Posts Per Page', 'caldera-forms' ); ?>
12
+ </label>
13
+ <input title="<?php echo esc_attr( esc_html__( 'Entries per page', 'caldera-forms' ) ); ?>" id="cf-entries-list-items" type="number" value="<?php echo esc_attr( $entry_perpage ); ?>" class="screen-per-page" data-perpage="<?php echo esc_attr( $entry_perpage ); ?>" min="1" />
14
+ <span class="pagination-links">
15
+ <a href="#first" title="<?php esc_attr_e( 'Go to the first page', 'caldera-forms' ); ?>" data-page="first" class="first-page">«</a>
16
+ <a href="#prev" title="<?php esc_attr_e( 'Go to the previous page', 'caldera-forms' ); ?>" data-page="prev" class="prev-page">‹</a>
17
+ <span class="paging-input"><input type="text" size="1" name="paged" title="Current page" class="current-page"> <?php esc_html_e( 'of'); ?> <span class="total-pages"></span></span>
18
+ <a href="#next" title="<?php esc_attr_e( 'Go to the next page', 'caldera-forms' ); ?>" data-page="next" class="next-page">›</a>
19
+ <a href="#last" title="<?php esc_attr_e( 'Go to the last page', 'caldera-forms' ); ?>" data-page="last" class="last-page">»</a>
20
+ </span>
21
+ </div>
22
+ </div>
ui/entries/scripts_templates.php ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! defined( 'ABSPATH' ) ){
3
+ exit;
4
+ }
5
+ ?>
6
+ <script type="text/javascript">
7
+ var init_cf_baldrick;
8
+ var perPage = jQuery('#cf-entries-list-items').val();
9
+ function cf_set_limits( el ){
10
+ jQuery( el ).data('perpage', perPage );
11
+ }
12
+
13
+ function cf_refresh_view(obj){
14
+
15
+ jQuery('.entry_count_' + obj.params.trigger.data('form')).html(obj.rawData.total);
16
+ jQuery('.status_toggles[data-status="trash"] .current-status-count').html(obj.rawData.trash);
17
+ jQuery('.status_toggles[data-status="active"] .current-status-count').html(obj.rawData.total);
18
+ if(obj.rawData.undo === obj.params.trigger.data('panel')){
19
+ obj.params.trigger.closest('tr').addClass('cf-deleted-row');
20
+ }else{
21
+ obj.params.trigger.closest('tr').removeClass('cf-deleted-row');
22
+ }
23
+ obj.params.trigger.data('do', obj.rawData.undo).html(obj.rawData.undo_text).removeClass('disabled');
24
+ }
25
+
26
+ function setup_pagination(obj){
27
+
28
+ var total = obj.rawData.total,
29
+ trash = obj.rawData.trash,
30
+ active = obj.rawData.active,
31
+ toggles = jQuery('.status_toggles'),
32
+ exporter = jQuery('.caldera-entry-exporter'),
33
+ tense = ( total === 1 ? ' <?php _e('item'); ?>' : ' <?php _e('items'); ?>' ),
34
+ pages = obj.rawData.pages,
35
+ current = obj.rawData.current_page,
36
+ form = obj.params.trigger.data('form'),
37
+ status = obj.params.trigger.data('status'),
38
+ pagenav = jQuery('.caldera-table-nav'),
39
+ page_links = pagenav.find('.pagination-links'),
40
+ entries_total = pagenav.find('.displaying-num'),
41
+ pages_total = pagenav.find('.total-pages'),
42
+ current_display = pagenav.find('.current-page'),
43
+ first_page = pagenav.find('.first-page'),
44
+ prev_page = pagenav.find('.prev-page'),
45
+ next_page = pagenav.find('.next-page'),
46
+ last_page = pagenav.find('.last-page'),
47
+ form_trigger = jQuery('.form_entry_row.highlight').find('.form-entry-trigger'),
48
+ bulk_actions = jQuery('#cf_bulk_action'),
49
+ bulk_template = jQuery('#bulk-actions-'+status+'-tmpl').html(),
50
+ entry_count = jQuery('.entry_count_' + form);
51
+
52
+ obj.params.trigger.data('page', current);
53
+ form_trigger.data('status', status);
54
+ bulk_actions.html(bulk_template);
55
+
56
+ toggles.removeClass('button-primary').removeClass('disabled');
57
+ toggles.filter('[data-status="'+status+'"]').addClass('button-primary');
58
+ toggles.each(function(k,v){
59
+ var el = jQuery(v);
60
+ if(typeof obj.rawData[el.data('status')] === 'number'){
61
+ if(obj.rawData[el.data('status')] > 0){
62
+ el.find('.current-status-count').html(obj.rawData[el.data('status')]);
63
+ }else{
64
+ el.find('.current-status-count').html('');
65
+ }
66
+ }
67
+ });
68
+ // update count
69
+ entry_count.html(active);
70
+ //bulk-actions-active-tmpl
71
+
72
+ // add form id to toggles
73
+ toggles.data('form', form)
74
+ pagenav.data('total', pages);
75
+
76
+ if(pages <= 1){
77
+ page_links.hide();
78
+ }else{
79
+ page_links.show();
80
+ }
81
+ exporter.find('.caldera-forms-entry-exporter').attr('href', 'admin.php?page=caldera-forms&export=' + form);
82
+ exporter.show();
83
+ pagenav.show();
84
+ page_links.find('a').removeClass('disabled');
85
+
86
+ // setup values
87
+ page_links.data('total', total);
88
+ entries_total.html(total + tense);
89
+ pages_total.html(pages);
90
+ current_display.val(current);
91
+
92
+ if(current === 1){
93
+ first_page.addClass('disabled');
94
+ prev_page.addClass('disabled');
95
+ }else if(current === pages){
96
+ last_page.addClass('disabled');
97
+ next_page.addClass('disabled');
98
+ }
99
+
100
+ jQuery( 'html, body').animate({
101
+ scrollTop: 0
102
+ }, 250 );
103
+
104
+
105
+ init_cf_baldrick();
106
+ jQuery( window ).trigger('resize');
107
+ }
108
+
109
+ jQuery(function($){
110
+
111
+ init_cf_baldrick = function(){
112
+ $('.cfajax-trigger').baldrick({
113
+ before : function(el, ev){
114
+
115
+ var form = $(el),
116
+ buttons = form.find(':submit');
117
+ ev.preventDefault();
118
+ if( form.is( 'form' ) ){
119
+
120
+ var validate = form.parsley({
121
+ errorsWrapper : '<span class="help-block caldera_ajax_error_block"></span>',
122
+ errorTemplate : '<span></span>'
123
+ });
124
+
125
+ if( !validate.isValid() ){
126
+ $(window).trigger('resize');
127
+ return false;
128
+ }
129
+ }
130
+ },
131
+ callback : function( obj ){
132
+ var form;
133
+ if( obj.params.trigger.is( 'form' ) ){
134
+ form = obj.params.trigger;
135
+ }else{
136
+ form = obj.params.target.find( 'form.caldera_forms_form' );
137
+ }
138
+ if( form.length ){
139
+ var validate = form.parsley({
140
+ errorsWrapper : '<span class="help-block caldera_ajax_error_block"></span>',
141
+ errorTemplate : '<span></span>'
142
+ });
143
+ }
144
+ calders_forms_init_conditions();
145
+
146
+ }
147
+ });
148
+
149
+ window.Parsley.on('field:validated', function() {
150
+ setTimeout( function(){ $(window).trigger('resize') }, 10 );
151
+ });
152
+ }
153
+
154
+ function do_page_navigate(el){
155
+
156
+ var clicked = $(el);
157
+
158
+ if(clicked.hasClass('disabled')){
159
+ return;
160
+ }
161
+
162
+ var form_trigger = $('.form_entry_row.highlight').find('.form-entry-trigger'),
163
+ current = parseInt(form_trigger.data('page')),
164
+ pagenav = jQuery('.caldera-table-nav'),
165
+ page_links = pagenav.find('.pagination-links'),
166
+ total = parseInt(pagenav.data('total')),
167
+ perpage = parseInt( $( '#cf-entries-list-items' ).val() );
168
+
169
+
170
+ if(clicked.data('page') === 'first'){
171
+ form_trigger.data('page', 1).trigger('click');
172
+ }else if(clicked.data('page') === 'prev'){
173
+ var next = current - 1;
174
+ form_trigger.data('page', next).trigger('click');
175
+ }else if(clicked.data('page') === 'next'){
176
+ var next = current + 1;
177
+ form_trigger.data('page', next).trigger('click');
178
+ }else if(clicked.data('page') === 'last'){
179
+ form_trigger.data('page', total).trigger('click');
180
+ }else{
181
+ form_trigger.data('page', clicked.val()).trigger('click');
182
+ }
183
+ }
184
+
185
+ $('body').on('change','.current-page', function(e){
186
+ do_page_navigate(this);
187
+ });
188
+ $('body').on('click','.pagination-links a', function(e){
189
+ e.preventDefault();
190
+ do_page_navigate(this);
191
+ });
192
+ $( document ).on('cf.add cf.remove cf.enable cf.disable', function(){
193
+ $(window).trigger('resize');
194
+ });
195
+ });
196
+
197
+ function cf_clear_panel(el){
198
+ jQuery(jQuery(el).data('target')).empty();
199
+ }
200
+
201
+ var ready_limit_change;
202
+ jQuery(document).on('change', '#cf-entries-list-items', function(){
203
+ perPage = jQuery( this ).val();
204
+
205
+ if( ready_limit_change ){
206
+ clearTimeout( ready_limit_change );
207
+ }
208
+ ready_limit_change = setTimeout( function(){
209
+ jQuery('.status_toggles.button-primary').trigger('click');
210
+ }, 280 );
211
+
212
+ });
213
+
214
+
215
+ jQuery(function($){
216
+
217
+ $('body').on('change', '.cf-bulkcheck', function(){
218
+
219
+ var checked = $(this),
220
+ parent = checked.closest('.cf-table-viewer'),
221
+ checks = parent.find('.cf-entrycheck'),
222
+ action = $('#cf_bulk_action');
223
+
224
+ checks.prop('checked', checked.prop('checked'));
225
+
226
+ });
227
+
228
+ $('body').on('change', '.cf-entrycheck', function(){
229
+
230
+ var checkall = $('.cf-bulkcheck'),
231
+ allchecks = $('.cf-entrycheck'),
232
+ checked = $('.cf-entrycheck:checked');
233
+
234
+ if(allchecks.length != checked.length){
235
+ checkall.prop('checked', false);
236
+ }else{
237
+ checkall.prop('checked', true);
238
+ }
239
+
240
+ });
241
+ $('body').on('click', '.cf-bulk-action', function(){
242
+
243
+ var action = $('#cf_bulk_action'),
244
+ bulkCheck = $('.cf-bulkcheck'),
245
+ nonce = $('#cf_toolbar_actions'),
246
+ referer = nonce.parent().find('[name="_wp_http_referer"]');
247
+
248
+ if( !action.val().length){
249
+ return;
250
+ }
251
+
252
+ action.prop('disabled', true);
253
+ var checks = $('#form-entries-viewer .cf-entrycheck:checked'),
254
+ form = $('#form-entries-viewer .list.form-panel').data('form');
255
+
256
+ if(checks.length){
257
+
258
+ var list = [],
259
+ rows = [];
260
+ for( var i = 0; i<checks.length; i++){
261
+ list.push(checks[i].value);
262
+ rows.push('#entry_row_' + checks[i].value);
263
+ }
264
+ var row_items = $(rows.join(','));
265
+
266
+ var data = {
267
+ 'action' : 'cf_bulk_action',
268
+ 'do' : action.val(),
269
+ 'items' : list,
270
+ 'form' : form,
271
+ 'cf_toolbar_actions' : nonce.val(),
272
+ '_wp_http_referer' : referer.val()
273
+ }
274
+
275
+ row_items.animate({"opacity": .4}, 500);
276
+ $.post(ajaxurl, data, function(res){
277
+ if(res.status && res.entries && res.total){
278
+ row_items.remove();
279
+ $('.entry_count_' + form).html(res.total);
280
+ $('input.current-page').trigger('change');
281
+ }else if(res.url){
282
+ row_items.animate({"opacity": 1}, 500);
283
+ window.location = res.url;
284
+ }else if(res.status === 'reload'){
285
+ $('input.current-page').trigger('change');
286
+ }
287
+ action.val('').prop('disabled', false);
288
+ bulkCheck.prop('checked', false);
289
+ });
290
+ }else{
291
+ action.prop('disabled', false);
292
+ }
293
+
294
+ });
295
+
296
+ });
297
+
298
+ </script>
299
+
300
+ <script type="text/html" id="forms-list-alt-tmpl">
301
+
302
+ {{#if entries}}
303
+ <div class="list form-panel postbox" data-form="{{form}}">
304
+ <table class="table table-condensed cf-table-viewer">
305
+ <thead>
306
+ <tr>
307
+ <th style="width:16px;"><input type="checkbox" class="cf-bulkcheck"></th>
308
+ <th><?php esc_html_e('ID', 'caldera-forms' ); ?></th>
309
+ <th><?php esc_html_e('Submitted', 'caldera-forms' ); ?></th>
310
+ {{#each fields}}
311
+ <th>{{this}}</th>
312
+ {{/each}}
313
+ <th style="width: 100px;"></th>
314
+ </tr>
315
+ </thead>
316
+ <tbody>
317
+ {{#if entries}}
318
+ {{#each entries}}
319
+ <tr id="entry_row_{{_entry_id}}">
320
+ <td style="width:16px;"><input type="checkbox" class="cf-entrycheck" value="{{_entry_id}}"></td>
321
+ <td>{{_entry_id}}</td>
322
+ <td>{{_date}}</td>
323
+ {{#each data}}
324
+ <td>{{#if label}}{{value}}{{else}}{{{this}}}{{/if}}</td>
325
+ {{/each}}
326
+ <td style="text-align: right; width: 100px;white-space: nowrap;">
327
+ <?php
328
+ do_action('caldera_forms_entry_actions');
329
+ ?>
330
+ </td>
331
+ </tr>
332
+ {{/each}}
333
+ {{else}}
334
+ <tr><td colspan="100"><?php esc_html_e('No entries found', 'caldera-forms' ); ?></td></tr>
335
+ {{/if}}
336
+ </tbody>
337
+ </table>
338
+ </div>
339
+ {{else}}
340
+ <p class="description"><?php esc_html_e('No entries yet.', 'caldera-forms' ); ?></p>
341
+ {{/if}}
342
+ </script>
343
+
344
+ <script type="text/html" id="view-entry-tmpl">
345
+ {{#if user}}
346
+ <div class="user-avatar user-avatar-{{user/ID}}"{{#if user/name}} title="{{user/name}}"{{/if}} style="margin-top:-1px;">
347
+ {{{user/avatar}}}
348
+ </div>
349
+ {{/if}}
350
+
351
+ <div id="main-entry-panel" class="tab-detail-panel" data-tab="<?php esc_html_e('Entry', 'caldera-forms' ); ?>">
352
+ <h4>
353
+ <?php esc_html_e('Submitted', 'caldera-forms' ); ?> <small class="description">{{date}}</small>
354
+ </h4>
355
+ <hr>
356
+ {{#each data}}
357
+ <div class="entry-line">
358
+ <label>{{label}}</label>
359
+ <div>{{#if view/label}}{{view/value}}{{else}}{{{view}}}{{/if}}&nbsp;</div>
360
+ </div>
361
+ {{/each}}
362
+ </div>
363
+
364
+
365
+ {{#if meta}}
366
+ {{#each meta}}
367
+ <div id="meta-{{@key}}" data-tab="{{name}}" class="tab-detail-panel">
368
+ <h4>{{name}}</h4>
369
+ <hr>
370
+ {{#unless template}}
371
+ {{#each data}}
372
+ {{#if title}}
373
+ <h4>{{title}}</h4>
374
+ {{/if}}
375
+ {{#each entry}}
376
+ <div class="entry-line">
377
+ <label>{{meta_key}}</label>
378
+ <div>{{{meta_value}}}&nbsp;</div>
379
+ </div>
380
+ {{/each}}
381
+ {{/each}}
382
+ {{/unless}}
383
+ <?php do_action('caldera_forms_entry_meta_templates'); ?>
384
+ </div>
385
+ {{/each}}
386
+ {{/if}}
387
+
388
+ </script>
ui/{entries_toolbar.php → entries/toolbar.php} RENAMED
@@ -27,6 +27,7 @@
27
  data-page="1"
28
  data-nonce="<?php echo esc_attr( wp_create_nonce( 'view_entries' ) ); ?>"
29
  data-status="active"
 
30
  ><?php esc_html_e('Active', 'caldera-forms'); ?> <span class="current-status-count"></span></button>
31
  <button type="button" class="status_toggles button ajax-trigger" style="margin-top: 1px; margin-right: 10px;"
32
  data-before="cf_set_limits"
@@ -39,7 +40,8 @@
39
  data-group="status_nav"
40
  data-callback="setup_pagination"
41
  data-page="1"
42
- data-nonce="<?php echo esc_attr( wp_create_nonce( 'view_entries' ) ); ?>"
 
43
  data-status="trash"
44
  ><?php esc_html_e( 'Trash', 'caldera-forms' ); ?> <span class="current-status-count"></span></button>
45
  </span>
@@ -49,9 +51,19 @@
49
 
50
  </span>
51
  <span class="cf-tools-row cf-tools-row-second">
52
-
53
-
 
54
  <select id="cf_bulk_action" name="action" style="vertical-align: top;">
 
 
 
 
 
 
 
 
 
55
  </select>
56
  <button type="button" class="button cf-bulk-action">
57
  <?php esc_html_e( 'Apply', 'caldera-forms' ); ?>
@@ -60,5 +72,12 @@
60
 
61
  </div>
62
 
63
- <?php do_action('caldera_forms_entries_toolbar'); ?>
 
 
 
 
 
 
 
64
 
27
  data-page="1"
28
  data-nonce="<?php echo esc_attr( wp_create_nonce( 'view_entries' ) ); ?>"
29
  data-status="active"
30
+ data-perpage="<?php echo esc_attr( Caldera_Forms_Entry_Viewer::entries_per_page() ); ?>"
31
  ><?php esc_html_e('Active', 'caldera-forms'); ?> <span class="current-status-count"></span></button>
32
  <button type="button" class="status_toggles button ajax-trigger" style="margin-top: 1px; margin-right: 10px;"
33
  data-before="cf_set_limits"
40
  data-group="status_nav"
41
  data-callback="setup_pagination"
42
  data-page="1"
43
+ data-perpage="<?php echo esc_attr( Caldera_Forms_Entry_Viewer::entries_per_page() ); ?>"
44
+ data-nonce="<?php echo esc_attr( wp_create_nonce( 'view_entries' ) ); ?>"
45
  data-status="trash"
46
  ><?php esc_html_e( 'Trash', 'caldera-forms' ); ?> <span class="current-status-count"></span></button>
47
  </span>
51
 
52
  </span>
53
  <span class="cf-tools-row cf-tools-row-second">
54
+ <label for="cf_bulk_action" class="screen-reader-text">
55
+ <?php esc_html_e( 'Bulk Action For Entries', 'caldera-forms' ); ?>
56
+ </label>
57
  <select id="cf_bulk_action" name="action" style="vertical-align: top;">
58
+ <option selected="selected" value="">
59
+ <?php esc_html_e( 'Bulk Actions', 'caldera-forms' ); ?>
60
+ </option>
61
+ <option value="export">
62
+ <?php esc_html_e( 'Export Selected', 'caldera-forms' ); ?>
63
+ </option>
64
+ <option value="trash">
65
+ <?php esc_html_e( 'Move to Trash', 'caldera-forms' ); ?>
66
+ </option>
67
  </select>
68
  <button type="button" class="button cf-bulk-action">
69
  <?php esc_html_e( 'Apply', 'caldera-forms' ); ?>
72
 
73
  </div>
74
 
75
+ <?php
76
+ /**
77
+ * Runs at the end of the entries toolbar
78
+ *
79
+ * @since unknown
80
+ */
81
+ do_action('caldera_forms_entries_toolbar');
82
+ ?>
83
 
ui/entries/viewer.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! defined( 'ABSPATH' ) ){
3
+ exit;
4
+ }
5
+
6
+ if( ! isset( $with_toolbar ) ){
7
+ $with_toolbar = true;
8
+ }
9
+ ?>
10
+ <div class="form-entries-wrap" aria-live="polite" aria-relevant="additions removals">
11
+ <?php
12
+ if( $with_toolbar ) {
13
+ include CFCORE_PATH . 'ui/entries/toolbar.php';
14
+ }
15
+
16
+ ?>
17
+ <div id="form-entries-viewer"></div>
18
+ <?php include CFCORE_PATH . 'ui/entries/pagination.php'; ?>
19
+ </div>
ui/entry_navigation.php DELETED
@@ -1,188 +0,0 @@
1
- <script type="text/javascript">
2
- var init_cf_baldrick;
3
- function cf_set_limits( el ){
4
- jQuery( el ).data('perpage', jQuery('#cf-entries-list-items').val() );
5
- }
6
- function cf_refresh_view(obj){
7
-
8
- jQuery('.entry_count_' + obj.params.trigger.data('form')).html(obj.rawData.total);
9
- jQuery('.status_toggles[data-status="trash"] .current-status-count').html(obj.rawData.trash);
10
- jQuery('.status_toggles[data-status="active"] .current-status-count').html(obj.rawData.total);
11
- if(obj.rawData.undo === obj.params.trigger.data('panel')){
12
- obj.params.trigger.closest('tr').addClass('cf-deleted-row');
13
- }else{
14
- obj.params.trigger.closest('tr').removeClass('cf-deleted-row');
15
- }
16
- obj.params.trigger.data('do', obj.rawData.undo).html(obj.rawData.undo_text).removeClass('disabled');
17
- }
18
-
19
- function setup_pagination(obj){
20
-
21
- var total = obj.rawData.total,
22
- trash = obj.rawData.trash,
23
- active = obj.rawData.active,
24
- toggles = jQuery('.status_toggles'),
25
- exporter = jQuery('.caldera-entry-exporter'),
26
- tense = ( total === 1 ? ' <?php _e('item'); ?>' : ' <?php _e('items'); ?>' ),
27
- pages = obj.rawData.pages,
28
- current = obj.rawData.current_page,
29
- form = obj.params.trigger.data('form'),
30
- status = obj.params.trigger.data('status'),
31
- pagenav = jQuery('.caldera-table-nav'),
32
- page_links = pagenav.find('.pagination-links'),
33
- entries_total = pagenav.find('.displaying-num'),
34
- pages_total = pagenav.find('.total-pages'),
35
- current_display = pagenav.find('.current-page'),
36
- first_page = pagenav.find('.first-page'),
37
- prev_page = pagenav.find('.prev-page'),
38
- next_page = pagenav.find('.next-page'),
39
- last_page = pagenav.find('.last-page'),
40
- form_trigger = jQuery('.form_entry_row.highlight').find('.form-entry-trigger'),
41
- bulk_actions = jQuery('#cf_bulk_action'),
42
- bulk_template = jQuery('#bulk-actions-'+status+'-tmpl').html(),
43
- entry_count = jQuery('.entry_count_' + form);
44
-
45
- obj.params.trigger.data('page', current);
46
- form_trigger.data('status', status);
47
- bulk_actions.html(bulk_template);
48
-
49
- toggles.removeClass('button-primary').removeClass('disabled');
50
- toggles.filter('[data-status="'+status+'"]').addClass('button-primary');
51
- toggles.each(function(k,v){
52
- var el = jQuery(v);
53
- if(typeof obj.rawData[el.data('status')] === 'number'){
54
- if(obj.rawData[el.data('status')] > 0){
55
- el.find('.current-status-count').html(obj.rawData[el.data('status')]);
56
- }else{
57
- el.find('.current-status-count').html('');
58
- }
59
- }
60
- });
61
- // update count
62
- entry_count.html(active);
63
- //bulk-actions-active-tmpl
64
-
65
- // add form id to toggles
66
- toggles.data('form', form)
67
- pagenav.data('total', pages);
68
-
69
- if(pages <= 1){
70
- page_links.hide();
71
- }else{
72
- page_links.show();
73
- }
74
- exporter.find('.caldera-forms-entry-exporter').attr('href', 'admin.php?page=caldera-forms&export=' + form);
75
- exporter.show();
76
- pagenav.show();
77
- page_links.find('a').removeClass('disabled');
78
-
79
- // setup values
80
- page_links.data('total', total);
81
- entries_total.html(total + tense);
82
- pages_total.html(pages);
83
- current_display.val(current);
84
-
85
- if(current === 1){
86
- first_page.addClass('disabled');
87
- prev_page.addClass('disabled');
88
- }else if(current === pages){
89
- last_page.addClass('disabled');
90
- next_page.addClass('disabled');
91
- }
92
-
93
- jQuery( 'html, body').animate({
94
- scrollTop: 0
95
- }, 250 );
96
-
97
-
98
- init_cf_baldrick();
99
- jQuery( window ).trigger('resize');
100
- }
101
-
102
- jQuery(function($){
103
-
104
- init_cf_baldrick = function(){
105
- $('.cfajax-trigger').baldrick({
106
- before : function(el, ev){
107
-
108
- var form = $(el),
109
- buttons = form.find(':submit');
110
- ev.preventDefault();
111
- if( form.is( 'form' ) ){
112
-
113
- var validate = form.parsley({
114
- errorsWrapper : '<span class="help-block caldera_ajax_error_block"></span>',
115
- errorTemplate : '<span></span>'
116
- });
117
-
118
- if( !validate.isValid() ){
119
- $(window).trigger('resize');
120
- return false;
121
- }
122
- }
123
- },
124
- callback : function( obj ){
125
- var form;
126
- if( obj.params.trigger.is( 'form' ) ){
127
- form = obj.params.trigger;
128
- }else{
129
- form = obj.params.target.find( 'form.caldera_forms_form' );
130
- }
131
- if( form.length ){
132
- var validate = form.parsley({
133
- errorsWrapper : '<span class="help-block caldera_ajax_error_block"></span>',
134
- errorTemplate : '<span></span>'
135
- });
136
- }
137
- calders_forms_init_conditions();
138
- }
139
- });
140
-
141
- window.Parsley.on('field:validated', function() {
142
- setTimeout( function(){ $(window).trigger('resize') }, 10 );
143
- });
144
- }
145
-
146
- function do_page_navigate(el){
147
-
148
- var clicked = $(el);
149
-
150
- if(clicked.hasClass('disabled')){
151
- return;
152
- }
153
-
154
- var form_trigger = $('.form_entry_row.highlight').find('.form-entry-trigger'),
155
- current = parseInt(form_trigger.data('page')),
156
- pagenav = jQuery('.caldera-table-nav'),
157
- page_links = pagenav.find('.pagination-links'),
158
- total = parseInt(pagenav.data('total'));
159
-
160
-
161
-
162
- if(clicked.data('page') === 'first'){
163
- form_trigger.data('page', 1).trigger('click');
164
- }else if(clicked.data('page') === 'prev'){
165
- var next = current - 1;
166
- form_trigger.data('page', next).trigger('click');
167
- }else if(clicked.data('page') === 'next'){
168
- var next = current + 1;
169
- form_trigger.data('page', next).trigger('click');
170
- }else if(clicked.data('page') === 'last'){
171
- form_trigger.data('page', total).trigger('click');
172
- }else{
173
- form_trigger.data('page', clicked.val()).trigger('click');
174
- }
175
- }
176
-
177
- $('body').on('change','.current-page', function(e){
178
- do_page_navigate(this);
179
- });
180
- $('body').on('click','.pagination-links a', function(e){
181
- e.preventDefault();
182
- do_page_navigate(this);
183
- });
184
- $( document ).on('cf.add cf.remove cf.enable cf.disable', function(){
185
- $(window).trigger('resize');
186
- });
187
- });
188
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ui/panels/conditions.php CHANGED
File without changes
ui/panels/layout_toolbar.php CHANGED
File without changes
ui/support/page.php CHANGED
File without changes
ui/support/panels/beta.php CHANGED
File without changes
ui/support/panels/debug.php CHANGED
File without changes
ui/support/panels/support.php CHANGED
File without changes
ui/viewer-two/viewer.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! defined( 'ABSPATH' ) ){
3
+ exit;
4
+ }
5
+ ?>
6
+
7
+
8
+ <script type="text/html" id="caldera-forms-entry-tmpl">
9
+ <div v-bind="{'data-remodal-id': entry.id }" class="caldera-forms-entry-viewer">
10
+ <button data-remodal-action="close" class="remodal-close" title="<?php esc_attr_e( 'Click To Close', 'caldera-forms' ); ?>" v-on:click="close" ></button>
11
+
12
+ <div class="caldera-forms-entry-left">
13
+
14
+ </div>
15
+ <div class="caldera-forms-entry-right">
16
+ <ul v-for="field in fields">
17
+ <li class="entry-detail">
18
+ <span class="entry-label">{{field.label}}</span> <div class="entry-content">{{ fieldValue( field.id, entry ) }}</div>
19
+
20
+ </li>
21
+ </ul>
22
+ </div>
23
+
24
+ </div>
25
+ </script>
26
+
27
+ <div id="caldera-forms-entries">
28
+ <div class="caldera-table" v-cloak>
29
+ <table class="table table-striped">
30
+ <thead>
31
+ <tr>
32
+ <th v-for="field in form.listFields">
33
+ {{field.label}}
34
+ </th>
35
+ <th></th>
36
+ </tr>
37
+ </thead>
38
+ <tbody>
39
+ <tr v-for="(entry, id) in entries.entries">
40
+ <td v-for="field in form.listFields">
41
+ {{ fieldValue( field.id, entry ) }}
42
+ </td>
43
+ <td>
44
+ <a class="btn btn-default caldera-forms-entry-viewer-btn caldera-forms-entry-viewer-details-btn" role="button" href="#" title="<?php esc_html_e( 'View Entry Details', 'caldera-forms' ); ?>" @click="showSingle(id)" >
45
+ <?php esc_html_e( 'Details', 'caldera-forms' ); ?>
46
+ </a>
47
+ </td>
48
+ </tr>
49
+ </tbody>
50
+ </table>
51
+ </div>
52
+
53
+ <div id="caldera-forms-entries-nav" role="navigation">
54
+ <a href="#" v-on:click.prevent="prevPage" class="caldera-forms-entry-viewer-prev-btn btn btn-default caldera-forms-entry-viewer-btn caldera-forms-entry-viewer-nav-btn" title="<?php esc_attr_e( 'Previous page of entries', 'caldera-forms' ); ?>">
55
+ <?php esc_html_e( 'Previous', 'caldera-forms' ); ?>
56
+ </a>
57
+ <a href="#" v-on:click.prevent="nextPage" class="caldera-forms-entry-viewer-next-btn btn btn-default caldera-forms-entry-viewer-btn caldera-forms-entry-viewer-nav-bt" title="<?php esc_attr_e( 'Next page of entries', 'caldera-forms' ); ?>">
58
+ <?php esc_html_e( 'Next', 'caldera-forms' ); ?>
59
+ </a>
60
+ <label for="caldera-entry-viewer-2-per-page" class="screen-reader-text">
61
+ <?php esc_html_e( 'Entries Per Page', 'caldera-forms' ); ?>
62
+ </label>
63
+ <input type="number" min="1" max="100" v-model="perPage" v-on:change="updatePerPage" id="caldera-entry-viewer-2-per-page">
64
+
65
+
66
+ </div>
67
+
68
+ </div>
69
+ <div id="caldera-forms-entry"></div>
70
+